Volume 3 - Building the Blight
Book 1 - Weather And Time
[The sun is a backdrop. The sun is in the Blight.
The moon is a backdrop. The moon is in the Blight.
The stars are a backdrop. The stars are in the Blight.
The sky is a backdrop. The sky is in the Blight.
The clouds are a backdrop. The clouds are in the Blight.
The wind is a backdrop. The winds are in the Blight.]
Humidity is a kind of value. The humidities are arid, humid, or precipitating.
Temperature is a kind of value. The temperatures are hot, temperate, or cold.
The current humidity is a humidity that varies.
The current temperature is a temperature that varies.
A humidity can be possible or impossible. A humidity is usually possible.
A temperature can be possible or impossible. A temperature is usually possible.
To determine temperature and humidity:
repeat with temporary locale running through Blight rooms:
let the temporary terrain be a random terrain in the temporary locale;
if arid is possible:
if the terrain-type of the temporary terrain is slush or the terrain-type of the temporary terrain is snow or the terrain-type of the temporary terrain is mud:
now arid is impossible;
if precipitating is possible:
if the terrain-type of the temporary terrain is bare earth:
now precipitating is impossible;
if hot is possible:
if the terrain-type of the temporary terrain is slush:
now hot is impossible;
if temperate is possible or hot is possible:
if the terrain-type of the temporary terrain is ice or the terrain-type of the temporary terrain is snow:
now hot is impossible;
now temperate is impossible;
now the current humidity is a random possible humidity;
now the current temperature is a random possible temperature;
DM "The current humidity is [current humidity] and the current temperature is [current temperature].[line break]"
Weather is a kind of value. The weathers are sunny, cloudy, misty, raining, and snowing.
The current weather is a weather that varies.
To determine the weather:
DM "Weather: ";
if the current humidity is precipitating:
if the current temperature is cold:
now the current weather is snowing;
DM "snowing.";
otherwise:
now the current weather is raining;
DM "raining.";
otherwise if the current humidity is humid:
if the current temperature is cold:
now the current weather is misty;
DM "misty.";
otherwise:
let K be a random number from 1 to 4;
if K is 1:
now the current weather is sunny;
DM "sunny.";
otherwise:
now the current weather is cloudy;
DM "cloudy.";
otherwise:
now the current weather is sunny;
DM "sunny.";
DM "[line break]".