pre-mention: I am using pretty much just Yanfly's plugins.
So in my game there is a skill like FF's Protect. However, at lower levels, the chances of it succeeding is low. As you continue to use it (using Yanfly's skill mastery levels) you will level up the skill. Currently in the database, the protect skill has a success of 25%.
the goal is that as you progress in levelling up this skill, the success rate of the skill will increase. The issue is implementing this into the coding.
I assumed that the answer lied within Skill Core using the lunatic <Before Eval> and checking the current mastery level of that skill. If the criteria is met, it would somehow increase the success rate. Is this the route to take? or maybe I am just not using the right scripting for the <Before Eval>
I've attempted
<Before Eval>
if (user.skillMasteryLevel(138) >=1) {
user.skillHitRate(138) +200%;
}
</Before Eval>
this was the test I have used. 138 is the skill ID, to ensure that it would work, I wanted to increase the success rate to 200%.
So in my game there is a skill like FF's Protect. However, at lower levels, the chances of it succeeding is low. As you continue to use it (using Yanfly's skill mastery levels) you will level up the skill. Currently in the database, the protect skill has a success of 25%.
the goal is that as you progress in levelling up this skill, the success rate of the skill will increase. The issue is implementing this into the coding.
I assumed that the answer lied within Skill Core using the lunatic <Before Eval> and checking the current mastery level of that skill. If the criteria is met, it would somehow increase the success rate. Is this the route to take? or maybe I am just not using the right scripting for the <Before Eval>
I've attempted
<Before Eval>
if (user.skillMasteryLevel(138) >=1) {
user.skillHitRate(138) +200%;
}
</Before Eval>
this was the test I have used. 138 is the skill ID, to ensure that it would work, I wanted to increase the success rate to 200%.