Switch/Event problem

I have been all day trying to solve this.
I have 2 different switch activation events that are triggered by being walked on(player touch). One of them works perfectly. One doesn't work at all.
They are set up the same way. The events that they control are set up the same way.
The PC is leaving a courtroom. When he steps on the first event it triggers two guards (one on each side of him) to walk out beside him.
As you near the back of the room, another switch triggers two more guards to walk out in front of him.
The event at the back of the room works every time.
I've looked at the events over and over and can't find a difference other than
they are activated by different switches.

Below are screenshots of the working switch and one of the guard events that it controls:


https://snag.gy/U4ONnW.jpg

https://snag.gy/KEnS5M.jpg

https://snag.gy/j0zqTk.jpg



These are the pages for the events that don't work.


https://snag.gy/5GWAc0.jpg


https://snag.gy/iWoNpc.jpg


https://snag.gy/PhKOi1.jpg




Thank you.
Are those events all on the same map, and are the guards visible on the screen when the player walks on the trigger switches? If so, you can do it much more simply than that.


For starters, you don't need the first page of your guard events to be set to parallel process.
Secondly, when the switch is turned on, your guards' second pages will activate, and because they are set to parallel process, they will keep looping, so the guards will continue walking and not do just the number of steps you want them to do. You have to turn the switch off to stop the parallel process.

Some things I can think of that might prevent your second guards from moving ... there could be an event in their way - events won't move through other events, regardless of the above/below/same priority, unless one of them is set to THROUGH. They could be too far off the screen - only events that are on the screen or close to the visible area are processed (I'm not sure if an on-screen event executing a move route on an off-screen event overrides this). You could have a plugin or other event activated by that switch, that is then turning it off. When the guards are meant to move but don't, can you move? Can you access the menu? If you go into the debug window (F9) does it show you that the switch is still on?

However, if the guards are visible when you step on the trigger switch, put all the processing onto the trigger switch and you don't need to worry about distributing processing across multiple events at all:

EV016 - page 1 - trigger Player Touch
Set Move Route (EV003) Move Down, Move Down, Move Down
Set Move Route (EV???, Wait) Move Down, Move Down, Move Down
Control Self Switches A = ON

page 2 - trigger Action Button, conditioned by self switch A.

Then you don't need to have any switches or any event commands on your guard events.

Original thread: https://forums.rpgmakerweb.com/threads/switch-event-problem.105997/