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

Start with random hero

Status
Not open for further replies.
Level 14
Joined
Nov 4, 2006
Messages
1,241
hmm, but that wouldn't be race specific unless the races are set for each starting position, i suggest using a trigger

  • random hero
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set player[1] = Player 1 (Red)
      • Set player[2] = Player 2 (Blue)
      • Set player[3] = Player 3 (Teal)
      • ....
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • (player[(Integer A)] slot status) equal to playing
              • (Race of player[(Integer A)]) equal to Human
            • 'THEN'-Actions
              • Set randominteger = (Random integer number between 1 and 4)
              • If (randominteger equal to 1) then do (Unit - Create 1 Paladin for player[(Integer A)] at (player[(Integer A)] start location) facing Vorgabe for Gebäude-Ausrichtung degrees) else do (Do nothing)
              • If (randominteger equal to 2) then do (Unit - Create 1 Archmage for player[(Integer A)] at (player[(Integer A)] start location) facing Vorgabe for Gebäude-Ausrichtung degrees) else do (Do nothing)
            • 'ELSE'-Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Conditions
                  • (player[(Integer A)] slot status) equal to playing
                  • (Race of player[(Integer A)]) equal to Orc
                • 'THEN'-Actions
                  • Set randominteger = (Random integer number between 1 and 4)
                  • If (randominteger Gleich 1) then do (Unit - Create 1 Blademaster for player[(Integer A)] at (player[(Integer A)] start location) facing Vorgabe for Gebäude-Ausrichtung degrees) else do (Do nothing)
                  • If (randominteger Gleich 2) then do (Unit - Create 1 Tauren-Chieftain for player[(Integer A)] at (player[(Integer A)] start location) facing Vorgabe for Gebäude-Ausrichtung degrees) else do (Do nothing)
                • 'ELSE'-Actions

that's the basic idea, just add the missing rasces and heros, maybe i did not translate everything, cause my WE is german, but i think the important parts are english
 
Status
Not open for further replies.
Top