Exit Aliases

I'm new to this program, so I haven't really explored what it has to offer, but I'm having issues with creating aliases for exits. I created 2 exits, one in and one out of a closet. The exit in was named "closet" and it has the alias "closet". However, when I type in "closet", the game says that it doesn't understand my command. What am I doing wrong? Is it even possible to do something with the engine like this?

What is the purpose of typing 'closet'? To enter it?


Do you not want to use the 'in' option?

Not really. The way I wrote the description of the room connected to the closet, it's not really possible to see that you can go in the closet. I'll have to rewrite it.

I've never used the 'alias' option for an exit.

The easiest thing I think for you to do is to add a command to the room attached to the closet.

Simply right click on that room. Add command. In the box under command pattern type in whatever command you want the player to type to enter the closet. I would do something like this --> closet; enter closet; go in closet; go inside closet (etc)

Then, run a script that moves player to closet.

   <command>
<pattern>enter closet; closet; go in closet; closet; in; step into closet</pattern>
<script>
msg ("You step inside the closet.")
MoveObject (player, closet)
</script>
</command>


And, if you want to the player to leave the closet the same way, just repeat above with a different command (or just create a one way standard exit 'out').

Thank you very much!!!!!!!!

If you build games anything like me, you'll fall in love with custom commands. They can get you out of all manner of problems.

Here's a tip, though. If you want the command to trigger at any point during the game, add it to the 'game' branch in the left pane. If you just want it for a particular scene, add it to the room in question.