Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Toyshop.inf

Bolted Cupboard (lines 501-521)

501  ! >BC  A typical locked container, containing a rather pathetic prize...
502  ! ----------------------------------------------------------------------------
503   
504  Object -> "bolted cupboard"
505    with name "bolted" "cupboard",
506         describe
507         [; if (self hasnt open) "^A shut cupboard is bolted to one wall.";
508            "^Bolted up on one wall is an open cupboard.";
509         ],
510         with_key key
511    has  locked container openable lockable static;
512   
513  Object -> -> "boiled sweet"
514    with name "boiled" "sweet",
515         after
516         [; Eat: Achieved(0);
517                 "It takes an irritatingly long time to eat.";
518         ],
519    has  edible;
520   
521  ! ----------------------------------------------------------------------------


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.