- Joined
- Mar 22, 2012
- Messages
- 1,549
I think am I make it leakless and removed all what I do not need, or have something to much
Here are triggers
Here are triggers
-
Spinning Blade Start
-

Events
-


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

Conditions
-


(Ability being cast) Equal to Spinning Blade
-
-

Actions
-


Set SBCaster_Player = (Owner of (Casting unit))
-


Set SBCaster_Point = (Position of (Casting unit))
-


Set SBTargets_UnitGroup[0] = (Units within 250.00 of SBCaster_Point matching ((((Matching unit) is dead) Equal to False) and (((Matching unit) belongs to an enemy of SBCaster_Player) Equal to True)))
-


Unit Group - Pick every unit in SBTargets_UnitGroup[0] and do (Actions)
-



Loop - Actions
-




Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\LavaSpawnMissile\LavaSpawnBirthMissile.mdl
-




Special Effect - Destroy (Last created special effect)
-




Unit - Add Spinning Blade (Slow) to (Picked unit)
-




Unit - Turn collision for (Picked unit) Off
-




Unit - Cause (Casting unit) to damage (Picked unit), dealing (2.20 x (Real((Strength of (Casting unit) (Exclude bonuses))))) damage of attack type Spells and damage type Normal
-




Set SBTimer_Real = 5.00
-




Set SBTarget_Point[0] = (Position of (Picked unit))
-




Set SBAngle_Real = (Angle from SBCaster_Point to SBTarget_Point[0])
-




Hashtable - Save SBAngle_Real as 1 of (Key (Picked unit)) in SB_Hash
-




Hashtable - Save SBTimer_Real as 2 of (Key (Picked unit)) in SB_Hash
-




Unit Group - Add (Picked unit) to SBTargets_UnitGroup[1]
-
-
-


Custom script: call DestroyGroup(udg_SBTargets_UnitGroup[0])
-


Custom script: call RemoveLocation(udg_SBCaster_Point)
-


Custom script: call RemoveLocation(udg_SBTarget_Point[0])
-
-
-
Spinning Blade Loop
-

Events
-


Time - Every 0.03 seconds of game time
-
-

Conditions
-

Actions
-


Unit Group - Pick every unit in SBTargets_UnitGroup[1] and do (Actions)
-



Loop - Actions
-




Set SBTimer_Real = (Load 2 of (Key (Picked unit)) from SB_Hash)
-




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





If - Conditions
-






SBTimer_Real Greater than 0.00
-
-





Then - Actions
-






Set SBTarget_Point[1] = (Position of (Picked unit))
-






Set SBTarget_Point[2] = (SBTarget_Point[1] offset by 15.00 towards (Load 1 of (Key (Picked unit)) from (Last created hashtable)) degrees)
-






Unit - Move (Picked unit) instantly to SBTarget_Point[2]
-






Hashtable - Save (SBTimer_Real - 0.30) as 2 of (Key (Picked unit)) in SB_Hash
-
-





Else - Actions
-






Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\LavaSpawnMissile\LavaSpawnBirthMissile.mdl
-






Special Effect - Destroy (Last created special effect)
-






Unit - Remove Spinning Blade (Slow) from (Picked unit)
-






Unit - Turn collision for (Picked unit) On
-






Unit Group - Remove (Picked unit) from SBTargets_UnitGroup[1]
-






Hashtable - Clear all child hashtables of child (Key (Picked unit)) in SB_Hash
-
-
-
-
-


Custom script: call RemoveLocation(udg_SBTarget_Point[0])
-


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



