ID:178407
 
mob/GM/proc/Start_round()
for(var/mob/M in world)
M.started = 1
world <<"The round has started!"
M.Move(locate(1,1,2))
respawn()

it only moves every user/player to the playing board. how would i make it also call the respawn proc?
ShadowSiientx wrote:
mob/GM/proc/Start_round()
for(var/mob/M in world)
M.started = 1
world <<"<font color = red>The round has started!</font>"
M.Move(locate(1,1,2))
respawn()

it only moves every user/player to the playing board. how would i make it also call the respawn proc?

Close your HTML tags. That won't fix any bugs, but it's annoying when you don't. Just look at your post to see what happens.

The code you've listed should be calling the respawn() proc every time you go through the loop. I don't know whether this proc belongs to a mob, however, or if it's global. If it's a mob proc, you're calling it for the GM, not for M--and I'm guessing M is probably what you want.

Moreover, I'm guessing you probably dont' want to send the same message to everyone in the world a million times, either. Since you're looping through every mob anyway, just change world << ... to M << ... and you should be all set.

If you only want respawn() called once, not for everything in the loop, then unindent it.

Lummox JR