Sounds easy, but I'm a bit stumped. What I'm doing is sort of like a voting system...

Say that I have 3 levels, and 3 players... right now I have the following:

Local Number Level1=0

Local Number Level2=0

Local Number Level3=0

Then it checks to see which player has selected which level, so lets assume that they have selected it like this:

Local Number Level1=0

Local Number Level2=2

Local Number Level3=1

How would I write an action sequence, that would let me know "Level2 is the greatest"?... and if there is a tie in 'first place', to randomly pick one? Perhaps not using Local Numbers would be an easier ways... thoughts?