OneManIndie

THE One-Man Indie!
Veteran
Joined
Sep 22, 2013
Messages
353
Reaction score
210
First Language
English
Primarily Uses
RMXP
Party+Swap.jpg

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!

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.
A.JPG


Step 2
You should have four separate variable for all you party members to help record their IDs. Now what? EASY!!
B.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 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.
D.JPG
E.JPG


Step 4
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.
F.JPG
G.JPG


RESULT
H.JPG


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

Here’s the result!
Capture.JPG
J.JPG


EXTRA Step
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.

M.JPG

K.JPG
L.JPG


And you're done! Hope you enjoy this!
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
713
Reaction score
233
First Language
English
Primarily Uses
Something to help simplify what you're doing.
Use \p[x] instead of \n[\v[x]]. \p[x] returns the name of the person whose in that position for example \p[1] is the name of the party leader
 

OneManIndie

THE One-Man Indie!
Veteran
Joined
Sep 22, 2013
Messages
353
Reaction score
210
First Language
English
Primarily Uses
RMXP
Thanks. Glad you shared that!
 

Latest Threads

Latest Posts

Latest Profile Posts

Check out my side project! It's a survival dungeon crawler! https://voidmoon-studio.itch.io/depths-of-delmora
RushLog wrote on HarlekinLehl's profile.
how do you attach those images to your posts?
I picked up FF III pixel remaster for the mobile discount sale. I guess that's on my plate after I finish Lunar Silver Star Story. That said, I am strongly considering an entry for the IGMC 2022 since an idea came to me for this year's theme.
Map033.png Road to the ruins of the temple of light you'll be exploring after leaving Teytal. Can I get some Yays?
I just bought VN Maker with 75% off, just for the assets.

Forum statistics

Threads
123,209
Messages
1,154,936
Members
161,593
Latest member
CaptainDrakken
Top