Utility Common Events -> Perma Death System

Hello Game Makers!

So, I've been trying to develop a permanent death system, so I can work with a system of AI actor troops:
1. You recruit.
2. They battle and (might) die.
3. You go and recruit again.

I tried to establish the permanent death system this way:

1. I created a Troop Event that adds the state death when the actor(x) reaches 0 HP, as seen:

Spoiler: Spoiler
wBXy9JX.png

2. Then the battle finishes, so the Utility Common Events call a Common Event at the end of the battle (either victory or escape), as seen:

Spoiler: Spoiler
PurBhOx.png

3. On the Common Event 5 as seen in the example, I have the following commands:

Spoiler: Spoiler
0Y0HoeT.png

The message text shows but the actors don't get removed from my party, even though they have the Death State on them.
If I put this conditional branches on the troop battle event (3 conditional branches: 1 each for each page, 3 pages total for 3 actors) it works and they get removed, but they do it mid-fight, while I would like it to be just at the end -> I'd like to see the bodies on the ground.

I feel like I'm missing something really obvious but can't figure out what... Can anyone lend me a hand?

Thanks in advance and kind regards!
Did the state stay on the actor after the battle is over?
sample.jpg

Under the states tab, you'll need to check there. Also, I would add a message like "Therese was removed from the party," just to make sure you're getting the event inside the "if" statement.
Yeah I added nothing to the state, just a state to mark the actors.
miQlEkS.png


And as seen, the actor retains the state after battle.
WUJ8eLP.png
Okay, if your battles are on-screen/touch-activated, then you could just add the script to your "If Win/Lose/Escape" event. If you are using the random encounters (i.e., the built in mechanic), then it's a bit different.
Does the "Victory!" text pop up?
If not, then the CE is not being called.
Mrs_Allykat on the "if win/lose/escape" event the player doesn't get removed also. This is really weird.
Maliki the Victory text shows up. The conditional is not working though.

Original thread: https://forums.rpgmakerweb.com/threads/utility-common-events-perma-death-system.107638/