Chapter 11: Out Of World Actions and Effects
11.4. Scoring

Not every work of IF allots a numerical score to the player: for some authors, this emphasises the idea of a game rather than a narrative. The simple sentence

Use no scoring.

abolishes the concept. Otherwise, Inform will provide built-in support for a single number measuring progress ("score"), and will expect to measure this against a maximum possible ("maximum score", which can either be set by hand or worked out automatically from a table of ranks).

An especially insidious style of bug allows the player to type the same sequence of commands over and over, earning score endlessly for the same insight, and to avoid this it is usually safest to write source like:

After taking the Picasso miniature for the first time: award 10 points; say "As they say in Montmartre: dude!"

If there are many "treasure" items like this, it is best to be systematic, as in No Place Like Home.

A single number does not really sum up a life, or even an afternoon, and Goat-Cheese and Sage Chicken and Panache offer more detailed citations.


122
*** Example  No Place Like Home
Recording a whole table of scores for specific treasures.

WI
237
*** Example  Goat-Cheese and Sage Chicken
Implementing a FULL SCORE command which lists more information than the regular SCORE command, adding times and rankings, as an extension of the example given in this chapter.

WI
147
*** Example  Panache
Replacing the score with a plot summary that records the events of the plot, scene by scene.

WI


PreviousContentsNext