TPOX
New Member
- Reaction score
- 10
Heres my battlecharge triggers, from all i see it should work. What this trigger does is when u cast ability on someone distance variable is the distance u were from them and you when u casted ability. And Distance2 is the distance u are after the 2 seconds and when ur speed goes back to normal. But after u get to the target no dmg is inflicted but the DMG indicator shows up as its supposed to and appropriate distance.
Code:
Battle Charge TEST
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Battle Charge
Actions
Wait 0.00 seconds
Set TempReal = 0.00
Set Distance = (Integer((Distance between (Position of (Casting unit)) and (Position of (Target unit of ability being cast)))))
Unit - Order (Casting unit) to Attack (Target unit of ability being cast)
Unit - Set (Casting unit) movement speed to 800.00
Wait 2.00 seconds
Unit - Set (Casting unit) movement speed to (Default movement speed of (Triggering unit))
Set Distance2 = (Integer((Distance between (Position of (Casting unit)) and (Position of (Target unit of ability being cast)))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Distance2 Less than 2000
Then - Actions
Unit - Order (Casting unit) to damage (Target unit of ability being cast) for (1.00 x (Real(Distance))) using attack type Normal and damage type Universal.
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Distance2 Greater than 2000
Then - Actions
Unit - Order (Casting unit) to Stop
Else - Actions
Do nothing
Set TempReal = (Real((1 x Distance)))
Floating Text - Create floating text that reads ((|cffff0000 + (String((Integer(TempReal))))) + ( Damage + <Empty String>)) at (Position of (Casting unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Set TempFloatText = (Last created floating text)


