FFA_Check(var/mob/M in Entries)
fight
if(M.z==3)
world<<"<font color=red><b>[M] has been eliminated!"
M.tourny = 0
Entries.Remove(M)
Winners.Remove(M)
M.AllorNone = 0
goto fight
if(Entries.len>1)
sleep(5)
FFA_Check()
if(Entries.len==1)
tournament=0
world<<"Tournament over, winner is:"
for(var/mob/N in Entries)
world<<N
Winners.Add(N)
Entries.Remove(N)
Problem description: Im trying to come up with a code that checks for players who have died in free for all. When I do it though, nothing happens, and its been pissing me off. Any help would be appreciated.
http://www.byond.com/docs/guide/
http://www.byond.com/docs/ref/index.html
http://www.byond.com/forum/?forum=22
As for your issue- You don't want to use goto loops, that's for-sure. Then you don't want to base your work off someone else's- especially when it's making a new system.
*Use while() loops, don't call the same proc over and over by sleep() procName(), FFA_Check(var/mob/M in Entries does nothing here.
[EDIT] I saw this yesterday and didn't want to touch it, since it seems you're working on a dbz rip with a tournament code in it. In which case, I don't know why you check the z and not the dead variable. [END EDIT]