Ok so I am pretty new to the game making scene and pretty new to Javascript. I am using Yanfly's Skill Core and the add-ons that go with it. Here is a screen shot of the skill plug-ins I am using.
Here is my basic goal. I have an out of battle skill called first aid (for now) when it has been used a certain number of times I want the player to then go and get trained in a new skill lets call it first aid II for now. Basically, its a new skill that needs to be trained. (yes I am aware that I can modify skill parameters as they level up through mastery the point id for this to be a new skill entirely) Now I have the skill set up like so:
with the common event being referenced is the way that I am getting the mastery level to increase outside of battle.
Now as you can see in the notetag for the skill I have
My understanding is that if the skill mastery level is greater than or equal to 1 than switch number 5 will be set to true the next time the skill is used. That switch will be tied to the new skill training event.
When I test this set up the out of battle mastery works just fine, but it won't throw the switch even if I am way above the level cap. Does anyone see any errors or do you know what I did wrong?
Here is my basic goal. I have an out of battle skill called first aid (for now) when it has been used a certain number of times I want the player to then go and get trained in a new skill lets call it first aid II for now. Basically, its a new skill that needs to be trained. (yes I am aware that I can modify skill parameters as they level up through mastery the point id for this to be a new skill entirely) Now I have the skill set up like so:
with the common event being referenced is the way that I am getting the mastery level to increase outside of battle.
Now as you can see in the notetag for the skill I have
Code:
<After Eval>
if (user.skillMasteryLevel(11) >= 1) {
$gameSwitches.setValue(5) = true;
}
<After Eval>
My understanding is that if the skill mastery level is greater than or equal to 1 than switch number 5 will be set to true the next time the skill is used. That switch will be tied to the new skill training event.
When I test this set up the out of battle mastery works just fine, but it won't throw the switch even if I am way above the level cap. Does anyone see any errors or do you know what I did wrong?