Yes, I know, I know, I am circling back to the previous subject to explore a closely related, relevant topic.
I am looking for guidance on how to implement an automated, majority-based voting mechanism for map selection.
If anyone can help, I’ll be pleased! Thank you. Also, while you’re explaining, can you be more enhanced in your guides/methods please? [1] Cause I am really bad at making smart systems.
Read my topic header. The only complication I have is the result system where a specific map has the most votes, the devices runs it’s code/wires and selects it.
No! Aren’t you listening? My last topic didn’t say the word, “Result” don’t you know what “RESULT” means? I want guidance on how to implement an automated, majority-based voting mechanism for map selection. Not voting ONCE, but different.
Automated map voting unilizes persistent player counters and block code logic to compare final, total vote counts, and ensuring the highest-voted map is selected rather then MERELY activated upon the first click.
Put the block in a trigger, and trigger the trigger when the vote is over.
Make a number property for each counter and have the counter update the property. Then, name each property accordingly.
You’d add another if block for each option that can be selected, and put in the same code, but with the name of the next option’s property.
You could also change the naming scheme if you wanted, having each property be named voteOption1, voteOption2 and so on. Then you’d have to change the 12 at the end of the block code to an 11. I have no idea what I was cooking with these property names.
Note that in this block code, ties are resolved by selecting whichever option is first. If you want me to add a better tiebreaker system, let me know!
Ah, i guess i didn’t provide enough info last time. I think more than one person has provided a working function, so I won’t waste time. Hope you find what you are looking for!
Summary
@Mr.GimXD I appreciate it, man. It means a lot that you think I should moderate. This forum needs some work. I’d happily help out. I think zappy and you would too.