Part 11 - Terrain-Barrier Sentences
To write a terrain-barrier sentence:
DM "I'm writing a terrain-barrier sentence for [current room] right now. ";
now the current terrain is a random terrain in the current room;
now the terrain-barrier sentence is "(This is a terrain-barrier sentence for an unknown case involving [current terrain] and [the list of barriers in the current room].)";
if the number of barriers in the current room is 1:
now the current barrier is a random barrier in the current room;
if the barrier-type of the current barrier is ocean:
if the number of entries in the prevented directions list of the current room is greater than the number of entries in the permitted directions list of the current room:
now the terrain-barrier sentence is "[current terrain] spreads [permitted directions list of the current room] away from [the current barrier].";
otherwise:
now the terrain-barrier sentence is "[current terrain] leads up to the edge of [the current barrier] stretching away to the [prevented directions list of the current room].";
otherwise if the barrier-type of the current barrier is brambles:
if the number of entries in the prevented directions list of the current room is greater than the number of entries in the permitted directions list of the current room:
if the number of entries in the permitted directions list of the current room is 1:
now the terrain-barrier sentence is "A path wends [permitted directions list of the current room] through a wall of [current barrier].";
otherwise:
now the terrain-barrier sentence is "Paths lead [permitted directions list of the current room] through a wall of [current barrier].";
otherwise:
now the terrain-barrier sentence is "[Current terrain] leads up to a wall of [current barrier]. The [barrier-type of the current barrier] block the way [prevented directions list of the current room].";
otherwise if the barrier-type of the current barrier is cliff face:
now the terrain-barrier sentence is "[current terrain] leads up to the bottom of [current barrier]. The [barrier-type of the current barrier] blocks the way [prevented directions list of the current room].";
otherwise if the barrier-type of the current barrier is pillar:
now the terrain-barrier sentence is "Scattered [current terrain] adorns the base of [a current barrier] blocking the way [prevented directions list of the current room].";
otherwise:
if the number of entries in the prevented directions list of the current room is greater than the number of entries in the permitted directions list of the current room:
now the terrain-barrier sentence is "[current terrain] spreads [permitted directions list of the current room] away from [the current barrier].";
otherwise:
now the terrain-barrier sentence is "[current terrain] leads up to the edge of [the current barrier] stretching away to the [prevented directions list of the current room].";
otherwise:
now the terrain-barrier sentence is "A vista of [current terrain] stretches [permitted directions list of the current room] past [a list of barriers in the current room].".