- Joined
- Apr 6, 2016
- Messages
- 253
- Reaction score
- 39
- First Language
- English
- Primarily Uses
- RMMV
How can I programmatically change the order of my party members from an event, when I pick up a new party member.
My party has 3 members, and instead of my new party member taking the 4th slot, I want to programatically swap him out with the second party member so that the second party member takes the 4th slot, and the new party member takes the 2nd slot.
I believe this can be done in VX using the following command:
$game_party.swap(1, $game_actors[3].index)
However, when I try and execute this script in RPGMaker MV to swap the position of party members, I get the error shown in the screen shot below.
If there is a different way to programmatically swap party member positions, that's fine too, I just need to know what the command or process is to do it programatically.

My party has 3 members, and instead of my new party member taking the 4th slot, I want to programatically swap him out with the second party member so that the second party member takes the 4th slot, and the new party member takes the 2nd slot.
I believe this can be done in VX using the following command:
$game_party.swap(1, $game_actors[3].index)
However, when I try and execute this script in RPGMaker MV to swap the position of party members, I get the error shown in the screen shot below.
If there is a different way to programmatically swap party member positions, that's fine too, I just need to know what the command or process is to do it programatically.

Last edited by a moderator:








