Sounds interesting, anyone knows how to write in Java?
If actor learn skill X
Variable(y) +z
if ($dataActors.actor (x).skills().contains($dataSkills[n]))){
var vally = $gameVariables.value(y) + z;
$gameVariable.setValue(y,vally);
}
Where x = actor id, n=skills data, y= varia b le id, and z is the amount you want to change it.
Note you're going to need more code to get it where this is for any actir learning any skill.
I just now the code to check it and change the variable but not how to set it up so that it does keep doing this repeatedly. I really recommend doing it with a parllel process common event. It's easy to keep track of and easy to debug.
A good compromise(I'm assuming you're giving players skills as they level), if you're not for eventing or going full blown out javascript, would be if you use
Yanfly Skill Learn System, and run this code in the lunatic mode of custom cost excution:
var vally = $gameVariables.value(y) + z;
$gameVariable.setValue(y,vally);
Make it where the skill is free, (you can make it visible or not, if there at the right level), and if they can see it make it where it requires the player to be at a specfic level. And then when the player gets the skill, the variable increase.