• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Random Hero from hero tavern

Status
Not open for further replies.
Level 9
Joined
Jun 7, 2008
Messages
440
Just as the title states, how do you randomize heros from a couple hero taverns? I got a few hero taverns, and if a player types "-random", they get a random hero from all the hero taverns. Does anyone know how to do this? I think all units need to be put into a unit group. But i have no idea how to do this. :cry: Any help please?
 
Level 4
Joined
Jul 1, 2009
Messages
65
put each hero into a variable with array. Then random a number for the number in array... rest is self explanitory...i dun have wc3 here with me or i would make a trigger.... i dun know the triggers by heart like some people :p
 
Status
Not open for further replies.
Top