Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Ruins.inf

Antechamber (lines 502-557)

502  !       The ANTECHAMBER.
503  !
504  !       Defined in DM4 §23
505  Object  Antechamber "Antechamber"
506    with  description
507              "The southeastern eaves of the Shrine make a curious antechamber.",
508          nw_to Shrine;
509   
510  !       Defined in DM4 Exercise 22, modified in Exercise 55
511  Object  -> cage "iron cage"
512    with  name 'iron' 'cage' 'bars' 'barred' 'frame' 'glyphs',
513          description
514              "The glyphs read: Bird Arrow Warthog.",
515          inside_description [;
516              if (self.floor_open)
517                  "From the floor of the cage, an open earthen pit cuts
518                   down into the burial chamber.";
519              "The bars of the cage surround you.";
520              ],
521          when_open
522              "An iron-barred cage, large enough to stoop over inside, looms
523               ominously here, its door open. There are some glyphs on the
524               frame.",
525          when_closed
526              "The iron cage is closed.",
527          after [;
528              Enter:
529                  print "The skeletons inhabiting the cage come alive, locking
530                         bony hands about you, crushing and pummelling. You lose
531                         consciousness, and when you recover something grotesque
532                         and impossible has occurred...^";
533                  move warthog to Antechamber;
534                  remove skeletons;
535                  give self ~open;
536                  give warthog light;
537                  self.after = 0;
538                  ChangePlayer(warthog, 1);
539                  <<Look>>;
540              ],
541          react_before [;
542              Go:
543                  if (noun == d_obj && self.floor_open) {
544                      PlayerTo(Burial_Shaft);
545                      rtrue;
546                      }
547              ],
548          floor_open false,
549    has   enterable transparent container openable open static;
550   
551  !       Defined in Exercise 55
552  Object  -> -> skeletons "skeletons"
553    with  name 'skeletons' 'skeleton' 'bone' 'skull' 'bones' 'skulls',
554          article "deranged",
555    has   pluralname static;
556   
557  ! ---------------------------------------------------------------------------- !


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.