obj/Carrier
var
carrier
Traveltime = 0
verb/Send_Message(var/mob/M in world)
set in view(1)
switch(alert("Are you sure you want to send a message? It'll take awhile",,"Yes","No"))
if("Yes")
if(Traveltime == 0)
if(!M||!ismob(M)) return
var/CarriMess=input(src,"Who would you like to send it to") as text
if(!CarriMess) return
carrier=CarriMess
if(M.z>=usr.z||M.z<=usr.z)
src<<output("Send")
Traveltime = 1
sleep(18000)
Traveltime = 0
M<<output("A carrier appears with a note.")
sleep(50)
switch(input(M,"Read?") in list("Yes","No"))
if("Yes")
M<<output("[carrier]")
src<<output("The carrier has delivered the message")
else
src<<output("Send")
sleep(500)
M<<output("A carrier appears with a note.")
sleep(50)
switch(input(M,"Read?") in list("Yes","No"))
if("Yes")
M<<output("[Bird]")
src<<output("The carrier has delivered the message")
else
usr<<output("Wait please.")
Problem description:
So. The problems I am having is with the alert and input, no matter how I write it to my knowledge of this process it continues to give me errors.
carrier:9:error: alert: bad variable definition
carrier:9:error: switch: invalid variable name: reserved word
carrier:18:error: =: expected a constant expression