Help - Search - Members - Calendar
Full Version: XP - Batch Conditional Branch
RPG RPG Revolution Forums > Scripting > Event Emporium
Real Ninjason
Good Evening Mates,

I'm having quite the long eventpages due to the fact, that when I am setting up a longer conditional branch, that needs to check for more than just one condition, I have to do that seperately, resulting in several:

Is condition "x" given?
If yes:
Is condition "x2" given?
If yes:
Is conditon "x3" given?
...
If not:
Tell him to do it.
If not:
Tell him to do it.
If not:
Tell him to do it.


Is there a possibility to do a batch conditonal branch, like:

"Does the player have the items: "Bronze Sword, regular Shield, HP medicine" in his bag?
If yes:
...
If not:
...


I know this exists for switch-batches and variable-batches, but what I'm asking about is all those other options, like "partymembers"


Also I would find it helpful to achieve a function like this:


"Does the player have the items: "Bronze Sword OR regular Shield OR HP medicine" in his bag?
If yes:
...
If not:
...


It would REALLY help cleaning a lot of repitions out of the pages, that only render the eventpage diffuse...
Kread-EX
The only way to do that is to use script as a condition. Let's say you want the player to have the first sword and the first shield as a condition. You would type this in the script condition: $game_party.weapon_number(1) > 0 and $game_party.armor_number(1) > 0
Real Ninjason
Ok, I'll try that out, thank you.
Real Ninjason
It works perfectly. Thank you, Kread-EX.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.