mob/verb/Away()
set desc="Let others know your not here."
set category="Options"
if(usr.away==1)
switch(alert("Your already away. What would you like to do?",,"Change Message","Return"))
if("Change Message")
var/message=input("Enter a new away message.")
if(!message)
usr.awymessage="No reason."
else
usr.awymessage="[message]"
if("Return")
usr.away=0
world << "\blue <b><i>[usr] has returned"
else
switch(alert("What would you like to do?",,"AFK","Return"))
if("AFK")
var/message=input("Enter an away message")
if(!message)
usr.awymessage="No reason."
else
usr.awymessage="[message]"
world << "\red <b><i>[usr] has gone away."
usr.away=1
if("Return")
usr << "Never mind....."
return
Ok heres the problem: This is my hand written away code, which took me overall 5 minutes. but i have errors. almost every line that has switch(alert on it gives me a warning: empty switch statement. Can someone tell me why this is, and patch any other problems this code might have as well? thanks in advance
rein