Party Switching Scene
In RPG Maker, you have a party of actors. This is the party that you control normally when you explore the world, participate in battle, and so on.
However, what happens if there are more actors available in the game than you can recruit? We need to put those actors somewhere.
This is where a party switching scene comes in: it provides a simple solution for you to allow players to manage their parties.
This plugin provides a scene where you can trade actors between two parties. I provide a “reserve” party which is just another party which holds all of the actors that aren’t in the current party.
So for example, let’s say you completed a quest for someone and he was really moved by your cause and decides to join your adventure, and tells you that he will be available in the “guild hall”.
When you go to the guild hall, you can speak to an NPC to check your party status, and you will find the new actor ready to add to your party. If you already have too many actors in your party, then you will either have to swap someone out, or choose to leave him in the guild hall.
If you are using the Party Manager plugin, you can use this party switching scene to trade actors between different parties of your choice.
You can also lock actors to their party so that specific parties must have specific members.
Plugin: download here (right-click, save-as)
Required: Party Manager
Download the plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the HIME_PartySwitchingScene plugin.
Once it is in your list of plugins, turn the plugin on.
Calling the Scene
To go to the party switching scene, use the script call
If successful, you will see something like this:
Notice the help text at the top of the window. In the plugin parameters, you can set up what text will be shown during the scene.
Switching Party Members
Once you’re in the scene, you should see two windows by default. The window on the left holds the current party, and the window on the right holds the other party.
To add an actor to your party, if you have enough room, select an empty space in the list. You will then be prompted to select an actor from the other party to add to your current party.
To remove an actor from your party, select one of your actors, and then select an empty space in the other window.
To swap actors between parties, select one of your actors, and then select another actor from the other window.
Leaving the Scene
To leave the scene, press the cancel button. However, if you have no party members in the current scene, it will play a buzzer sound and you cannot leave.
Maximum Party Members
This plugin assumes that you have a limit on how many actors will be in the party. It is determined by the max number of battle members.
Working with Reserve Party
This plugin provides a default “reserve” party for you. The purpose of this reserve party is to hold all of the actors that are currently not in your party, but can be recruited into the party through the scene.
The reserve party can be accessed using a script call
var party = $gameSystem.reserveParty()
Which will return a Game_Party object. You can then interact with this party like any other party:
var party = $gameSystem.reserveParty() party.addActor(2) // add actor 2 to reserve party party.removeActor(3) // remove actor 3 from reserve party
Initially, the reserve party has no actors.
Specifying a different party to trade
Perhaps you would like to have multiple reserve parties, or just have other parties that you would like to trade with.
The scene assumes the default party that you will trade with is the reserve party provided by this plugin, but if you are using a plugin such as the Party Manager, you may have other parties that you would like to use.
To have the scene use a different party, you can say
Where the OTHER_PARTY is a reference to another Game_Party object.
The OTHER_PARTY will be shown on the right side.
So for example, using the Party Manager, you would write
To trade with party 3.
Refer to the other plugins for instructions on how to retrieve a reference to a party.
Working with Locked Actors
If certain actors should be locked to certain parties, you will need locking functionality. To use this functionality, you will need to use the Party Manager to lock actors.
The party manager allows you to lock actors to the party using the following script call:
$gameActors.actor( ACTOR_ID ).lockToParty(true)
When an actor is locked, the scene will gray out the character, as well as play an error sound when the player attempts to select that actor.
Custom Scene Design
Want something different? You can send a request with a design that you’re looking for and we can see how it might be implemented.