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

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