• 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 Hero Selection

Status
Not open for further replies.
Level 1
Joined
Mar 21, 2008
Messages
7
I want to put a all random command into my footman map,
but i dont know how to do it can you please help me
it would be great if it was a command so that player one (red) can use it


Thanks For The Help (if i get any) :hohum:
 
Last edited:
Level 4
Joined
Jun 1, 2007
Messages
92
Something like this -

Set each unit type into a variable.
  • Set Variables
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set unit_type[1] = Whatever unit type
      • Set unit_type[2] = Whatever unit type
      • Set unit_type[3] = Whatever unit type
      • Set unit_type[4] = Whatever unit type
      • Set unit_type[5] = Whatever unit type
      • Set unit_type[6] = Whatever unit type
When player activates the command, gives each player a random unit.
  • All Random
    • Events
      • Player - Player 1 (Red) types a chat message containing -ar as An exact match
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Unit - Create 1 unit_type[(Random integer number between 1 and 6)] for (Player((Integer A))) at (Center of (Where Ever)) facing Default building facing degrees
 
Status
Not open for further replies.
Top