Newbie here struggling to use Yanfly's battle plugins, I want skills to check for a variable and play (or not) a different animation depending on the result.
I tried putting this on the skill notetag for it to do the special animation if the variable is over 6:
<beforeEval>
if ($gameVariables.value(1) > 6) {
user._animationId = 9;
} else {
user._animationId = 1; }
</beforeEval>
I'm not sure if it works like this though, and the animation remains unchanged.😢please help.
I tried putting this on the skill notetag for it to do the special animation if the variable is over 6:
<beforeEval>
if ($gameVariables.value(1) > 6) {
user._animationId = 9;
} else {
user._animationId = 1; }
</beforeEval>
I'm not sure if it works like this though, and the animation remains unchanged.😢please help.