Dialog won't show up

Eyonix

TH.net Regular
Reaction score
16
In my king of the hill I make dialogs show up for red, choosing the modes.
When it gets to the dialog for choosing the unit spawning style, it never shows up, unless I missed something obvious this triggger is exactly the same as my other working triggers that shows my dialogs. Is there a max amount of dialogs you can show or something?

Heres my trigger thats not working...

Trigger:
  • Dialog5 Hero EXP Rate
    • Events
      • Dialog - A dialog button is clicked for Dialog[5]
    • 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
          • Trigger - Turn on Replace Castles <gen>
          • Game - Display to (All players) the text: Hero Experience gai...
        • 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
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Hero - Make (Picked player) Heroes gain 200.00% experience from future kills
          • Trigger - Turn on Replace Castles <gen>
          • Game - Display to (All players) the text: Hero Experience gai...
        • 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
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Hero - Make (Picked player) Heroes gain 300.00% experience from future kills
          • Trigger - Turn on Replace Castles <gen>
          • Game - Display to (All players) the text: Hero Experience gai...
        • 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
          • Trigger - Turn on Replace CastlesLVL25 <gen>
          • Game - Display to (All players) the text: Hero Experience gai...
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogButtons[5]
        • Then - Actions
          • Trigger - Turn on Replace CastlesLVL50 <gen>
          • Dialog - Clear Dialog[5]
          • Dialog - Change the title of Dialog[6] to Tier Style
          • Dialog - Create a dialog button for Dialog[6] labelled Upgrade automatical...
          • Set DialogButtons[1] = (Last created dialog Button)
          • Dialog - Create a dialog button for Dialog[6] labelled Upgrade Manually
          • Set DialogButtons[2] = (Last created dialog Button)
          • Dialog - Show Dialog[6] for Player 1 (Red)
          • Game - Display to (All players) the text: Hero Experience gai...
        • Else - Actions

I know that 1,2,3,4 buttons don't have any actions to display a dialog atm but it doesn't matter because in game im picking start at lvl 50 atm for testing.


Example of a trigger that does work.

Trigger:
  • Dialog3 Speed Mode
    • Events
      • Dialog - A dialog button is clicked for Dialog[3]
    • 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 Dialog[3]
          • Dialog - Change the title of Dialog[4] to Speed Percent Incre...
          • Dialog - Create a dialog button for Dialog[4] labelled 200%
          • Set DialogButtons[1] = (Last created dialog Button)
          • Dialog - Create a dialog button for Dialog[4] labelled 300%
          • Set DialogButtons[2] = (Last created dialog Button)
          • Dialog - Create a dialog button for Dialog[4] labelled 400%
          • Set DialogButtons[3] = (Last created dialog Button)
          • Dialog - Create a dialog button for Dialog[4] labelled 500%
          • Set DialogButtons[4] = (Last created dialog Button)
          • Dialog - Show Dialog[4] for Player 1 (Red)
          • Trigger - Turn on Dialog4 Speed Percent <gen>
          • Game - Display to (All players) the text: Speed Mode set to: ...
        • 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 Dialog[3]
          • Dialog - Change the title of Dialog[5] to Hero Experience Gai...
          • Dialog - Create a dialog button for Dialog[5] labelled Normal
          • Set DialogButtons[1] = (Last created dialog Button)
          • Dialog - Create a dialog button for Dialog[5] labelled 200%
          • Set DialogButtons[2] = (Last created dialog Button)
          • Dialog - Create a dialog button for Dialog[5] labelled 300%
          • Set DialogButtons[3] = (Last created dialog Button)
          • Dialog - Create a dialog button for Dialog[5] labelled Start at level 25
          • Set DialogButtons[4] = (Last created dialog Button)
          • Dialog - Create a dialog button for Dialog[5] labelled Start at level 50
          • Set DialogButtons[5] = (Last created dialog Button)
          • Dialog - Show Dialog[5] for Player 1 (Red)
          • Game - Display to (All players) the text: Speed Mode set to: ...
        • Else - Actions
 

Sneakster

Active Member
Reaction score
24
The dialog you click the button for is dialog 5. In your actions, you say to clear dialog 6 and change the title and whatnot. Couldn't that be a problem? Could you be referencing the wrong dialog?
 

Yoshii

New Member
Reaction score
74
you are clearing and changing title of the same Dialog
Trigger:
  • # Dialog - Clear Dialog[6]
    • # Dialog - Change the title of Dialog[6] to Tier Style

??
 

Eyonix

TH.net Regular
Reaction score
16
No it shouldn't because its the first line, the title and buttons are being changed after the clear line, but to make sure I changed it and it still didn't work.

edit: yeah i meant to make it clear 5, but it didn't matter
edit2: I also increased the array size for my dialog variable and that didn't matter either.
 

Yoshii

New Member
Reaction score
74
No it shouldn't because its the first line, the title and buttons are being changed after the clear line, but to make sure I changed it and it still didn't work.

edit: yeah i meant to make it clear 5, but it didn't matter
edit2: I also increased the array size for my dialog variable and that didn't matter either.
is the game text shown at all? aka "hero gained bla bla text"
 

Eyonix

TH.net Regular
Reaction score
16
Yeah the text is shown in game

edit: :nuts: I just changed it so instead of dialog[6] it did the same trigger for dialog[7] and it works.... But I checked all my triggers I never used dialog[6] before that part
 

Yoshii

New Member
Reaction score
74
Yeah the text is shown in game
so you made sure your array size of your dialog is high enoug?
Try to use different button number (5-8) (dont forgot to increase array size) and see what happen but then again if the dialog doesnt even show up its probably not the button
 
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