SplitScript reference / Language / onReset
onReset
lifecycle block
onReset { ... }
Reacts after the timer resets.
Runs once when consecutive updates observe the timer enter TimerState.NotRunning. Attempt-scoped globals remain available during this action and are cleared after it completes. The first update establishes a baseline without firing. Observation happens after settings refresh but before process attachment and state polling, so the action remains available while detached. Process providers, attachment-scoped globals, layout, current, and old are unavailable. A reset requested by this script is observed on the following update rather than invoking this action directly from the reset decision.
Examples
Use onReset
onReset {
print("Attempt reset")
}