MZ Battle Event Conditional Command is Ignored

Note: I am using HIME_EndPhaseTriggers

I have made a page with a condition that checks if all enemies are dead, and then does something. When testing, after defeating all the enemies the event does not run even when using HIME_EndPhaseTriggers.

The condition should be true, so I don't understand why it does not pass the check D: The plugin should be working in MZ.

Here's what I was trying to do:


1000299885.png
I guess the picture is not getting enough time to display before the scene ends. Have you tried adding something like "Show Text: Test!" or "Wait 60 frames" immediately after the Show Picture command?

In case it helps, here's an alternative plugin for MZ:
I think those specific parts of the code are the same in core MV & MZ, so both plugins should generally work in either engine. triacontane's approach is a bit less invasive, though.
I guess the picture is not getting enough time to display before the scene ends. Have you tried adding something like "Show Text: Test!" or "Wait 60 frames" immediately after the Show Picture command?

In case it helps, here's an alternative plugin for MZ:
I think those specific parts of the code are the same in core MV & MZ, so both plugins should generally work in either engine. triacontane's approach is a bit less invasive, though.
Unfortunately none of these plugins worked, after defeating the enemies the battle victory message appears and nothing more 😢

I have tried a wait 300 frames command, a show text command and a picture command.
Hmmm, shouldn't you make troop events there with the condition that enemy hp is 0% (for each enemy) and in those check that if the whole troop is dead?

EDIT: Also your troop event was set to 'battle' so it only runs once at the end of the first turn?
Hmmm, shouldn't you make troop events there with the condition that enemy hp is 0% (for each enemy) and in those check that if the whole troop is dead?

EDIT: Also your troop event was set to 'battle' so it only runs once at the end of the first turn?
This solution worked! Thank you so much! 😍

Yes. It is set to battle.
Wrong settings

your condition is turn end, but your span is battle.

The span determines how often an event runs: once per battle, once per turn or once per action.

the conditional branch has nothing to do with this, because the turn end triggers on the first turn when no enemy is dead, aborting the troop event.
and due to span = battle it will never run again.

change the span to turn and it should work

EDIT: ninja'd by edit
I haven't tested it too much, but I don't think that plugin checks turn end troop events after last enemy defeat. That's why I suggested the enemy hp 0% check. Not 100% sure though.
Wrong settings

your condition is turn end, but your span is battle.

The span determines how often an event runs: once per battle, once per turn or once per action.

the conditional branch has nothing to do with this, because the turn end triggers on the first turn when no enemy is dead, aborting the troop event.
and due to span = battle it will never run again.

change the span to turn and it should work

EDIT: ninja'd by edit

I tried, but it still doesn't work this way.

Thank you for explaining the span though! 🙂 I was a bit confused about that.

Original thread: https://forums.rpgmakerweb.com/threads/battle-event-conditional-command-is-ignored.176460/