New account registration is temporarily disabled.

[RMMV] VARIABLES AS EXTRA STATS

Posts

Pages: 1
I wanted to add some more stats into my game, such as lockpicking and Medicine, so I set them to variables. (Ex: Variable 32= Lockpicking<<Jake>>, Variable 56= Lockpicking<<Chris>>)
Each of my four characters have their own values for these variables.
What I want to know is how do I do a skill-check against the highest level variable out of them? (Example- Jake has lockpicking 7 and Chris has lockpicking 3. How do I check if any party members' lockpicking variables are above 5)
How to check if ANY party members' lockpicking skill is above 5.
Use a conditional branch (page 1), and put this into the script box, (page 4):

$gameVariables.value(32) > 5 && $gameVariables.value(56) > 5 && $gameVariables.value(var) > 5 && $gameVariables.value(var) > 5

Then replace var with the variable numbers of the other 2 people besides Jake and Chris.

What is inside this branch will trigger if all 4 people have lockpicking over 5. If you use Else option, that will trigger instead if just 1 party member can't satisfy the over 5 requirement.

If you want to change to Lockpicking 5 AND up, then use this instead:

$gameVariables.value(32) >= 5 && $gameVariables.value(56) >= 5 && $gameVariables.value(var) >= 5 && $gameVariables.value(var) >= 5

If you want to change to just 1 member having lockpicking over 5:

$gameVariables.value(32) > 5 || $gameVariables.value(56) > 5 || $gameVariables.value(var) > 5 || $gameVariables.value(var) > 5
Hope this helps!
Yeah, this actually solved my problem. Thanks!
Pages: 1