ID:2193156
 
Code:proc/startexamfight()
for(var/mob/M in world)
if(M.login)
if(M.atwr==1)
M<<"Wait your turn, soon you can show what are you capable of!"
sleep(15)
M<<"1 minute to start!"
sleep(600)
this



Problem description: Every play who joined in a tower will change her var: "atwr" to 1. The problem is this, only first player who joined in tower read the messages as "Wait your turn, soon you can show what are you capable of!", the others players who joined in tower didn't read the message. Don't have any error on dream maker and dream deamon don't have too

Because of the sleep() usage in the loop it'll wait for each step to complete before moving on to the next, you'd want to spawn() off the loop body so it can continue with each step regardless of whether the previous has finished yet.