1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Random Hero Selection

Discussion in 'World Editor Help Zone' started by flying0, Mar 21, 2008.

  1. flying0

    flying0

    Joined:
    Mar 21, 2008
    Messages:
    7
    Resources:
    0
    Resources:
    0
    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: Mar 21, 2008
  2. yAyAfOshO

    yAyAfOshO

    Joined:
    Jun 1, 2007
    Messages:
    92
    Resources:
    0
    Resources:
    0
    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
     
  3. flying0

    flying0

    Joined:
    Mar 21, 2008
    Messages:
    7
    Resources:
    0
    Resources:
    0
    Thanks! it works fine
    i couldnt find any help anywhere else :xxd: