remove actor from ACTIVE party upon death?

Hi everyone, i'm trying to implement a system where upon death, actors with an actor ID of above 10 will instead of just remaining dead, exit the active party(the one actually fighting) and go back to the stock actors. Any help would be appreciated!
your post is a bit short on details what you want to happen then and what battlesystem you're using.

basically by default you can do this by having one troop event for each actor triggering on death that removes and re-adds the actor. That is because by default the newly added actors are added last and it's only the first four actors that make the battleparty.

Unfortunately there are a lot of sideeffects that need to be taken into account, like if your battlesystem can handle the new battler, the one that was previously party member #5 and is now #4
or what happens if you have only 4 party members
or a few other things depending on which plugins your battle uses and so on.

Original thread: https://forums.rpgmakerweb.com/threads/remove-actor-from-active-party-upon-death.152727/