[Fixed]Action Sequence issue

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 :


Spoiler: Skill 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>

Spoiler: State "18" code
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.

Spoiler: 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 ! 😉
Have you tried removing the "perform finish" part from your <whole action> tag?
I dont know why but this morning, after restart the computer, all is ok. Just a little bug from my CPU maybe. But now all is ok !

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/fixed-action-sequence-issue.111347/