for(var/mob/player/M in players)
var/mob/player/p//null//pick(p1,p2,p3,p4)//pick(p1 in players, p2 in players, p3 in players, p4 in players)
var/ppick=rand(1,4)
if(ppick==1) p=p1
if(ppick==2) p=p2
if(ppick==3) p=p3
if(ppick==4) p=p4
sleep(1)
if(M==p)
// spawn()
sleep(130)
//sleep(130)
if(p.client) p.client.screen+=i2
sleep(20)//leep(15)
if(p.client)
p.client.screen-=i2
if(!w1)
w1=p
character("werewolf", p)
Problem description:
Alright. I've played with this code for hours upon hours. It worked, then I adjusted it, then everyone became the wolf on startup, then I thought I had fixed it again but upon revision it was bugged and just always making player 4 the werewolf.
I'm not doing this correctly. I've tried many different ways, all of which are not proving to be successful. Can someone give me a simple way of handling this? I felt like a simple pick() from the list of active players would be suffice but have tried so much more then that since I started dabbling with this.