Hey guys, I understand the headline probably doesn't make much sense, but here is what I'm asking, is there a way to call for parameters via script within a conditional branch?
For example, you have the option to fight or run, I need the conditional branch to see if your atk stat is high enough to fight or if your agility is high enough to successfully run away.
Fight - Atk must be 2+ to succeed
Run - Agi must be 3+ to succeed
Thanks ahead of time for a response.
You would use Control Variables to get those stats into variables, and then use Conditional Branch to determine if the variables are equal to or greater than the required number.
Do I just plugin the script call on a control variable? Also if that's the case will it be as that variable always or do I have to do a control variable each time?
No. In Control Variables, you go to Game Data and look at everything available in there. You can select party members, and then select their stats.
Amazing, Now that it works, will it stay set to that or do I have to do it per event?
Also thanks!
You would have to do it prior to each conditional branch - at every point where you want to check the value of the stat, you would need to set the variable immediately beforehand.
If this is something you are doing in many events and it's just going to be copy/pasting code with no changes, consider putting the "common" stuff into a common event, and then in your map event just do a (Call) Common Event command. That way, if you want to change anything, you've just got to change it in one place, rather than trying to remember where all the events were where you used it.
Will do, Thank you so much!