version 4/080508 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous
  • Next

  • Chapter: Definitions

    Section: Global Variables

    The extension defines some global variables:
        1. a number which varies called Achievement-Init. This is used for the extension to know if it has been initialized or not, since it needs to initialize itself when beginning the description of the first location in the game (when play begins does not work, unfortunately, since the location of the player during it is the dark room, not the real location). Initialization grants the points from the start room, if it has any, as well as of any objects enclosed by the player at the beginning of the game, if any have scores defined on them. The name has been chosen to minimize the risk of clashing with a variable in user code.
        2. a number which varies called the achievement maximum score, which is automatically calculated at initialization time.
        3. a ton of text variables to allow for the modification of the messages by this extension. For more information, see the chapter on Modification.