Synonyms for directions

The Pixie
How would I add "exit" and "leave" to "out", and "enter" to "in"?

Alex
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)$

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums