Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Toyshop.inf

Steel Box (lines 523-553)

523  ! >SB  ball in the glass box does not make the room go dark: shutting it up
524  !      in the steel box does.  Also, you can examine things in the glass box
525  !   even when the glass box is shut.
526  !   (Note also that the Dark Room is explicitly told not to have "light",
527  !   which it would otherwise inherit from the "Toyroom" class.)
528  ! ----------------------------------------------------------------------------
529   
530  Toyroom DarkRoom "Dark Room"
531    with description "A featureless storage room, hardly worth illumination.",
532         cant_go "The only exit is back south.",
533         s_to East_End
534    has  ~light;
535   
536  Object -> "glass box with a lid"
537    with name "glass" "box" "with" "lid"
538    has  container transparent openable open;
539   
540  Object -> "steel box with a lid"
541    with name "steel" "box" "with" "lid"
542    has  container openable open;
543   
544   
545  Toyroom West_End "West End"
546    with name "soldiers" "model" "aircraft" "planes",
547         description
548            "The western end of the toyshop is blue, and soldiers and 
549             model aircraft line the shelves. A small office lies to 
550             the south.",
551         e_to Toyshop, s_to Office;
552   
553  ! ----------------------------------------------------------------------------


Last updated 23 June 2004. This web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.