Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Advent.inf

4. Facilis descensus Averno... (lines 485-588)

0485  Room    Below_The_Grate "Below the Grate"
0486    with  name 'below' 'grate',
0487          description
0488              "You are in a small chamber beneath a 3x3 steel grate to the surface.
0489               A low crawl over cobbles leads inward to the west.",
0490          w_to In_Cobble_Crawl,
0491          u_to Grate,
0492    has   light;
0493   
0494  Scenic  "cobbles"
0495    with  name 'cobble' 'cobbles' 'cobblestones' 'cobblestone' 'stones' 'stone',
0496          description "They're just ordinary cobbles.",
0497          found_in In_Cobble_Crawl In_Debris_Room Below_The_Grate,
0498    has   multitude;
0499   
0500  ! ------------------------------------------------------------------------------
0501   
0502  Room    In_Cobble_Crawl "In Cobble Crawl"
0503    with  name 'cobble' 'crawl',
0504          description
0505              "You are crawling over cobbles in a low passage.
0506               There is a dim light at the east end of the passage.",
0507          e_to Below_The_Grate,
0508          w_to In_Debris_Room,
0509    has   light;
0510   
0511  Object  -> wicker_cage "wicker cage"
0512    with  name 'cage' 'small' 'wicker',
0513          description "It's a small wicker cage.",
0514          initial "There is a small wicker cage discarded nearby.",
0515          after [;
0516            Open:
0517              if (little_bird notin self) rfalse;
0518              print "(releasing the little bird)^";
0519              <<Release little_bird>>;
0520          ],
0521    has   container open openable transparent;
0522   
0523  ! ------------------------------------------------------------------------------
0524   
0525  Room    In_Debris_Room "In Debris Room"
0526    with  name 'debris' 'room',
0527          description
0528              "You are in a debris room filled with stuff washed in from the surface.
0529               A low wide passage with cobbles becomes plugged with mud and debris here,
0530               but an awkward canyon leads upward and west.
0531               ^^
0532               A note on the wall says, ~Magic word XYZZY.~",
0533          e_to In_Cobble_Crawl,
0534          u_to In_Awkward_Sloping_E_W_Canyon,
0535          w_to In_Awkward_Sloping_E_W_Canyon,
0536          before [;
0537            Xyzzy:
0538              PlayerTo(Inside_Building);
0539              rtrue;
0540          ],
0541    has   nodwarf;
0542   
0543  Scenic  -> "debris"
0544    with  name 'debris' 'stuff' 'mud',
0545          description "Yuck.";
0546   
0547  Scenic  -> "note"
0548    with  name 'note',
0549          description "The note says ~Magic word XYZZY~.";
0550   
0551  Object  -> black_rod "black rod with a rusty star on the end"
0552    with  name 'rod' 'star' 'black' 'rusty' 'star' 'three' 'foot' 'iron',
0553          description "It's a three foot black rod with a rusty star on an end.",
0554          initial
0555              "A three foot black rod with a rusty star on one end lies nearby.",
0556          before [;
0557            Wave:
0558              if (location == West_Side_Of_Fissure or On_East_Bank_Of_Fissure) {
0559                  if (caves_closed) "Peculiar. Nothing happens.";
0560                  if (CrystalBridge notin nothing) {
0561                      remove CrystalBridge;
0562                      give CrystalBridge absent;
0563                      West_Side_Of_Fissure.e_to = nothing;
0564                      On_East_Bank_Of_Fissure.w_to = nothing;
0565                      "The crystal bridge has vanished!";
0566                  }
0567                  else {
0568                      move CrystalBridge to location;
0569                      give CrystalBridge ~absent;
0570                      West_Side_Of_Fissure.e_to = CrystalBridge;
0571                      On_East_Bank_Of_Fissure.w_to = CrystalBridge;
0572                      "A crystal bridge now spans the fissure.";
0573                  }
0574              }
0575              "Nothing happens.";
0576          ];
0577   
0578  ! ------------------------------------------------------------------------------
0579   
0580  Room    In_Awkward_Sloping_E_W_Canyon "Sloping E/W Canyon"
0581    with  name 'sloping' 'e/w' 'canyon',
0582          description "You are in an awkward sloping east/west canyon.",
0583          d_to In_Debris_Room,
0584          e_to In_Debris_Room,
0585          u_to In_Bird_Chamber,
0586          w_to In_Bird_Chamber,
0587    has   nodwarf;
0588   


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.