- Joined
- Jun 2, 2009
- Messages
- 1,276
Hero creates spikes at targeted area. Units trying to get in or out stuns for x seconds.
When units contacts with spikes (check the attachment) i want to run actions for any unit who contacted.
How can i make it work properly? It is 1.26 version.
When units contacts with spikes (check the attachment) i want to run actions for any unit who contacted.
How can i make it work properly? It is 1.26 version.
-
Dryad E Cast
-

Events
-


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

Conditions
-


(Ability being cast) Equal to Thorns // Dryad
-
-

Actions
-


Set TempPointDryadE = (Target point of ability being cast)
-


Set Dryad_E_Caster = (Casting unit)
-


Set DryadE_Prison = 0.00
-


Set DENEME = ((Target point of ability being cast) offset by 115.00 towards 0.00 degrees)
-


Set DENEME2 = ((Target point of ability being cast) offset by 185.00 towards 0.00 degrees)
-


For each (Integer A) from 1 to 12, do (Actions)
-



Loop - Actions
-




Special Effect - Create a special effect at (TempPointDryadE offset by 250.00 towards DryadE_Prison degrees) using Abilities\Spells\Orc\SpikeBarrier\SpikeBarrier.mdl
-




Unit - Create 1 DUMMY [JFA] for (Owner of Hero_Veigar) at (TempPointDryadE offset by 250.00 towards DryadE_Prison degrees) facing Default building facing degrees
-




Unit - Set level of Fireball // master for (Last created unit) to 21
-




Unit - Set level of Slow // master for (Last created unit) to 18
-




Set DryadEffect = (DryadEffect + 1)
-




Set Dryad_Dummy_E[DryadEffect] = (Last created unit)
-




Set DryadEffect2[DryadEffect] = (Last created special effect)
-




Set DryadE_Prison = (DryadE_Prison + 30.00)
-
-
-


Wait 1.00 seconds
-


Trigger - Turn on Dryad E Stun <gen>
-


Wait 4.00 seconds
-


For each (Integer A) from 1 to 12, do (Actions)
-



Loop - Actions
-




Special Effect - Destroy DryadEffect2[(Integer A)]
-




Unit - Kill Dryad_Dummy_E[(Integer A)]
-




Unit - Remove Dryad_Dummy_E[(Integer A)] from the game
-
-
-


Set DryadEffect = 0
-


Custom script: call RemoveLocation(udg_TempPointDryadE)
-


Trigger - Turn off Dryad E Stun <gen>
-
-
-
Dryad E Stun
-

Events
-


Time - Every 0.02 seconds of game time
-
-

Conditions
-

Actions
-


Set DyradEIntegerA = (Integer A)
-


Set DyradEIntegerAValue = 1
-


For each (Integer DyradEIntegerAValue) from DyradEIntegerAValue to 1, do (Actions)
-



Loop - Actions
-




Unit Group - Pick every unit in (Units of type DUMMY [JFA]) and do (Actions)
-





Loop - Actions
-






For each (Integer B) from 1 to 1, do (Actions)
-







Loop - Actions
-








Unit Group - Pick every unit in (Units within 75.00 of ((Position of (Picked unit)) offset by 0.00 towards 0.00 degrees)) and do (Actions)
-









Loop - Actions
-










Game - Display to (All players) for 1.00 seconds the text: (Name of (Picked unit))
-










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











If - Conditions
-












((Picked unit) has buff Thorns dryad) Equal to False
-












((Picked unit) is A structure) Equal to False
-












((Picked unit) is Mechanical) Equal to False
-












((Picked unit) is alive) Equal to True
-












((Picked unit) belongs to an enemy of (Owner of Dryad_E_Caster)) Equal to True
-
-











Then - Actions
-












Unit - Order Dryad_Dummy_E[DryadEffect] to Human Sorceress - Slow (Picked unit)
-












Unit - Order Dryad_Dummy_E[DryadEffect] to Neutral - Firebolt (Picked unit)
-
-











Else - Actions
-
-
-
-
-
-
-
-
-
-
-




