Skip to content

Conditions ​

A condition is a test. Modifiers, constraints, and availability can be gated on conditions so they only take effect when the test passes. "Give +1 to Attacks if the unit has a banner" is a modifier gated on a condition.

What a condition checks ​

A condition counts or tests something in a scope and compares it to a value. Its parts:

  • Scope: where to look. See Scope & Context.
  • What it counts: usually selections of a given entry or category, but it can also read forces, associations, a points total, or the roster's cost limit
  • Comparison and value: the test and the number, for example "at least 1".
  • "and all child selections": recurse below the scope, needed when the things being counted are nested. See Scope.

Condition types ​

TypePasses when
atLeastthe count is at least the value
atMostthe count is at most the value
equalTothe count equals the value
notEqualTothe count does not equal the value
greaterThanthe count is greater than the value
lessThanthe count is less than the value
instanceOfthe node is (or sits within) a given entry or category
notInstanceOfthe node is not
always / neveralways passes / never passes
beforeused only in local condition groups; tests instance position (see below)

Combining conditions: condition groups ​

A condition group holds several conditions and combines them:

  • and: all must pass
  • or: any must pass
  • not: not all pass (for a single condition, plain negation; with several, it fails only when every one passes)
  • count: a number of the child conditions pass, with a min/max

Groups can nest, so you can build "A and (B or C)".

Groups can also compute and compare numbers, with types like add, subtract, multiply, divide, modulo, power, min, and max, tested with greater, less, equal, and so on. Simple calculations and comparisons work this way (see Condition-Group Maths for a worked example), but anything beyond that is awkward to build; see Known Limitations.

Local condition groups ​

A normal condition counts matches across its whole scope, and each condition runs independently. That makes some rules impossible to write. Take "at least one unit that is both INFANTRY and a HERO":

  • Condition 1: "1+ selections of INFANTRY in roster"
  • Condition 2: "1+ selections of HERO in roster"

Both pass on a roster with an infantry squad and a mounted hero, even though no single unit is both. Two separate conditions can be satisfied by two different units, because each one only sees a total.

A local condition group fixes this by checking its conditions one target at a time. It works like a filter:

  1. It gathers every candidate in its scope, for example every selection in the roster.
  2. For each candidate, it evaluates all the conditions inside the group against that one candidate. Inside the group, "self" means the candidate currently being tested, not the entry holding the condition.
  3. Candidates that pass every condition are counted, and the group's own test (atLeast, atMost, ...) runs on that count.

So "1+ selections in roster where: self is INFANTRY, self is HERO" reads as: count the selections that are both, and pass if there is at least one.

Think of the conditions inside the group as a checklist filled in per unit: a unit only counts if every box is ticked.

The group can count forces as well as selections, so it can also answer questions about the same force, such as "is there a force that is both a Primary Detachment and from catalogue X".

As a repeat ​

The group's result is a count, not just a yes/no, so it can also drive a repeat: apply a modifier once per matching target.

The before condition ​

before only exists inside local condition groups. While the group walks the matching instances, before tests where the current candidate sits in that sequence. This is how a rule can apply from the Nth copy onwards, for example making the third and later instances of a unit cost more than the first two.

Performance ​

Every evaluation tests every candidate in the scope, so a local group is much more expensive than a plain condition. Prefer a normal condition when one fact about the total is enough; reach for a local group when several facts must be true of the same target.