| 08-15-2004, 06:32 AM | #1 |
how can i make 8 different units be created at 8 random regions i tried this setregs Events Conditions Actions For each (Integer A) from 1 to 8, do (Actions) Loop - Actions Set regint[(Integer A)] = (Random integer number between 1 and 8) For each (Integer B) from 1 to 8, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Integer A) Not equal to (Integer B) Then - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions regint[(Integer A)] Equal to regint[(Integer B)] Then - Actions Else - Actions run - (this trigger) Do nothing Else - Actions Do nothing Unit - Create 1 Red Sheep for Player 1 (Red) at (Center of tankreg[regint[1]]) facing Default building facing degrees Unit - Create 1 Blue Sheep for Player 2 (Blue) at (Center of tankreg[regint[2]]) facing Default building facing degrees Unit - Create 1 Teal Sheep for Player 3 (Teal) at (Center of tankreg[regint[3]]) facing Default building facing degrees Unit - Create 1 Purple Sheep for Player 4 (Purple) at (Center of tankreg[regint[4]]) facing Default building facing degrees Unit - Create 1 Yellow Sheep for Player 5 (Yellow) at (Center of tankreg[regint[1]]) facing Default building facing degrees Unit - Create 1 Orange Sheep for Player 6 (Orange) at (Center of tankreg[regint[6]]) facing Default building facing degrees Unit - Create 1 Green Sheep for Player 7 (Green) at (Center of tankreg[regint[7]]) facing Default building facing degrees Unit - Create 1 Pink Sheep for Player 8 (Pink) at (Center of tankreg[regint[8]]) facing Default building facing degrees |
