RMMV YEP_X_EquipRequirements

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,846
Reaction score
1,600
First Language
English
Primarily Uses
RMMV
Ok, this will hopefully be an easy issue to resolve. I'm repurposing the Equip Requirements page to be an weapon/armor description page and would like to change the usual text "Requirements" that shows at the top to read the name of the selected weapon/armor instead. This is what I mean:
1606345169398.png
I'm basically just looking for the escape code or scriptcall to get the name of the weapon/armor. Is this possible?
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
836
Reaction score
529
First Language
English
Primarily Uses
RMMV
I'd be willing to bet that the plugin parameter there is only a string, and it probably doesn't read escape codes.

That said, you can look at the below function, and change the text being drawn to whatever you want:

Code:
Window_EquipRequirement.prototype.drawRequirementTitle = function() {
    this.resetFontSettings();
    this.changeTextColor(this.systemColor());
    var ww = this.contents.width;
    this.drawText(Yanfly.Param.EqReqTitle, 0, 0, ww, 'center');
    return this.lineHeight();
};
 

Latest Threads

Latest Posts

Latest Profile Posts


When you thought you'd be finished with the grid, and spend ~8-9 hours on an arrow. How is this more difficult to than player movement?

Still some bugs hiding in there, but it's nearly complete.

I'm having it strictly follow the path a user draws, because there will be booby trap and other similar mechanics where you want to avoid specific cells.
I feel like banging my head against a wall every time I want to find that post that shows all the plugin header codes. Then I think "next time I find it, I'm going to bookmark it". Then I think "wait a minute ... maybe I bookmarked it last time because it took me so long to find it". Check bookmarks, and there it is :)
... a few of my main characters standing around doing nothing lol. I mostly wanted to see them together on screen.

Forum statistics

Threads
107,820
Messages
1,032,430
Members
139,970
Latest member
ThatOneMans
Top