I currently have my working voting system to select between 3 different options, Terran, Protoss and Zerg. I've seen plenty of tutorials for voting but all of them either only include 2 options for the user, or doesn't include a random option (so if option 1 and 3 tie then it will automatically select option 1).
How can I go about setting up this random option? Currently I have lots of IF statements that checks option 1 votes against 2 votes, then 1 against 3 and so on, but there are just so many that I've become lost. Is there a simple way to do what I need?
EDIT: I came up with a solution for my problem (even though I am certain there are easier options), however I have another voting system after this that has 6 options. If I wanted to implement my solution for my first problem into this problem, then that would mean a ton more code. So does anybody have any ideas as to what I could do?
I currently have my working voting system to select between 3 different options, Terran, Protoss and Zerg. I've seen plenty of tutorials for voting but all of them either only include 2 options for the user, or doesn't include a random option (so if option 1 and 3 tie then it will automatically select option 1).
How can I go about setting up this random option? Currently I have lots of IF statements that checks option 1 votes against 2 votes, then 1 against 3 and so on, but there are just so many that I've become lost. Is there a simple way to do what I need?
EDIT: I came up with a solution for my problem (even though I am certain there are easier options), however I have another voting system after this that has 6 options. If I wanted to implement my solution for my first problem into this problem, then that would mean a ton more code. So does anybody have any ideas as to what I could do?