50 years Guide

Battle Editor - script reference for 50 years

Battle Editor – script reference

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

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

SteamSolo.com