Hello,
I'm trying to make some updates to the Battle Status Window. Currently, I looking to replace the Actor's name in the Battle Status window, with their current class.
So instead of this:
I'd like it to show like this instead:
Can anyone help me pinpoint what code exactly makes this change? I've been poking around and I think its this set of code:
However, I can't figure out what code will bring up the current class.
I've tried using the .currentClass().name (actor.actorId().currentClass().name) to pull the code, but it procs errors.
As you can probably tell, I'm not so great at this, so looking for some help.
Thank you for taking the time to browse this!
I'm trying to make some updates to the Battle Status Window. Currently, I looking to replace the Actor's name in the Battle Status window, with their current class.
So instead of this:
I'd like it to show like this instead:
Can anyone help me pinpoint what code exactly makes this change? I've been poking around and I think its this set of code:
JavaScript:
Window_StatusBase.prototype.placeActorName = function(actor, x, y) {
const key = "actor%1-name".format(actor.actorId());
const sprite = this.createInnerSprite(key, Sprite_Name);
sprite.setup(actor);
sprite.move(x, y);
sprite.show();
};
However, I can't figure out what code will bring up the current class.
I've tried using the .currentClass().name (actor.actorId().currentClass().name) to pull the code, but it procs errors.
As you can probably tell, I'm not so great at this, so looking for some help.
Thank you for taking the time to browse this!