Variables · supported
{counter:deaths}
Read a platform-specific counter, then fall back to global
variable.global.counter · 2.8.0
Requirements and availability
Values depend on the invocation context; timers and buttons do not have an incoming viewer.
Picker contexts: automation, timer, command, pad.
Variable providers: twitch, youtube, kick, tiktok.
Behavior
Arguments: optional global/platform scope, then counter name. Auto scope checks platform then global. Missing value is 0.
Contract details
- Key
- counter
- Syntax
- {counter:deaths}
- Category
- Counters
- Description
- Read a platform-specific counter, then fall back to global
- Fallback
- 0
- Canonical Key
- counter
- Aliases
[]- Producer
- Global command variable engine, resolved on demand.
- Fallback Note
- This fallback applies on null/error/timeout; a resolver may return its own 0, empty string or descriptive value instead.
- Lifetime
- Resolved for this template; data may be live, cached or persisted according to its provider.
Examples
A single variable expression; context and data prerequisites still apply.
{counter:deaths}Related entries
Source and verification
Source-reviewed for 2.8.0. Connected-service validation remains subject to release UAT.
- server.js — COMMAND_VARIABLE_DEFINITIONS.counter
- src/features/command-variables.js — createCommandVariableEngine
Source revision: 472fb34b484eeef0b663d28cacb628a7b9f14ff1