Highscores by Dannii Willis

(For Glulx Only)   Version 1.2

Record and review highscores to an external file

This extension lets your record highscores to an external file. There is one basic phrase:

record score of (score - a number) and review highscores from (ext - external file)

Depending on whether the score is a new highscore or not, there are three say phrases for reporting back the result. You can overwrite these in your game as you wish.

The "say the game checksum" phrase will also print the game's checksum, which you could display after the game's banner or anywhere else.

This extension is released under the Creative Commons Attribution licence. Bug reports, feature requests or questions should be made at <https://github.com/i7/extensions/issues>.

Example: * Highscores Example

"Highscores Example"

The Records Room is a room.

Include Highscores by Dannii Willis.

After printing the banner text:
     say "Checksum [the game checksum][line break]";

The File of Highscores is called "testscores".

Recording a score is an action applying to one number.
Understand "record [a number]" as recording a score.

Carry out recording a score:
     record score of the number understood and review highscores from The File of Highscores;