2018-10-23 22:41:51 -04:00

79 lines
1.8 KiB
INI

#define CHAMBER_TAG_CONTENTS
max=infinite
{SIMPLE_KEY id string}
{SIMPLE_KEY x range_list}
{SIMPLE_KEY y range_list}
{SIMPLE_KEY size unsigned}
{SIMPLE_KEY jagged unsigned}
{DEFAULT_KEY chance unsigned 100}
{SIMPLE_KEY side unsigned}
[tag]
name="passage"
max=infinite
{SIMPLE_KEY destination string}
{SIMPLE_KEY windiness unsigned}
{SIMPLE_KEY laziness unsigned}
{SIMPLE_KEY width unsigned}
{SIMPLE_KEY jagged unsigned}
{DEFAULT_KEY chance unsigned 100}
[/tag]
[tag]
name="item_location"
max=infinite
{SIMPLE_KEY id string}
{DEFAULT_KEY place_castle bool no}
[/tag]
#enddef
[tag]
name="generator"
# General Lua map generator
{SIMPLE_KEY id string}
{SIMPLE_KEY name t_string}
{SIMPLE_KEY description t_string}
{SIMPLE_KEY error_message t_string}
{SIMPLE_KEY create_map string}
{SIMPLE_KEY create_scenario string}
# Additional contents for Lua cave map generator
[if]
glob_on_create_map=*cave_map_generator*
[or]
glob_on_create_scenario=*cave_map_generator*
[/or]
[then]
{SIMPLE_KEY map_width unsigned}
{SIMPLE_KEY map_height unsigned}
{SIMPLE_KEY village_density unsigned}
{SIMPLE_KEY transform map_transform}
{SIMPLE_KEY transform_chance unsigned}
{SIMPLE_KEY terrain_wall terrain_code}
{SIMPLE_KEY terrain_castle terrain_code}
{SIMPLE_KEY terrain_keep terrain_code}
{SIMPLE_KEY terrain_village terrain_code}
{SIMPLE_KEY terrain_clear terrain_code}
[tag]
name="chamber"
{CHAMBER_TAG_CONTENTS}
[/tag]
[/then]
[/if]
# Additional contents for Lua cave scenario generator
[if]
glob_on_create_scenario=*cave_map_generator*
[then]
[tag]
name="chamber"
{CHAMBER_TAG_CONTENTS}
[tag]
name="items"
super="scenario"
[/tag]
[/tag]
[tag]
name="settings"
super="scenario"
[/tag]
[/then]
[/if]
[/tag]