StartChunintest()
if(Chunin>1)
return
Chunintakers=0
world<<"<font size=2><font color=green>CHUNIN EXAM HAS JUST STARTED RIGHT CLICK TO TAKE TEST!!!"
Chunin=2
var/mob/M
sleep(2400)
for(M in world)
if(M.chunin>0)
M<<"<font size=2><font color=red>You have 1 minute to complete the exam"
sleep(600)
if(Chunintakers<2)
M<<"<font size=2><B><font color=red>There were not enough people to start the next part."
M.chunin=0
Chunin=0
M.loc=M.Spawn
M.Attacking=0
Heavens=0
Earths=0
for(var/obj/Heaven_Scroll/H in M.contents)
del(H)
for(var/obj/Earth_Scroll/E in M.contents)
del(E)
M.verbs-=typesof(/mob/chunin/verb)
return
else
Startforest()
Startforest()
if(Chunin>2)
return
Chunintakers=0
var/mob/M
Chunin=3
for(M in world)
if(M.chunin==1)
alert("Sorry but you failed the test work on your observation skills")
usr.chunin=0
usr.loc=usr.Spawn
usr.chunintest=0
usr.freeze=0
usr.cheated=0
usr.caught=0
usr.verbs-=/mob/chunin/verb/Cheat
usr.Attacking=0
return
if(M.chunin>1)
M<<"<font size=2><font color=red>You will enter the forest in.."
M<<"<font size=2><font color=red>5"
sleep(10)
M<<"<font size=2><font color=red>4"
sleep(10)
M<<"<font size=2><font color=red>3"
sleep(10)
M<<"<font size=2><font color=red>2"
sleep(10)
M<<"<font size=2><font color=red>1"
sleep(10)
if(M.cgate==1)
M.loc=locate(48,4,17)
if(M.cgate==2)
M.loc=locate(48,4,17)
if(M.cgate==3)
M.loc=locate(48,4,17)
if(M.cgate==4)
M.loc=locate(48,4,17)
if(M.cgate==5)
M.loc=locate(48,4,17)
if(M.cgate==6)
M.loc=locate(48,4,17)
if(M.cgate==7)
M.loc=locate(48,4,17)
if(M.cgate==8)
M.loc=locate(48,4,17)
M<<"<font size=2><font color=red>You have 10 minutes to kill someone with the other scroll"
sleep(5400)
M<<"<font size=2><font color=red>You have 1 minute to kill someone with the other scroll"
sleep(600)
for(M in world)
if(M.chunin<3)
M<<"<font size=2><B><font color=red>You did not pass the forest of death"
M.chunin=0
M.loc=M.Spawn
M.Attacking=0
Heavens=0
Earths=0
for(var/obj/Heaven_Scroll/H in M.contents)
del(H)
for(var/obj/Earth_Scroll/E in M.contents)
del(E)
if(Chunintakers==1)
if(M.chunin==3)
M<<"<font size=2><B><font color=red>Congratulations you were the only one to pass the forest."
M.rank="Chunin"
M.loc=M.Spawn
M.Attacking=0
M.chunin=0
M.chuninlevel()
Problem description:
Ok Im trying to make an auto chunin exam and it works ok except the for(M in world)...and yes the M is defined as a mob...doesnt always include all the players. If you need the end of the chunin test and what it does i can post that also but any help would be appreciated.
Also, no usr in procs.