I've been trying to think of how I would accomplish this, but I really can't figure out a way. Sometimes in my game, this code will pick the same person, over and over again. When someone becomes IT, I want their probability to go down. When someone isn't IT, their probability should go up. Is there a way to accomplish this?
proc/PickRandomPlayer()
if(!players.len) return
var/mob/M = pick(players) // Right here is where I want to make it pick a random player based on their probability.
world << "<font size=4><font color=#FF9900>[M] is IT!</font></font>"
Sorry if that isn't clear enough, but I tried. So ask questions if you need to.
-KirbyAllStar
Watch out for bad indentations, I made the code right in this text box.