Tailored Room Description
version 10 by Emily Short
Section 4 - Template Tables
To decide which table-name is the relevant table:
if the current-subject is a supporter which supports a mentioned thing and the current-subject is not mentioned, decide on the current-prementioned-supporters-table;
if the current-subject is a container which contains a mentioned thing and the current-subject is not mentioned, decide on the current-prementioned-containers-table;
if the current-subject is a supporter, decide on the current-supporter-content-table;
if the current-subject is a container, decide on the current-container-content-table;
if the current-subject is a person, decide on the current-person-content-table.
The current-topic-sentences-table is a table-name that varies. The current-topic-sentences-table is the Table of Basic Sentences.
Table of Basic Sentences
| disclosure |
| "[if the current-subject is a person][The current-subject] [is-are] here. [otherwise]You can see [a current-subject] here. [end if]" |
current-ao-table is a table-name that varies. The current-ao-table is the Table of Adjacent Objects.
current-connectives-table is a table-name that varies. The current-connectives-table is the Table of Connectives.
current-subject-introductions-table is a table-name that varies. The current-subject-introductions-table is the Table of Subject Introductions.
current-NC-table is a table-name that varies. The current-NC-table is the Table of Nesting Carriers.
current-NE-table is a table-name that varies. The current-NE-table is the Table of Nesting Exteriors.
Table of Adjacent Objects
| disclosure |
| ", alongside [a list of mentionable things held by the current-exterior]. " |
Table of Connectives
| disclosure |
| ", [if the current-exterior is a person]who[otherwise]which[end if] [is-are of current-subject] ". |
Table of Subject Introductions
| disclosure |
| "[if the current-subject is the first-subject][Cap it-they of current-subject][otherwise][The current-subject][end if] [sits]" |
Table of Nesting Carriers
| disclosure |
| "[if the current-subject is carried by someone]carried[otherwise]worn[end if] by [current-exterior as a possibly-known item]" |
Table of Nesting Exteriors
| disclosure |
| "[in-on the current-exterior as a possibly-known item][if the current-exterior holds the player] beside you[end if]" |
current-room-content-table is a table-name that varies. current-room-content-table is the Table of Room Content Disclosures.
Table of Room Content Disclosures
| disclosure |
| "You can [optional also]see [a list of mentionable things in the current-subject] [if current-subject is the location]here[otherwise]in [the current-subject][end if]. ". |
current-person-content-table is a table-name that varies. current-person-content-table is the Table of Person Content Disclosures.
Table of Person Content Disclosures
| disclosure |
| "[holding-and-wearing][run paragraph on]" |
To say holding-and-wearing:
say "[if the prior named noun is the current-subject][Cap it-they of current-subject][otherwise][The current-subject][end if] ";
if the current-subject carries something mentionable and the current-subject wears something mentionable
begin;
if the number of mentionable things held by the current-subject is greater than 5
begin;
say "[if the current-subject acts plural]have[otherwise]has[end if] [a list of things carried by the current-subject]. [Cap it-they of current-subject] is wearing [a list of things worn by the current-subject]. [run paragraph on]";
otherwise;
say "[is-are] carrying [a list of things carried by the current-subject] and wearing [a list of things worn by the current-subject]. [run paragraph on]";
end if;
otherwise if the current-subject carries something mentionable;
if a random chance of 1 in 2 succeeds, say "[is-are] [optional also][one of]holding[or]carrying[at random] ";
otherwise say "[if the current-subject acts plural]have[otherwise]has[end if][run paragraph on] ";
say "[a list of mentionable things carried by the current-subject]. [run paragraph on]";
otherwise if the current-subject wears something mentionable;
say "[is-are] wearing [a list of mentionable things worn by the current-subject]. [run paragraph on]";
end if.
current-container-content-table is a table-name that varies. current-container-content-table is the Table of Container Content Disclosures.
Table of Container Content Disclosures
| disclosure |
| "[The current-subject] [optional also]contain[s] [a list of mentionable things in the current-subject]. " |
| "In [the current-subject] [is-are a list of mentionable things in the current-subject]. " |
| "There [mentionable-are] [optional also][a list of mentionable things in the current-subject] in [the current-subject]. " |
current-supporter-content-table is a table-name that varies. current-supporter-content-table is the Table of Supporter Content Disclosures.
Table of Supporter Content Disclosures
| disclosure |
| "[The current-subject] [optional also]support[s] [a list of mentionable things on the current-subject]. " |
| "On [the current-subject] [is-are a list of mentionable things on the current-subject]. " |
| "There [mentionable-are] [optional also][a list of mentionable things on the current-subject] on [the current-subject]. " |
current-prementioned-supporters-table is a table-name that varies. current-prementioned-supporters-table is the Table of Prementioned Supporters.
Table of Prementioned Supporters
| disclosure |
| "[The list of mentioned things which are on the current-subject] [mentioned-are] on [a current-subject][if current-subject supports something mentionable], which also hold[s] [a list of mentionable things on the current-subject][end if]. " |
current-prementioned-containers-table is a table-name that varies. current-prementioned-containers-table is the Table of Prementioned Containers.
Table of Prementioned Containers
| disclosure |
| "[The list of mentioned things which are in the current-subject] [mentioned-are] in [a current-subject][if current-subject contains something mentionable], which also hold[s] [a list of mentionable things in the current-subject][end if]. " |