- Joined
- Apr 20, 2010
- Messages
- 865
-
Pylon illusion
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Pylon Effect
-
-
Actions
-
Set PylonPosition[(Custom value of (Triggering unit))] = (Position of (Triggering unit))
-
Unit - Create 1 Locust for (Owner of (Triggering unit)) at PylonPosition[(Custom value of (Triggering unit))] facing Default building facing degrees
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Unit - Add Copy to (Last created unit)
-
Custom script: if udg_PylonTargetGroup[GetUnitUserData(GetTriggerUnit())] == null then
-
Custom script: set udg_PylonTargetGroup[GetUnitUserData(GetTriggerUnit())] = CreateGroup()
-
Custom script: endif
-
Unit Group - Pick every unit in (Units within 512.00 of PylonPosition[(Custom value of (Triggering unit))]) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
((Picked unit) is A ground unit) Equal to True
-
((Picked unit) is Able to attack ground units) Equal to True
-
((Picked unit) is Magic Immune) Equal to False
-
((Picked unit) is A structure) Equal to False
-
((Picked unit) is an illusion) Equal to False
-
-
Then - Actions
-
Unit Group - Add (Picked unit) to PylonTargetGroup[(Custom value of (Triggering unit))]
-
-
Else - Actions
-
-
-
-
Unit Group - Pick every unit in (Random 1 units from PylonTargetGroup[(Custom value of (Triggering unit))]) and do (Actions)
-
Loop - Actions
-
Custom script: call IssueTargetOrderById( GetLastCreatedUnit(), 852274, GetEnumUnit() )
-
-
-
Custom script: call RemoveLocation (udg_PylonPosition[GetUnitUserData(GetTriggerUnit())])
-
Custom script: call DestroyGroup (udg_PylonTargetGroup[GetUnitUserData(GetTriggerUnit())])
-
-