Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Toyshop.inf

The Toyshop (lines 85-104)

085  !   Off we go into the Toyshop...
086  ! ----------------------------------------------------------------------------
087   
088  Class Toyroom
089    has  light;
090   
091  Toyroom Toyshop "Toyshop"
092    with description
093            "The centre of a long east-west hall. Shelves are lined 
094             with toys, painted clowns face you from the walls and 
095             the floor is lightly padded with colourful mats. A doorway 
096             leads north, with a red warning triangle above it.",
097         name "clowns" "painted" "shelves" "triangle",
098         e_to East_End, w_to West_End, n_to Danger_Zone;
099   
100  Object -> chair "high chair"
101    with name "chair" "high"
102    has  supporter enterable;
103   
104  ! ----------------------------------------------------------------------------


Last updated 23 June 2004. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.