Revive_world()
set category = "GM"
for(var/mob/PC/M in world)
if(M.dead)
if(!M.pk)
M.powerlevel = M.powerlevel_max
M.overlays -= M.halo
M.overlays -= halo
M.overlays -= M.halo
M.overlays -= halo
M.loc = locate(67,42,1)
M.safe = 1
M.dead = 0
M.charging = 0
M.charging1 = 0
world<<"[usr] is reviving people"
sleep(300)
if(!M)return
M.safe = 0
else
M.powerlevel = M.powerlevel_max
M.overlays -= M.halo
M.overlays -= halo
M.overlays -= M.halo
M.overlays -= halo
M.loc = locate(54,175,1)
M.safe = 1
M.dead = 0
world<<"[usr] is reviving people"
sleep(300)
if(!M)return
M.safe = 0
Problem description:
Alright some of you can probably spot similarities in the vars but thats not the point.
I got stuck at the point why for(var/mob/PC/M in world) doesnt affect all PC mobs at once. I have to keep clicking the verb. Same happened to my bomb verb(which is currently a disabled project) it explodes but only kills one person...
Which will make the loop continue without reaching the code below the usage. You'll also want to add a spawn() somewhere in the loop if you want the action happening to everyone all at once, otherwise it happens to them one at a time as the loop goes through the mobs.