Hi all! I need help with creating a skill that can be used only if the enemy is affected by a state such as stun or knockdown otherwise cant be used at all. I was searching a lot and i found how to do a skill that can do extra damage is the enemy is affected by a state but i cant find or figure out how to make a skill completely unusable if the enemy is not affected by a specific state but once the enemy has that state then the skill can be used.
I have all Yeps plugins and i was looking into the skill core and under the explanation there is a section that says:
For those with a bit of JavaScript experience, you can use the following
notetags to restrict a skill and what kind of code to process when executing
the said skill.
Skill Notetags:
<Custom Requirement>
if ($gameParty.gold() > 1000) {
value = true;
} else {
value = false;
}
</Custom Requirement>
If value is set to true, the skill will be useable provided that all other
requirements have been met. If the value is set to false, the skill won't
be useable.
<Custom Execution>
$gameParty.loseGold(1000);
</Custom Execution>
This runs the code between the notetags upon using the skill.
Now my javascript knowledge is well....bad, but could i somehow use similar notetag but instead of making gold condition requirement specific state instead? I really want to learn how to do stuffs like this because i plan to make many conditional powerful skills like this. Maybe there is some easier way? Any help is appreciated really. Thanx in advance!
I have all Yeps plugins and i was looking into the skill core and under the explanation there is a section that says:
For those with a bit of JavaScript experience, you can use the following
notetags to restrict a skill and what kind of code to process when executing
the said skill.
Skill Notetags:
<Custom Requirement>
if ($gameParty.gold() > 1000) {
value = true;
} else {
value = false;
}
</Custom Requirement>
If value is set to true, the skill will be useable provided that all other
requirements have been met. If the value is set to false, the skill won't
be useable.
<Custom Execution>
$gameParty.loseGold(1000);
</Custom Execution>
This runs the code between the notetags upon using the skill.
Now my javascript knowledge is well....bad, but could i somehow use similar notetag but instead of making gold condition requirement specific state instead? I really want to learn how to do stuffs like this because i plan to make many conditional powerful skills like this. Maybe there is some easier way? Any help is appreciated really. Thanx in advance!