Skill Points on Level Up

This may be a stupid question, but I'm having a hard time figuring this out.


I'm trying to use a skill point system similar to what Dragon Quest 8 has.  At level up, a character gains skill points, which they can spend in various skills.  For example, one character can learn sword, axe, and spear skills, as well as Heroism and Ancestry.  The problem is that I'm not sure how to add the skill points upon leveling up.  I know that I can set current skill points to a variable, but how do I change that variable at level gain?
I was actually planning on trying something similar, so hopefully someone can give you an answer; I'll be able to modify it for my own needs.
Is this what you want???


http://yanfly.moe/2015/11/14/yep-28-skill-learn-system/
http://himeworks.com/2015/10/level-up-events/



This should do nicely.  Now I just need to figure out how I want to spend the points.  I'm thinking that they should visit a trainer or something.  But this is all I need for now.  Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/skill-points-on-level-up.63780/