Adventure Book

version 1/110101 by Edward Griffiths

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter: Changes From the Original Adventure Book

    Section: Feature Changes

    Authors who are already familiar with Jon Ingold's Adventure Book should hardly notice any changes in the look and feel of programs created with Adventure Book for Inform 7. However, there are a few subtle differences.

    First, there are no longer "win" or "lose" commands. The program doesn't end unless the player explicitly quits. This is to allow the player a chance to restart or restore when a game is over without having to restart the entire program. The command "It is followed by The Last Page." is provided to give authors a sort of standardized "end game" menu, but it doesn't differentiate between winning, losing, or other game-ending conditions. The author is welcome to create his own game-ending pages, and a few suggestions are offered in the Examples chapter.

    Second, there are fewer practical limits on how many choices each page can support. A practically unlimited number of choices and uses can be attached to each page. However, only 30 choices can be printed at once. This means that, if there are more than 30 choices on a page, you will have to make sure that some of them are blocked by "It requires ..." or "It is cancelled by ..." commands to keep them under the limit. (Ideally, any page which needs so many choices should probably be broken down into sub-pages just to make things less confusing for the player.)

    Third, you can now set conditions on an option to use an inventory item. You can use this to ensure that certain conditions are met before the player can use an item in his inventory; a key can't be used if the door is already unlocked, a gun can't be fired unless the player has loaded it with bullets, and so on.