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

Random trigger order O_o

Status
Not open for further replies.
Level 4
Joined
Oct 24, 2008
Messages
64
In my game i want to be able to make some thing happen and maybe next time something differnt to happen and the thing before to happen later O_o

ill put it like this for a test trigger
i want it so that theres two horses pack horse and a armored horse.
i want it to randomly select one of the two horse triggers
so that 1 horse with a randomness of 50/50 of which one it is. O_o i didnt explain that very well i hope you under stand what im trying to get.
 
  • Event - Something Happens
  • Condition - Event You Want Equal to True
  • Set PercentChance(1) = 1
  • Set PercentChance(2) = 2
  • If
  • PercentChance = 1
  • Then
  • Select Armoured Horse
  • Else
  • Select Pack Horse
I guess you could use this, I don't know, I'm not at home so I can't check it out.
 
umm WHAT ?

anyway
what you can make random is: you can pick a random number between numbers you specifed
like you can make game pick a random number between 1 and 5
it works like
Random integer between 1 and 5 (1 and 5 is included as I know but I maybe wrong ofcourse)
 
Status
Not open for further replies.
Back
Top