Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Museum.inf

Roof (lines 1783-1812)

1783  Object roof "Museum Roof: area 33"
1784    with name "trapdoor",
1785         description
1786            "A small trapdoor leads down from this tiled roof into the 
1787             museum. The view is indescribable, which saves me some typing 
1788             and you some reading, right? Yes -- this is one of those 
1789             post-modern room descriptions, the kind that makes you aware 
1790             you're only playing a game.",
1791         d_to Third_Floor,
1792    has  light;
1793   
1794  Global status_style = 3;
1795   
1796  Object -> "dial"
1797    with name "dial",
1798         initial
1799            "A dial here has four settings, which control the appearance
1800             of the status line drawn by the computer to indicate the
1801             state of play.  Settings are: 1 - invisible; 2 - centred
1802             place name only; 3 - standard Score/Turns display;
1803             4 - a compass rose of possible directions to go in.",
1804         before
1805         [;  SetTo:
1806                 if (second<1 || second>4) "There are only four settings.";
1807                 status_style = second; "Set.";
1808         ],
1809    has  static;
1810   
1811  ! --------------------------------------------------------------------------
1812   


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.