New game modes
Each rule on this page lives in balance.json and stays off until a mod writes it. Mix them with hand-written waves and your own towers to build another tower defense.
Total conversions
{"id": "my_kingdom", "name": "My Kingdom", "version": "1.0.0", "total_conversion": true}
"total_conversion": true in mod.json says your mod is another game. Only one plays at a time: ticking it switches the other off. Cosmetic and gameplay mods still combine with it, so All resources works on any of them. The game's own tutorials stay out unless its tutorials.json keeps some.
No cards
{"cards": {"enabled": false}}: no cards between waves, and the next wave starts straight away. Whatever a card would have given stays locked unless run_start opens it (which towers play).
A living route
"route_growth": {"mode": "frontier", "start_cells": 6, "cells_per_wave": 3,
"margin": 1, "max_cells": 130, "after_wave": 1, "visible": true}
"frontier": the run opens on a short trail out of the cave, and the insects come out of its far end. After every wave fromafter_waveon, it growscells_per_wavecells, up tomax_cells. Towers stand only withinmargincells of the trail; the rest of the pit lies under rock that sinks as the trail arrives."meander"(the default) keeps the open pit, and after each wave pushes stretches of the insects' way sideways into bendsdepthcells deep ("depth": [1, 3]).- No tower stands on the route, and
visibledraws it in full.
Living Trail plays the frontier.
Cores
"cores": {"count": 20, "drift_speed": 25, "pickup_radius": 30}
The lives become count energy cores kept in the cave. An insect that reaches the cave takes one and walks home with it; a carrier that gets home costs a life. A carrier killed on the way drops its core, which drifts back at drift_speed until another insect passes within pickup_radius. Environment/Core in models.json changes the core's model. Cores.
Lanes
"lanes": {
"paths": [[[24, 6], [6, 6]], [[24, 7], [6, 7]], [[24, 8], [6, 8]]],
"tower_health": 300,
"bite_every": 1.0
}
paths: each lane's turns, from its spawn to its exit, in board cells; each pair of turns shares a row or a column. Every lane cell must be walkable in the scenery and both ends of each lane not buildable (cells); the board needs no way from the nest to the cave, and it raises no barrier.- The insects stop at the first tower in their lane and bite it. A tower has its level's
health(ortower_health) and falls when it reaches nothing. - A wave's group picks its lane with
"lane"inwaves.json: a number (0 is the first path), a list to draw from,"cycle"or"random". "targeting": "forward_lane"keeps each tower facing up its own lane.spawn_jitterspreads the spawns sideways (0 keeps them centred), andspawn_cover_distanceprotects insects until they are that far out of their entrance.- For towers on lanes:
income_everypays a level'sincomeon its own clock, and"stationary": truesoldiers stand guard on their tower's cell.
Station Deck plays five lanes.
A shop
"skill_tree": {"shop": {
"items": ["shop_frost", "Gun2", "Gun3"],
"currency": {"en": "Scrap", "pt_br": "Sucata"},
"points_per_wave": 1,
"points_on_victory": 5
}}
The skill tree becomes a shop of priced cards, paid with the skill points: bosses pay them as usual, plus points_per_wave for each wave cleared and points_on_victory for a won run. The items are skill-tree nodes, the game's own or ones your map_data.json adds, and a node may carry a price per rank, a name, a description and grants:
"PurchasableStats": {
"shop_frost": {"value": 0, "minLevel": 0, "dependency": null, "limit": 1, "spent": 0,
"price": 3, "icon": "res://Assets/Icons/tower_Frost1.png",
"name": {"en": "Frost cannon"}, "description": {"en": "Unlocks the Frost tower for every run."},
"grants": {"tower": "Frost"}}
}
grants may hold a tower to open in every run, and starting_gold and lives added at each new game. To sell a tower's levels, set "towers": {"upgrades_need_skills": true} and list their nodes.
Co-op on a split board
{"multiplayer": {"coop": {"build_zones": "left_right"}}}, or "top_bottom", gives each co-op player half the board: each builds, upgrades and earns on their own half, and the lives stay shared. "max_players": 4 in the same block seats up to four players in co-op.
The board camera
{"camera": {"zoom_out": 2.0, "free_pan": true}} lets the overview pull back twice as far as the default view and pan at any zoom, for a board larger than the screen.
Belts, a generator and a territory
Torretaz, which comes with the game, is built from more rules of this kind, all in its balance.json:
| Key | What it does |
|---|---|
belts | Belts from a generator that carry parts and rounds: towers rise as their parts arrive and fire only what their belt loaded; splitters; resource deposits and their extractors |
territory | A clearing round a tower, wider at each level of its antenna, with sand fog beyond it; with creep, the fog recedes only as towers are built near its edge, up to the antenna's reach |
economy.money | false pays for everything with a material instead of gold |
time_of_day.cycle | A fast day on its own clock: several days a run, with larger hordes at night |
horde | Hordes from every side that bite through towers, and a swarm of small insects |
generator | The generator's health, the hangar it raises and the supplies it keeps |
rock_formations | Raised rock that blocks the way and the towers' sight, placed anew each run |
effects.death_mist | A puff of ichor at every death |
effects.fire_wall, effects.kill_glow | A wall of fire where the Flames' jets end, and a glow on the ground where the insects die |
economy.debris_value | Remains worth the insect's health, up to a ceiling a load |
economy.stock_caps | How much of each material the factory holds. A tower level's stores makes it a warehouse that adds to it while a factory belt serves it; a full stock stops what brings that material in |
towers.splash | Area damage for each tower type: every insect within the radius takes the round's damage |
towers.front_line | Towers shoot the insects still coming before those that slipped past them; a share of the towers keeps cleaning up behind |
horde.night_attacks | Each night's attack from stated directions with a mix of its own, shown in the antenna's forecast |
frontier_industry | After chosen nights, a choice of expeditions: a finite mineral deposit and a production specialization |
field_objectives | Optional sites past the clearing: kill their guards, hold them with a tower or the Commander, earn a one-time reward |
sector_overdrive | A paid boost for the towers of one side of the factory, followed by a recovery |
industrial_endgame | A project built at the factory in stages, ending in a final defense |
multiplayer.coop.build_zones: "slices" | Co-op cut in slices round the generator |
To build on them, copy the sample_torretaz folder in your Mods folder to a new name and id, and read its balance.json; README.md in the Mods folder has the full contract of every key. Torretaz.
