Part 6 - All-Directions
To write an all-directions room description:
if the desc of the current room is "":
DM "I'm writing an all-directions room description for [the current room]. ";
if the current landmark is a shrine entrance:
let L be a random number between 1 and 4;
if L is 1:
DM "(type shrine-1).[line break]";
write a weather-shrine sentence;
write a terrain sentence;
now the desc of the current room is "[the weather-shrine sentence] [the terrain sentence] From here, you can go in any direction.";
otherwise if L is 2:
DM "(type shrine-2).[line break]";
write a weather sentence;
write a terrain-shrine sentence;
now the desc of the current room is "[the weather sentence] [the terrain-shrine sentence] From here, you can go in any direction.";
otherwise if L is 3:
DM "(type shrine-3).[line break]";
write a weather-terrain sentence;
write a shrine sentence;
now the desc of the current room is "[the weather-terrain sentence] [the shrine sentence] From here, you can go in any direction.";
otherwise:
DM "(type shrine-4).[line break]";
write a weather sentence;
write a terrain sentence;
write a shrine sentence;
now the desc of the current room is "[the weather sentence] [the terrain sentence] [the shrine sentence] From here, you can go in any direction.";
otherwise if the current room encloses a significant prop:
now the current landmark is a random significant prop in the current room;
let L be a random number between 1 and 4;
if L is 1:
DM "(type prop-1).[line break]";
write a weather-prop sentence;
write a terrain sentence;
now the desc of the current room is "[the weather-prop sentence] [the terrain sentence] From here, you can go in any direction.";
otherwise if L is 2:
DM "(type prop-2).[line break]";
write a weather sentence;
write a terrain-prop sentence;
now the desc of the current room is "[the weather sentence] [the terrain-prop sentence] From here, you can go in any direction.";
otherwise if L is 3:
DM "(type prop-3).[line break]";
write a weather-terrain sentence;
write a prop sentence;
now the desc of the current room is "[the weather-terrain sentence] [the prop sentence] From here, you can go in any direction.";
otherwise:
DM "(type prop-4).[line break]";
write a weather sentence;
write a terrain sentence;
write a prop sentence;
now the desc of the current room is "[the weather sentence] [the terrain sentence] [the prop sentence] From here, you can go in any direction.";
otherwise:
DM "(type other-1).[line break]";
write a weather sentence;
write a terrain sentence;
now the desc of the current room is "[the weather sentence] [the terrain sentence] From here, you can go in any direction."