Five Gods Exiled — 20 of 191

Carolyn VanEseltine

Release 1

Volume 4 - Describing the Blight

Book 1 - Naming the Blight

To name rooms in the Blight:

repeat with temporary locale running through Blight rooms:

now the current room is the temporary locale;

initialize possible prepositions;

determine the current landmark;

if the current landmark is a shrine entrance:

add {"outside"} to the possible preposition list;

otherwise if the current landmark is a terrain:

now the possible preposition list is {"amid", "surrounded by", "through"};

let L be 8;

let the previous direction be northwest;

repeat with thataway running through the compass set:

if the room thataway from the temporary locale is nothing:

now L is L - 1;

now the previous direction is thataway;

if L is 1:

DM "[temporary locale] is a dead end. Landmark: [a current landmark].[line break]";

if the current landmark is not a terrain:

add {"at"} to the possible preposition list;

sort the possible preposition list in random order;

let the current preposition be entry 1 of the possible preposition list;

now the display name of the temporary locale is "Dead end [current preposition] [a current landmark]" in sentence case;

otherwise if L is 2:

DM "[temporary locale] is a path. Landmark: [current landmark].[line break]";

sort the possible preposition list in random order;

let the current preposition be entry 1 of the possible preposition list;

if the current landmark is not a terrain:

add {"passing", "past"} to the possible preposition list;

now the display name of the temporary locale is "Path [current preposition] [a current landmark]" in sentence case;

otherwise:

DM "[temporary locale] has all kinds of directions going on. Landmark: [a current landmark].[line break]";

sort the possible preposition list in random order;

let the current preposition be entry 1 of the possible preposition list;

now the display name of the temporary locale is "[current preposition] [a current landmark]" in sentence case.

The possible preposition list is a list of texts that varies.

To initialize possible prepositions:

now the possible preposition list is {"near", "not far from", "next to", "beside", "close to"}.

The current landmark is a thing that varies.

To determine the current landmark:

if a shrine entrance (called the current shrine) is in the current room:

now the current landmark is the current shrine;

otherwise if a significant prop (called the current prop) is in the current room:

now the current landmark is the current prop;

otherwise:

repeat with temporary barrier running through barriers in the current room:

if the current landmark is not a barrier:

now the current landmark is the temporary barrier;

otherwise if (the number of directions prevented by the temporary barrier) > (the number of directions prevented by the current landmark):

now the current landmark is the temporary barrier;

if the current landmark is not a barrier:

if a decorative prop (called the second prop) is in the current room:

now the current landmark is the second prop;

otherwise:

now the current landmark is a random terrain in the current room.