Remove Party Member, Add again?

I'm trying to make a function where when a random encounter initiates, party members are removed. However, at the end of the battle, those actors who were removed are to be added back into the party.

However, there's 12 actors, 3 of which you can add to your party, how can the game keep in mind which actors where removed then add those same ones at the end of battle with a script?

something like

step 1. when battle initiates, save current actors in the party
step 2. remove all actors in party
step 3. when battle ends, add party member who were saved by memory
Create a switch for each actor and whenever the player selects the actor for their party that switch turns on. Create a common event that runs after battle that checks which switches are turned on and then populates the party.
I am learning so much already! This was actually one of the things on my list to figure out! Thanks.
Create a switch for each actor and whenever the player selects the actor for their party that switch turns on. Create a common event that runs after battle that checks which switches are turned on and then populates the party.
How would you do this?
Necro-post notice: Blacckwolff
The last post was well over 2 years ago. Also, your question is not the same as that of the OP, so it would be hijacking a thread.

I suggest you start a new thread setting out exactly what it is you need to know. That quote contains more than one piece of information, so the reader might not know whether it was the "create a switch" bit or the "create a common event" bit.

Moderator note: Closing this.

Original thread: https://forums.rpgmakerweb.com/threads/remove-party-member-add-again.90866/