The Beast of Torrack Moor

An interactive fiction by Linda Wright (2007) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Section 3 - Scoring

Table of Tasks Achieved
Points   Citation   Time
10   "pitching the story"   a time
5   "discovering a hidden gate"
5   "finding some handy gloves"
5   "finding some black fur"
5   "finding some useful matches"
5   "obtaining the key to the shepherd's hut"
10   "communicating with the doctor"
10   "obtaining a local map"
5   "being awarded some sturdy shoes"
5   "breaking"
5   "entering"
5   "levering open a tricky drawer"
5   "winning a lovely rug"
5   "obtaining a waterproof garment"
5   "gaining access to the vet's surgery"
5   "undermining a tree"
10   "felling a tree in the name of progress"
5   "discovering a useful branch"
5   "lighting a fire"
5   "eating a hot meal"
10   "having a good night's rest"
20   "getting the story"

To record (T - text) as achieved:
    choose row with a citation of T in the Table of Tasks Achieved;
    if there is no time entry begin;
change time entry to the time of day;
award (points entry) points;
    end if.

Requesting the full score is an action out of world. Understand "full" or "full score" as requesting the full score.

Carry out requesting the full score:
    if the score is not 0 begin;
        say "Your score is [score], achieved as follows:[line break]";
     repeat through the Table of Tasks Achieved in time order begin;
say " [points entry] points for [citation entry] (at [time entry])[line break]";
        end repeat;
    otherwise;
        say "Your score is [score].";
end if.