voidstep()
var/vtimer=0
var/vstepped=0
for(var/turf/Void/Void1/M in world)vstepped=1
loop
spawn(100)
if(vstepped==1)
vtimer++
usr<<output("<font color=white><b>You have been on the void for [vtimer] seconds.","infobox")
if(vtimer==10)
usr<<output("<font color=white><b>You have been jailed.","infobox")
vstepped=0
else
goto loop
Problem description: This is the first time I'm trying something. Im coding this in a NNG rip just to try it out. What I want it to do is when you are on the "Void" turf it outputs every second in a timer fashion and then after ten seconds I want it to put them in jail. (I know I havent put the actual code to put them in jail, I can figure that out myself). It causes major lag and since this turf is used nearly everywhere, everytime I step on it (even if it is a different tile) it outputs a new timer. I hope this is enough for you to help me.
By the way, I don't even know why have you used this line.
Sounds crazy to me to check all the "voids" on the world for a single step made on a void... Anyway, you haven't told us when is voidstep() called...