inform7

In Inform 7, what is the opposite of entering a container?


I have an Inform 7 story in which the player starts the game inside a container. I would like to say some text when the player leaves the container. When I use the conditional: "After exiting..." I get an error. "After entering..." works, so I assume I just have the wrong verb for exiting.

Here's the code in question:

The Hibernation Chamber is a room. 
The Hibernation Pod is a container in the Hibernation Chamber. The Hibernation Pod is enterable and fixed in place. The description is "It looks just like the twenty or so others in the room, except the lid is open."
The player is in the Hibernation Pod. 
After exiting the Hibernation Pod, say "You stand, blinking, and looking at two concentric arcs of identical, shiny white hibernation pods in a strange octagonally shaped room. The only break in the pods is for doors to the north and northeast. A bulky table with a clear top occupies the center of the two arcs of pods."

If I replace "After exiting" with "After entering" it builds and runs just fine. But, I want the rule to fire when the player gets out of the pod, not into the pod.

So what is the opposite of "entering" a container in Inform 7? I tried "exiting", "leaving", "getting out of", all to no avail. It just gives the following error:

Problem. You wrote 'After exiting the Hibernation Pod' , which seems to introduce a rule taking effect >only if the action is 'exiting the Hibernation Pod'. But that did not make sense as a description of an >action. I am unable to place this rule into any rulebook.

I have scoured the manual and examples, but nothing has helped. I'd be happy just to find a list of verbs that Inform 7 understands.


Solution

  • The keyword is "from".

    The player does not exit a container, player exits from a container.

    Here's the same code, this time with "exiting from" and it works.

    The Hibernation Chamber is a room. 
    The Hibernation Pod is a container in the Hibernation Chamber. The Hibernation Pod is enterable and fixed in place. The description is "It looks just like the twenty or so others in the room, except the lid is open."
    The player is in the Hibernation Pod. 
    After exiting from the Hibernation Pod, say "You stand, blinking, and looking at two concentric arcs of identical, shiny white hibernation pods in a strange octagonally shaped room. The only break in the pods is for doors to the north and northeast. A bulky table with a clear top occupies the center of the two arcs of pods."