Hinterlands: Marooned! — 5 of 23

Cody Gaisser

Release 1

Chapter 3 - Status Bar

[STATUS BAR]

To say the player's capitalised surroundings:

let the masthead be "[the player's surroundings]" in upper case;

say the masthead.

Table of Fancy Status

leftcentralright
"""Location: [the player's capitalised surroundings] ([map region of the location])"""

Rule for constructing the status line:

fill status bar with Table of Fancy Status;

rule succeeds.

Rule for printing the name of an unvisited room (called the target) while constructing the status line:

let aim be the best route from the location to the target;

say "somewhere [aim]".

After printing the name of a visited room (called the target) while constructing the status line:

let aim be the best route from the location to the target;

if aim is not nothing:

say " ([aim])".

Rule for printing the name of a direction (called the aim) while constructing the status line:

choose row with a heading of the aim in the Table of Abbreviation;

say "[shortcut entry]".

Table of Abbreviation

headingshortcut
north"N"
northeast"NE"
northwest"NW"
east"E"
southeast"SE"
south"S"
southwest"SW"
west"W"
up"U"
down"D"
inside"in"
outside"out"