Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Advent.inf

18. The caves around Bedquilt (lines 1982-2084)

1982  Room    In_Soft_Room "In Soft Room"
1983    with  name 'soft' 'room',
1984          description
1985              "You are in the soft room.
1986               The walls are covered with heavy curtains, the floor with a thick pile carpet.
1987               Moss covers the ceiling.",
1988          w_to In_Swiss_Cheese_Room;
1989   
1990  Scenic  -> "carpet"
1991    with  name 'carpet' 'shag' 'pile' 'heavy' 'thick',
1992          description "The carpet is quite plush.";
1993   
1994  Scenic  -> "curtains"
1995    with  name 'curtain' 'curtains' 'heavy' 'thick',
1996          description "They seem to absorb sound very well.",
1997          before [;
1998            Take:
1999              "Now don't go ripping up the place!";
2000            LookUnder, Search:
2001              "You don't find anything exciting behind the curtains.";
2002          ];
2003   
2004  Scenic  -> "moss"
2005    with  name 'moss' 'typical' 'everyday',
2006          description "It just looks like your typical, everyday moss.",
2007          before [;
2008            Take:
2009              "It crumbles to nothing in your hands.";
2010          ],
2011    has   edible;
2012   
2013  Object  -> velvet_pillow "velvet pillow"
2014    with  name 'pillow' 'velvet' 'small',
2015          description "It's just a small velvet pillow.",
2016          initial "A small velvet pillow lies on the floor.";
2017   
2018  ! ------------------------------------------------------------------------------
2019   
2020  Room    In_Oriental_Room "Oriental Room"
2021    with  name 'oriental' 'room',
2022          description
2023              "This is the oriental room.
2024               Ancient oriental cave drawings cover the walls.
2025               A gently sloping passage leads upward to the north, another passage leads se,
2026               and a hands and knees crawl leads west.",
2027          w_to In_Large_Low_Room,
2028          se_to In_Swiss_Cheese_Room,
2029          u_to In_Misty_Cavern,
2030          n_to In_Misty_Cavern;
2031   
2032  Scenic  -> "ancient oriental drawings"
2033    with  name 'paintings' 'drawings' 'art' 'cave' 'ancient' 'oriental',
2034          description "They seem to depict people and animals.",
2035    has   multitude;
2036   
2037  Treasure -> ming_vase "ming vase"
2038    with  name 'vase' 'ming' 'delicate',
2039          description "It's a delicate, precious, ming vase!",
2040          after [;
2041            Drop:
2042              if (velvet_pillow in location) {
2043                  print "(coming to rest, delicately, on the velvet pillow)^";
2044                  rfalse;
2045              }
2046              remove ming_vase;
2047              move shards to location;
2048              "The ming vase drops with a delicate crash.";
2049          ],
2050          before [;
2051            Attack:
2052              remove ming_vase;
2053              move shards to location;
2054              "You have taken the vase and
2055              hurled it delicately to the ground.";
2056            Receive:
2057              "The vase is too fragile to use as a container.";
2058          ],
2059          depositpoints 14;
2060   
2061  Object  shards "some worthless shards of pottery"
2062    with  name 'pottery' 'shards' 'remains' 'vase' 'worthless',
2063          description
2064              "They look to be the remains of what was once a beautiful vase.
2065               I guess some oaf must have dropped it.",
2066          initial "The floor is littered with worthless shards of pottery.",
2067    has   multitude;
2068   
2069  ! ------------------------------------------------------------------------------
2070   
2071  Room    In_Misty_Cavern "Misty Cavern"
2072    with  name 'misty' 'cavern',
2073          description
2074              "You are following a wide path around the outer edge of a large cavern.
2075               Far below, through a heavy white mist, strange splashing noises can be heard.
2076               The mist rises up through a fissure in the ceiling.
2077               The path exits to the south and west.",
2078          s_to In_Oriental_Room,
2079          w_to In_Alcove;
2080   
2081  Scenic  -> "fissure"
2082    with  name 'fissure' 'ceiling',
2083          description "You can't really get close enough to examine it.";
2084   


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.