Question on Conditional Brances

I have a conditional branch that goes as follows, 


check to see if switch <your class here> is ON


then another one to check what class you are suppose to be in.


For example to make this easier to understand I have 4 classes a day in my war school... So I want to have some branches to check if I can enter the door. So for example 2 of my classes or specs I like to call them for less confusion are the Shadow-steppers and Plagues. Now I want to have a conditional branch that checks to see if you are that spec, and if you should be in that class or not, BUT it seems like how conditional branches work.. it's checking the first one, and I am not that class, so it moves onto the next conditional branch even though it did not fit the priorities of the first one... so why is this happening? If you are so confused and I suck at explaining, I'm sorry and I'll try to explain it more, but it doesn't make sense. Why when the first condition is a fail it goes to the next one in the look even though it should just end there.


(Also side not for the Mods, sorry if this is the wrong spot for this topic)


Edit: Here is a picture of what I am talking about, as you can see I have 2 conditional branches, when the first critea is not meet it should end the branch, but instead it also checks that Class 1 switch and uses that as well meaning it opens the door even though the first property was not met. 
EDWtMAI.png
Moving to VX Ace Support


It's hard to tell because you've only shared a small part of the event window - when you post a screenshot, show the WHOLE event window, because what's NOT in your image is just as important as what IS in your image.


Are you certain of the value of those switches?  If you go into debug (F9) before interacting with that event, does it show that one of those switches is off?


My guess is that you have multiple tabs, and the tab you're showing is not the one that's active - I suspect you have another one that has the conditional branches in a different arrangement.


If you can't figure it out, please show FULL images of each of your event pages.
Moving to VX Ace Support


It's hard to tell because you've only shared a small part of the event window - when you post a screenshot, show the WHOLE event window, because what's NOT in your image is just as important as what IS in your image.


Are you certain of the value of those switches?  If you go into debug (F9) before interacting with that event, does it show that one of those switches is off?


My guess is that you have multiple tabs, and the tab you're showing is not the one that's active - I suspect you have another one that has the conditional branches in a different arrangement.


If you can't figure it out, please show FULL images of each of your event pages.

Ah okay, I thought only that portion of the event, mattered, I will show a full page of the event here: 
IBRgAom.png



And I went and play tested and only marked the Class 1 switch, but it still allowed me to go into the door... Which it shouldn't, it should be or what I want it to do is check both and then if both are on, it opens the door.
What's on page 2? I ask because page conditions are executed in descending order.

Also, you are correct in your understanding of conditional branches. In your screenshot, if Plauge were OFF, the Class 1 switch would not be checked.


Finally, a bit of advice. Start a new game and test your event again. This time press F9 and check to see if your switches are set to the values that you have intended.
What's on page 2? I ask because page conditions are executed in descending order.

Also, you are correct in your understanding of conditional branches. In your screenshot, if Plauge were OFF, the Class 1 switch would not be checked.


Finally, a bit of advice. Start a new game and test your event again. This time press F9 and check to see if your switches are set to the values that you have intended.

Taking a look at page 2 now... oh.. page 2 was that open door command without the conditional branches, i will see if it works now



Edit: ... That fixed it -.- .. i am so stupid.. and am SO SORRY for being dumb XD 
Nice 🙂


In all the RPG Makers, when determining which page to make active, it starts at the highest-numbered one and works its way back until it finds one either with no conditions, or where all conditions are met.  So if tab 2 has no conditions, or the same conditions as tab 1 (or any other conditions that are met), it will be the active page.

Original thread: https://forums.rpgmakerweb.com/threads/question-on-conditional-brances.61873/