Hey, I'm having a problem. I'm trying to make a voting system, and in this voting system, it counts the votes. It counts the votes, by looping through a list of players in the list, and checks their Voted var first to see if they voted, then if true, it checks their VotedFor var to see if it voted for the choice, if true, it SHOULD add one vote to that choice's votes. But, that is where I am stuck, I can't figure out how to establish a var for each choice called "Votes." So far, I've tried..
and
var/VotingSystem/Choice/Votes = 0 //lol.
None of them worked, what am I doing wrong?
[EDIT]
Now, instead of looping through the choices AND the players, it just loops through the players, and I made a proc called AddToVote, and it just calls AddToVote(M.VotedFor) once it checks the player's Voted var.
I know this isn't excatly what you asked for, but it should give an idea.
Btw it's totally untested.