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

Tally Dialog Votes Trigger?

Status
Not open for further replies.
Level 18
Joined
Mar 16, 2008
Messages
722
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)
 
Status
Not open for further replies.
Top