Inform - Resources - Examples

Back to List

Inventory
Complete

At Start
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Alice2.inf

Alice2.inf begins (lines 1-37)

001  ! Through the Looking-Glass
002  ! An Inform tutorial by Gareth Rees
003  ! All rights given away
004  ! Version 2
005   
006  Constant Story "THROUGH THE LOOKING GLASS";
007  Constant Headline "^An Interactive Tutorial^by Gareth Rees^";
008  Constant DEBUG;
009   
010  Include "parser";
011  Include "verblib";
012  Include "grammar";
013   
014  [ Initialise;
015      location = Drawing_Room;
016      print "^^^^^It's a cold winter day outside, but in the looking-glass
017          house it's summer. All you need to do is pretend there's a way of
018          getting through into it somehow...^^";
019  ];
020   
021  [ UntangleSub; "What curious ideas you have!"; ];
022   
023  Verb "roll" "untangle" "wind"
024      * noun -> Untangle
025      * "up" noun -> Untangle
026      * noun "up" -> Untangle;
027   
028  Object  Drawing_Room "Drawing room"
029   has    light
030   with   name "snow",
031          description "The gentle sound of snow against the window pane
032              suggests that it's cold outside, and you're glad to be here
033              in the warmth. The drawing-room is reflected in the large
034              looking-glass on the wall above the mantelpiece, and a very
035              comfortable room it is too, with a warm hearth, a soft rug
036              and an arm-chair that you can curl up and sleep in.";
037   


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.