Overview
If you want to create custom creatures dungeon for “50 years”, you need to understand how to set reward for cleaning the dungeon. This guide explains it.
How to create custom dungeons
In the Battle Editor, scroll down thru years list and find a button called “Vaults type: Standart”. In dropdown menu choose “Custom”. Then you will be able to edit dungeons.
Vault name: this is the dungeon name, it will appear on the game scouting map.
Reward script: this is how to set a reward for clearing the dungeon.
Reward info: this is reward information for player, it will appear in a dungeon description text.
Reward scripts
Reward script is used to set a reward for clearing a dungeon.
Make sure to end each part of your script with semicolon ( ; )! This is very important! For example, executing “add_gold(1000); add_wood(500);” will work, but executing “add_gold(1000) add_wood(500)” will not!
Examples
add_gold(1000); add_wood(500); – adds 1000 gold and 500 wood
add_building(4, 2); – adds two churches
add_unit(8, 1); – adds one paladin
Scripts
Give player X gold.
Give player X wood.
Give player X faith points.
Give player X food.
Set player’s gold to X.
Adds scrolls.
Example: add_scroll(1,0); – add one scroll of shrinking.
Adds X buildings. Building ID is what building to add.
Example: add_building(2,10); – add 10 town halls
Adds X units. Unit ID is what unit to add.
Example: add_unit(16,1); – add one angel
Returns player’s gold.
Example: add_wood(my_gold()); set_gold(0); — Transform all player’s gold into wood.
Returns player’s wood.
Returns amount of Unit ID units.
Example: add_gold( my_units(1) * 100); – add 100 gold for each archer
Returns amount of Building ID buildings.
Returns random Unit ID.
Example: add_unit(random_unit(), 1); – add one random unit