Normally, RPG Maker MZ games have a hard limit of 4 current party members. There are ways of changing this with plugins, but I’ve devised a way of making it appear as though there are two additional party members at certain times. This method uses only event scripting and a bit of javascript. I’ll describe the two pseudo party members I added to my current project, since they each use slightly different methods to make them “feel” like they’re part of the action.
The first is a fairy character. She is encountered after a certain part of the game is unlocked, and tells the party that she can accompany them to meet an important elder sage. When the party encounters her, she is an event with a small fairy character sprite, and thus appears like any other regular NPC. But after she “joins the party”, so to speak, a “Fairy Joined” switch is turned on and she appears to follow closely behind the fourth party member, the Mage. This is done by using the Change Actor Image command to change the Mage’s character and battler sprites to one that I custom made in GIMP.
This custom sprite combines the sprite of the Mage with the sprite of the fairy. These sprites overlap somewhat, but it was possible for me to make it look as though the fairy is following the Mage behind and to the right of her. I kept the 48x48 pixel size of these sprite sheet tiles, but I think it would be possible to expand the width of these sprites in a new sprite sheet to make it look like there is some more distance between the Mage and the Fairy.
The next thing I did to integrate this Fairy into the game action is to have conditional branches in dialogue which check if the Fairy Joined switch is on, and if so, displays text boxes with dialogue for the Fairy character.
I also integrated the fairy into battles as a healer. This was done by including the following battle event page in to every troop which the party could face while the Fairy was in the party:
This calls that common event once per every round of turns made in battle by the party. The common event looks like this:
So as you see, this page of each relevant troop battle event only functions when that Fairy Joined switch is on, and has the fairy basically hang back and perform one of three restoration spells performed randomly in battle after every round of party member turns. A minor tweak I made to the custom combined character sprite art was to have the animation movement of the Mage and the Fairy “staggered”, so that when the Mage animation frame dips down one pixel, the Fairy rises one pixel. This goes a long way to making it look like the Mage and the Fairy are distinct entities.
So although the Fairy isn’t an actual party member, she is shown to follow the party, participate in dialogue, and even engage with the party in battle. The effect this has on the game is quite enjoyable, I think, at least for the time that the Fairy character is with the party. When she leaves, the reverse order of the events described above is carried out, with the Change Actor Command being used to change the Mage character and battler sprites back to normal, and changing an event back into the “NPC” version of the Fairy.
The second method I used was for the airship vehicle to behave like an NPC and not just an inanimate object. This is because the airship vehicle in my current project is a dragon, and I wanted him to have dialogue interactions that make him “feel” like a participant in the quest.
The visual aspects of this method are simpler, requiring just the airship sprite to be changed to a flying dragon sprite. But in order to get the airship vehicle to be “interactive”, I chose to construct a system of a parallel event on the overworld and some conditional branches and switches that can be called from within that parallel event.
That parallel event on the overworld map functions like this:
You can ignore the two conditional branches with javascript that detect for Region 15 and Region 21, they aren't part of this actual dialogue system. The javascript in the conditional branch commands is quite long and got cut off in the screenshot, so here they are:
These very long lines of javascript do fit into the single line of the conditional branch command (Page 4, Script), and are what makes this entire effect work. When the player approaches the airship and is facing the airship, a common event is called that has region specific and randomized statements that the Dragon says. He asks in a variety of ways if the party will be taking to the skies again, and then says something region specific when he takes off.
When the player lands and walks away from the airship, the Dragon also comments about the area in which they’ve landed, which is based on region specific conditional branches.
I also included a system in the taking off common event where the dragon will “smell” a healing item in the player’s inventory, and then ask for it as a treat. This happens 50% of the time and only if the player has that item in inventory.
The result of all this is that the Dragon genuinely appears to be an NPC with his own personality and dialogue, based on when the player approaches or leaves him. This makes a dragon-style airship feel much more “alive” and present than it normally would.
So with these two combined methods, the way this all “feels” in the game is that the Fairy is genuinely with and following the party and also helping in battle, and that the airship is a living breathing creature with thoughts and opinions of his own. These two methods have obvious disadvantages, of course. These two characters aren’t real party members, so health, status, equipment, and party order are omitted from consideration. But that might be an advantage if you’re looking for a temporary guide character, a mascot, or some other type of character that interacts more substantially with the party than an event-based NPC or a vehicle.
Please let me know if I didn't explain something clearly enough. I hope that some of you reading this can gain something useful out of what I've done. There can be a lot of value in those conditional branch line javascript commands, for instance, to give all the vehicles (boat, ship, airship) unique and interactive properties.
The first is a fairy character. She is encountered after a certain part of the game is unlocked, and tells the party that she can accompany them to meet an important elder sage. When the party encounters her, she is an event with a small fairy character sprite, and thus appears like any other regular NPC. But after she “joins the party”, so to speak, a “Fairy Joined” switch is turned on and she appears to follow closely behind the fourth party member, the Mage. This is done by using the Change Actor Image command to change the Mage’s character and battler sprites to one that I custom made in GIMP.
This custom sprite combines the sprite of the Mage with the sprite of the fairy. These sprites overlap somewhat, but it was possible for me to make it look as though the fairy is following the Mage behind and to the right of her. I kept the 48x48 pixel size of these sprite sheet tiles, but I think it would be possible to expand the width of these sprites in a new sprite sheet to make it look like there is some more distance between the Mage and the Fairy.
The next thing I did to integrate this Fairy into the game action is to have conditional branches in dialogue which check if the Fairy Joined switch is on, and if so, displays text boxes with dialogue for the Fairy character.
I also integrated the fairy into battles as a healer. This was done by including the following battle event page in to every troop which the party could face while the Fairy was in the party:
Conditions: Turn 0 + 1 * X, Switch: Fairy JoinedSpan: TurnContents: Common Event : Fairy BattleThis calls that common event once per every round of turns made in battle by the party. The common event looks like this:
- Control Variable : Random Number = Random 1...3- If : Random Number = 1 - Change HP : Entire Party, +100 - Play SE : Heal6 (75, 110, 0) - Script: BattleManager._logWindow.push( "addText", "Fairy casts Heal!" );- If : Random Number = 2 - Change MP : Entire Party, +50 - Play SE : Heal6 (75, 110, 0) - Script: BattleManager._logWindow.push( "addText", "Fairy casts Fortify!" );- If : Random Number = 3 - Change TP : Entire Party, +10 - Play SE : Heal6 (75, 110, 0) - Script: BattleManager._logWindow.push( "addText", "Fairy casts Bless!" );So as you see, this page of each relevant troop battle event only functions when that Fairy Joined switch is on, and has the fairy basically hang back and perform one of three restoration spells performed randomly in battle after every round of party member turns. A minor tweak I made to the custom combined character sprite art was to have the animation movement of the Mage and the Fairy “staggered”, so that when the Mage animation frame dips down one pixel, the Fairy rises one pixel. This goes a long way to making it look like the Mage and the Fairy are distinct entities.
So although the Fairy isn’t an actual party member, she is shown to follow the party, participate in dialogue, and even engage with the party in battle. The effect this has on the game is quite enjoyable, I think, at least for the time that the Fairy character is with the party. When she leaves, the reverse order of the events described above is carried out, with the Change Actor Command being used to change the Mage character and battler sprites back to normal, and changing an event back into the “NPC” version of the Fairy.
The second method I used was for the airship vehicle to behave like an NPC and not just an inanimate object. This is because the airship vehicle in my current project is a dragon, and I wanted him to have dialogue interactions that make him “feel” like a participant in the quest.
The visual aspects of this method are simpler, requiring just the airship sprite to be changed to a flying dragon sprite. But in order to get the airship vehicle to be “interactive”, I chose to construct a system of a parallel event on the overworld and some conditional branches and switches that can be called from within that parallel event.
That parallel event on the overworld map functions like this:
You can ignore the two conditional branches with javascript that detect for Region 15 and Region 21, they aren't part of this actual dialogue system. The javascript in the conditional branch commands is quite long and got cut off in the screenshot, so here they are:
(Math.abs($gamePlayer.x-$gameMap.airship().x)==1&&$gamePlayer.y==$gameMap.airship().y)||(Math.abs($gamePlayer.y-$gameMap.airship().y)==1&&$gamePlayer.x==$gameMap.airship().x)($gamePlayer.x==$gameMap.airship().x&&$gamePlayer.y==$gameMap.airship().y+1&&$gamePlayer.direction()==8)||($gamePlayer.x==$gameMap.airship().x&&$gamePlayer.y==$gameMap.airship().y-1&&$gamePlayer.direction()==2)||($gamePlayer.x==$gameMap.airship().x+1&&$gamePlayer.y==$gameMap.airship().y&&$gamePlayer.direction()==4)||($gamePlayer.x==$gameMap.airship().x-1&&$gamePlayer.y==$gameMap.airship().y&&$gamePlayer.direction()==6)($gamePlayer.x==$gameMap.airship().x&&$gamePlayer.y==$gameMap.airship().y+1&&$gamePlayer.direction()==2)||($gamePlayer.x==$gameMap.airship().x&&$gamePlayer.y==$gameMap.airship().y-1&&$gamePlayer.direction()==8)||($gamePlayer.x==$gameMap.airship().x+1&&$gamePlayer.y==$gameMap.airship().y&&$gamePlayer.direction()==6)||($gamePlayer.x==$gameMap.airship().x-1&&$gamePlayer.y==$gameMap.airship().y&&$gamePlayer.direction()==4)These very long lines of javascript do fit into the single line of the conditional branch command (Page 4, Script), and are what makes this entire effect work. When the player approaches the airship and is facing the airship, a common event is called that has region specific and randomized statements that the Dragon says. He asks in a variety of ways if the party will be taking to the skies again, and then says something region specific when he takes off.
When the player lands and walks away from the airship, the Dragon also comments about the area in which they’ve landed, which is based on region specific conditional branches.
I also included a system in the taking off common event where the dragon will “smell” a healing item in the player’s inventory, and then ask for it as a treat. This happens 50% of the time and only if the player has that item in inventory.
The result of all this is that the Dragon genuinely appears to be an NPC with his own personality and dialogue, based on when the player approaches or leaves him. This makes a dragon-style airship feel much more “alive” and present than it normally would.
So with these two combined methods, the way this all “feels” in the game is that the Fairy is genuinely with and following the party and also helping in battle, and that the airship is a living breathing creature with thoughts and opinions of his own. These two methods have obvious disadvantages, of course. These two characters aren’t real party members, so health, status, equipment, and party order are omitted from consideration. But that might be an advantage if you’re looking for a temporary guide character, a mascot, or some other type of character that interacts more substantially with the party than an event-based NPC or a vehicle.
Please let me know if I didn't explain something clearly enough. I hope that some of you reading this can gain something useful out of what I've done. There can be a lot of value in those conditional branch line javascript commands, for instance, to give all the vehicles (boat, ship, airship) unique and interactive properties.