Need help dialog

Vitriolic

New Member
Reaction score
0
I havent made a dialog before but i need it for my new map and i cant seem to find the problem with the trigger i have added...well in game both of the Buttons appear i click Free Free For All nothing happens and the Custom button i havent even made :s
Code:
*GAME TYPE* 

Event - Time Elapsed 1.00 seconds.
Condition - 
Actions - Dialog - Change the title of Dialog to Choose Game type!
             Dialog - Create a dialog button for Dialog labelled Free For All
             Dialog - Create a dialog button for Dialog labelled Custom
             Dialog - Show Dialog for Player 1 (Red)
             Set FreeForAll = FreeForAll
             Set Custom = Custom

Code:
*FFA CLICK*
-Events,Dialog - A dialog button is clicked for Dialog
-Conditions, (Clicked dialog button) Equal to FreeForAll
-Actions, Trigger - Player Group - Make (All players) treat (All players) as an Enemy
                    Game - Display to (All players) the text: |cffffff33Free For ...
 

Vitriolic

New Member
Reaction score
0
I have tried
Code:
Set FreeForAll = (Last created dialog Button)
but the trigger still will not work

But if i do that above -^ and disable
Code:
Dialog - Create a dialog button for Dialog labelled Custom & Set Custom = (Last created dialog Button)
it worked... but i cant manage with 1 button i need 2.....
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Um...

Dialog - Create a dialog button for Dialog labelled Free For All
Set FreeForAll = (Last created dialog button)
Dialog - Create a dialog button for Dialog labelled Custom
Set Custom = (Last created dialog button)
 

vypur85

Hibernate
Reaction score
803
Code:
Event - 
 Time Elapsed 1.00 seconds.
Condition - 
Actions - 
 Dialog - Change the title of Dialog to Choose Game type!
 Dialog - Create a dialog button for Dialog labelled Free For All
 [B]Set FreeForAll = (Last created dialog button)[/B]
 Dialog - Create a dialog button for Dialog labelled Custom
 [B]Set Custom = (Last created dialog button)[/B]
 Dialog - Show Dialog for Player 1 (Red)

Code:
Events
 Dialog - A dialog button is clicked for Dialog
Conditions
Actions
 If then else actions
   Condition
      (Clicked dialog button) Equal to [B]FreeForAll[/B]
   Then
      -Do your stuff-
 If then else actions
   Condition
      (Clicked dialog button) Equal to [B]Custom[/B]
   Then
      -Do your stuff-

Something like the above.
 

holyranger

New Member
Reaction score
0
Dialog Button Hero Specc. Help

I need some help too. My triggers starts with

Events-A unit enters Region 001 <gen>

When this unit enters to that hero circle, it creates a paladin. I need a dialog to appear which makes the user available of choosing spec.: Hero/Protection.
 

Extremedesyr

New Member
Reaction score
6
I'm having some strange issue, i've got 2 dialogs in the beginning of my map, one that allowes you to choose diffculty and then I want another to pop up when a diffculty is chosen, however, the second dialog doesnt work @ all

Trigger:
  • Dialog Initialization
    • Events
      • Time - Elapsed game time is 0.10 seconds
    • Conditions
    • Actions
      • Dialog - Clear GenericDialog[1]
      • Dialog - Create a dialog button for GenericDialog[1] labelled (CC_Color_Extra[1] + (Easy + CC_Endtag))
      • Set Dialogbuttons[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[1] labelled (CC_Color_Extra[1] + (Normal + CC_Endtag))
      • Set Dialogbuttons[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[1] labelled (CC_Color_Extra[1] + (Hard + CC_Endtag))
      • Set Dialogbuttons[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[1] labelled (CC_Color_Extra[1] + (Impossible + CC_Endtag))
      • Set Dialogbuttons[4] = (Last created dialog Button)
      • Dialog - Change the title of GenericDialog[1] to Difficulty
      • Dialog - Show GenericDialog[1] for Player 1 (Red)
      • Dialog - Clear GenericDialog[2]
      • Dialog - Create a dialog button for GenericDialog[2] labelled (CC_Color_Extra[1] + (Melee (+Strength and +Agility bonuses) + CC_Endtag))
      • Set Dialogbuttons[5] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[2] labelled (CC_Color_Extra[1] + (Ranged (Agility and Ranged attack bonuses) + CC_Endtag))
      • Set Dialogbuttons[6] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[2] labelled (CC_Color_Extra[1] + (Magic (Intellect and spell damage bonuses) + CC_Endtag))
      • Set Dialogbuttons[7] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[2] labelled (CC_Color_Extra[1] + (Stealth (Agility bonuses and Stealth ability) + CC_Endtag))
      • Set Dialogbuttons[8] = (Last created dialog Button)
      • Dialog - Change the title of GenericDialog[2] to Which hero-type wou...
      • Dialog - Hide GenericDialog[2] for Player 1 (Red)
      • Dialog - Clear GenericDialog[3]
      • Dialog - Create a dialog button for GenericDialog[3] labelled (CC_Colour[1] + (To Elwynn Forest - 30g + CC_Endtag))
      • Set DialogbuttonsShip[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[3] labelled (CC_Colour[1] + (To Dun Morogh - 30g + CC_Endtag))
      • Set DialogbuttonsShip[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[3] labelled (CC_Colour[1] + (To Azuremyst Isle - 30g + CC_Endtag))
      • Set DialogbuttonsShip[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[3] labelled (CC_Colour[1] + (To Teldrassil - 30g + CC_Endtag))
      • Set DialogbuttonsShip[4] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[3] labelled (CC_Colour[1] + (To Stormwind City - 45g + CC_Endtag))
      • Set DialogbuttonsShip[5] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[3] labelled (CC_Colour[1] + (To Ironforge - 45g + CC_Endtag))
      • Set DialogbuttonsShip[6] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[3] labelled (CC_Colour[1] + (To Exodar - 45g + CC_Endtag))
      • Set DialogbuttonsShip[7] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[3] labelled (CC_Colour[1] + (To Darnassus - 45g + CC_Endtag))
      • Set DialogbuttonsShip[8] = (Last created dialog Button)
      • Dialog - Change the title of GenericDialog[3] to Arr, Where do you w...
      • Dialog - Clear GenericDialog[4]
      • Dialog - Create a dialog button for GenericDialog[4] labelled (CC_Colour[1] + (To Tirisfal Glades - 30g + CC_Endtag))
      • Set DialogButtonsZeppelin[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[4] labelled (CC_Colour[1] + (To Eversong Woods - 30g + CC_Endtag))
      • Set DialogButtonsZeppelin[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[4] labelled (CC_Colour[1] + (To Durotar - 30g + CC_Endtag))
      • Set DialogButtonsZeppelin[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[4] labelled (CC_Colour[1] + (To Mulgore - 30g + CC_Endtag))
      • Set DialogButtonsZeppelin[4] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[4] labelled (CC_Colour[1] + (To The Undercity - 45g + CC_Endtag))
      • Set DialogButtonsZeppelin[5] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[4] labelled (CC_Colour[1] + (To Silvermoon City - 45g + CC_Endtag))
      • Set DialogButtonsZeppelin[6] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[4] labelled (CC_Colour[1] + (To Orgimmar - 45g + CC_Endtag))
      • Set DialogButtonsZeppelin[7] = (Last created dialog Button)
      • Dialog - Create a dialog button for GenericDialog[4] labelled (CC_Colour[1] + (To Thunder Bluff - 45g + CC_Endtag))
      • Set DialogButtonsZeppelin[8] = (Last created dialog Button)
      • Dialog - Change the title of GenericDialog[4] to Where do you wish t...


Trigger:
  • Enter Game
    • Events
      • Dialog - A dialog button is clicked for GenericDialog[1]
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialogbuttons[1]
        • Then - Actions
          • Dialog - Clear GenericDialog[1]
          • Dialog - Hide GenericDialog[1] for (Triggering player)
          • Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Player - Set (Picked player) handicap to 65.00%)
          • Player - Set Player 1 (Red) Current gold to 450
          • Set DiffcultyChosen = 1
          • Unit - Create 1 Hero (Easy) for Player 1 (Red) at (Position of Circle of Power 0005 &lt;gen&gt;) facing 90.00 degrees
          • Set HeroChosen = (Last created unit)
          • Special Effect - Create a special effect attached to the orgin of HeroChosen using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
          • Hero - Create BroadAxe and give it to (Last created unit)
          • Trigger - Run Lock Camera &lt;gen&gt; (ignoring conditions)
          • Trigger - Run Hero Easy &lt;gen&gt; (ignoring conditions)
          • Trigger - Turn on Hero Easy &lt;gen&gt;
          • Dialog - Show GenericDialog[2] for Player 1 (Red)
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Dialogbuttons[2]
            • Then - Actions
              • Dialog - Clear GenericDialog[1]
              • Dialog - Hide GenericDialog[1] for (Triggering player)
              • Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Player - Set (Picked player) handicap to 80.00%)
              • Player - Set Player 1 (Red) Current gold to 550
              • Set DiffcultyChosen = 2
              • Unit - Create 1 Hero (Medium) for Player 1 (Red) at (Position of Circle of Power 0005 &lt;gen&gt;) facing 90.00 degrees
              • Set HeroChosen = (Last created unit)
              • Special Effect - Create a special effect attached to the orgin of HeroChosen using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
              • Hero - Create BroadAxe and give it to (Last created unit)
              • Trigger - Run Lock Camera &lt;gen&gt; (ignoring conditions)
              • Trigger - Run Hero Medium &lt;gen&gt; (ignoring conditions)
              • Trigger - Turn on Hero Medium &lt;gen&gt;
              • Dialog - Show GenericDialog[2] for Player 1 (Red)
              • Trigger - Turn off (This trigger)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to Dialogbuttons[3]
                • Then - Actions
                  • Dialog - Clear GenericDialog[1]
                  • Dialog - Hide GenericDialog[1] for (Triggering player)
                  • Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Player - Set (Picked player) handicap to 95.00%)
                  • Player - Set Player 1 (Red) Current gold to 650
                  • Set DiffcultyChosen = 3
                  • Unit - Create 1 Hero (Hard) for Player 1 (Red) at (Position of Circle of Power 0005 &lt;gen&gt;) facing 90.00 degrees
                  • Set HeroChosen = (Last created unit)
                  • Special Effect - Create a special effect attached to the orgin of HeroChosen using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                  • Hero - Create BroadAxe and give it to (Last created unit)
                  • Trigger - Run Lock Camera &lt;gen&gt; (ignoring conditions)
                  • Trigger - Run Hero Hard &lt;gen&gt; (ignoring conditions)
                  • Trigger - Turn on Hero Hard &lt;gen&gt;
                  • Dialog - Show GenericDialog[2] for Player 1 (Red)
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Clicked dialog button) Equal to Dialogbuttons[4]
                    • Then - Actions
                      • Dialog - Clear GenericDialog[1]
                      • Dialog - Hide GenericDialog[1] for (Triggering player)
                      • Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Player - Set (Picked player) handicap to 110.00%)
                      • Player - Set Player 1 (Red) Current gold to 750
                      • Set DiffcultyChosen = 4
                      • Unit - Create 1 Hero (Hard) for Player 1 (Red) at (Position of Circle of Power 0005 &lt;gen&gt;) facing 90.00 degrees
                      • Set HeroChosen = (Last created unit)
                      • Special Effect - Create a special effect attached to the chest of HeroChosen using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                      • Hero - Create BroadAxe and give it to (Last created unit)
                      • Trigger - Run Lock Camera &lt;gen&gt; (ignoring conditions)
                      • Trigger - Run Hero Impossible &lt;gen&gt; (ignoring conditions)
                      • Trigger - Turn on Hero Impossible &lt;gen&gt;
                      • Dialog - Show GenericDialog[2] for Player 1 (Red)
                      • Trigger - Turn off (This trigger)
                    • Else - Actions
                      • Trigger - Turn off (This trigger)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top