- Jun 7, 2020
- Reaction score
- First Language
- Primarily Uses
Hello, I'm trying to get the functionality of Yanfly's Skill Mastery plugin but in the form of a Common Event. Basically, I just need it to increment the skill's use upon when this Common Event is called. This is the code I found, but I want it to dynamically reference the ID of the skill being used and the actor ID of the user:
Right now, the code above would have to be copy pasted for every skill/actor combination since the IDs are hardcoded. I'm looking for the script call to reference these 2 IDs. Ty!
var skillId = 1; var skillUses = $gameActors.actor(1).skillMasteryUses(skillId); $gameActors.actor(1).setSkillMasteryUses(skillId, intSkillUses + 1);