(Not quite) Simple JS script call.

Because Yanfly wants 1$ for plugin that allows player to eval JS in message box so I decided to write my own alternative for it and I was successful, now I want to use that function to write my own aftermath results plugin and so far I managed to implement in it:
obtained gold
obtained exp
obtained items

What It lacks is when player/party member(s) is(are) leveling up to show learned skills. Is there any kind of nice and script call to display message like this:

Player A gained Level X:
- Skill A was learned

Player B gained Level Y:
- Skill B was learned
- Skill C was learned

etc.
It's cheap, and this depends on how you're pulling it off, but to capture the skill id, you could alias Game_Actor.prototype.learnSkill(id)

And inside of it, you could get the name of the skill learned by using
$dataSkills[id].name

That would give you access to the name of the skill at the time it's being gained.
Inside of there, you could add protocol for printing the skill message
That's not quite what I needed, but you gave me idea to alter default skill learn system. It will take a while to make it, but on paper looks awesome, it's not new idea, but it worked in Gothic. ;]
Hi there! you could also play with the findNewSkills() method:
Code:
Exemple:

var lastSkills = this.skills(); //store actual skills of Game_Actor before Lv Up
this.levelUp(); //Leveling up
this.findNewSkills(lastSkills);  //return an array containing the new skill(s)

*this would refer to Game_Actor.prototype

Good luck!
Thank you @TSR, but I skip this in aftermath, I make learning skills like in Gothic, with teacher through battles.
While I was playing with my daughter, youtube (like a magic) started a video about RPG Maker Games "Why it's hard to sell them". So I need a few days and rethink my game. (Not entire game, but some game mechanics).

Original thread: https://forums.rpgmakerweb.com/threads/not-quite-simple-js-script-call.117734/