Rule sets describe the visual look and layout of a level such as the [[Layouts]] used, how those [[Layouts]] get organized in to a level, and more cosmetic aspects such as lighting and environmental effects. Level Rule Sets are edited using the [[Level Rule Sets Editor]].

+

----

+

+

===== Properties =====

+

+

^ NAME ^ TYPE ^ DESCRIPTION |

+

| NAME | (STRING) | The rule set name

+

| LEVELNAME | (TRANSLATE) | The display name for the level as it appears in game |

| LIGHTMAP RED | (INTEGER) | RGB color channels for the light map. This is the color to which the light mask will blend from the torchlight texture |

+

| LIGHTMAP GREEN | ::: | ::: |

+

| LIGHTMAP BLUE | ::: | ::: |

+

| FOG RED | (INTEGER) | RGB color channels for the fog color |

+

| FOG GREEN | ::: | ::: |

+

| FOG BLUE | ::: | ::: |

+

| FOG START | (INTEGER) | Distance from the camera where the fog begins (start of the linear gradient) |

+

| FOG END | (INTEGER) | Distance from the camera where the fog ends (end of the linear gradient). ​ After this point everything will be 100% fog color|

+

+

==== Explicit Layouts ====

+

{{ http://​docs.runicgames.com/​w/​images/​2/​2b/​Explicitlayout.PNG}} Explicit layouts are (not to be confused with the myriad other ways we use the term "​layout"​) describe how chunk types are arranged in the level. ​ These are typically used for outdoor levels and single room levels like boss rooms. ​ If you're making a normal, dungeon level, the rule set should set RANDOMIZED to true. If you want some pre-defined structure, but want the game to fill in the blanks, you can place the predefined chunks in an explicit layout and mark the rule set RANDOMIZEAFTERLOAD to true. If a rule set is not '​RANDOMIZED',​ the game will randomly use one of the defined explicit layouts to define the arrangement of chunk types in the level. ​ The data looks like the data below, but if you use the [[Level Rule Sets Editor]] you shouldn'​t really have to worry about it. ​