- Joined
- Mar 24, 2010
- Messages
- 950
I have this trigger basically i wanted to spawn 3-4 units that have a reveal ability to spy on player base areas, i did it a better way than this to begin with but found out even with 0 cast time and 0 cd time units cant cast in a row or (shift+click) a row of orders lined up via trigger becuz its too fast..
So i did it this way hoping it would work better, and it did a little better but still isnt doing all 12 or the 9 enemies anyway..
So i did it this way hoping it would work better, and it did a little better but still isnt doing all 12 or the 9 enemies anyway..
-
Spy Using Alter Copy
-

Events
-


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

Conditions
-


(Ability being cast) Equal to spy
-


((Owner of (Triggering unit)) controller) Equal to Computer
-
-

Actions
-


Set Temp_UnitGroup = (Units owned by (Owner of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to spy unit))
-


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



If - Conditions
-




(Number of units in Temp_UnitGroup) Less than 4
-
-



Then - Actions
-




Set Temp_Point = (Position of (Triggering unit))
-




Unit - Create 4 spy unit for (Owner of (Triggering unit)) at Temp_Point facing Default building facing degrees
-




Custom script: call RemoveLocation ( udg_Temp_Point)
-
-



Else - Actions
-
-


Custom script: call DestroyGroup (udg_Temp_UnitGroup)
-


Set Temp_UnitGroup2 = (Units owned by (Owner of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to spy unit))
-


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



Loop - Actions
-




Unit Group - Pick every unit in (Random 1 units from Temp_UnitGroup2) and do (Actions)
-





Loop - Actions
-






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







If - Conditions
-








((Triggering unit) belongs to an enemy of (Player((Integer A)))) Equal to True
-
-







Then - Actions
-








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









If - Conditions
-










(Mana of (Picked unit)) Greater than or equal to 50.00
-
-









Then - Actions
-










Set Temp_Point2 = ((Player((Integer A))) start location)
-










Unit - Order (Picked unit) to Orc Far Seer - Far Sight Temp_Point2
-










Custom script: call RemoveLocation ( udg_Temp_Point2)
-
-









Else - Actions
-










Unit - Set mana of (Picked unit) to 100.00%
-










Set Temp_Point2 = ((Player((Integer A))) start location)
-










Unit - Order (Picked unit) to Orc Far Seer - Far Sight Temp_Point2
-










Custom script: call RemoveLocation ( udg_Temp_Point2)
-
-
-
-







Else - Actions
-
-
-
-
-
-


Custom script: call DestroyGroup (udg_Temp_UnitGroup2)
-
-
