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

-random command

Status
Not open for further replies.
Level 19
Joined
Aug 24, 2007
Messages
2,888
It depends on what kind of selection style you use
well mostly like

HERO is an arrayed unit type variable

map initialization
set HERO[1] = a hero
set HERO[2] = another hero
set HERO[3] = another hero

someone types -random
create HERO[Random integer between 1 and Number of Heroes] at blabla for triggering player
 
Status
Not open for further replies.
Top