MZ Troops Event Priority Error

So, I made a skill to Observe the enemy, which worked by applying a state and making a common event activate a switch to turn it on.
Screenshot 2026-02-08 085230.png


Then in the Troops Event section, it would trigger if the switch was turned on. This works for the first enemy. However, the second one doesn't work unless I put it as the first one in the list

Screenshot 2026-02-08 085355.png


Screenshot 2026-02-08 085410.png


Is there any work around for this?
Itll be a little harder to look at, but instead of having each be a separate page you could have it all be in the same page and then check the individual enemies there.
You haven't shown the whole event, but could it be that the final command in your first page is "Control Switches: Observe? OFF"? If so: move that command inside the conditional block and it should work.
You haven't shown the whole event, but could it be that the final command in your first page is "Control Switches: Observe? OFF"? If so: move that command inside the conditional block and it should work.
wouldn't it then immediately try to replay that same first page as the condition would still be true? I don't really use moment troop events, but i wasnt under the impression that the interpreter there cycles through all the available pages when finding a page to run
Ah yes, you have a point. You'd need to change the span to Turn as well.

The troop event interpreter runs all pages until there's no page left to run.
to give the background for the answer above:
the span determines how often an event can be triggered: once per battle, once per turn, once per moment (parallel equivalent)
I wound up putting the conditional scripts on the same page and I placed the code that removed the observe state into the conditional block. That wound up working for me, so thank you @Solar_Flare and @Robro33

Original thread: https://forums.rpgmakerweb.com/threads/troops-event-priority-error.182350/