Skip to content

UseTransitions

Loads the hour file for a generated map's hour, whose triggers can change the map's lighting during play.

Specification
Applies to
random map generation
File
map seed file
Section
[RandomMap]
Value
boolean
When omitted
noNo hour file is loaded, and each start point gets the number of floodlights its hour gives.

With UseTransitions=yes, the generator loads the hour file for the hour Time names. The flag does not change the map’s ambient lighting; the triggers in that file do. Map seed files covers the section it is written in.

TimeHour file
0 morningMORNING.INI
1 afternoonDAY.INI
2 duskDUSK.INI
3 nightNIGHT.INI
map seed file
[RandomMap]
Time=1
UseTransitions=yes

The map takes two things from the hour file:

  • its trigger types and tag types, which are added to the map;
  • its local variables from [VariableNames], which replace any the map already had.

The flag also sets every start point’s floodlight ring to four lights, whatever the hour; Floodlights gives the placement conditions. Each light is attached to the tag type named Light On/Off, so the hour file’s triggers can switch the lights. Define a tag type named Light On/Off in each hour file. Without it, each light gets a tag with no type, and the game can crash.

Without the Firestorm addon, the flag is turned off before any map is built, whether it comes from a seed file or the dialog. The dialog shows its check box only with Firestorm, and its randomize button checks the box about half the time.

See also — Time, UseIonStorms, Biome