world
view = 8
New()
..()
spawn(5) showscores()
spawn(5) endgame()
proc
endgame()
if(scorered == scoretowin||scoreblue == scoretowin)
world<<"<center><b><Font color = green><font size = 1>Winning score reached! Congratulations winning team!"
scorered = 0
scoreblue = 0
world<<"<center><b>Restarting the match in 5...."
sleep(10)
world<<"<center><b>Restarting the match in 4...."
sleep(10)
world<<"<center><b>Restarting the match in 3...."
sleep(10)
world<<"<center><b>Restarting the match in 2...."
sleep(10)
world<<"<center><b>Restarting the match in 1...."
sleep(10)
world<<"<center><b><font color = green> GO! GO! GO!"
for(var/mob/M)
if(M.team == "blue"&&M.client)
M.loc = locate(5,5,1)
if(M.team == "red"&&M.client)
M.loc = locate(143,143,1)
scorered = 0
scoreblue = 0
else
sleep(30)
endgame()
proc
showscores()
world.status = "<B><font size = -2><font color = red>Red team: [scorered]</font> <font color = blue>Blue team: [scoreblue]</font>"
sleep(100)
showscores()
Problem description:
im not sure if this is correct way to make the proc repeat every.... 10 seconds? I noticed few errors showing the showscores proc and the other but im not sure. anyone can tell me what i can do to improve this looping?