@zaraku
I've thought something, and please do let me know if I'm getting annoying.
Is it possible, via the Note field again, to add effects only if the skill has reached a given level of Mastery.
For instance (just for the sake of giving a concrete example), if Mastery level > 6, the skill adds a debuff to the enemy?
It's probably better to use Skill Core notetags in that case, unless you want to edit the Skill Rewards effects, but that would mean you can't ever use those effects for skills that have a master level <= 6.
An example of the former would be:
<Post-Damage Eval>
if (user.skillMasteryLevel(item.id) > 6) {
target.addDebuff(0, 2); // debuff mhp for 2 turns
}
</Post-Damage Eval>
For the latter, go to the effect code that you wish to alter (again, this will apply universally). In this case we're adding a debuff:
JavaScript:
} else if (data.match(/ADD[ ](.*)[ ]DEBUFF,[ ](\d+)[ ]TURN/i)) {
var str = String(RegExp.$1).toUpperCase();
var turns = parseInt(RegExp.$2);
var paramId = DataManager.getParamId(str);
if (paramId >= 0) {
user.addDebuff(paramId, turns);
} else {
skip = true;
}
animation = animation || debuffAnimation;
If there's already an if condition, you can just add "&& user.skillMasteryLevel(skill.id) > 6" to it, like this:
if (paramId >= 0 && user.skillMasteryLevel(skill.id) > 6) {
If not, just add "if (user.skillMasteryLevel(skill.id) > 6)" right before the code(s) that add the effect:
if (user.skillMasteryLevel(skill.id) > 6) user.addDebuff(paramId, turns);
Also be aware that for checking mastery level, skill core would use "item.id" while skill rewards uses "skill.id".