MV Count every succeeded action effect (Yanfly action sequence)

Hi!

I wonder how to count how many succeeded action effects a single attack makes... ok, an example, lets imagine I have this action sequence:

Code:
<Target Action>
perform action
motion wait: user
action animation
action effect
wait: 10
action effect
wait: 10
action effect

change variable 72 = {succeeded actions}

</Target Action>

As you can see, this skill makes 3 action effects, how can I count how many of them succeeded (damage greater than 0 (not missed)).

If any of these action effect misses I should get 2 on variable 72.

Do you know how to achieve something like this?

Thank you in advance!
Just use a variable to check the target's HP before and after each hit. You could use a game variable, but it's just as easy to make one on the battler.

Code:
<target action>
change variable 72 = 0

perform action
motion wait: user
action animation
eval: target.curr_hp=target.hp
action effect
wait: 10
if target.curr_hp!=target.hp
    change variable 72 += 1
end
eval: target.curr_hp=target.hp
action effect
wait: 10
if target.curr_hp!=target.hp
    change variable 72 += 1
end
eval: target.curr_hp=target.hp
action effect
if target_curr.hp!=target.hp
    change variable 72 += 1
end

</target action>
It works!

There is a little problem when the enemy dies on the first action, then its hp is 0, but it is ok for me.

Thank you so much! 😂

Original thread: https://forums.rpgmakerweb.com/threads/count-every-succeeded-action-effect-yanfly-action-sequence.150406/