Changing parameters shown on Yanfly Equip Core

Feliaria

Good with Ideas, Bad with Execution
Veteran
Joined
Feb 4, 2016
Messages
364
Reaction score
50
First Language
English
Primarily Uses
Hey guys! Got a question about the Yanfly Equip Core.

So, each of my characters has a different name for their Mana resource. However, in the Yanfly Equip Core, they are both still listed as the default MP. Is there any way to make the Equip Core change the text of the mana resource in the overlay, or if not, is there a way to remove that line?

Stamina and Harmony.PNG
(The name Harmony is a holdover from the original plan for the game's fighting mechanic that was eschewed in favor of Attunement for simplicity purposes.)
 

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
How did you change the MP names for each actor?
 

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
@Feliaria
Copy this into a new .js file and import it as a plugin, place it below YEP_EquipCore
PHP:
Window_StatCompare.prototype.drawParamName = function (y, paramId) {
    var x = this.textPadding();
    this.changeTextColor(this.systemColor());
    var text = '';
    var actor = this._actor;
    var actorClass = actor.currentClass();
    var meta = actor.actor().meta;
    if (meta) {
        if (paramId === 0) {
            text = meta.HPName ? meta.HPName : TextManager.param(paramId);
            text = actorClass.meta.HPName ? actorClass.meta.HPName : text;
            this.drawText(text, x, y, this._paramNameWidth);
        } else if (paramId === 1) {
            text = meta.MPName ? meta.MPName : TextManager.param(paramId);
            text = actorClass.meta.MPName ? actorClass.meta.MPName : text;
            this.drawText(text, x, y, this._paramNameWidth);
        } else {
            this.drawText(TextManager.param(paramId), x, y, this._paramNameWidth);
        }
    }
};
 

Feliaria

Good with Ideas, Bad with Execution
Veteran
Joined
Feb 4, 2016
Messages
364
Reaction score
50
First Language
English
Primarily Uses
That worked, but now there is a space before the Stamina listing. Is there a way to fix this as well? Sorry >_<Stamina Space.PNG
 

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
Instead of <MPName: Stamina> do <MPName:Stamina>.
If that does not fix it, I will change the code from above tomorrow. I don't have my pc right now.
 

Feliaria

Good with Ideas, Bad with Execution
Veteran
Joined
Feb 4, 2016
Messages
364
Reaction score
50
First Language
English
Primarily Uses
Yeah, it's still there.

EDIT: Wait, I'm dumb. It's fixed now. Thanks, Wanyee!
 
Last edited:

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

Latest Threads

Latest Profile Posts

Ami
What do you think about the Wood Bridge inside of Volcano?
Yet another gaming question, i'm currently playing Last of Us 2 and want to get another game to play next but can't decide between Ghost of Tsushima, Miles Morales & Jedi Fallen Order. After the latest mandalorian i AM on a star wars kick, but i also LOVED the last spiderman game that prequels Miles Morales. Ghost of Tsushima is the bottom of my list but i heard it was AWESOME. Just want a good story & fun gameplay.
I checked out Genshin Impact gameplay out of curiosity. I can't believe it's available as a mobile game too. Smooth animation, great music, and stellar sound effects (the ambient sounds are pretty detailed).

I'm flabbergasted to see games have becoming more and more advanced. Maybe also because I'm oblivious to current trend for a long time, it almost feel like I'm being sent into distant future. xD
xDRAGOONx wrote on WaywardMartian's profile.
Your artwork is amazing!!!
:ewat:
Stream will be live shortly with a session of the Interactive Text Adventure! Feel free to drop by!

Forum statistics

Threads
105,667
Messages
1,015,408
Members
137,343
Latest member
Sethos
Top