Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Balances.inf

15. Death and the Boneyard (lines 1577-1633)

1577  [ AfterLife;
1578    if (~~prepared_flag) rfalse;
1579    
1580    if (player in Balance_Room)
1581        "^^Your foresight in preparing a resurrection was wasted.  The
1582           tangled magic of the Balance Room coiled around your puny
1583           enchantment like a constricting serpent.";
1584   
1585    prepared_flag = false; deadflag = false; hearing_good = false;
1586   
1587    if (memory.capacity >= 2) memory.capacity--;
1588   
1589    while (child(player)~=0) move child(player) to parent(player);
1590    move players_book to player;
1591   
1592    print "^^With great foresight you prepared yourself for resurrection... 
1593             Your mind feels a little weaker, but at least you're alive.^";
1594    PlayerTo(Boneyard);
1595  ];
1596   
1597  Place Boneyard "Boneyard"
1598    with name "bones" "blades" "shoulder" "skulls",
1599         description
1600            "This is a room of bones.  Shoulder blades make up the floor,
1601             skulls the walls and leg-bones the door frames. The west exit
1602             leads into darkness, but the doorway to the north opens onto a
1603             seemingly normal scene.",
1604         n_to
1605         [;  if (scales.number ~= 0) return In_Cave;
1606             return Grasslands;
1607         ],
1608         w_to "Some magical force blocks your way, as though that doorway
1609               led into adventures from your past which you cannot rejoin now.",
1610         before
1611         [;  Examine, Search:
1612                 if (noun==w_obj) "You can make out nothing to the west.";
1613         ];
1614   
1615  Scroll -> worthless_scroll "worthless scroll"
1616    with initial "You are almost treading on a worthless scroll.",
1617         name "worthless";
1618   
1619  Spell -> -> filfre_spell
1620    with name "filfre",
1621         purpose "produce gratuitous fireworks",
1622         magic
1623         [;    if (self hasnt scored) { score++; give self scored; }
1624              "A brief shower of gratuitous fireworks spells out:
1625             ^^The masterly Enchanter trilogy was written by Marc Blank,
1626               Dave Lebling and Steve Meretzky.";
1627         ],
1628         unmagic
1629         [;   "A lengthy shower of artistically justified fireworks spells out:
1630             ^^The masterly Enchanter trilogy was written by Jane Austen,
1631               Emily Bronte and Edgar Allen Poe.";
1632         ];
1633   


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.