FULLY EVENTED PARTY SWAP FOR RPG MAKER MV
A simple Party Switch you can do WITHOUT a Plugin!
- 04/09/2019 06:05 AM
- 2366 views
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 I helped out. So with that out the way, let’s get this tutorial going!
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.
You should have four separate variable for all you party members to help record their IDs. Now what? EASY!!
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], \N[\V], etc. (See below Pictures)
Also, make sure you set the Cancel function to “Branch“. This is so you can cancel this action if you change your mind.
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.
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.
And you're done! Hope you enjoy this!