YEP Action Sequence Help with Eval

Status
Not open for further replies.

OnslaughtSupply

Ssshhh...
Veteran
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>
 
Last edited:
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,015
Members
137,563
Latest member
MinyakaAeon
Top