Tutorial-Blog Variable Affected Skills
Official Content Discussion ThreadsPretty clever way to encourage skill exploration. I love these tutorial series, they've been giving me a lot of ideas and ways to create custom systems. 

Very good stuff. In addition to the option of creating that array, you could also easily take the entire thing out of any of your global game variables. Having your damage formula be something like:
will use a fireMastery variable that's contained within each actor who has that skill, doesn't use a game variable ID up, and can be used however you like. You could use fireMastery for reference in every fire spell, or make a fireLevel, fireballLevel, etc. to distinguish between individual skills. Or, heck, both.
Code:
a.fireMastery=a.fireMastery || 0; 100+a.fireMastery++
will use a fireMastery variable that's contained within each actor who has that skill, doesn't use a game variable ID up, and can be used however you like. You could use fireMastery for reference in every fire spell, or make a fireLevel, fireballLevel, etc. to distinguish between individual skills. Or, heck, both.
Original thread: https://forums.rpgmakerweb.com/threads/variable-affected-skills.148098/
