Some events are ignoring a "global switch/variable"

I have various events that depend on one global switch, the one with the robot works are it should, but the one with the snake doesn't and I have no idea why.


Can anybody give me a hint?

rude2.png

rude1.png
there can be only two reasons for this: either you ignored page priority and one of the pages with a higher number (=higher priority) is already active, or you'll have installed a script that changed switch behaviour (especially since you're using switch ID 01, which is the default for some script configurations)


Show screenshots of the higher pages and we can tell you which cause happened here.
Hmm, I think I got my priorities right?

rude1.png

r5.png

r4.png

r3.png

r2.png

r1.png
The snake won't work because the second page has no condition, so it will always be active and the first page will be ignored.


Just swap the first and second pages and it should work.
Many problems. First, I only see one screenshot for EV041 (first one), the other EV041 screens are not the same event. I can tell as they have less pages than the first one. Also the first EV041 screenshot page 2 means that page 1 will never run, as page 2 is blank on conditions, meaning it will always be found if none of the conditions on page 3 and 4 are met.


Your second Ev041 I never see where you turn on self switch A. Plus, page 3 is going to be in an infinite loop, as you have no page above it, and you never turn off self switch A. Turning on self switch B is a good idea, but you need a page *above* page 3 checking that for it to work.


Remember, with events, the highest page that has its conditions met is the one that is always ran. So if you have something on page 5 that is always met, pages 1 - 4 will never run.
Ah, I didn't know the order of the pages mattered. Thanks for the information, it's working fine now!
As I explained above, the page priority is determined by page number. If more than one page has all conditions fulfilled, only the page with the higher number will be executed.


Since your second page originally had no condition, it would always have priority over the first page, no matter if the conditions on the first page were true or not.


That's why you needed to switch those pages, to give them the correct priority.
That's what @Andar was saying about page priority. Events will always go from right to left. In other words, from highest page number to the lowest - until it reaches a page where the conditions are met. Not in chronological order from page 1 which has often caused confusion. So if your pages are mixed up, it can cause a hiccup. I always recommend keeping your event pages in chronological order even if each of them have specific conditions needed to be met. 

Original thread: https://forums.rpgmakerweb.com/threads/some-events-are-ignoring-a-global-switch-variable.60909/