RPG Maker Forums

hi, im use really long actor names and i have a main class and subclass, but the actor name overlaps onto the class/subclass. I've been messing around with javascript in the rpg_windows.js file, and this is what I found but can't figure out what to do to solve this problem.


this line of code works if i modify it but changes global text to whateve i do with it.


Window_Base.prototype.drawText = function(text, x, y, maxWidth, align) {
    this.contents.drawText(text, x, y, maxWidth, this.lineHeight(), align);
};


this line of code if i modify nothing changes no matter what i do but (seems like it would solve my problem if i could figure out how to get this line to actually modify in game text)


Window_Base.prototype.drawActorClass = function(actor, x, y, width) {
    width = width || 168;
    this.resetTextColor();
    this.drawText(actor.currentClass().name, x, y, width);
};


this line of code seems interesting but doesnt do anything either when i try to modify it.


Window_Status.prototype.drawBlock1 = function(y) {
    this.drawActorName(this._actor, 6, y);
    this.drawActorClass(this._actor, 200, y);
    this.drawActorNickname(this._actor, 432, y);
};


the only thing that modifys and works but not correctly is using this line of code


Window_Base.prototype.drawText = function(text, x, y, maxWidth, align) {
    this.contents.drawText(text, x, y, maxWidth, this.lineHeight(), align);
};


like if i change align to = 'right' or 'center', it changes the actor name/ class/subclass to align right or center but its GLOBAL so it changes all the text. not specific to my problem. I spent 24 hours trying to figure this out, but no luck, please if you know anything please help...

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top