Way to show a Specific Actor without Disabling Formation

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV
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.
 

robhav

Veteran
Veteran
Joined
Jan 31, 2018
Messages
49
Reaction score
16
First Language
English
Primarily Uses
RMMV
You 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);
}
};
 

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV
How does that work? Just create a Plugin?
 

robhav

Veteran
Veteran
Joined
Jan 31, 2018
Messages
49
Reaction score
16
First Language
English
Primarily Uses
RMMV
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.
 

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV
How would you turn the Plugin off should you, say, want to change the leader of the party sometime mid-game?
 

robhav

Veteran
Veteran
Joined
Jan 31, 2018
Messages
49
Reaction score
16
First Language
English
Primarily Uses
RMMV
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.
 

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV
I downloaded Yanfly's Party Plugin. Looks like that we worked just as well.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top