Skip to main content

WhenClause

Structure to be used for the when effect clauses.

JSON Format

{
"type": "WhenClause",
"condition": ...,
"effect": ...
}

Fields

FieldTypeRequiredDescription
conditionStatFormulaComponentThis stat formula should evaluate to a boolean. If the condition evaluates to true, the effect will be triggered provided this is the first clause whose condition evaluates to true.
effectEffectThe effect to execute if the condition is satisfied.