• 🏆 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!

Tally Dialog Votes Trigger?

Status
Not open for further replies.
Level 18
Joined
Mar 16, 2008
Messages
721
I made this trigger, it seems to work in 1-player tests but live it seems to select option 1 every time? Anyone have any input? Pretty much it compares the integer of the results [1] with math-max of [2] and [3]...

  • Vote Item Results
    • Events
      • Time - Elapsed game time is 30.00 seconds
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ItemDrop_VoteTally[1] Greater than or equal to (Max(ItemDrop_VoteTally[2], ItemDrop_VoteTally[ItemDrop_VoteTally[3]]))
        • Then - Actions
          • Quest - Display to (All players) the Quest Update message: |cffff0000Vote resu...
          • Trigger - Run Warn Items Drop on Death <gen> (ignoring conditions)
          • Wait 2.00 seconds
          • Trigger - Turn off Warn Items Drop on Death <gen>
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ItemDrop_VoteTally[2] Greater than or equal to (Max(ItemDrop_VoteTally[1], ItemDrop_VoteTally[ItemDrop_VoteTally[3]]))
        • Then - Actions
          • Quest - Display to (All players) the Quest Update message: |cffff0000Vote resu...
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ItemDrop_VoteTally[3] Greater than or equal to (Max(ItemDrop_VoteTally[1], ItemDrop_VoteTally[ItemDrop_VoteTally[2]]))
        • Then - Actions
          • Quest - Display to (All players) the Quest Update message: |cffff0000Vote resu...
          • Trigger - Turn off Warn Items Drop on Death <gen>
          • Skip remaining actions
        • Else - Actions
      • Dialog - Hide ItemDrop_Dialog for Player 1 (Red)
      • Dialog - Hide ItemDrop_Dialog for Player 2 (Blue)
      • Dialog - Hide ItemDrop_Dialog for Player 3 (Teal)
      • Dialog - Hide ItemDrop_Dialog for Player 4 (Purple)
      • Dialog - Hide ItemDrop_Dialog for Player 5 (Yellow)
      • Dialog - Hide ItemDrop_Dialog for Player 6 (Orange)
      • Dialog - Hide ItemDrop_Dialog for Player 7 (Green)
      • Dialog - Hide ItemDrop_Dialog for Player 8 (Pink)
      • Dialog - Hide ItemDrop_Dialog for Player 9 (Gray)
      • Dialog - Hide ItemDrop_Dialog for Player 10 (Light Blue)
      • Dialog - Hide ItemDrop_Dialog for Player 11 (Dark Green)
      • Dialog - Hide ItemDrop_Dialog for Player 12 (Brown)
      • Dialog - Hide ItemDrop_Dialog for Player 17 (Wheat)
      • Dialog - Hide ItemDrop_Dialog for Player 18 (Peach)
      • Dialog - Hide ItemDrop_Dialog for Player 19 (Mint)
      • Dialog - Hide ItemDrop_Dialog for Player 20 (Lavender)
 
Level 19
Joined
Feb 27, 2019
Messages
580
I see that you have accidentaly selected:
(Max(ItemDrop_VoteTally[#], ItemDrop_VoteTally[ItemDropVoteTally[#]]))
Shouldnt it be:
(Max(ItemDrop_VoteTally[#], ItemDrop_VoteTally[#]))
 
Last edited:
Status
Not open for further replies.
Top