Code:
Up()
var/area/A = usr.loc //creates a variable to hold usr.loc
if (A.up) usr.Move(locate(A.up)) //moves player north if possible
else usr << "You can't go there." //otherwise not
Down()
var/area/A = usr.loc //creates a variable to hold usr.loc
if (A.down) usr.Move(locate(A.down)) //moves player north if possible
else usr << "You can't go there." //otherwise not
I did the same thing I did for N,S,E,W directions but I get an undefined procedure error. Am I safe to assume that Up and Down aren't built in? and How do I go about changing it
*edit*
Disregard the area thing. I read in the title that it's for a MUD, and I know that is one method for handling rooms in a MUD.
all you would have to do to define it is switch this...
to...
Also, keep in mind that you will have to figure out how you want to use this procedure. Make it a verb, map to keyboard, etc etc