ID:170029
 
NOTE: This post assumes knowledge of AbyssDragon's Parser Lib.

I would like to have it so that if a player wants to use an exit called "A dark hole", he can simply type "dark" or "hole" from the command line to run the correct movement procs.

I know I need a parser to even get someting like this started, so I chose AbyssDragon's. It seems to me that I can do this:

Parser
var
Allowed = list(/Commands,/exit)


And, my idea was to add the var/format to my /exit datum, and add something in exit.New() that sets up the format variable to be recognizable by the parser.

My question is: will this even work, or is there a better way to do this? It seems every exit in the "MUD" will also be a command. I don't know AbyssDragon's parser well enough to know how resource intensive this will be.

Thanks,

=$= Big J Money =$=
well why not make those into verbs ie dark verb relocates the usr to where a dark hole is supposed to send them
In response to Sheepywoolyfluff
Thanks for the reply, but if you don't understand why I need to use a parser to do this, it's probably a little past your current level of knowledge to comment on. Thank you for giving me the free bump, though. ;-) I hope there are people out there who actually use his parser.

=$=
In response to BigJMoney
I don't like to bump a thread, but I've gotten no takers on this one, and could really use some help.

=$=