How do I make a message saying that an actor has learnt a certain skill?

I'm making an item that teaches the user a random skill, and whenever the user learns a new skill I want a message to appear saying "(user) has learnt (skill name)!" How do I go about doing this using a script? I don't want to have to type an entire message with the skill name for every skill (there's 98 of them)

FYI I've already made the learning a random skill component working, the only thing I need help with is specifically the message that appears when a skill is learnt. Thanks! :yhappy:
Moderator note: I've moved this over to Learning Javascript (Plugin Support is for help using existing Plugins).
How are they learning the skill? MV should do this by default, so if yours is not, you probably have a plugin that's disabled the feature.
How are they learning the skill? MV should do this by default, so if yours is not, you probably have a plugin that's disabled the feature.
Basically when the item is used, a random skill is taught but right now all that happens is that the item used sound is played and the menu closes. So I'll have to manually go to my skills menu and check out what has changed
How are you adding the random skill? Is it in the damage formula, or do you use event commands? There is a parameter that says to show the message and you may not be including it.

Are you able to post a screenshot of whatever it is that gives the skill?

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-message-saying-that-an-actor-has-learnt-a-certain-skill.118743/