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 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.