When an character gets knocked out, they are removed from the party.

Good evening! I am here to ask a specific thing: How does one make a party member who, upon getting knocked out/dying, is "kicked out" of the party? I found minor success with adding this line to every battle.
1701623787768.png

However, a new issue arose in the form of the fact that, when I re-summon this character with an ability, they no longer get "kicked out" from their HP going to zero percent.
The fix is most likely trivial, and if it's not, there is most likely a plugin that will allow me to achieve this goal.
Thank you, in advance, for all the responses.
Heya,

Since the screenshot is cropped I may be on the wrong track here--and generally it's advised to post a full uncropped screenshot just so people have the full picture--but my guess is that you have the troop event to only happen once per battle so subsequent summons won't work anymore.

Do you have the span set to 'battle'? As it will only run once per battle in that case. Changing it to 'turn' may help so it can only run once per turn, I believe.

Edit: And assuming that works after, to avoid mass copy and pasting across all troop events, you may wish to look into putting the troop event into a single base troop event that happens across all battles globally:

Heya,

Since the screenshot is cropped I may be on the wrong track here--and generally it's advised to post a full uncropped screenshot just so people have the full picture--but my guess is that you have the troop event to only happen once per battle so subsequent summons won't work anymore.

Do you have the span set to 'battle'? As it will only run once per battle in that case. Changing it to 'turn' may help so it can only run once per turn, I believe.

Edit: And assuming that works after, to avoid mass copy and pasting across all troop events, you may wish to look into putting the troop event into a single base troop event that happens across all battles globally:

Yes, that is exactly the issue!
Thank you, my good man, you have saved my from my sisyphian toil.
Edit: I have checked, it was, in fact, made to have the span of battle. Still, I'll try to use your proposition, and see what occurs.
Edit 2: I have re-read the post, re-evaluated the code, and yes, it did, indeed, fix itself! Thank you once again!

Original thread: https://forums.rpgmakerweb.com/threads/when-an-character-gets-knocked-out-they-are-removed-from-the-party.163554/