- Joined
- Jul 3, 2013
- Messages
- 25
Trying to do a triggered 3-hit combo (non-JASS), it's not working
local unit udg_tripleHitCaster
local unit udg_tripleHitTarget
What should I do to fix it?
-Edit-
I tried putting it at the beginning of the trigger (before the if/then/else function) and while it does let me enable the trigger, the 3 attacks end up continuously looping until the target dies. That isn't exactly what I had in mind xD
Also, this is more of a minor detail than anything, but the 'slam' animation is the one for a critical strike, correct? I wanted to make it seem like 2 attacks and then one big one for the finisher.
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Triple Dragon Claw
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Triple Dragon Claw for (Triggering unit)) Equal to 1
-
-
Then - Actions
-
Custom script: local unit udg_tripleHitCaster
-
Custom script: local unit udg_tripleHitTarget
-
Set tripleHitCaster = (Triggering unit)
-
Set tripleHitTarget = (Target unit of ability being cast)
-
Unit - Pause tripleHitCaster
-
Unit - Pause tripleHitTarget
-
Animation - Play tripleHitCaster's attack animation
-
Animation - Play tripleHitTarget's death animation
-
Unit - Cause tripleHitCaster to damage tripleHitTarget, dealing (50.00 + (0.25 x (Real((Agility of tripleHitCaster (Include bonuses)))))) damage of attack type Normal and damage type Normal
-
Wait 0.33 seconds
-
Animation - Play tripleHitCaster's attack animation
-
Animation - Play tripleHitTarget's death animation
-
Unit - Cause tripleHitCaster to damage tripleHitTarget, dealing (65.00 + (0.40 x (Real((Agility of tripleHitCaster (Include bonuses)))))) damage of attack type Normal and damage type Normal
-
Wait 0.33 seconds
-
Animation - Play tripleHitCaster's slam animation
-
Animation - Play tripleHitTarget's death animation
-
Unit - Cause tripleHitCaster to damage tripleHitTarget, dealing (100.00 + (0.80 x (Real((Agility of tripleHitCaster (Include bonuses)))))) damage of attack type Normal and damage type Normal
-
Unit - Unpause tripleHitCaster
-
Unit - Unpause tripleHitTarget
-
Set tripleHitCaster = No unit
-
Set tripleHitTarget = No unit
-
-
Else - Actions
-
-
local unit udg_tripleHitCaster
local unit udg_tripleHitTarget
What should I do to fix it?
-Edit-
I tried putting it at the beginning of the trigger (before the if/then/else function) and while it does let me enable the trigger, the 3 attacks end up continuously looping until the target dies. That isn't exactly what I had in mind xD
Also, this is more of a minor detail than anything, but the 'slam' animation is the one for a critical strike, correct? I wanted to make it seem like 2 attacks and then one big one for the finisher.
Last edited: