§16.18. Table continuations

A table is an arrangement for putting information together concisely in a single place, so it might seem odd that we sometimes need to divide it up: but once in a while, we do. Suppose we have:

Table of Outer Planets

planet

semimajor axis

Jupiter

5 AU

Saturn

10 AU

Uranus

19 AU

Neptune

30 AU

Pluto

40 AU

But then someone in Chile with a telescope the size of God's own teacup notices something a long, long way out, and the newspapers get terribly excited. We can write an addendum:

Table of Outer Planets (continued)

planet

semimajor axis

Orcus

40 AU

Quaoar

42 AU

Xena

68 AU

Sedna

502 AU

This may seem unnecessary - why not simply add extra rows to the original table? - but it allows us to split the table between different parts of the source text, if we want to, or to continue a table which exists only in an extension. (Thus if we were using an extension which involved the planets, and had a table like this one, we would be able to add new planets without changing the extension.)

The name for the continuation must be identical to the original. The continuation has no existence in its own right: Inform simply splices the two (or more) pieces together, exactly as if the table were all in one piece at the place where it first occurred. Thus the above creates only one table, the "Table of Outer Planets", with nine rows. Each column in the continuation must exist in the original, but not every column need be given: those omitted are filled with blank entries. The columns need not be in the same order. Both original and continuations are allowed to quote a number of blank rows: if so, the combined total is used.

At time of writing the International Astronomical Union has not yet consented to name 2003 UB313 after Xena, the Warrior Princess, but this is surely only a bureaucratic delay. (Footnote: on 24 August 2006 it was demoted to dwarf planet status, though larger than Pluto, and on 13 September renamed Eris. Oh well.)


arrow-up.pngStart of Chapter 16: Tables
arrow-left.pngBack to §16.17. Defining values with tables
arrow-right.pngOnward to §16.19. Table amendments

"Basic Help Menu" is an extension that uses tables to provide a menu of instructions. Suppose we wanted to include this menu in our own game, but add a few custom menu items of our own:

paste.png "Food Network Interactive"

Include Basic Screen Effects by Emily Short. Include Menus by Emily Short. Include Basic Help Menu by Emily Short.

Table of Basic Help Options (continued)

title

subtable

description

toggle

"Recipes in This Game"

Table of Recipes

--

--

"Contacting the Author"

--

"If you have any difficulties with [story title], please contact me at fakeaddress@gmail.com."

--

This table is one that is pre-defined by the extension. By continuing it, we add a few additional items to the list.

And since we've promised a sub-menu of recipes:

Table of Recipes

title

subtable

description

toggle

"Salmon Tartare"

--

"First, be sure to buy extremely fresh salmon. Raw fish should be served on the day it was caught, if possible. To guarantee this, visit an Asian supermarket or specialty store, and buy salmon marked 'sashimi grade'..."

--

"Pecan Brownies"

--

"Begin by shelling half a pound of pecans..."

--

Whole Foods is a room.

To test it, type HELP and then experiment.

*ExampleFood Network Interactive
Using a menu system from an extension, but adding our own material to it for this game.

"Basic Help Menu" is an extension that uses tables to provide a menu of instructions. Suppose we wanted to include this menu in our own game, but add a few custom menu items of our own:

paste.png "Food Network Interactive"

Include Basic Screen Effects by Emily Short. Include Menus by Emily Short. Include Basic Help Menu by Emily Short.

Table of Basic Help Options (continued)

title

subtable

description

toggle

"Recipes in This Game"

Table of Recipes

--

--

"Contacting the Author"

--

"If you have any difficulties with [story title], please contact me at fakeaddress@gmail.com."

--

This table is one that is pre-defined by the extension. By continuing it, we add a few additional items to the list.

And since we've promised a sub-menu of recipes:

Table of Recipes

title

subtable

description

toggle

"Salmon Tartare"

--

"First, be sure to buy extremely fresh salmon. Raw fish should be served on the day it was caught, if possible. To guarantee this, visit an Asian supermarket or specialty store, and buy salmon marked 'sashimi grade'..."

--

"Pecan Brownies"

--

"Begin by shelling half a pound of pecans..."

--

Whole Foods is a room.

To test it, type HELP and then experiment.

"Basic Help Menu" is an extension that uses tables to provide a menu of instructions. Suppose we wanted to include this menu in our own game, but add a few custom menu items of our own:

paste.png "Food Network Interactive"

Include Basic Screen Effects by Emily Short. Include Menus by Emily Short. Include Basic Help Menu by Emily Short.

Table of Basic Help Options (continued)

title

subtable

description

toggle

"Recipes in This Game"

Table of Recipes

--

--

"Contacting the Author"

--

"If you have any difficulties with [story title], please contact me at fakeaddress@gmail.com."

--

This table is one that is pre-defined by the extension. By continuing it, we add a few additional items to the list.

And since we've promised a sub-menu of recipes:

Table of Recipes

title

subtable

description

toggle

"Salmon Tartare"

--

"First, be sure to buy extremely fresh salmon. Raw fish should be served on the day it was caught, if possible. To guarantee this, visit an Asian supermarket or specialty store, and buy salmon marked 'sashimi grade'..."

--

"Pecan Brownies"

--

"Begin by shelling half a pound of pecans..."

--

Whole Foods is a room.

To test it, type HELP and then experiment.