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

[Trigger] How can i make MUI dialogs?

Status
Not open for further replies.
Level 9
Joined
Oct 17, 2007
Messages
547
im trying to make a dialog appears whenever "summon" is used and ask which monster the player wants to summon, each players have diff amount and types of monsters. I cant get the dialogs to work if more than 1 player summon at a time
 
Level 4
Joined
Jun 1, 2007
Messages
92
First create an initialization trigger that will set the dialog box stuff.
  • Untitled Trigger 007
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Dialog - Change the title of dialogbox to Choose Summon
      • Dialog - Create a dialog button for dialogbox labelled Pig
      • Set dialongbutton[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for dialogbox labelled Frog
      • Set dialongbutton[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for dialogbox labelled Nether Dragon
      • Set dialongbutton[3] = (Last created dialog Button)
Then another trigger that activates when a unit casts the spell.
  • Untitled Trigger 006
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Dialog - Show (Clicked dialog) for (Owner of (Casting unit))
Then the last trigger with the actions of clicking.
  • Untitled Trigger 008
    • Events
      • Dialog - A dialog button is clicked for dialogbox
    • Conditions
    • Actions
      • Dialog - Hide dialogbox for (Triggering player)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to dialongbutton[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 dialongbutton[2]
        • Then - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to dialongbutton[3]
        • Then - Actions
        • Else - Actions
This should work although I've never tested it.
 
Level 9
Joined
Oct 17, 2007
Messages
547
What i meant was each player has a different numbers of monsters that can change dynamically, then can get rid of one and obtain new ones as they play. Monsters are hero units, i got around it by creating an array of dialogs. Thanks anyways:D
 
Status
Not open for further replies.
Top