50 years

50 years

Not enough ratings
Battle Editor - script reference
By e^cha
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.
   
Award
Favorite
Favorited
Unfavorite
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

add_gold(X);
Give player X gold.

add_wood(X);
Give player X wood.

add_faith(X);
Give player X faith points.

add_food(X);
Give player X food.

set_gold(X);
Set player's gold to X.

add_scroll(X shrink scrolls, Y chicken scrolls);
Adds scrolls.
Example: add_scroll(1,0); - add one scroll of shrinking.

add_building(Building ID, X);
Adds X buildings. Building ID is what building to add.
Building ID
Building Name
0
Farm
1
Barrack
2
Town hall
3
Forester's hut
4
Church
5
Monastery
6
Сathedral
7
Sky city
8
Stable
9
Cowshed
10
Minotaur's maze
11
Hydra's pond
12
Lumber mill
13
Shooting ground
14
Druid's oak
15
Enchanted forest
Example: add_building(2,10); - add 10 town halls

add_unit(Unit ID, X);
Adds X units. Unit ID is what unit to add.
Unit ID
Unit Name
0
Peasant
1
Archer
2
Druid
3
Militiaman
4
Hydra
5
Mini-hydra
6
Dendroid
7
Swordsman
8
Paladin
9
Knight
10
Exorcist
11
Minotaur
12
Unicorn
13
Chicken devil
14
Tiger
15
Zombie chicken
16
Angel
Example: add_unit(16,1); - add one angel

my_gold();
Returns player's gold.
Example: add_wood(my_gold()); set_gold(0); -- Transform all player's gold into wood.

my_wood();
Returns player's wood.

my_units(Unit ID);
Returns amount of Unit ID units.
Example: add_gold( my_units(1) * 100); - add 100 gold for each archer

my_buildings(Building ID);
Returns amount of Building ID buildings.

random_unit();
Returns random Unit ID.
Example: add_unit(random_unit(), 1); - add one random unit
3 Comments
commanderclones (Commissar) 10 Jul, 2020 @ 9:08am 
I just got this game and it is already drawing me in slowly. Thanks for this guide on the available units!
Terabyte 4 Jan, 2020 @ 5:39am 
Thank you for the Battle Editor.
I encountered a bug in script add_wood(X) . It changes Gold instead of Wood. Could you please fix it?
Abrek 13 Mar, 2019 @ 12:10pm 
I've been posting comments on everywhere I can for two days now! How can you still not see me? :c