Changing the visible "walking party leader"

I have a team of 4 characters, they are not showing while walking(only the leader is) I am wondering how just a simple button switch can make party member 2, the active walking player on screen. I want it to essentially just "hit button x" and it switches to party member 2 as the showing walking actor, hit it again, party member 3, etc and cycle thru
by default it is always the first party member that will be used for the leader picture.
If you have a fixed party or very few optional members, you only need to call a common event to reorder by removing and re-adding party members.

In more complex games you might have to request a plugin that changes the reference to the sprite
Is there any plugin with a 1 button push to essentially change the first party member aka cycle thru them?
I'm guessing you can use a common event button plugin (like this one) , and then bind a button to a common event that does the switching just like what Andar says:

If you have a fixed party or very few optional members, you only need to call a common event to reorder by removing and re-adding party members.
I'm guessing you can use a common event button plugin (like this one) , and then bind a button to a common event that does the switching just like what Andar says:

I got that plugin working, and it DOES let me change a character 1 with character 2 in order, however, I tried to essentially add extra script so it would swap 2 with 3, 3 with 4 in same button press. Thus so it would allow me to "cycle" thru... alas, it only does the 1 swap then never works again 🙁


I essentially want the button press to do:

1 moves to 4
2 moves to 1
3 moves to 2
4 moves to 3

in 1 button push creating a cycle

I tried it this way

1647168057042.png
your event doesn't work because you don't have a party index 4.
as you have in the first line, the index starts with zero. but you skip the second party member at 1 and switch with the third party member on 2, never changing the party member that is on index 1.
and the index four you try to use last is the fifth party member that probably does not exist.
Even with that fixed, it still doesn't fix it, but now, it wont even change 1 time for some reason

1647169446362.png
I solved it!

Here is the solution to allow it to "cycle"

1647170700845.png

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-visible-walking-party-leader.145711/