Eject an Actor from Battle

Is there a way to eject an actor from battle? I want to make a skill that kills the user and removes them from battle, so they cannot be revived. And a skill that when used on the party, removes the actor from battle as though they were killed. For both, I do want the actor to return after battle.
i cant check if it doesnt have any additional drawbacks, but you could try using the escape effect on the skills. It should remove any targeted actor for the rest of the fight.
although, you ought to be careful with when its used. IIRC, if all actors have been removed that way then it counts as the player's party having escaped, but if any actor is dead and have been left behind, then its a game over as the "entire party" is dead
i cant check if it doesnt have any additional drawbacks, but you could try using the escape effect on the skills. It should remove any targeted actor for the rest of the fight.
although, you ought to be careful with when its used. IIRC, if all actors have been removed that way then it counts as the player's party having escaped, but if any actor is dead and have been left behind, then its a game over as the "entire party" is dead
I'll try that. I don't think it worked. The skill that was supposed to eject the user did not.
i cant check if it doesnt have any additional drawbacks, but you could try using the escape effect on the skills. It should remove any targeted actor for the rest of the fight.
although, you ought to be careful with when its used. IIRC, if all actors have been removed that way then it counts as the player's party having escaped, but if any actor is dead and have been left behind, then its a game over as the "entire party" is dead
Here is a screenshot of what I tried. When I ran the battle test, it kills the user, but it didn't give the escape effect.
Edit: When I swapped the escape skill and death adding, it did remove the user from battle. Not sure if it killed the user, though.


I've implemented this feature in my plugin.
The core of its operation is Sun_1_GamePartyEx.js,
and it's triggered via Sun_1_SkillParameterEx.js.
This is a skill that forces enemies to flee
and forces allies to leave the party.
As long as at least one ally is expelled,
even if the remaining members are completely wiped out,
it won't result in a GAME OVER.
I did something similar to perma-kill characters exposed to a certain skill.
Start the battle by recording the party formation. This can be as simple as the following:
1756871299882.png

Then, run the battle.
You'll want the skill to run a common event that does the following:
1756871532268.png

Then, after the battle, you'll want to reset the party formation:
1756871580196.png


Let me know if it works! Last Actor ID to Act should target the actor who used the skill, but if something goes wrong, it'll probably go wrong there.
I did something similar to perma-kill characters exposed to a certain skill.
Start the battle by recording the party formation. This can be as simple as the following:
View attachment 348888
Then, run the battle.
You'll want the skill to run a common event that does the following:
View attachment 348889
Then, after the battle, you'll want to reset the party formation:
View attachment 348890

Let me know if it works! Last Actor ID to Act should target the actor who used the skill, but if something goes wrong, it'll probably go wrong there.
Where should I put the script to reset the party?
You can put it in the same event that started the battle, just after the battle. For random encounters, you would have to run it after the encounter. I would suggest flipping a switch at the start of the encounter that triggers an autorun event when the players return to the map, which runs the common event and turns off the switch.

Original thread: https://forums.rpgmakerweb.com/threads/eject-an-actor-from-battle.179365/