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

help picking races...

Status
Not open for further replies.
Level 13
Joined
Jan 18, 2008
Messages
956
Make an ingame trigger in which you choose your race, ignoring what you chose while configuring map at start.
 
  • Melee Initialization
    • Events
      • Time - Elapsed game time is 8.00 seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Race[(Player number of (Picked player))] Equal to 1.00
            • Then - Actions
              • Unit - Create 1 Town Hall for (Picked player) at ((Picked player) start location) facing Default building facing degrees
              • Unit - Create 5 Peasant for (Picked player) at ((Picked player) start location) facing Default building facing degrees
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Race[(Player number of (Picked player))] Equal to 2.00
            • Then - Actions
              • Unit - Create 1 Great Hall for (Picked player) at ((Picked player) start location) facing Default building facing degrees
              • Unit - Create 5 Peon for (Picked player) at ((Picked player) start location) facing Default building facing degrees
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Race[(Player number of (Picked player))] Equal to 3.00
            • Then - Actions
              • Unit - Create 1 Necropolis for (Picked player) at ((Picked player) start location) facing Default building facing degrees
              • Unit - Create 3 Acolyte for (Picked player) at ((Picked player) start location) facing Default building facing degrees
              • Unit - Create 1 Ghoul for (Picked player) at ((Picked player) start location) facing Default building facing degrees
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Race[(Player number of (Picked player))] Equal to 4.00
            • Then - Actions
              • Unit - Create 1 Tree of Life for (Picked player) at ((Picked player) start location) facing Default building facing degrees
              • Unit - Create 5 Wisp for (Picked player) at ((Picked player) start location) facing Default building facing degrees
            • Else - Actions
      • Melee Game - Use melee time of day (for all players)
      • Melee Game - Limit Heroes to 1 per Hero-type (for all players)
      • Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
      • Melee Game - Set starting resources (for all players)
      • Melee Game - Remove creeps and critters from used start locations (for all players)
      • Melee Game - Run melee AI scripts (for computer players)
      • Melee Game - Enforce victory/defeat conditions (for all players)
  • Init
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Dialog - Clear Dialog
      • Dialog - Change the title of Dialog to Choose your race
      • Dialog - Create a dialog button for Dialog labelled Human
      • Set Dialog_Button[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Orc
      • Set Dialog_Button[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Undead
      • Set Dialog_Button[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Nightelf
      • Set Dialog_Button[4] = (Last created dialog Button)
      • Dialog - Show Dialog for Player 1 (Red)
  • Buttons
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Button[1]
        • Then - Actions
          • Set Race[(Player number of (Triggering player))] = 1.00
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Button[2]
        • Then - Actions
          • Set Race[(Player number of (Triggering player))] = 2.00
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Button[3]
        • Then - Actions
          • Set Race[(Player number of (Triggering player))] = 3.00
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Button[4]
        • Then - Actions
          • Set Race[(Player number of (Triggering player))] = 4.00
        • Else - Actions
This is the best that GUI can do.

Edit: I know, I didn't exactly finish the trigger, it only works for player 1 right now, I'll fix it.
 
Status
Not open for further replies.
Top