if(findtext(wish,"revive")||findtext(wish,"revival")||findtext(wish,"rev")||findtext(wish,"life"))
var/list/deadpeeps = list()
for(var/mob/characters/M in world)
if(M.dead==1)
deadpeeps+=M
var/obj/P=input("Who do you wish to revive?","Revival","") in deadpeeps
switch(alert("Are you sure you want to wish for the revival of [P]?","[P]","Yes","No"))
if("Yes")
switch(alert(P,"[src] is trying to revive you, do you wish to let him?","Revive?","Yes","No"))
if("Yes")
if(P.revived<=0)
P.revived+=1
world<<"<b>[src] has wished [P] back to the living!"
P<<"<b><b>You feel your body getting revived!!!"
P.powerlevel=P.maxpowerlevel
P.ki=P.maxki
P.str=P.maxstr
P.stamina=150
P.dead=0
P.overlays-=/obj/halo
P.overlays-='halo.dmi'
P.overlays-=/obj/halo
P.overlays-='halo.dmi'
P.overlays-=/obj/halo
P.overlays-='halo.dmi'
break
else
src<<"<b>You tried to revive [P], but [P] has already been revived once by the dragonballs."
P<<"<b>[src] tried to revive you, but you have already been revived once by the dragonballs."
goto WISH
else
var/reason=input(P,"Tell [src] why you don't wish to be revived yet.","Reason") as null|text
src<<"<b>You tried to revive [P], but [P] does not wish to be revived yet, because '[reason]'."
goto WISH
else
src<<"<b>Ok..."
goto WISH
else
src<<"<b>No one is in need of revival."
goto WISH
It does allthe prompts, but...my problem is this, it always says no one is in need of revival even if there's like 100 people dead :-\(Sorry about the indentation, long code.)