you don't need the vars= anymore...
Script to compaire multiple variables
RGSS3 Script Requestsit should be
Code:
$game_variables[20] = highest_var(*vars)
oh ok. now it fits in the control variables script box so should i link it to the Highest variable like this?
@>control variables: [0020:Highest Nature] = $game_variables[20] = highest_var(1..16)
@>control variables: [0020:Highest Nature] = $game_variables[20] = highest_var(1..16)
You double assigned it...
remove the $game_variables[20] = part...
that is only used if you're doing a full script call for setting a variable (meaning assigning value to a variable using the script command at the third page of the command events)...
it's not needed if ur using the change variable event command...
so it would only be
@>control variables: [0020:Highest Nature] = highest_var(1..16)
remove the $game_variables[20] = part...
that is only used if you're doing a full script call for setting a variable (meaning assigning value to a variable using the script command at the third page of the command events)...
it's not needed if ur using the change variable event command...
so it would only be
@>control variables: [0020:Highest Nature] = highest_var(1..16)
ahh my bad, now i inserted a text section after the variable that just said "your nature is \v[20]" It listed points for all 16 variables instead of just the highest. what im tryin to do is if the player got more points on variable bold then it say "your nature is bold" and give the player the character graphic for bold.
w8, so you want the variable name??? that might be trickier
anyway, I can't comment for why it shows all of the 16 variables as I'm not versed with the method that theodoric used...
anyway, I can't comment for why it shows all of the 16 variables as I'm not versed with the method that theodoric used...
yeah. well thx to the both of ya for helpin me get this far.
@adi: if you push an array it will add that array instead the array element.
If you want to merge two array you can use + (plus sign):
array = [1,2,3,4,5,6,7,8,9,10]
array = array + [11,12,13,14]
There's also another method using << I think.
@ncognito: after you store the result to variable. Then you do conditional branch. If that var = 1. Nature=timid.
Sorta like that.
Edit: my phone acting strange and didn't show newer post...
If you want to merge two array you can use + (plus sign):
array = [1,2,3,4,5,6,7,8,9,10]
array = array + [11,12,13,14]
There's also another method using << I think.
@ncognito: after you store the result to variable. Then you do conditional branch. If that var = 1. Nature=timid.
Sorta like that.
Edit: my phone acting strange and didn't show newer post...
so it will be like:
array = [0,1,2,3,4]
array.push(5,6,7,8,9)
array becomes 0,1,2,3,4,[5,6,7,8,9]?
about his question, It was weird that it shows all variables since the method theo posted should have returned only 1 variable if it works correctly, so \V[20] should only show 1 variable instead of the whole 16 variables
array = [0,1,2,3,4]
array.push(5,6,7,8,9)
array becomes 0,1,2,3,4,[5,6,7,8,9]?
about his question, It was weird that it shows all variables since the method theo posted should have returned only 1 variable if it works correctly, so \V[20] should only show 1 variable instead of the whole 16 variables
Original thread: https://forums.rpgmakerweb.com/threads/script-to-compaire-multiple-variables.17123/