• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Tally Dialog Votes Trigger?

Status
Not open for further replies.
Level 22
Joined
Mar 16, 2008
Messages
981
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