Hidden Items

version 2 by Krister Fundin

  • Home page
  • Beginning



  • Documentation

    Hidden Items provides a more natural way of defining objects that don't make their appearance until later on in the game. Normally, we would achieve this by defining the object as out of play and then moving it to the desired location when it is found:

        The banana is a thing.

        Instead of looking under the table for the first time:
            move the banana to the kitchen;
            say "You find a banana!"

    When using Hidden Items, we can instead put the object where we want it to end up and mark it as "hidden". When we want it to appear, we can use the phrase "reveal the object":

        A banana is hidden in the kitchen.

        Instead of looking under the table for the first time:
            reveal the banana;
            say "You find a banana!"

    Hidden Items also works with backdrops and doors:

        The secret passage is a hidden door. It is east of the office and west of the secret room.

        Instead of turning the bust of Plato:
            reveal the secret passage;
            say "A secret passage opens to the east!"

    Especially when dealing with backdrops and doors, it may be useful to be able to hide them again. This can be done simply by using the phrase "hide the object":

        Instead of turning the bust of Plato when the secret passage is revealed:
            hide the secret passage;
            say "The secret passage closes again."

    Ordinary objects can also be hidden using the same phrase. When revealed, they will appear where they were before being hidden.