- Joined
- Jun 2, 2009
- Messages
- 1,236
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Player((Integer A)))) and do (Actions)
-
Loop - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Multiple ConditionsOr - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Picked unit)) Equal to (==) TestStructure1
-
(Unit-type of (Picked unit)) Equal to (==) TestStructure2
-
(Unit-type of (Picked unit)) Equal to (==) TestStructure3
-
(Unit-type of (Picked unit)) Equal to (==) TestStructure4
-
-
-
-
Then - Actions
-
Unit Group - Add (Picked unit) to TempGroup
-
Game - Display to (All players) for 2.00 seconds the text: (picked + (Name of (Picked unit)))
-
Set TempUnit = (Random unit from TempGroup)
-
Game - Display to (All players) for 1.00 seconds the text: (Name of TempUnit)
-
-
-
-
Set TempUnit = (Random unit from TempGroup)
Why i cannot get random unit from TempGroup?