When
This effect allows you to specify branches in your system, enabling you to perform different effects depending on the conditions you specify and the state of the character / resource.
JSON Format
{
"type": "when",
"clauses": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
clauses | List<WhenClause> | ✓ | A list of conditions and associated effect that should execute if the given condition is satisfied. Only the first clause whose condition is true will have its effect executed. The rest will be ignored, so the order matters. You can specify as many clauses as you want. |