ISAC SCRIPT LANGUAGE

How calculation scripts work

ISAC generates these scripts from structured controls. You review the script, while typed data remains the calculation source.

WHEN
The event that begins a mechanic branch.
IF
Conditions checked against the event, Agent, target, team, or encounter.
TRACK
A count, duration, scalar, mark, or stack pool shared by branches.
ADD / SET / CONSUME
How a matching branch changes tracked state.
FOR EVENT TARGET
Binds a target-scoped state change to the enemy named by the event.
APPLY
The Attribute or direct result and the phase when it takes effect.
UNTIL
The expiry, reset, or transfer policy for tracked state.
EVERY
An explicit periodic interval. ISAC does not infer a missing cadence.
PHASE
Whether an outcome runs before state changes, after them, while state remains active, or when state expires.

Combat calculation statements

TAKE, ADD, APPLY, WEIGHT, and RETURN explain the ordered deterministic damage pipeline.