• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Start Locations & Remove Excess Units

Status
Not open for further replies.
Level 1
Joined
Nov 1, 2007
Messages
4
I am making a map with 2 set start locations, and 3 more start locations.

I want the 3 other locations to be randomly chosen from 2 options for each location, for a total of 6 possible locations.

Then, I'd like the creeps in the area to be removed, but I'd like it done for an area larger than the standard 1024 'remove excess units' radius.

Thanks for any help.

:aw:
 
Level 9
Joined
Oct 24, 2007
Messages
421
Make regions where you want the town hall to be built, then use a trigger at initialization, create an integer thats a random number between 1 and the amount of possible places you want. The actions would be if then else actions for each possible integer and for each 1 make a town hall be built at one of those locations.

 
Level 1
Joined
Nov 1, 2007
Messages
4
Thanks for the reply. Your screenshot helped. :thumbs_up:

I did pretty much what is shown there, instead I chose to place starting units. The only thing I couldn't figure out how to do is how to actually place the 'starting location' marker on the random location. So I just piled all of the starting location markers on one spot on the map. I don't think that should make a difference to gameplay..:ash:
 
Status
Not open for further replies.
Top