• 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.

I really need help!

Status
Not open for further replies.
Level 23
Joined
Jan 1, 2009
Messages
1,615
Okay, create a region Array:

reg.JPG


Then use a random Region by Choosing a random index for the array.

  • Actions
    • Unit - Create 1 Footman for Player 1 (Red) at (Random point in Region_Array[(Random integer number between 0 and 3)]) facing Default building facing degrees
You also have to set the Regions before in some init trigger, but I think you can do that.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
I don't meant the difference between "quantity", what I meant was difference in "array referencing" where you should do math random number between 0 ~ 16 but instead, you did 1 ~ 16, it's wrong (this situation occurs if your starting array number is [0], if it's [1], it should work fine)
 
Status
Not open for further replies.
Top