• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Action in random region

Status
Not open for further replies.

DEA

D

DEA

Okay! Do someone know how to add unit at random region. Example, I have 3 regions and want do create one unit, but want to create it on random of thees 3 regions. And again when you,re replying the same trigger then it will choose other or the same region where to create a unit. Or it is possible? If it is impossible than there is the way to merge 2 or more region in the one full region (not square or rectangle, but custom form figure).
 
it is simple, make integer variable, and in action, set this integer=random number between 1 and 3.

Then if integer=1, create unit at region 1

if integer=2, create unit at region 2

if integer=3, create unit at region 3
 
And one more question (I just don't want to add another tread). Or there is a way to create trigger in trigger, like divide trigger, because i just dont want create another trigger in triger editor?
 
Status
Not open for further replies.
Back
Top