17.35. Printing the banner text

| Chapter 17: Activities |

| 17.35. Printing the banner text

1. When it happens. The banner is the bibliographic masthead text, which typically looks something like this:

> Relations
> An Interactive Fiction by Emily Short
> Release 1 / Serial number 050630 / Inform 7 build 2U98 (I6/v6.30 lib 6/10N) SD

The banner is printed at the start of play, and when the player types "version" at the command line, and when say "[banner text]" occurs.

say "[the/-- banner text]"

This text substitution expands to the banner text giving bibliographic details of the current story file, rather like the opening credits of a movie, or the title page of a book.

2. The default behaviour. Prints the text above, giving the title, the headline, the author, the release number, the date of compilation (that's the serial number: YYMMDD), and version numbers of the Inform components used to put the game together.

3. Examples. (a) Adding a line to the banner:

> After printing the banner text, say "DRM authentication code: 13S-451-2034u75y65u%%a1248."

(b) Simplifying the banner:

> Rule for printing the banner text: say "Welcome." instead.

368
| Example Bikini Atoll Delaying the banner for later. |
RB

Previous | Contents | Next