There are a lot of voting systems out there and many of them work really well but they aren’t very beginner-friendly. I have developed this voting system to be simple and use the least amount of memory as possible. This system requires all options being voted on to be preset by the map-maker. I have made a recent change that allows the uses to have an unlimited number of options.
Pre-Set
The system only requires 1 counter, 1 property, and 1 screen overlay for each option being voted on. The trigger and Max properties are used to calculate which option gets the most votes.
- Properties
Max
Option
I recommend that these options are labeled the same as they will be in the overlays but it is not necessary.
Variable
Variable is used to keep track witch option is being checked
players
players is the number of players in the game.
Winner
This is the option that won the vote.
- Trigger
Right
Everything for the trigger takes place in blocks.
This is the only part of this system that is complex but basically what is happening here is that we are changing the variable property so we can use this one system to check an unlimited amount of options. IMPORTANT: There has to be a space after option without it the system won’t work.
Left
This trigger is used to reactivate the right trigger.
Wires
Left–>Right
-
Pop-Up
The close(#) channel is used to close the pop-up after. The name is just a placeholder and is what the player will be voting for.
-
Counter
The counter’s job is pretty simple it just keeps track of how many times something has been voted for.
Counter(far left)
-
Wires
To connect each popup together.
-
Life Cycle
activates the relay on game start(no changes needed)
Wires
- Relay
No changes needed. This is a trick I discovered while working on a different map that allows you to get the exact number of players in a given game. By having the relay relay for each player and then incrementing a counter that counter will increment once for each player(as long as it is set to global)
Wires
Players
Here is where “beginner” ends, this system is very complicated but does a really good job. This part took me a while to develop but it’s finally done. This system automatically creates a voting setup for each player in the game. The system takes 2.5% memory(2562) to set up then 1/50th of a percent for each player after(20). There are four parts to this system the Set-Up, Voting, Calculation, and Properties.
Set-Up
- Life Cycle
Wires
Both same
- Relay
Left
Left: Wires
Right
Right: Wires
Both same
-
Team Switch
-
Wire Repeater
Wires
- Trigger
Blocks
- Counters
Up
Down
- Properties
players
total players
Voting
- Trigger
Trigger this to start the voting
Wires
- Wire Repeater
Wires
- Pop-Up
Blocks
Wire Pulse
vote
Properties
- Properties
Sort
#
This is the names of each player need one for each player in the game(it’s fine to have too many)
# votes
The number of votes for each player(# corresponds to the previous property)
vote
- Counter