Okay. So how can I Show the first actor, or Specific actor for the party without Disabling the Formation option? The player would be able to change the position of each actor, but it would not affect the visual actor displayed on screen.
Way to show a Specific Actor without Disabling Formation
RPG Maker MV SupportYou can put this script in a plugin. Replace ACTOR_ID with the id of the actor you want to show. That actor will show when followers are turned off. If followers are turned on the actor will show up where ever they are in the formation.
Game_Party.prototype.leader = function() {
if ($gamePlayer._followers.isVisible()) {
return this.battleMembers()[0];
} else {
return $gameActors.actor(ACTOR_ID);
}
};
Game_Party.prototype.leader = function() {
if ($gamePlayer._followers.isVisible()) {
return this.battleMembers()[0];
} else {
return $gameActors.actor(ACTOR_ID);
}
};
How does that work? Just create a Plugin?
Yes. Just copy the code into notepad and save it with whatever name you want as a .js file instead of a .txt file. Put it in your plugins folder and then you can select it just like any other plugin in the editor.
How would you turn the Plugin off should you, say, want to change the leader of the party sometime mid-game?
I would do it like this. Make a variable that stores the actor id of the party leader. Then, when ever the leader changes you only have to change the value in the variable to the new leader's id. Then, instead of putting the actor id in the plugin script you put the game variable, like this:
Game_Party.prototype.leader = function() {
if ($gamePlayer._followers.isVisible()) {
return this.battleMembers()[0];
} else {
return $gameActors.actor($gameVariables.value(NUMBER_OF_YOUR_VARIABLE));
}
};
Replace NUMBER_OF_YOUR_VARIABLE with the number of the variable you store the actor id in.
Game_Party.prototype.leader = function() {
if ($gamePlayer._followers.isVisible()) {
return this.battleMembers()[0];
} else {
return $gameActors.actor($gameVariables.value(NUMBER_OF_YOUR_VARIABLE));
}
};
Replace NUMBER_OF_YOUR_VARIABLE with the number of the variable you store the actor id in.
I downloaded Yanfly's Party Plugin. Looks like that we worked just as well.
Original thread: https://forums.rpgmakerweb.com/threads/way-to-show-a-specific-actor-without-disabling-formation.97737/