EDIT: SOLVED!
Does anyone have the conditional branch code to place in the skill's notebox that says,
If the target is hit successfully then play motion damage animation, else motion Evade animation?
I have tried everything, believe me, lol.
========================================================
(After boning up on my javascript and using my supreme powers of relentless focus, I have finally figured out the code. This code should help out ALOT of people.)
If you are looking for this, look no further. The code to check if damage greater than 0 has occurred on the target, is as follows;
CODE:
if (target.result().hpDamage > 0)
And thanks to
@Pots Talos, the evade is fixed as well with his suggestion.
My formula in the skill's notebox: (This takes place right after Action Effect: Target)
You can also use this code for enemies and actors so your not making a mess by trying to call each individual actor/enemy. The wait time varies on your plugin's parameters though. My handmade SV's are pretty fast.
if (target.result().hpDamage > 0)
Motion Damage: target
wait: 20
end