This is the place where Access Space participants (Spacers) create wikified web content.

 
IMPORT 'std.i'.
----------------
THE room ISA LOCATION.
        DESCRIPTION
        "Another subterrainean chamber."
END THE room.
----------------
THE pit ISA LOCATION.
        DESCRIPTION
        "You plunge into freezing, pitch black water. You'd better do something fast - you only have a few seconds before you drown!"
END THE pit.
----------------
THE chest ISA OBJECT AT room.
        DESCRIPTION
        "Aha! This one has a chest in the centre."
        WITH opaque container.
        IS openable.
        IS NOT takeable.
        IS NOT locked.
        IS NOT open.
        VERB open
                CHECK
                "As you pry it open the whole floor gives way
                with a sickening lurch and you tumble downwards."
                LOCATE hero AT pit.
                MAKE hero wet.
        END VERB open.
END THE CHEST.
----------------
THE chainmail ISA OBJECT AT nowhere.
        IS wearable.
        IS WEIGHT 20.
        IS armour.
        NAME chainmail.
        NAME armour.
        NAME mail.
        ARTICLE
END THE chainmail.
----------------
THE lantern ISA OBJECT AT nowhere.
        NAME lantern.
        IS WEIGHT 5.
        IS shining.
END THE lantern.
----------------
THE sword ISA OBJECT AT nowhere.
        NAME sword.
        IS WEIGHT 10.
        IS weapon.
END THE sword.
----------------
THE backpack ISA OBJECT AT nowhere.
        NAME backpack.
        NAME rucksack.
        NAME pack.
        IS WEIGHT 20.
        WITH opaque container.
        IS wearable.
        IS openable.
        IS closeable.
END THE backpack.
----------------
VERB swim
        CHECK hero IS wet
                ELSE
                        "You can't swim here."
--      AND WEIGHT > 10
--      "You struggle in then water but are dragged down by the weight of your gear."
        DOES
        "You manage you get our head above water and gasp for breath."
END VERB swim.
----------------
ADD TO EVERY THING
        IS NOT 'wet'.
END ADD TO THING.
----------------
START AT room.
--The hero starts wearing chainmail
LOCATE chainmail IN worn.
LOCATE backpack IN worn.
LOCATE lantern IN hero.
LOCATE sword IN hero.
 
if/trap01.alan.txt · Last modified: 2008/01/19 10:16 by james
[unknown button type]
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki