- Joined
- May 14, 2017
- Messages
- 731
- Reaction score
- 764
- First Language
- English
- Primarily Uses
- RMMV
EDIT: SOLVED
I need help with Yanfly's Action Sequence.
Goal: want to check if the damage is greater than 0 or as long as the attack connects play an additional animation (blood spurt)
i.e.
<target action>
Motion Attack: user
Action Animation
Wait for Animation
(insert if then eval JavaScript stuff here)
Animation: X (blood spurt)
Action effect
Wait for Animation
</Target Action>
My knowledge of JavaScript code is well, I don't really have any. I did find this tidbit of target.result().i****()
But I too ignorant to use it.
As of right now I have the additional animation playing whether or not the skill connects or does damage which looks weird when no damage is dealt. Any help would be greatly appreciated!
EDIT: I solved it myself its (target.result().hpDamage > 0)
So here's a mockup of an Action Sequence if anyoneelse is looking.
<target action>
Motion Attack: user
Action Animation
Wait for Animation
Action Effect
if (target.result().hpDamage > 0)
Animation: X (blood spurt)
Wait for Animation
end
</Target Action>
I need help with Yanfly's Action Sequence.
Goal: want to check if the damage is greater than 0 or as long as the attack connects play an additional animation (blood spurt)
i.e.
<target action>
Motion Attack: user
Action Animation
Wait for Animation
(insert if then eval JavaScript stuff here)
Animation: X (blood spurt)
Action effect
Wait for Animation
</Target Action>
My knowledge of JavaScript code is well, I don't really have any. I did find this tidbit of target.result().i****()
But I too ignorant to use it.
As of right now I have the additional animation playing whether or not the skill connects or does damage which looks weird when no damage is dealt. Any help would be greatly appreciated!
EDIT: I solved it myself its (target.result().hpDamage > 0)
So here's a mockup of an Action Sequence if anyoneelse is looking.
<target action>
Motion Attack: user
Action Animation
Wait for Animation
Action Effect
if (target.result().hpDamage > 0)
Animation: X (blood spurt)
Wait for Animation
end
</Target Action>
Last edited:
