- Joined
- Jul 14, 2011
- Messages
- 3,213
Hi!
This trigger isn't working, and I can't figure why. It's supposed to spawn a creep around the unit from "Wood-Group" unit-group.
This is the trigger that Adds a unit to "Wood_Group"
This trigger isn't working, and I can't figure why. It's supposed to spawn a creep around the unit from "Wood-Group" unit-group.
This is the trigger that Adds a unit to "Wood_Group"
-
Unit enters Wood
-

Events
-


Unit - A unit enters Woods1 <gen>
-
-

Conditions
-


((Triggering unit) is A Hero) Equal to True
-
-

Actions
-


Unit Group - Add (Triggering unit) to Wood_Group
-
-
-
Creep Spawn
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-


Or - Any (Conditions) are true
-



Conditions
-




(Number of units in Wood_Group) Greater than 0
-
-
-
-

Actions
-


Unit Group - Pick every unit in Wood_Group and do (Actions)
-



Loop - Actions
-




Set Temp_Group = (Units within 800.00 of (Position of (Picked unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True))
-




Set Temp_Point = (Random point in (Region centered at (Position of (Picked unit)) with size (1000.00, 1000.00)))
-




Set Temp_Point2 = (Position of (Picked unit))
-




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





If - Conditions
-






(Number of units in Temp_Group) Greater than or equal to 3
-
-





Then - Actions
-






Unit Group - Remove (Picked unit) from Wood_Group
-
-





Else - Actions
-






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







If - Conditions
-








(Random integer number between 1 and 100) Less than or equal to 99
-
-







Then - Actions
-








Unit - Create 1 (Random level (Random integer number between 1 and 5) creep unit-type) for Neutral Hostile at Temp_Point facing Temp_Point2
-








Unit - Order (Last created unit) to Attack-Move To Temp_Point2
-








Unit Group - Add (Last created unit) to Creep_Group
-
-







Else - Actions
-
-






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







If - Conditions
-








(Random integer number between 1 and 100) Less than or equal to 99
-
-







Then - Actions
-








Unit - Create 1 Floating Energy for Neutral Passive at Temp_Point facing Temp_Point2
-








Unit - Order (Last created unit) to Attack-Move To Temp_Point2
-
-







Else - Actions
-
-
-
-
-
-


Custom script: call RemoveLocation(udg_Temp_Point)
-


Custom script: call RemoveLocation(udg_Temp_Point2)
-


Custom script: set bj_wantDestroyGroup = true
-
-





