Is Forcing a Formation Change possible?

As the title suggests I am wondering if it is possible to force a change to the formation of actors in the overall party via any method.


To clarify I don't want a players input in this decision. For example, I want to be able to force Actor 5 into Actor 4's position as a battle starts so that the Actor is taking part in the combat.
$gameParty.swapOrder(index1, index2)


where index1 and index2 are the two party positions you want to swap around (not the actor ids).  Remember that the first party position - the leader - will have an index of 0, not 1.


If you want to use actor id instead, you can expand it to this (I'll use actor 4 and 5 following your example):


$gameParty.swapOrder($gameActors.actor(4).index(), $gameActors.actor(5).index())
Thank you Shaz.

Original thread: https://forums.rpgmakerweb.com/threads/is-forcing-a-formation-change-possible.69556/