Looking to try change/toggle followers' positions using button press.

In my custom action game the the follower in party position 1 (right behind the player character,) and only position 1 has the ability to use a special move using a button press on parallel process, but followers 2 and 3 would have to switch position to party slot 1 to use their skills. You can currently switch followers using the in game menu, but I want to be able to do it dynamically in action.

I want to be able to toggle my followers using another button press parallel process so that any of the 3 party members can be switched into the party slot 1 at will so they can use their special moves interchangeably.

I can conceive a complex way of doing this using party number identifier script and by party member name, but I have 15 party members and it would take ages, there must be an easier way.

My main character slot is fixed so I just need to worry about the other three members.

I need an on button press parallel process/common event that makes party member 1 switch to party slot 3, that party member 2 switch to party member slot 1, that party member 3 switch to party member slot 2. Seems simple, so I'm sure there's a way to script this.

The various follower movement mods don't have this function as far as I can tell with experimenting with them.

Any help is greatly appreciated.
If I'm understanding correctly, you want an event that would basically remove and then re-add party members into proper positions on a button press correct? Yanfly has a plugin that lets you assign common events to buttons which may help you achieve this.

http://yanfly.moe/2016/01/23/yep-061-button-common-events/
Many thanks but that won't solve the issue at all, it might improve performance over using an on button press parallel process in a map event, but it basically will do the same as I already have set up.

It's not activating the button press that I'm having issues with, it's calculating exactly who is in the party and in what position and then changing them accurately.

I have a perfectly working system with just 3 characters, as it's easy to brute code for that few, with just using the inbuilt remove and add characters functions but having 15 characters in any party of 3 is a lot of coding to let the game know who is in my party, and not based on character name, but in whoever occupies that place.

I've checked tonnes of other modes including one that's close but still far from what I need that uses numbers per party member, I just need one button to toggle all of them.

Basically my game needs to check who is in party position 1, 2 or 3, (player character is 0) from a selection of 15 characters, and move them all on a single button press, should definitely be possible, I'm getting further along trying some options out, but still need help.


EDIT: I think I've actually done it. Ohhh Yeahhh!

I have a VERY long event parallel process on pageup button press that checks if any of the 15 followers are in party slot 2 or 3, and if they are, it then removes all possible party members and replaces that player in party slot 1, filling slot 2 or 3 depending on if their 'if X character in party' switch is on that I configured to give me more control than just if a player is in the party. (I have to remove them from the party to make this system work so the switches store them and remembers if they are in party or not.)

I'm testing all party combinations of 15 followers and it's working perfectly. Extremely pleased with the end result even though I've brute forced it a bit.

Basically if you hold Pageup down it toggles through all 3 characters in the party in any combination with a .25 second wait between each, giving you time to let go of pageup on the character you want, allowing me to have special attacks activated in party follower slot 1.

Page up is also LB on a 360 controller making it play great on a pad too.

I don't know if I could make it a plug in, due to all the switches and player ID's but it works really, really well, it's possibly worthy of one if I could know how to release it as one.

Original thread: https://forums.rpgmakerweb.com/threads/looking-to-try-change-toggle-followers-positions-using-button-press.79170/