Party Member Swapping Trouble

So, I'm having a ton of trouble trying to create a Swapping system for my game. For example. One section has an npc (event) that states, "you have too many people in your party, would will you remove?" At this point, each choice has a defined variable saying that variable is equal to the actor ID of whoever is in that party Member slot. This is the point where I'm totally stumped. I don't know much at all about scripting, but I simply want the event/actor to replace whoever is in that chosen party Member space, regardless of what actor it might be.


I can add pictures of my process upon request.
If you're using variable 2 and it has the actor id of the person you wish to remove, do this in a script call:

Code:
$gameParty.removeActor($gameVariables.value(2))
If you're using variable 2 and it has the actor id of the person you wish to remove, do this in a script call:

Code:
$gameParty.removeActor($gameVariables.value(2))

I'll give it a shot now, thank you for the rapid response! For me, it'll be variable 1, which is set to the game data, "Actor ID of the party member #2"


By script call, you mean using the Script option during an event, yes?
yes.


If you're using variable 1, just put 1 instead of 2 in the script call.
yes.


If you're using variable 1, just put 1 instead of 2 in the script call.

IT WORKED TO PERFECTION! I have no idea who you are, but I could kiss you.
is this going to be a player swap during battle script?
Battle scripts change things around.  Please don't hijack someone else's topic with your own questions.

Original thread: https://forums.rpgmakerweb.com/threads/party-member-swapping-trouble.60564/