aa
Events
Unit - A unit Finishes construction
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Farm
(Number of units in (Units of type Farm)) Equal to 1
Then - Actions
Set Farm = (Last created unit)
Trigger - Run trig 1 <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Farm is dead) Equal to True
Then - Actions
Trigger - Turn off trig 1 <gen>
Else - Actions
Do nothing