| 06-30-2004, 05:15 AM | #1 |
The map I am creating has two teams with up to 5 players on each team. The start locations are in rooms on opposite sides of the map, and with all 5 members of a team's start location right on top of each other. I want it to be random which side of the map the two teams start on. So I unchecked the fixed start location, and with 10 players it works great. But if there is only a couple players, there is a chance that the 2 teams start locations end up in the same room. How can I fix this? |
| 06-30-2004, 05:33 PM | #2 |
by doing it with a trigger. Just put the start location on fixed again, and use this trigger: Code:
Events:
Elapsed Time 0.01 seconds
Conditions:
None
Actions:
if Math - Random number between 1 and 2 = 1 then
player group - pick every player in (allies of player 1 red) and do
camera - pan camera for (Picked player) on Start1
"Create units for player" @ start 1
player group - pick every player in (allies of player 5 yellow) and do
camera - pan camera for (Picked player) on Start2
"Create units for player" @ start 2
else
player group - pick every player in (allies of player 1 red) and do
camera - pan camera for (Picked player) on Start2
"Create units for player" @ start 2
player group - pick every player in (allies of player 5 yellow) and do
camera - pan camera for (Picked player) on Start1
"Create units for player" @ start 1 |
