Event not working as intended *PLEASE HELP*

Hi, I'm really hoping someone can help me here. I'm not exactly new to RMVXA, but this one has me stumped. I'm trying to set up a simple switch mechanism so that when the player pushes a boulder onto a specific tile, a gate opens, allowing progress to the next area. Normally I have no issue with this kind of thing, I'm confident setting up variables to track object coordinates on the map etc. But for some reason, whever I load into the game, the gate is automatically opened without having to solve the puzzle, I've found myself at a loss for what could be causing this. An extyra pair of eyes would be greatly appreciated, hopefully it's something simple I've overlooked. I've attached screengrabs of all relevant screens etc. Thanks in advance for anyone who can spot whatever error I've made.

Img 1 shows the setup with the boulder and the destination tile. Img 2 shows the variables I have setup, the Push is simply what I've called the destination tile, Img's 3 and 4 are the events running the gate.
I suspect that because event 26 has a lower ID than 31 and so runs first, in its first cycle the two sets of variables all have values of 0, meaning they're equal and that turns self switch A on before the second parallel process event starts tracking coordinates.
I suspect that because event 26 has a lower ID than 31 and so runs first, in its first cycle the two sets of variables all have values of 0, meaning they're equal and that turns self switch A on before the second parallel process event starts tracking coordinates.
Ahhh that's it! After changing the event ID's around it worked flawlessly! Thanks a lot, that's saved a lot of headaches!
it would be much better to use only a single parallel process anyway.

since the gate is running on parallel anyway, you can have the control variables commands in there before the conditional branches.

that would make the event ID independent since the variables are always loaded before the conditional branches, and if you are bughunting later all commands for this would be in a single event instead of having to search for the event that sets the variables for the gate.
and also reduce the number of events on the map (less cluttered) and a few more advantages beside preventing the timing problems that caused your original problem.
it would be much better to use only a single parallel process anyway.

since the gate is running on parallel anyway, you can have the control variables commands in there before the conditional branches.

that would make the event ID independent since the variables are always loaded before the conditional branches, and if you are bughunting later all commands for this would be in a single event instead of having to search for the event that sets the variables for the gate.
and also reduce the number of events on the map (less cluttered) and a few more advantages beside preventing the timing problems that caused your original problem.
Thanks for the info, I'll bare that in mind with the next puzzle like this, definitely seems like a simpler and more elegant way of doing things!

Original thread: https://forums.rpgmakerweb.com/threads/event-not-working-as-intended-please-help.162304/