Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Ruins.inf

Lower Canyon (lines 414-476)

414  !       The LOWER/SOUTH CANYON.
415  !
416  !       Defined in DM4 §23
417  Object  Canyon_S "Lower End of Canyon"
418    with  description
419              "At the lower, and narrower, southern end, the canyon stops dead at
420               a chasm of vertiginous blackness. Nothing can be seen or heard
421               from below.",
422          n_to Junction,
423          u_to Junction,
424          s_to "Into the chasm?",
425          d_to nothing,
426    has   light;
427   
428  !       Defined in DM4 §12, modified in §21 and §23
429  Object  -> chasm "horrifying chasm"
430    with  name 'blackness' 'chasm' 'pit' 'horrifying' 'bottomless',
431          before [;
432              Enter:
433                  deadflag = 3;
434                  "You plummet through the silent void of darkness, cracking
435                   your skull against an outcrop of rock. Amidst the pain and
436                   redness, you dimly make out the God with the Owl-Headdress...";
437              JumpOver:
438                  "It's far too wide.";
439              ],
440          after [;
441              Receive:
442                  remove noun;
443                  print_ret (The) noun,
444                            " tumbles silently into the darkness of the chasm.";
445              Search:
446                  "The chasm is deep and murky.";
447              ],
448          react_before [;
449              Jump:
450                  <<Enter self>>;
451              Go:
452                  if (noun == d_obj) <<Enter self>>;
453              ],
454          each_turn [;
455              if (huge_ball in parent(self)) {
456                  remove huge_ball;
457                  Canyon_S.s_to = On_Ball;
458                  Canyon_S.description =
459                      "The southern end of the canyon now continues onto the
460                       pumice-stone ball, wedged into the chasm.";
461                  "^The pumice-stone ball rolls out of control down the last few
462                   feet of the canyon before shuddering into the jaws of the
463                   chasm, bouncing back a little and catching you a blow on the
464                   side of the forehead. You slump forward, bleeding, and...
465                   the pumice-stone shrinks, or else your hand grows, because you
466                   seem now to be holding it, staring at Alligator, son of
467                   seven-Macaw, across the ball-court of the Plaza, the heads of
468                   his last opponents impaled on spikes, a congregation baying
469                   for your blood, and there is nothing to do but to throw anyway,
470                   and... but this is all nonsense,
471                   and you have a splitting headache.";
472                  }
473              ],
474    has   scenery open container;
475   
476  ! ---------------------------------------------------------------------------- !


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.