Now my trigger working,I have heard that Locust don't work with "Unit Group - Pick every unit in ...."
This is the trigger I'm using.It's an invisible unit that build the building and then the workers with locust go finish the construction by using "Repair".The problem is that I'm using Unit-group :
This is the trigger I'm using.It's an invisible unit that build the building and then the workers with locust go finish the construction by using "Repair".The problem is that I'm using Unit-group :
Trigger:
- Builders
- Events
- Unit - A unit Begins construction
- Conditions
- (Unit-type of (Triggering unit)) Equal to (==) Menu
- Actions
- Do Multiple ActionsFor each (Integer A) from 1 to 2, do (Actions)
- Loop - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (City_Area_Chosen[(Integer A)] contains (Triggering unit)) Equal to (==) True
- Then - Actions
- Unit Group - Pick every unit in (Random (Random integer number between 1 and 3) units from (Units in City_Area_Chosen[Number] matching ((Unit-type of (Matching unit)) Equal to (==) Builder))) and do (Actions)
- Loop - Actions
- Unit - Order (Picked unit) to Human Peasant - Repair (Constructing structure)
- Loop - Actions
- Unit Group - Pick every unit in (Random (Random integer number between 1 and 3) units from (Units in City_Area_Chosen[Number] matching ((Unit-type of (Matching unit)) Equal to (==) Builder))) and do (Actions)
- Else - Actions
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Do Multiple ActionsFor each (Integer A) from 1 to 2, do (Actions)
- Events