• 🏆 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!

Custom Race Selector Trigger

Status
Not open for further replies.
Level 5
Joined
Jul 10, 2009
Messages
89
I am looking for the trigger that causes a dialogue box to pop up when you start the game, giving you the option to select a custom race. I know it's been done many times before, but I can't find a downloadable system anywhere.

Could someone please point me in the right direction?

Thanks.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
The basics:

  • Untitled Trigger 084
    • Events
    • Conditions
    • Actions
      • Dialog - Change the title of Race_Dialog to Race Selection
      • Dialog - Create a dialog button for Race_Dialog labelled Race A
      • Set Race_Dialog_Buttons[0] = (Last created dialog Button)
      • Dialog - Create a dialog button for Race_Dialog labelled Race B
      • Set Race_Dialog_Buttons[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Race_Dialog labelled Race C
      • Set Race_Dialog_Buttons[2] = (Last created dialog Button)
      • 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 - Conditions
              • ((Player((Integer A))) controller) Equal to User
            • Then - Actions
              • Dialog - Show Race_Dialog for (Player((Integer A)))
            • Else - Actions
      • Trigger - Turn on Untitled Trigger 085 <gen>
  • Untitled Trigger 085
    • Events
      • Dialog - A dialog button is clicked for Race_Dialog
    • Conditions
    • Actions
      • Set Temp_Integer_1 = (Player number of (Triggering player))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Race_Dialog_Buttons[0]
        • Then - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Race_Dialog_Buttons[1]
            • Then - Actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to Race_Dialog_Buttons[2]
                • Then - Actions
                • Else - Actions
      • Dialog - Hide Race_Dialog for (Player(Temp_Integer_1))
 
Status
Not open for further replies.
Top