eatbeaver
New Member
- Reaction score
- 7
Code:
Microorganism
Events
Unit - A unit enters Reds area <gen>
Conditions
(Unit-type of (Triggering unit)) Not equal to Microorganism
Actions
Set Temppoint = (Center of Reds area <gen>)
Set tempgroup = (Units owned by Player 1 (Red) of type Multicellular)
Unit Group - Pick every unit in tempgroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in tempgroup) Greater than or equal to 3
Then - Actions
Custom script: call RemoveLocation(udg_Temppoint)
Set Temppoint = (Position of (Random unit from tempgroup))
Trigger - Turn off (This trigger)
Unit - Create 1 Microorganism for Player 1 (Red) at Temppoint facing Default building facing degrees
Trigger - Turn on (This trigger)
Else - Actions
Custom script: call DestroyGroup(udg_tempgroup)
Custom script: call RemoveLocation(udg_Temppoint)
I only want 1 Microorgansim...