Main Character Dual, need to switch party members

Hello! I'm in a bit of a quandary. I want my main character to have a dual with an NPC, but I don't want the party members to be in the fight. It's easy to get the party members removed, and added back in if I know exactly what party members were chosen in the first place.

The rub is this: At this point in the game, the player can choose from 4 different party members besides the main character (party size 4). Since there is the possibility of one variable character, is it possible to have the game re-add the original 3 party members that were all ready selected?

Thanks in advance! [EDIT] Using RPG Maker MV for this.
Here is a hard way to keep track of a party team using eventing.
Spoiler: The idea is in the spoiler.
You can make 4 Variables.Slot 1Slot 2Slot 3Slot 4


You have to assign a specific value to each character.

Maria 1
Tony 10
Anna 100
Lucy 1000
Dan 10000

Now you enter your selections for party.
Maria is in the party already. Right?

Let's choose
Tony
Anna
and Dan

So
Slot1 = 1
Slot2 = 10
Slot3 = 100
Slot4 = 1000

Another variable now:
ALLSLOTS = Slot1 + Slot2 + Slot 3 + Slot4.
You must check if hero exists in the party and add accordingly.


You follow me?


Maria = 1
Tony = 10
Anna = 100
Lucy = 1000
Dan = 10000


Keep = 0

Conditional Branch:
IF ALLSLOTS >= 10000
Add Dan to Party
ALLSLOTS = ALLSLOTS - 10000
Keep = Keep +10000
END BRANCH

Conditional Branch:
IF ALLSLOTS >= 1000
Add Lucy to Party
ALLSLOTS = ALLSLOTS - 1000
Keep = Keep +1000
END BRANCH

Conditional Branch:
IF ALLSLOTS >= 100
Add Anna to Party
ALLSLOTS = ALLSLOTS - 100
Keep = Keep +100
END BRANCH

Conditional Branch:
IF ALLSLOTS >= 10
Add Tony to Party
ALLSLOTS = ALLSLOTS - 10
Keep = Keep +10
END BRANCH


Conditional Branch:
IF ALLSLOTS >= 1
Add Maria to Party
ALLSLOTS = ALLSLOTS - 1
Keep = Keep +1
END BRANCH

ALLSLOTS = Keep
I'm kind of following you, but I haven't used variables much yet (I'm still learning a lot about RPG Make MV).

I don't know if you would have time, but I would learn this much better if I could see the actual script, then I can reverse engineer the logic.

Also, I don't know where to find "Keep".

This is what I have made so far, but I'm 99.99% sure it's wrong.
Keep is a name of a variable, same as ALLSLOTS

Yeah ok, this is wrong.
You must check using an event command (Conditional Branch) if a member is in the party. If so, you add the amount to the ALLSLOTS variable, else do nothing.

Then you might empty your party, do something, then you might need the game to remember the members.
How will it be done?
ALLSLOTS!


You apply the conditional branches I provided you and it populates back all the members. 😉

But while you do that, you disturb what ALLSLOTS had as value in the first place, subtracting stuff from it.
To restore the initial value of the party, what you subtract from ALLSLOTS, is kept safe into KEEP. Then you add to ALLSLOTS what is inside KEEP and you got back the initial value.


NEVERMIND:
Download and study this:
It is a two page Event.
https://www.dropbox.com/s/ub221tkllqdm4vm/PartyworksMVsmall.zip?dl=0

Edit: fixed the file of the link. Now the Events work fine.
Case is closed, works great! Thanks for the help Dreadshadow!
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/main-character-dual-need-to-switch-party-members.92384/