Vote for mode?

Hot

New Member
Reaction score
9
How can i do a Vote system like this?

if a player types -Easy/Medium/Hard

and if over 50% of the players vote yes for Medium
then X actions happens'

there is max 8 players in game
 

Yoshii

New Member
Reaction score
74
How can i do a Vote system like this?

if a player types -Easy/Medium/Hard

and if over 50% of the players vote yes for Medium
then X actions happens'

there is max 8 players in game
GameMode
Trigger:
  • Events
    • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of GameMode to Choose the game dif...
      • Dialog - Create a dialog button for GameMode labelled Normal
      • Set GameDifficulty[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for GameMode labelled Tough
      • Set GameDifficulty[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for GameMode labelled Godlike
      • Set GameDifficulty[3] = (Last created dialog Button)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Dialog - Show GameMode for (Picked player)

then
GameModeVote
Trigger:
  • Events
    • Dialog - A dialog button is clicked for GameMode
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to GameDifficulty[1]
        • Then - Actions
          • Set VoteCount[1] = (VoteCount[1] + 1)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to GameDifficulty[2]
            • Then - Actions
              • Set VoteCount[2] = (VoteCount[2] + 1)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to GameDifficulty[3]
                • Then - Actions
                  • Set VoteCount[3] = (VoteCount[3] + 1)
                • Else - Actions

then
VoteTotaling
Trigger:
  • Events
    • Time - Elapsed game time is 8.00 seconds
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • VoteCount[1] Equal to VoteCount[2]
              • VoteCount[2] Equal to VoteCount[3]
        • Then - Actions
          • Set GameDifficultyChosen = 2
          • Game - Display to (All players) the text: GAME MODE: TOUGH
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VoteCount[1] Greater than VoteCount[2]
              • VoteCount[1] Greater than VoteCount[3]
            • Then - Actions
              • Set GameDifficultyChosen = 1
              • Game - Display to (All players) the text: GAME MODE: NORMAL
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VoteCount[3] Greater than VoteCount[2]
                  • VoteCount[3] Greater than VoteCount[1]
                • Then - Actions
                  • Set GameDifficultyChosen = 3
                  • Game - Display to (All players) the text: GAME MODE: GODLIKE
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • VoteCount[2] Greater than VoteCount[1]
                      • VoteCount[2] Greater than VoteCount[3]
                    • Then - Actions
                      • Set GameDifficultyChosen = 2
                      • Game - Display to (All players) the text: GAME MODE: TOUGH
                    • Else - Actions

you can forget the Set gamedifficult=X part thats for my game to help me activate certain part of other trigger depending on difficulty chosen
 

Hot

New Member
Reaction score
9
Thx i will try it tomorrw +rep

Edit dialog buttons works fine to ^^
 

Yoshii

New Member
Reaction score
74
that does not work. cause he asked for when player types 'easy'' they vote for easy
dont be silly ; a game mode is normaly chosen at game start, if not then change my trigger from game time 2sec to "player type -gamemode or to your liking.If you were to do it via -easy -normal -hard thats 3 times the trigger to do the same thing unless you do it via substring but thats more difficult for some people to achive the same outcome
 
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