Reserve Member to Party

So I made an event where if actor dies they are removed from party. Is there a way to move the reserve member to that slot?
I have seen scripts to move certain actors to the party or swap the order, but nothing like "the first reserve member slot" to an empty party slot.

Ex: We have 4 party members and 1 died. Looking for a way to bring a reserve member to fill in the empty party.

I am using VisuStella plugins

1735769222829.png
Your questions make no sense

If you have only 4 actors in the party, then you have no reserve party.

the reserve party is always actor #5 and higher, with the battleparty being actor #1 to #4.

so where should your replacement actor come from?
Hmmm, VS allows you to choose how many participate in battle. So at the start of battle put into a variable X:
$gameParty.allMembers().filter(actor => !$gameParty.battleMembers().includes(actor))

Then you get the actor you want to add with (first check that there's actors left)
$gameVariables.value(X).shift()
And the id with .actorId()

(I think LOL)

EDIT: Changed members to allMembers
EDIT2: This was just to get the Id of the next available reserve member. I thought you could switch them with the basic event commands (not sure?)
Your questions make no sense

If you have only 4 actors in the party, then you have no reserve party.

the reserve party is always actor #5 and higher, with the battleparty being actor #1 to #4.

so where should your replacement actor come from?
Hmmm, VS allows you to choose how many participate in battle. So at the start of battle put into a variable X:
$gameParty.allMembers().filter(actor => !$gameParty.battleMembers().includes(actor))

Then you get the actor you want to add with (first check that there's actors left)
$gameVariables.value(X).shift()
And the id with .actorId()

(I think LOL)

EDIT: Changed members to allMembers
Sorry if It doesnt make sense, Im trying to add a reserve member into the party. Since using the party function command only replaces a party. I didnt like how it can only replace party members but fill in the missing party slot
Im trying to add a reserve member into the party.
you have a reserve member by having five or more actors in your party, and that is automatic.
just add actors with the change member event command.

obviously you're talking about something else since with a party of four or less actors there is no reserve party - but thzat means whatever you want is NOT a reserve member.

so you need to describe to us what exactly you want - without using the term "reserve member" because the official definition of reserve has absolutely nothing to do with whatever you call a reserve.
you have a reserve member by having five or more actors in your party, and that is automatic.
just add actors with the change member event command.

obviously you're talking about something else since with a party of four or less actors there is no reserve party - but thzat means whatever you want is NOT a reserve member.

so you need to describe to us what exactly you want - without using the term "reserve member" because the official definition of reserve has absolutely nothing to do with whatever you call a reserve.
OK sorry for the misinformation. Because in the party setting you can remove party members and put them in the reserve party. I was using a party of 2 and did not put that in.

What Im trying to do is lets say you dont have a full party of 4 but have reserve party members. Is there a way you can move them mid battle.
1735851030671.png
As seen above theres missing party slots, but when your mid battle. The party command only lets you swap and not fill in the empty slots.
Because in the party setting you can remove party members and put them in the reserve party.
but that is NOT the RPG-Maker engine/party system.

you're using a plugin to change how the party system works - in default empty slots are absolutely impossible

so first you need to tell us what that plugin is that you need help with, complete with a link to the website where you got it from.
then you need to report to a mod so that the mod can move this topic to plugin support as it has nothing to do with MZ support
and then someone who knows the plugin may be able to tell you how to do what you want.

Original thread: https://forums.rpgmakerweb.com/threads/reserve-member-to-party.174351/