This will display the string list: n|n|n|w|e|open door|n
User comments
Anaristos: Tue Nov 27, 2007 9:43 am
Code:
#ECHO %pathexpand(3nwe;open door;n)
fails because for some reason the ";" causes the entire string (starting with #ECHO) to be send to the MUD as a command.
However,
Code:
#ECHO %pathexpand(3nwen)
works.
Zugg: Wed Nov 28, 2007 11:16 pm
That is because the %pathexpand function is expecting a *string* argument and the ; characters are not allowed. You should put " quotes around your path, like this:
Code:
#ECHO %pathexpand("3nwe;open door;n")
and then it will work fine. I have fixed the help article to include the quotes.
Also remember to make sure you have the English Directions (or similar) package loaded when using paths. If you test the above examples in a blank session they will not work because a blank session doesn't load any Directions package.