How to make it so that when a certain character learns a new skill, the game tells me which character learned it and which skill was learned?

Before I say anything, I just want everyone to know that I am a complete noob at this engine, so I might be saying obvious things and asking for extremely specific directions (or else I'll get lost), and I apologize for that.

I know that the Messages tab has an automatic text that tells you "[Skill] learned", but it can't tell which character specifically has learned it, which is something I want to do something about. So I looked for solutions, and apparently, I can't do it by just using the % things, since it doesn't recognize anything other than the skill, if I type "%2" for example, it's just going to display "undefined has learned [Skill]" in the victory text box. I guess that this specific automatic text cannot track something other than the skill's name in its code.

So I looked for other solutions, and I've seen things like "Store the character's and the skill's name in a variable and use a Common Event that triggers when a character levels up", but I've tried it (as well as other solutions), and was never able to pull anything off (probably because again, I'm a complete beginner and I don't understand variables and other things very well).

So I was wondering, can anyone help me and explain to me exactly how your solution works?
By default it's right there.

1695404302449.png


If you're not getting a message like that, you must have a plugin altering it.
I actually completely forgot about that, I'm an idiot. Thanks.

But still, is there a way to make it so that it becomes something like :
"Reid is now Level 2 !"
"Reid has learned Strong Attack !"?
By default it's right there.

View attachment 277441

If you're not getting a message like that, you must have a plugin altering it.
I actually completely forgot about that, I'm an idiot. Thanks.

But still, is there a way to make it so that it becomes something like :
"Reid is now Level 2 !"
"Reid has learned Strong Attack !"?
It can be
"Reid is now level too !"
"And has learned strong attack !"

It is not the same, but looks decent and is a lot easier.

Edit: and you are learning. You're not an idiot for asking questions.
Sure. Paste the below into a text editor, save as a *.js file, include as a plugin:
Code:
Game_Actor.prototype.displayLevelUp = function(newSkills) {
    const text = TextManager.levelUp.format(
        this._name,
        TextManager.level,
        this._level
    );
    $gameMessage.newPage();
    $gameMessage.add(text);
    for (const skill of newSkills) {
        $gameMessage.add(TextManager.obtainSkill.format(skill.name, this._name));
    }
};

Then you can use %2 in the Obtain Skill message in the Terms tab of your database and it will use the actor's name.
Thank you so much !
Sure. Paste the below into a text editor, save as a *.js file, include as a plugin:
Code:
Game_Actor.prototype.displayLevelUp = function(newSkills) {
    const text = TextManager.levelUp.format(
        this._name,
        TextManager.level,
        this._level
    );
    $gameMessage.newPage();
    $gameMessage.add(text);
    for (const skill of newSkills) {
        $gameMessage.add(TextManager.obtainSkill.format(skill.name, this._name));
    }
};

Then you can use %2 in the Obtain Skill message in the Terms tab of your database and it will use the actor's name.
Okay, maybe with this plugin, my solution isnt that much easier. 😛 haha. Well done.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-it-so-that-when-a-certain-character-learns-a-new-skill-the-game-tells-me-which-character-learned-it-and-which-skill-was-learned.161389/