Rules
A character follows a list you write before the fight and cannot touch during it.
A rule is a condition, a skill and a target: when this is true, do that, to them. It is the only way a skill is used, and it is written before the fight. One, from an authored fighter:
- When
ENEMY_HP_BELOW:35- Do
ASSASSINATE- To
ENEMY HP_PCT:LEAST
The middle column is a skill. The other two are below, and what is true of all of them:
A parameter is chosen from a list, never typed, so two loadouts that mean the same thing cannot have eighteen spellings. A condition can be inverted where its term allows — and the inversion narrows who the rule may act on rather than asking whether nobody at all qualifies. And a condition chooses as well as asks: an enemy condition hands the rule only the enemies that satisfied it, so a rule that fires because of one enemy never lands on another.
PASS is the exception to everything here: The engine's own floor under every list, and no rule may name it — a build that could instruct itself to stand still is one that stands still for the rest of the battle.
What a loadout is
An ordered list, and one switch. That is the whole of it. Every round the character starts at the top and takes the first rule whose condition holds and whose target exists. Both halves matter: a rule can be true and still be skipped, because there is nothing legal for it to act on. The order is priority rather than sequence: a rule near the bottom fires only on a round when everything above it had nothing to say.
A loadout carries 4 skills and 1 ultimate, chosen from those picked in the tree, plus the basics. The tree decides what can be chosen, not how much: a fight between an old hand and a recruit is the same size of plan on both sides. The basics: ATTACK, MOVE, HELP; the tree has the rest. Carrying a skill and naming it in a rule are separate decisions — a carried skill no rule mentions can never fire.
Friendly fire, and the one switch
A loadout carries one switch: allow friendly fire, or do not. That switch is the only thing on a loadout that is not a rule, and it applies to every action the loadout takes.
It reads whether a skill is hostile — whether it inflicts something unwanted on what it lands on. A strike landing on an ally is friendly fire; a heal landing on one is the point. Without that flag the rule would have to be written twice, once for damage and once for everything else.
It is read as the action resolves, against that action's own tiles. Ground an action leaves behind is not friendly fire: an ally who walks into burning ground three rounds later did that on their own move, and no switch on somebody else's loadout has anything to say about it.
The default action
Beneath whatever is written, the engine appends rules of its own — in the same vocabulary, and unchangeable in content or order. They read top to bottom like any other list: hit whatever is in reach; failing that, get where the weapon can strike from; failing that, the middle of the map; failing that, stand still. There are 4:
| # | When | Do | To |
|---|---|---|---|
| 1 | ALWAYS | ATTACK | ENEMY DISTANCE:LEAST |
| 2 | ALWAYS | MOVE | INTO_WEAPON_RANGE |
| 3 | ALWAYS | MOVE | MAP_CENTRE |
| 4 | ALWAYS | PASS | SELF |
The movement steps are on the movement page.
Reading a list, round by round
Every round the character starts at the top and takes the first rule whose condition holds and whose target exists. Both halves matter: a rule can be true and still be skipped, because there is nothing legal for it to act on. The order is priority rather than sequence: a rule near the bottom fires only on a round when everything above it had nothing to say.
Here is one build on two different rounds. Nothing about the build changes between them; only the board does.
The enemy is far off
- the character acting
- where it ends up
- an enemy
One enemy, the nearest 9 tiles off. A bow strikes from 2 to 4 tiles, so nobody is in reach.
-
ENEMY_HP_BELOW:35→AIMED_SHOT→ENEMY HP_PCT:LEASTskipped — the condition does not hold, or holds of nobody this skill can reach -
SELF_IN_FIRE→MOVE→AWAY_FROM_HAZARDskipped — the condition does not hold, or holds of nobody this skill can reach -
ENEMY_TOO_CLOSE→MOVE→AWAY_FROM_ENEMIESskipped — the condition does not hold, or holds of nobody this skill can reach - the default action, appended by the engine
-
ALWAYS→ATTACK→ENEMY DISTANCE:LEASTskipped — the condition does not hold, or holds of nobody this skill can reach -
ALWAYS→MOVE→INTO_WEAPON_RANGEacts -
ALWAYS→MOVE→MAP_CENTREnever read -
ALWAYS→PASS→SELFnever read
Row 2 of the engine's default acts: ALWAYS → MOVE → INTO_WEAPON_RANGE. 4 rows above it were skipped, and 2 rows below it never read.
One has closed in
- the character acting
- where it ends up
- an enemy
2 enemies, the nearest 1 tile off. A bow strikes from 2 to 4 tiles, so the nearest is too close to strike.
-
ENEMY_HP_BELOW:35→AIMED_SHOT→ENEMY HP_PCT:LEASTskipped — the gear lacks a keyword the skill needs -
SELF_IN_FIRE→MOVE→AWAY_FROM_HAZARDskipped — the condition does not hold, or holds of nobody this skill can reach -
ENEMY_TOO_CLOSE→MOVE→AWAY_FROM_ENEMIESacts - the default action, appended by the engine
-
ALWAYS→ATTACK→ENEMY DISTANCE:LEASTnever read -
ALWAYS→MOVE→INTO_WEAPON_RANGEnever read -
ALWAYS→MOVE→MAP_CENTREnever read -
ALWAYS→PASS→SELFnever read
Row 3 of the list the player wrote acts: ENEMY_TOO_CLOSE → MOVE → AWAY_FROM_ENEMIES. 2 rows above it were skipped, and 4 rows below it never read.
Both boards are examples, but every row's outcome, its reason and the tile the character heads for are what the engine does with them. A real fight's trace comes out of a replay, which records every action in order along with what it did.
Saying it as rules rather than as engine behaviour buys three things. There is one evaluator instead of two, so what a character does when its own rules fall silent cannot drift from what its rules do. Every step is a target a player may write, so a build wanting a different approach reorders rather than asking for engine work. And a replay reports a default the same way it reports anything else.
Note what is not in it. Stepping out of fire is a decision — a bruiser should keep swinging and a glass cannon should get out — so it stays in the loadout as SELF_IN_FIRE → MOVE → AWAY_FROM_HAZARD, at whatever priority its owner thinks it deserves.
The vocabulary
Conditions
What a rule asks before it fires.
ALLY_COUNT_NEAR
At least X allies are within two tiles of me.
Offered values: 1 · 2 · 3
ALLY_HP_BELOW
An ally is below X % of its health.
Offered values: 25 · 40 · 60
ALLY_IN_HAZARD
An ally is standing in fire or taint.
ALLY_UNDER_CONTROL
An ally is under a control effect.
ALWAYScannot be inverted
Always true.
ENEMY_COUNT_NEAR
At least X enemies are within two tiles of me.
Offered values: 1 · 2 · 3 · 4
ENEMY_HAS_CONTROL
An enemy is under a control effect.
ENEMY_HAS_STACKS
An enemy carries at least X stacks of statuses.
Offered values: 2 · 3 · 4
ENEMY_HP_BELOW
An enemy is below X % of its health.
Offered values: 20 · 35 · 50
ENEMY_IN_COVER
An enemy is in cover.
ENEMY_IN_FIRE
An enemy is standing in fire.
ENEMY_IN_WATER
An enemy is standing in water.
ENEMY_IN_WEAPON_RANGE
An enemy is inside my weapon's own reach band. Negated: nobody is in reach, so close the distance.
ENEMY_ON_TAINT
An enemy is standing in taint.
ENEMY_TOO_CLOSE
An enemy is nearer than my weapon's minimum reach — too close to strike.
FIRST_ROUND
It is the first round of the fight.
ROUND_BELOW
The round number is below X.
Offered values: 3 · 5 · 8
SELF_HAS_STACKS
I carry at least X stacks of statuses.
Offered values: 2 · 3 · 4
SELF_HP_BELOW
I am below X % of my health.
Offered values: 25 · 40 · 50 · 60 · 75
SELF_IN_COVER
I am in cover: nothing beyond one tile can target me.
SELF_IN_FIRE
I am standing in fire.
SELF_IN_WATER
I am standing in water.
SELF_ON_TAINT
I am standing in taint.
SELF_UNDER_CONTROL
I am under a control effect.
SELF_WIL_BELOW
I am below X % of my own WIL: what my spells have drained and hexes taken off it.
Offered values: 25 · 50 · 75
Target shapes
The targets that name neither a pool nor a key.
SELF
Myself.
CLUSTER
The tile whose strike pattern catches the most enemies — only those the condition admitted.
Pools
Which side of the fight an ordering reads.
ENEMY
Choose among the enemies.
ALLY
Choose among the allies.
Ordering keys
What the candidates are sorted by.
DISTANCE
Distance from me: nearest or farthest.
HP_PCT
Health as a share of its maximum: who is closest to falling.
HP_ABS
Health in points: who is easiest to fell.
STACKS
Stacks of statuses carried: fewest or most.
AGI
Agility: lowest or highest.
KNW
Knowledge: lowest or highest.
STR
Strength: lowest or highest.
TGH
Toughness: lowest or highest.
END
Endurance: lowest or highest.
WIL
Will: lowest or highest.
ENGAGEMENT
How many hostile units stand beside it: an ally at MOST is being swamped, an enemy at LEAST is one nobody has reached.
RANGED
Whether it fights from range — a bow, a crossbow, a sling, a spell: at MOST the nearest shooter, or the nearest of anybody where none shoots.
Directions
Which end of that sort to take.
LEAST
Take the low end of the ordering: nearest, lowest, fewest.
MOST
Take the high end of the ordering: farthest, highest, most.
Movement destinations
Where a move resolves to.
TOWARD_NEAREST_ENEMY
The free tile beside an enemy that is cheapest to walk to — beside the nearest the condition admitted, where it admitted some.
INTO_WEAPON_RANGE
The free tile cheapest to walk to from which ATTACK could reach an enemy, with either hand — only for somebody who cannot already.
INTO_SKILL_RANGE
The same, for any hostile skill this loadout names: the answer to cover.
AWAY_FROM_ENEMIES
Of the tiles reachable this round, the one whose nearest living enemy is farthest away.
AWAY_FROM_HAZARD
The cheapest free tile with neither fire nor taint — only for somebody standing in one.
NEAREST_COVER
The cheapest free tile that grants cover.
NEAREST_WATER
The cheapest free water tile.
TOWARD_LOWEST_HP_ALLY
The cheapest free tile beside the ally lowest on health.
MAP_CENTRE
The free tile nearest the middle of the map, the cheapest to walk to where several are.
COVER_TOWARD_ENEMY
Toward an enemy by way of cover: of the tiles reachable this round, the covered one nearest it that is nearer than here, else into weapon range — only for somebody not yet in reach.
DRY_GROUND
The cheapest dry tile reachable this round — only for somebody standing in water.