Fully Evented Party Swap for RPG Maker MV

I know there may be some Party Swapping plugins out there for RPG Maker MV, but I wanted something that was really easy and stripped down to use. So I looked around for a bit, but didn’t find anything that really worked for my needs. Then while I was surfing the web, I came across a bit of code that really helped me out. So with that out the way, let’s get this tutorial going!


A.JPG

Step 1

What you’ll need to do is setup variables attached to your party. Conveniently, RPG Maker MV has this covered for you.

Just open the Event Editor and click where it says Control Variables. In the Variables window, choose a variable you want to use and click the Game Data button. Another window will pop up with a bunch of option. Click the next to last button next to Party and choose “Member 1” (the engine limits the party size to a max of 4 on the screen). When you’ve finished, your screen should look like this.

B.JPG

Step 2

You should have four separate variables for all you party members to help record their IDs. Now what? EASY!!

D.JPG

Step 3

Next, you have to set up a Choice menu to access the member of your party. All you need to do select Show Choices in the “Choices” boxes, you should type in this code \N[\V[1]], \N[\V[2]], etc. (See above Picture)

Also, make sure you set the Cancel function to “Branch“. This is so you can cancel this action if you change your mind.

E.JPG

Here’s what it looks like


F.JPG

Step 4

This code will help swap party members 1 and 2. For scripting purposes, the party members IDs start from 0.

This code will help swap party members 1 and 2. For scripting purposes, the party members IDs start from 0.

Now go to the last page in the Event Editor and click the Script button (Left Picture). A window will show up and you’ll see an empty box (Right Picture) where you can type in code. For this one, you’ll type this: $gameParty.swapOrder(0, 1);. Just switch the last number to either 2 or 3 for the other party members.


H.JPG

This is what you should have at the end.

NOTE: The first choice slot is empty because you’re not swapping the first party member with the same member.

Here’s the result!

If you want to do a switch for ALL Members in the party, you would need to make a change to the Show Choice event. See the pictures below for how to do that. It’s just a simple Choice menu nested inside a Choice menu.

If you think this was at all helpful, please consider checking out the SUPPORT Page to keep this and other content going. Thanks again!