Taxi Code in Developer Help
|
|
My taxi code does not work correctly., Here are the verbs. I can not seem to get the eye to focus correctly. Also I do not know how to get Leave_Taxi to only work if you are the taxi or if you are in the taxi.
verb Call_Taxi() set src in oview(5) if(!carrying) moving = 0 usr << "You flagged down a taxi." spawn(50) moving = 1 else usr << "The taxi seems to ignore you." Get_In() set src in oview(1) if(carrying) usr << "The taxi is full" return if(moving) usr << "You can not get in a moving vehicle!" return if(usr.client) usr.client.eye = src carrying = usr usr.loc = src.contents view() << "[usr] gets in a taxi." moving = 1 Leave_Taxi() moving = 0 if(usr.loc != src.contents) usr.client.mob = usr.client.oldmob var/mob/M = usr.client.oldmob M.Move(src.loc) else usr.Move(src.loc) usr.client.eye = usr.client.mob carrying = null moving = 1
|
|