solved: alternate verbs to use on exits?

shadowphile
15 Jun 2013, 05:48
I have this philosophy about my game I'm trying to implement, which is the fact that most of the time we navigate around by visual cues rather than directions, so wherever possible I want to avoid using actual compass directions. (up and down are ok)
So if I make an exit called 'metal door', how do I use it as an exit? I know I can click on the panel exist name but how would I type that in? 'Go metal door' just won't fly.
The question boils down to: how to implement an alias for 'go' or 'go to'?
thanks

edit: well, that was easy. I exposed the 'go' command from the core library and to the beginning of the regular expression I added
^try (?<exit>.*)$|
to the beginning of the regular expression. Bingo!
Since it was so easy I also added a 'go through' and 'go thru' variations.

I'm laughing in my head because with the normal 'go' commands, we might say 'go south' to go through a door, and if it is locked, then we get a 'its locked' message. I have this image in my mind of trying to run through a locked door and banging my head.
Now I can 'try' the door in case it's locked :)