• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] [solved] Confused Why Trigger Is Not Running / Dialog Menu

Status
Not open for further replies.
Level 18
Joined
Mar 16, 2008
Messages
721
I just tested between player 3 and player 5 and dialog menu didn't pop up for player 3. Any insight why would be appreciated. Thank you.

edit: changed a few small things in the trigger but the dialog still isn't popping up. i confirmed the conditions are ok, just the dialog isn't popping up... hmm...

  • Request Knight Gold
    • Events
      • Player - Player 5 (Yellow) types a chat message containing -request as A substring
      • Player - Player 6 (Orange) types a chat message containing -request as A substring
      • Player - Player 7 (Green) types a chat message containing -request as A substring
      • Player - Player 8 (Pink) types a chat message containing -request as A substring
      • Player - Player 9 (Gray) types a chat message containing -request as A substring
      • Player - Player 10 (Light Blue) types a chat message containing -request as A substring
      • Player - Player 11 (Dark Green) types a chat message containing -request as A substring
      • Player - Player 12 (Brown) types a chat message containing -request as A substring
      • Player - Player 17 (Wheat) types a chat message containing -request as A substring
      • Player - Player 18 (Peach) types a chat message containing -request as A substring
      • Player - Player 19 (Mint) types a chat message containing -request as A substring
      • Player - Player 20 (Lavender) types a chat message containing -request as A substring
    • Conditions
      • (Integer((Substring((Entered chat string), 10, 15)))) Greater than or equal to 1
      • (Integer((Substring((Entered chat string), 10, 15)))) Less than or equal to 99999
      • Or - Any (Conditions) are true
        • Conditions
          • ((Triggering player) is in Group1Red.) Equal to True
          • ((Triggering player) is in Group2Blue.) Equal to True
          • ((Triggering player) is in Group3Teal.) Equal to True
          • ((Triggering player) is in Group4Purp.) Equal to True
    • Actions
      • Set VariableSet Request_Amount_String[(Player number of (Triggering player))] = (Substring((Entered chat string), 10, 15))
      • Set VariableSet Request_Amount_Integer[(Player number of (Triggering player))] = (Integer(Request_Amount_String[(Player number of (Triggering player))]))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering player) is in Group1Red.) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Request_Amount_Integer[(Player number of (Triggering player))] Less than or equal to (Player 1 (Red) Current gold)
            • Then - Actions
              • Dialog - Clear Request_Menu[(Player number of (Triggering player))]
              • Dialog - Change the title of Request_Menu[(Player number of (Triggering player))] to (Request_Player[(Player number of (Triggering player))] + ( knight requests + Request_Amount_String[(Player number of (Triggering player))]))
              • Dialog - Create a dialog button for Request_Menu[(Player number of (Triggering player))] labelled Request_Deny_String
              • Set VariableSet Request_Deny_Button[(Player number of (Triggering player))] = (Last created dialog Button)
              • Dialog - Create a dialog button for Request_Menu[(Player number of (Triggering player))] labelled Request_Grant_String
              • Set VariableSet Request_Grant_Button[(Player number of (Triggering player))] = (Last created dialog Button)
              • Dialog - Show Request_Menu[(Player number of (Triggering player))] for Player 1 (Red)
              • Countdown Timer - Pause Request_Hide_Timer[(Player number of (Triggering player))]
              • Countdown Timer - Start Request_Hide_Timer[(Player number of (Triggering player))] as a One-shot timer that will expire in 10.00 seconds
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Request_Amount_Integer[(Player number of (Triggering player))] Greater than (Player 1 (Red) Current gold)
            • Then - Actions
              • Quest - Display to (Player group((Triggering player))) the Quest Failed message: |cffffff00Error|r: ...
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering player) is in Group2Blue.) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Request_Amount_Integer[(Player number of (Triggering player))] Less than or equal to (Player 2 (Blue) Current gold)
            • Then - Actions
              • Dialog - Clear Request_Menu[(Player number of (Triggering player))]
              • Dialog - Change the title of Request_Menu[(Player number of (Triggering player))] to (Request_Player[(Player number of (Triggering player))] + ( knight requests + Request_Amount_String[(Player number of (Triggering player))]))
              • Dialog - Create a dialog button for Request_Menu[(Player number of (Triggering player))] labelled Request_Deny_String
              • Set VariableSet Request_Deny_Button[(Player number of (Triggering player))] = (Last created dialog Button)
              • Dialog - Create a dialog button for Request_Menu[(Player number of (Triggering player))] labelled Request_Grant_String
              • Set VariableSet Request_Grant_Button[(Player number of (Triggering player))] = (Last created dialog Button)
              • Dialog - Show Request_Menu[(Player number of (Triggering player))] for Player 1 (Red)
              • Countdown Timer - Pause Request_Hide_Timer[(Player number of (Triggering player))]
              • Countdown Timer - Start Request_Hide_Timer[(Player number of (Triggering player))] as a One-shot timer that will expire in 10.00 seconds
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Request_Amount_Integer[(Player number of (Triggering player))] Greater than (Player 2 (Blue) Current gold)
            • Then - Actions
              • Quest - Display to (Player group((Triggering player))) the Quest Failed message: |cffffff00Error|r: ...
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering player) is in Group3Teal.) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Request_Amount_Integer[(Player number of (Triggering player))] Less than or equal to (Player 3 (Teal) Current gold)
            • Then - Actions
              • Dialog - Clear Request_Menu[(Player number of (Triggering player))]
              • Dialog - Change the title of Request_Menu[(Player number of (Triggering player))] to (Request_Player[(Player number of (Triggering player))] + ( knight requests + Request_Amount_String[(Player number of (Triggering player))]))
              • Dialog - Create a dialog button for Request_Menu[(Player number of (Triggering player))] labelled Request_Deny_String
              • Set VariableSet Request_Deny_Button[(Player number of (Triggering player))] = (Last created dialog Button)
              • Dialog - Create a dialog button for Request_Menu[(Player number of (Triggering player))] labelled Request_Grant_String
              • Set VariableSet Request_Grant_Button[(Player number of (Triggering player))] = (Last created dialog Button)
              • Dialog - Show Request_Menu[(Player number of (Triggering player))] for Player 1 (Red)
              • Countdown Timer - Pause Request_Hide_Timer[(Player number of (Triggering player))]
              • Countdown Timer - Start Request_Hide_Timer[(Player number of (Triggering player))] as a One-shot timer that will expire in 10.00 seconds
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Request_Amount_Integer[(Player number of (Triggering player))] Greater than (Player 3 (Teal) Current gold)
            • Then - Actions
              • Quest - Display to (Player group((Triggering player))) the Quest Failed message: |cffffff00Error|r: ...
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering player) is in Group4Purp.) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Request_Amount_Integer[(Player number of (Triggering player))] Less than or equal to (Player 4 (Purple) Current gold)
            • Then - Actions
              • Dialog - Clear Request_Menu[(Player number of (Triggering player))]
              • Dialog - Change the title of Request_Menu[(Player number of (Triggering player))] to (Request_Player[(Player number of (Triggering player))] + ( knight requests + Request_Amount_String[(Player number of (Triggering player))]))
              • Dialog - Create a dialog button for Request_Menu[(Player number of (Triggering player))] labelled Request_Deny_String
              • Set VariableSet Request_Deny_Button[(Player number of (Triggering player))] = (Last created dialog Button)
              • Dialog - Create a dialog button for Request_Menu[(Player number of (Triggering player))] labelled Request_Grant_String
              • Set VariableSet Request_Grant_Button[(Player number of (Triggering player))] = (Last created dialog Button)
              • Dialog - Show Request_Menu[(Player number of (Triggering player))] for Player 1 (Red)
              • Countdown Timer - Pause Request_Hide_Timer[(Player number of (Triggering player))]
              • Countdown Timer - Start Request_Hide_Timer[(Player number of (Triggering player))] as a One-shot timer that will expire in 10.00 seconds
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Request_Amount_Integer[(Player number of (Triggering player))] Greater than (Player 4 (Purple) Current gold)
            • Then - Actions
              • Quest - Display to (Player group((Triggering player))) the Quest Failed message: |cffffff00Error|r: ...
            • Else - Actions
        • Else - Actions
 
Last edited:
Level 18
Joined
Mar 16, 2008
Messages
721
@Daffa thank you for your attention.

Yes, both show when debugging/quest text pop up: the request amount shows up as entered for both the string and integer variable

There’s no dialog currently showing when this trigger runs. There is a previous dialog but it's hidden by the time this runs. Hmm...

All of these Quest - Display actions show depending on the value of the integer:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Triggering player) is in Group1Red.) Equal to True
    • Then - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Request_Amount_Integer[(Player number of (Triggering player))] Less than or equal to (Player 1 (Red) Current gold)
        • Then - Actions
          • Quest - Display to (All players) the Quest Update message: works
          • Quest - Display to (All players) the Quest Update message: Request_Amount_String[(Player number of (Triggering player))]
          • Quest - Display to (All players) the Quest Update message: (String(Request_Amount_Integer[(Player number of (Triggering player))]))
          • Dialog - Clear Request_Menu[(Player number of (Triggering player))]
          • Dialog - Change the title of Request_Menu[(Player number of (Triggering player))] to (Request_Player[(Player number of (Triggering player))] + ( knight requests + Request_Amount_String[(Player number of (Triggering player))]))
          • Dialog - Create a dialog button for Request_Menu[(Player number of (Triggering player))] labelled Request_Deny_String
          • Set VariableSet Request_Deny_Button[(Player number of (Triggering player))] = (Last created dialog Button)
          • Dialog - Create a dialog button for Request_Menu[(Player number of (Triggering player))] labelled Request_Grant_String
          • Set VariableSet Request_Grant_Button[(Player number of (Triggering player))] = (Last created dialog Button)
          • Dialog - Show Request_Menu[(Player number of (Triggering player))] for Player 1 (Red)
          • Countdown Timer - Pause Request_Hide_Timer[(Player number of (Triggering player))]
          • Countdown Timer - Start Request_Hide_Timer[(Player number of (Triggering player))] as a One-shot timer that will expire in 10.00 seconds
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Request_Amount_Integer[(Player number of (Triggering player))] Greater than (Player 1 (Red) Current gold)
        • Then - Actions
          • Quest - Display to (Player group((Triggering player))) the Quest Failed message: |cffffff00Error|r: ...
        • Else - Actions
    • Else - Actions
 
Status
Not open for further replies.
Top