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

A choice board???

Status
Not open for further replies.
Level 4
Joined
Jan 15, 2008
Messages
63
Hey could anyone explain how I would go ahead in making a trigger which creates a board for the player (blue in this case) able to choose from two options?? Able to choose by clicking one of the two buttons | Drawing below.
v
___________________
| ______________ |
| | Stay with *** | |
| ---------------- |
| ______________ | <---- Something like this :)
| | Join ***** | |
| ---------------- |
| |
|__________________|
 
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

This sounds like a normal dialog =O

  • Dialog
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Dialog - Clear Dialog
      • Dialog - Change the title of Dialog to What mode?
      • Dialog - Create a dialog button for Dialog labelled Normal
      • Set DialogButton[0] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Hardcore
      • Set DialogButton[1] = (Last created dialog Button)
      • Dialog - Show Dialog for Player 2 (Blue)
  • Get Mode
    • 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 DialogButton[0]
        • Then - Actions
          • Game - Display to (All players) the text: Gamemode: Normal
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogButton[1]
        • Then - Actions
          • Game - Display to (All players) the text: Gamemode: Hardcore
        • Else - Actions
You need to create a variable called (for example) Dialog of Type Dialog
You need to create a variable calles (for example) DialogButtons of type Dielog Buttons. ( Here you can use array (as you see the [0] [1]) so you can create more buttons with the same variable.
 
Status
Not open for further replies.
Top