Vote System

KnightRanger

New Member
Reaction score
1
I need help with a system that every player will vote ar or ap. Then the one with the most votes wins. And if ar is picked 1750 gold is deducted from every player and they are given a random hero. Help plz. Thi sis prob the hardest trigger ive ever tried and im lost
 

KnightRanger

New Member
Reaction score
1
ya i have but i havent found anything like wat im looking for and it seems no one has a clue how to do this
 

millzy

Ultra Cool Member
Reaction score
44
Trigger:
  • VOTE bored
    • Events
      • Time - Elapsed game time is 0.02 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of Vote_Dialog to Mode Select
      • Dialog - Create a dialog button for Vote_Dialog labelled All Random
      • Set Vote_buttons[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Vote_Dialog labelled All Pick
      • Set Vote_buttons[2] = (Last created dialog Button)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Dialog - Show Vote_Dialog for (Picked player)

Trigger:
  • VOTE
    • Events
      • Dialog - A dialog button is clicked for Vote_Dialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Vote_buttons[1]
        • Then - Actions
          • Set Votear = (Votear + 1)
        • Else - Actions
          • Set Voteap = (Voteap + 1)

Trigger:
  • VOTE Selection
    • Events
      • Time - Elapsed game time is x(your votting time) seconds
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Voteap Equal to Votear
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 2) Equal to 1
            • Then - Actions
              • Trigger - Run AR <gen> (ignoring conditions)
            • Else - Actions
              • Trigger - Run AR <gen> (ignoring conditions)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Voteap Greater than Votear
            • Then - Actions
              • Trigger - Run AP <gen> (ignoring conditions)
            • Else - Actions
              • Trigger - Run AR <gen> (ignoring conditions)



then make a ar ap trigger witch does what u want e.g
AR
creats the random heros for the playes and removes cash

AP
leavs cash there lets the players pick there heros
 

KnightRanger

New Member
Reaction score
1
because itd be cool if he labeld the variables seperatly because triggers are def not my strong point and somtimes ill add a variable when there isnt a need for one and such
 
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