Changing image/abilities in battle based on party leader?

Hello! Brand new to the forum (and very new to RPG Maker in general.)

I want to create a game with a battle system that shows how well two party members get along just by how well they work together in battle. My idea to do this is to have to party leader actually lead the party in battle. Whoever is set as party leader when the battle started would use a different sprite than normal, and have different abilities than they normally would.

I would imagine it looking something like this: (please forgive the 10 second art quality doodle)
To do this, I would need to

- Be able to have the characters appear in set positions instead of the default right side view
- Have the party leader use a different sprite
- Have the party leader use different abilities than they would if they were not leader

If this is completely unfeasible, I'd also be open to suggestions on other ways I could accomplish the goal of showing how well characters work together.

Edit: Okay after a ton of work and some extensive googling, I think I got the different image/skill thing for leaders working. I'm leaving this edit for anyone who might see this thread in the future and want to do the same thing. No scripts needed for this, though you'll still need the script Wavelength suggested to change positions.

So here's how it works.
Setup:
- Add a new skill type, "leader" in the database
- Create leader versions of your normal classes. So if you have Warrior, make Leader Warrior. Make sure Leader Warrior can learn only Leader type skills, but normal Warrior cannot. (This makes it so when we change classes, the character forgets the skills they're not supposed to have)
- Create and add the desired leader skills to your leader classes.

For each battle:
- Make a variable named "party leader" or something . Set it to the actor ID of the party leader, and put it in the event page before any of the other stuff.
- Create conditional branches. "If party leader = 1" for guy 1, "if party leader = 2" for guy 2, etc etc until you've covered all possible party members.

For each party member leader possibility, do the following:
- Set a variable to detect how much exp that character has
- Change class to the appropriate Leader class. Do not preserve level.
- Change exp, adding the amount recorded by the earlier exp variable. (make this silent, obviously. This causes the character to learn all the needed skills, otherwise they'd have none)
- Change actor images (took me forever to find this option... page 3 under system settings) to set the battle image of that character to your desired leader image

After:
- Battle processing
- Make those Else branches for each character, again, and set all the following for each character
- make the exp detecting variable, again
- Change class to the appropriate non-leader class
- Add that exp back, like before
- Change battler sprite back to non-leader

And then you're done! A leader the player can freely set in the formation option that will have a unique leader sprite and unique leader abilities only when in the lead position.

This has one issue: Level 1 skills will not be re-learned properly. This can be solved by doing any of the following.
- adding the level 1 skill back manually with the add skill command after every battle, OR
- Not having any skills learned until level 2, OR
- Having the level 1 skill learned at both level 1 and level 2. Doesn't seem like a skill can be learned twice, so there should be no duplicate at any point. This will cause a character to forget a skill temporarily if they enter a battle at level 1 and then exit it without getting to level 2 though.
I would probably handle the different abilities and sprite by simply having two Actors for each character - a "Party Leader" actor and a "Normal Member" actor. You could use simple eventing or a small plugin to allow the player to set the Leader.

You should be able to change the location of party members (allowing the Leader - whoever is in position #1 in your party - to appear front and center) using the official SV Battlers plugin that comes with MV. Note that it won't appear in a new project by default; you have to add it in. For more, see this post.
@Wavelength
Oh! Thank you so much for the help! That plug in is perfect (man you guys know so much stuff!), and making a actor for leader and an actor for follower is no problem.

How do you swap one for the other during a battle and then back again after though? I know how to detect who's in front and set up specific things to happen based on who that is, but I don't know how to temporarily swap the follower actor for the leader actor.

(Sorry if that's a super basic question... Only got RPG Maker at around Christmas time, so I only know how to do a handful of basic things so far.)

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/changing-image-abilities-in-battle-based-on-party-leader.117105/