• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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