Hey there, 🙂
i'm using a skill who deal damages to all enemies. This skill with <instant cast> can be used 3x per turn max and
increases his damages per 0.50 eatch time is used per turn. For that, i'm using this code :
This work fine. On the skill note, i want to make an "earthquack" action sequance but the issue is here. When they are no animation on the skill database OR/AND the note, all is ok. But if i place an animation, damages are dealed 2 or 3 times on enemies, depending of the animation (wtf ?).
On the DB, the skill is configure to hit "all enemys", can be use "on fight only" and have an animation. No effets except damages on HP.
They are no error on the console. I tryed without the code for increases damages and that work. I'm sure the code is the root cause. But i dont know how to make compatible the code and the action sequence.
Thanks ! 😉
i'm using a skill who deal damages to all enemies. This skill with <instant cast> can be used 3x per turn max and
increases his damages per 0.50 eatch time is used per turn. For that, i'm using this code :
Code:
<Damage Formula>
var total = user._totalSpellsCasted || 0;
var bonusMultiplier = total * 0.5;
value = (a.atk / 2 + 14) * (1 + bonusMultiplier);
</Damage Formula>
<Passive State: 18>
Code:
<Custom Battle Effect>
user._totalSpellsCasted = 0;
</Custom Battle Effect>
<Custom turn start Effect>
user._totalSpellsCasted = 0;
</Custom turn start Effect>
<Custom Action Start Effect>
user._totalSpellsCasted = user._totalSpellsCasted || 0;
var action = user.currentAction();
if (action.isSkill() && action.isPhysical()) {
user._totalSpellsCasted += 1;
}
</Custom Action Start Effect>
This work fine. On the skill note, i want to make an "earthquack" action sequance but the issue is here. When they are no animation on the skill database OR/AND the note, all is ok. But if i place an animation, damages are dealed 2 or 3 times on enemies, depending of the animation (wtf ?).
On the DB, the skill is configure to hit "all enemys", can be use "on fight only" and have an animation. No effets except damages on HP.
They are no error on the console. I tryed without the code for increases damages and that work. I'm sure the code is the root cause. But i dont know how to make compatible the code and the action sequence.
Code:
<setup action>
jump user : 300%, 40
SE: Jump1
wait for jump
shake screen: 4, 10, 35
</setup action>
<Whole Action>
action animation : target
wait for animation
action effect: target
death break
perform finish
</Whole Action>
Thanks ! 😉