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

Creating a dialouge box with options

Status
Not open for further replies.
Level 7
Joined
Sep 24, 2008
Messages
281
Hello Hiveworkshop community, I have run into some trigger issues, and was wondering if I could get some help. Essentially, I am attempting to have two options, open prisoner quarentine, and cancel. If the player selects open prisoner quarentine, then the magic cage (see picture for reference) will be shut off. If the player selects cancel, then nothing will happen. Any suggestions as to how to go about doing this.
Triggerquestion.jpg
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
erm... just create a dialog with the 2 options you've mentionned
Destroy the cage if it is the first option, otherwise don't do anything... (that's exactly what you've said :s).

What exactly is your problem with this trigger?

edit:
I would also suggest using hidden tags for the screenshot (it's good you've added it, though).
 
Maybe this?
  • Dialog
    • Events
      • Unit - A unit enters YourRect
    • Conditions
    • Actions
      • Dialog - Change the title of YourDialog to Open cage?
      • Dialog - Create a dialog button for YourDialog labelled Yes
      • Set YourDialog_Button[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for YourDialog labelled No
      • Set YourDialog_Button[2] = (Last created dialog Button)
      • Dialog - Show YourDialog for Player 1 (Red)
  • Dialog button
    • Events
      • Dialog - A dialog button is clicked for YourDialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to YourDialog_Button[1]
        • Then - Actions
          • [YourActions]
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to YourDialog_Button[2]
            • Then - Actions
              • [YourActions]
            • Else - Actions
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Maybe this?
  • Dialog
    • Events
      • Unit - A unit enters YourRect
    • Conditions
    • Actions
      • Dialog - Change the title of YourDialog to Open cage?
      • Dialog - Create a dialog button for YourDialog labelled Yes
      • Set YourDialog_Button[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for YourDialog labelled No
      • Set YourDialog_Button[2] = (Last created dialog Button)
      • Dialog - Show YourDialog for Player 1 (Red)
  • Dialog button
    • Events
      • Dialog - A dialog button is clicked for YourDialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to YourDialog_Button[1]
        • Then - Actions
          • [YourActions]
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to YourDialog_Button[2]
            • Then - Actions
              • [YourActions]
            • Else - Actions

The second if/then/else isn't even necessary, since if it isn't the first button that's been clicked, it has to be the second button and the actions can be added in "else" (making the second if/then/else futile).
It's a good trigger, though ;)
 
Level 7
Joined
Sep 24, 2008
Messages
281
Can anyone tell me where he got the terrain?

Yes, you can find it at warcraft3campaigns.com, under the resource section.
Also, I have figured out how to properly run this trigger. However, Dialog boxes happen to pause the game, and since the map I am designing (Project Genisis, with a concept similar to that of parasite) is made for multiple players, that is unnacceptable. In anycase, I'm now thinking of using an ability after selecting the console, which will unlock the cage.
 
Status
Not open for further replies.
Top