Synonyms for directions

The Pixie
21 Sept 2011, 20:30
How would I add "exit" and "leave" to "out", and "enter" to "in"?

Alex
22 Sept 2011, 07:51
Copy the "indirection" and "outdirection" types to your game, and copy the "go" command to your game.

In "indirection", edit the "alt" attribute and add "enter".
In "outdirection", edit the "alt" attribute and add "exit" and "leave".
In "go", edit the pattern to include exit, leave and enter by appending "|exit|leave|enter" after "d" at the end, so it looks like this:


^go to (?<exit>.*)$|^go (?<exit>.*)$|^(?<exit>north|east|south|west|northeast|northwest|southeast|southwest|in|out|up|down|n|e|s|w|ne|nw|se|sw|o|u|d|exit|leave|enter)$