mob/proc/DTAlert(mob/judge,mob/killer)
judge << switch(alert("[killer] is guilty of a school kill. Would you like to send them to detention?",,"Yes","No"))
if("Yes")
flick('Apparate.dmi',killer)
killer.loc=locate(19,78,2)
world<<"<b>[killer] has been put in detention by [M].</b>"
killer.jailed = 1
killer.spelllocked = 1
killer.Muted = 1
else
M << "That's fine."
Problem description:
I'm trying to make it so that mob/judge receives a popup message whenever this proc is activated. I get an error saying that switch is an undefined proc.
http://www.byond.com/docs/ref/info.html#/proc/alert