Now your first assumption is going to be, (in a very squeaky voice) “wHy wOuLd I evER UsE ThIS gUiDe wHeN tHeRe ArE mAnY oThEr OnEs”, well now (according to my ELA teacher) I’m supposed educate you give you background information.
The difference between other voting systems and this one is that this one shows you the difference between votes. (Now I do my elaboration which for some reason always starts with “For example”) For example, if there were 10 votes for “x” as the best song of the year, and “y” had 4 votes, option 1 would have +6, and option 2 would have +0. That tells me that option y sucks, just like my rizz.
Now there are 2 methods but I’m lazy today so for now there’s only 1.
Forgot to mention, but props to the people who helped me in the help topic, that was the code to making this voting system.
Method 1
Equipment
2 Buttons (Or whatever for you)
+
6 triggers
+
1 repeater trigger
+
2 properties
Step 2
Now connect your button to trigger for option 1
Like this
Button
Trigger
Do that again with option 2
Button
Trigger
Step 3 (Coding time)
Now we will code the trigger that will count for a vote.
*This is trigger 1 from the last step
Now we want to have the trigger add some value to this property, so I made it
Set property value "Option 1" +1
This is how it would look like in the trigger.
Trigger for option 1
And let’s do that with option 2 also
Step 4 (More coding time)
So get another trigger, and let’s call this trigger “Checker trigger”, Checker trigger checks what option has the most amount of votes, and checks if the voting is equal.
My trigger is triggered by another trigger that runs on a .1 second delay that I will show the settings for later.
Checker trigger
Step 5 (More tiring coding time)
So now we’re done with the voting system! Woohoo! Now it’s a normal one but that’s not the goal, the goal is to have it show difference, so don’t celebrate yet.
get your bum back here because there’s more coding!
So now we want it to subtract from the greater option which we already made a checker for.
Which makes me say, we will make two trigger for two different possibilities
First possibility trigger
Another trigger triggered by the same channel
Second possibility trigger
Another trigger triggered by the same channel
Method 2 WIP
Nothing to look at here!
Just me being lazy
() If you know what 2+2 is