- Joined
- Sep 9, 2019
- Messages
- 25
The ability is: A blink that teleports you behind and enemy, damages him and steals gold.
~First one: When killing an enemy with the ability, it doesn't enter in cooldown.
~Second one: When the ability is max level and I target allies, it doesn't enter in cooldown again.
Every bit of help will be welcome.
-
Blink Strike
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Swift Thrust
-
-

Actions
-


Set VariableSet BlinkStrike_Caster = (Casting unit)
-


Set VariableSet BlinkStrike_Target = (Target unit of ability being cast)
-


Set VariableSet BlinkStrike_Point[1] = (Position of BlinkStrike_Caster)
-


Set VariableSet BlinkStrike_Point[2] = (Position of BlinkStrike_Target)
-


Set VariableSet BlinkStrike_Angle = (180.00 + (Facing of BlinkStrike_Target))
-


Set VariableSet BlinkStrike_Point[3] = (BlinkStrike_Point[2] offset by 33.00 towards BlinkStrike_Angle degrees.)
-


Unit - Move BlinkStrike_Caster instantly to BlinkStrike_Point[3]
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(BlinkStrike_Target belongs to an enemy of (Owner of BlinkStrike_Caster).) Equal to True
-
-



Then - Actions
-




Set VariableSet BlinkStrike_Gold = (Random integer number between 10 and 150)
-




Unit - Order BlinkStrike_Caster to Attack BlinkStrike_Target
-




Unit - Cause BlinkStrike_Caster to damage BlinkStrike_Target, dealing (40.00 x (Real((Level of Swift Thrust for BlinkStrike_Caster)))) damage of attack type Hero and damage type Normal
-




Player - Add BlinkStrike_Gold to (Owner of (Triggering unit)).Current gold
-




Floating Text - Create floating text that reads (+ + (String(BlinkStrike_Gold))) above BlinkStrike_Caster with Z offset 0.00, using font size 10.00, color (100.00%, 80.00%, 7.00%), and 0.00% transparency
-




Floating Text - Hide (Last created floating text) for (All players)
-




Floating Text - Show (Last created floating text) for (Player group((Triggering player)))
-




Floating Text - Change (Last created floating text): Disable permanence
-




Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
-




Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
-
-



Else - Actions
-




Unit - Order BlinkStrike_Caster to Stop.
-
-
-


Custom script: call RemoveLocation (udg_BlinkStrike_Point[1])
-


Custom script: call RemoveLocation (udg_BlinkStrike_Point[2])
-


Custom script: call RemoveLocation (udg_BlinkStrike_Point[3])
-
-
~First one: When killing an enemy with the ability, it doesn't enter in cooldown.
~Second one: When the ability is max level and I target allies, it doesn't enter in cooldown again.
Every bit of help will be welcome.
