Troop events after on screen deaths

I want to spawn a boss after all of the enemies are dead inside of the same troop battle.

I have tried the Himetsuki endphasetriggers plugin and simply enabling it in the plugin browser still ends up on the victory screen before the boss spawns. If im doing it wrong, i dont know how.

I am on 1.6.2 so the compatibility might be broken, is my guess.

I also do not want to add an invisible enemy to prevent the victory screen, because it will cause the message _xyz has appeared_ and won't look good.

I have made sure my event conditions are met.

The way it works is enemies add +1 to a variable when they receive knockout state. when all the enemies are dead, the conditions for making the boss appear are met.

it keeps going to victory screen without checking for the event...

I have tried making it spawn when theres only one enemies remaining, and it works... however if the last 2 (or more enemies) are killed with AOE attacks, itll skip the boss spawn.

Is there a way I can make the last enemy immortal? I dont want to make all the enemies immortal, just the last one immortal when he dies. Like a condition that gives him the immortal status when he reaches 0 HP AND if hes the last remaining enemy.

Really... I just wish MV processed events before victory.. Im about ready to give up on the idea and just make the boss a separate troop entirely.
please show us screenshots of your event, especially the one that is supposed to have the boss appear. Most liekly you gave it the wrong phase trigger.

that said, you can do that without any plugin if you use an immortal state in the correct way.
you need one more troop event than the number of regular enemies.

1) a troop event at the beginning of the battle gives all enemies the immortal state. It is important that the enemies are not immortal themselves but given the immortal state by a troop event. That state mus not have any text or icon to hide that it is there. Also set the variable to zero here.
2) each enemy needs a troop event conditioned on HP=0. They won't die at HP=0 because of the immortal state, but it will trigger the troop event.
3) in each of these troop events, you count up the variable and check if the variable has the total number of kills.
4) if the kill number is correct, make the boss appear
5) after the check, remove the immortal state from the enemy - this will instantly kill them because their HP is already zero

finished, it should now work without any plugin
please show us screenshots of your event, especially the one that is supposed to have the boss appear. Most liekly you gave it the wrong phase trigger.

that said, you can do that without any plugin if you use an immortal state in the correct way.
you need one more troop event than the number of regular enemies.

1) a troop event at the beginning of the battle gives all enemies the immortal state. It is important that the enemies are not immortal themselves but given the immortal state by a troop event. That state mus not have any text or icon to hide that it is there. Also set the variable to zero here.
2) each enemy needs a troop event conditioned on HP=0. They won't die at HP=0 because of the immortal state, but it will trigger the troop event.
3) in each of these troop events, you count up the variable and check if the variable has the total number of kills.
4) if the kill number is correct, make the boss appear
5) after the check, remove the immortal state from the enemy - this will instantly kill them because their HP is already zero

finished, it should now work without any plugin

I decided to try your second suggestion before trying to do more with the hime plugin. it works just how i want it to now, thanks.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/troop-events-after-on-screen-deaths.110814/