Inform 7 Snippets  

Containers & Supporters

< Back Home

 

Containers

  • Rooms Within Rooms
    This is a simple example of how one might create an enterable container to serve as a tent that the player can enter and exit plus a few other container 'tricks'.
  • Omit the Contents Example 1
    A demonstration of a simple method to 'hide' or not list what is in a specific open container or on a specific supporter in the room description. In other words, the player must explicitly examine a container or supporter in order to see what is inside or on top of these objects respectively.
  • Omit the Contents Example 2
    A demonstration of a simple method to 'hide' or not list what is in ALL open containers or on ALL supporters in the room description. In other words, the player must explicitly examine a container or supporter in order to see what is inside or on top of these objects respectively.

Supporters

  • Creating New Kinds of Things
    We often create common objects in our world: tables, chairs, sofas, etc. These are usually built each time from existing kinds and properties. This demonstrates how we can create new kinds and save ourselves a lot of keystrokes.
  • Omit the Contents Example 1
    A demonstration of a simple method to 'hide' or not list what is in a specific open container or on a specific supporter in the room description. In other words, the player must explicitly examine a container or supporter in order to see what is inside or on top of these objects respectively.
  • Omit the Contents Example 2
    A demonstration of a simple method to 'hide' or not list what is in ALL open containers or on ALL supporters in the room description. In other words, the player must explicitly examine a container or supporter in order to see what is inside or on top of these objects respectively.
     
   

The examples and snippets were created with Inform 7.

To play the examples available here, you need an interpreter program: many are available, among them Zoom for Mac OS X and for Unix, and Windows Frotz for Windows.