MZ Can't activate switches in battle/troop events, please help!

When I set a switch to turn on during a troop battle, it doesn't work. I first tried setting it to work when the enemy died, that didn't work, and I tried setting it to work when the battle started, that didn't work either. I am using debug to check if the switch was on. I am still able to event text showing up upon troop death/upon conditions fulfilled. I have tried using a new project and it doesn't work there either 🙁((
please show us screenshots of your troop events, including condition and span

we can't tell what you did wrong without seeing what you did.
I tried it out with conditions turn 0 and span: battle and that worked, but this one does not. It works when I tell it to display text with this condition but not when I try to turn on a switch.
Screenshot 2025-06-26 072616.png
I tried it out with conditions turn 0 and span: battle and that worked, but this one does not. It works when I tell it to display text with this condition but not when I try to turn on a switch.View attachment 343675
Is this a troop with only one enemy in it? HP-based troop events won't work when you kill the last enemy in battle, as the victory processing happens before it's able to fire.
Never mind! I figured it out by giving the enemy immortal status and then removing it after changing the switch! Thank you though!

Is this a troop with only one enemy in it? HP-based troop events won't work when you kill the last enemy in battle, as the victory processing happens before it's able to fire.
Yeahh I think this was the problem :,)
Hi. Can you help me with this? Can you show a screenshot how did you pull this? Thanks
Never mind! I figured it out by giving the enemy immortal status and then removing it after changing the switch! Thank you though!


Yeahh I think this was the problem :,)

@ramedina1234 , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/cant-activate-switches-in-battle-troop-events-please-help.178544/