Status
Not open for further replies.

MayorPeach

Warper
Member
Joined
Jul 11, 2021
Messages
2
Reaction score
1
First Language
English
Primarily Uses
Other
I know the MV standard is to change the party name by displaying the name of the actor in the leader position (Harold's party becoming Therese's party if Therese is the party leader, etc), but is there any way to have a completely unique party name based on who's leading?

For example, Harold being the party leader sets the party name as "Bat Busters", Therese being the party leader changes it to "Therese's Team", Marsha being the leader changes it to "Marsha and Friends", etc.

Any help would be appreciated!
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,960
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Requests. Thank you.

 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
11,218
Reaction score
9,180
First Language
English
Primarily Uses
RMMV
You'll have to write a little plugin, and I think the easiest way to do it is using a switch statement. So take this:
Code:
Game_Party.prototype.name = function() {
    var numBattleMembers = this.battleMembers().length;
    if (numBattleMembers === 0) {
        return '';
    } else if (numBattleMembers === 1) {
        return this.leader().name();
    }
   var name;
    switch ($gameParty.leader().actorId())
    {
        case 1:
            name="Bat Busters";
            break;
        case 2:
            name="Therese's Team";
            break;
        case 3:
            name="Marsha and Friends";
            break;
        default:
            name=TextManager.partyName.format(this.leader().name());
            break;
    }
    return name;
};
You'll copy and paste that into a text editor, save it as a *.js file in your plugins folder, and add it in the plugin manager.

For each case, you'll put the number of the actor ID, then set the name equal to whatever their party name should be. You can add as many as you like. Anything you don't specify will default to...the default.
 

Dev_With_Coffee

Regular
Regular
Joined
Jul 20, 2020
Messages
1,045
Reaction score
543
First Language
PT-BR
Primarily Uses
RM2k3
Hello welcome!

Try this:
JavaScript:
/*:
 * @plugindesc Custom PartyName (On Battle)
 * @author DevWithCoffee
 *
 * @help To customize the team name according to the leader
 * include the meta tag "partyname" in the note field.
 * If an actor becomes the leader and no team name is
 * defined, the default will be displayed.
 *
 * Example:
 * <partyname: %1' team>
 * <partyname: %1's best friend>
 */

Game_Party.prototype.name = function() {
	var numBattleMembers = this.battleMembers().length;
	if (numBattleMembers === 0) {
		return '';
	} else if (numBattleMembers === 1) {
		return this.leader().name();
	} else {
		var partyname = $gameParty.leader().actor().meta.partyname;
		console.log(typeof(partyname));
		if (partyname && typeof(partyname) == "string") {
			/*Meta Tag*/
			return partyname.format(this.leader().name());
		} else {
			/*Default*/
			return TextManager.partyName.format(this.leader().name());
		}
	}
};

Meta Tag - Reference:
 
Last edited:

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
11,218
Reaction score
9,180
First Language
English
Primarily Uses
RMMV
Sure, you could do that, too! :stickytongue:
 

MayorPeach

Warper
Member
Joined
Jul 11, 2021
Messages
2
Reaction score
1
First Language
English
Primarily Uses
Other
Both of these work, thank you both!
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,960
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I HATE SEOs! I do not want to add Reddit to every single search in order to find helpful content posted by actual humans.
bandicam 2023-10-02 09-53-18-106.png
Yanka is one of my dearly loved characters. And not only because she can perform the look of "puss in boots")))) Spy, infiltrator, kind-hearted with a soft spot for one Crimson Knight.
Just completed another cutscene. Huge one for the story. I'm so enthusiastic about where this game is going.
Man, the enemies in the new Sonic Frontiers update are totally roided up. I wanted a little more difficulty myself, but Sonic Team turned the dial a bit too far.

At least the new tracks for roaming Ouranos Island as Amy, Knuckles, and Tails slap hard.
mz_quest_victory_scene.gif


This battle victory screen has been pretty fun to work on. Not only can party members set new personal records for their contributions to the fight, but when they do, the party remarks on the accomplishment!

Forum statistics

Threads
134,981
Messages
1,252,596
Members
177,873
Latest member
romoromoromo
Top