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,958
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,002
Reaction score
8,887
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,002
Reaction score
8,887
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,958
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

BCj
An acting colleague of mine asked if I wanted to translate a script of 88 pages from English to a different language. 88 pages. For free!! What?!
If you guys wonder why I hardly ever help anyone anymore... Im going to be on here even less. Thank the trolls for that.
New update for Battle Castle: Shadow from the Past A Shadow's Echo. No gameplay changes or new content, but lots of things got renamed, including the game title, for extra immersion. Some things related to sound too, like activating chests and taking things.
Obvious One.gif
Meet my new mascot. He's also a mimic! No prizes for guessing this guy's name, though, haha
BANNER2.png
I put out a new pack and I swear, I did not realize how it looks like the ones on the right are scared/nervous of the one on the left until way after o_O I just wanted to showcase some of them randomly xD

Forum statistics

Threads
134,757
Messages
1,250,366
Members
177,520
Latest member
crimnt
Top