TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/CryZe/asr-assemblyscript/llms.txt
Use this file to discover all available pages before exploring further.
userSettings module lets you define configurable options that the runner can toggle directly in LiveSplit One’s settings panel — no code changes required. This is the approved mechanism for exposing auto splitter behaviour that varies by runner preference, such as enabling individual-level splits, toggling load-remover logic, or activating debug overlays. Each setting is declared with a unique key, a human-readable description, and a default value; LiveSplit One stores any changes the runner makes and hands them back to your auto splitter on every tick.
addBool
defaultValue is returned. If the runner has toggled it, the user-chosen value is returned instead.
A unique string identifier for this setting. This key is used internally by LiveSplit One to persist the runner’s choice. Changing the key in a future version of your auto splitter will reset the setting to its default for existing runners.
The human-readable label shown next to the toggle in LiveSplit One’s settings panel. Keep this concise and descriptive so runners understand what the setting controls.
The value to use when the runner has not yet expressed a preference.
true enables the feature by default; false disables it.bool — the current effective value of the setting: either the runner’s chosen value or defaultValue if untouched.
addBool should be called on every update() tick, not just once on startup. The runtime reads the live runner preference on each call, so omitting the call on a tick means the value may not be current. Calling it every tick is the idiomatic pattern and has negligible overhead.