MZ Level Up Text include Class

Im looking to add class to level up text, so I can have something like ''Actor is now a lvl x ''class'' since I have a class change system.

1xbmgh.png

fef.png


Not seen any victory plugins that do this but i am open to any that does. Altho I would prefer to keep a simple screen as my game is supposed to be retro 😛
Hmmm, I tested it and it seems to work if you just add new stuff in the display level up function and then reference it with %4 in the database.

Game_Actor.prototype.displayLevelUp = function(newSkills) {
const text = TextManager.levelUp.format(
this._name,
TextManager.level,
this._level,
this.currentClass().name
);
$gameMessage.newPage();
$gameMessage.add(text);
for (const skill of newSkills) {
$gameMessage.add(TextManager.obtainSkill.format(skill.name));
}
};
@rpgLord69 Worked! Thanks!
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/level-up-text-include-class.177652/