Exit Aliases

zluka
13 Dec 2015, 18:12
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?

XanMag
13 Dec 2015, 18:57
What is the purpose of typing 'closet'? To enter it?

zluka
13 Dec 2015, 18:59
Yes.

XanMag
13 Dec 2015, 19:01
Do you not want to use the 'in' option?

zluka
13 Dec 2015, 19:05
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.

XanMag
13 Dec 2015, 19:09
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').

zluka
13 Dec 2015, 19:18
Thank you very much!!!!!!!!

OurJud
13 Dec 2015, 19:41
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.