• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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