Kusanagi Kuro
Hosted Project: SC
- Joined
- Mar 11, 2012
- Messages
- 708
Hi guys. I'm trying to create a custom blink. But when I use Event Unit start the effect and then use the action Move unit instantly to Point, the spell itself doesnt go on cooldown. Here is the trigger if u ask for:
So basically, I want to know is there any possible way to move a unit from point to point but doesnt affect its issued order.
-
Preemptive Strike
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Preemptive Strike
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Target unit of ability being cast) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
-
Then - Actions
- Set TempReal = ((0.25 + (0.25 x (Real((Level of (Ability being cast) for (Triggering unit)))))) x ((Real((Agility of (Triggering unit) (Include bonuses)))) + (Real((Intelligence of (Triggering unit) (Include bonuses))))))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (TempUnit has buff Ruinga ) Equal to True
-
Then - Actions
- Set TempReal = (1.50 x TempReal)
- Else - Actions
-
If - Conditions
- Set DamageType = 1
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing TempReal damage of attack type Spells and damage type Magic
- Set DamageType = 0
- Else - Actions
-
If - Conditions
- Set tempPoint = (Position of (Target unit of ability being cast))
- Set TempInt = (Random integer number between 1 and 4)
- Set TempUnit = (Target unit of ability being cast)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at tempPoint facing Default building facing degrees
- Unit - Add Stun PS to (Last created unit)
- Unit - Set level of Stun PS for (Last created unit) to TempInt
- Unit - Order (Last created unit) to Neutral - Hurl Boulder (Target unit of ability being cast)
- Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
- Wait 0.01 seconds
- Set tempPoint2 = (tempPoint offset by 50.00 towards (Random angle) degrees)
- Special Effect - Create a special effect at tempPoint2 using Abilities\Spells\Undead\ReplenishMana\ReplenishManaCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move (Triggering unit) instantly to tempPoint2, facing tempPoint
- Custom script: call RemoveLocation(udg_tempPoint)
- Custom script: call RemoveLocation(udg_tempPoint2)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events