I am wondering how I would go about making code that increases the chance of becoming a traitor each round by 15% if you were not a traitor last round.
I currently have this code:
if IsValid(pply) and
((not table.HasValue(prev_roles[ROLE_TRAITOR], pply)) or (math.random(1, 3) == 2)) then
ts = ts + 1
But this only works for the last round.
Any help would be appreciated.