Opponent does not appear, instead the victory screen appears

I have a troop with 2 enemies. I have set 1 enemy that he should only appear in the middle of the battle after the other has been defeated. But as soon as the first enemy is defeated, the Vicotry screen appears.

In rpg maker mv it still worked the way I wanted it to, but in mz the victory screen appears immediately after one has been defeated, just because the other has not yet appeared.

Can someone tell me what I'm doing wrong?

1640483370047.png
Did you give your first enemy the immortal state in the MV version?
Here's a test sequence I did for a monster change effect on MZ that works on the current version.

Troop: one "Test Goblin" (I'd set it to 1 hp max for testing)

Event #1
Conditions: Turn 0
-- Change Enemy State: #1 Test Goblin, + Immortal

Event #2
Text: Test Goblin, blah blah blah
"This isn't even my final form!"
-- Enemy Transform: #1 Test Goblin, Test Gnome
-- Change Enemy HP: #1 Test Goblin, + 1 (because the enemy is at 0 hit points and would immediately die in the next step)
-- Change Enemy State: #1 Test Goblin, - Immortal (removes Immortal state)


EDIT: I just made a copy of the Troop and changed it to make a second pre-placed enemy appear mid-battle after the first one dies, and it works.

Troop: one "Test Goblin" and one mid-battle (right-click on monster) "Test Gnome"

Event #1
Conditions: Turn 0
-- Change Enemy State: #1 Test Goblin, + Immortal

Event #2
Text: Test Goblin, blah blah blah
"Try my buddy next!"
-- Change Enemy State: #1 Test Goblin, - Immortal
-- Wait: X frames (optional)
-- Enemy Appear: #2 Test Gnome
what does the other event do?

there is a quirk of the battlesystem that if all enemies are killed, the troop events are no longer processed.
if you have two enemies on screen and the victory screen appears after one is killed, then something kills the second one before the troop event can appear the third one.

this can only be prevented by making the enemies temporarily immortal until the troop events triggered by HP=0 are processed, that is why the other post asks about immortality.
If you have just the two opponents, why not just have one battle follow the other?
Thanks for all the answers. It works now when I temporarily immortalize the first enemy. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/opponent-does-not-appear-instead-the-victory-screen-appears.143304/