DCode

Covers Engine 2.0.0

state

Per-runtime table for values that survive handler calls.

Syntax

state.<name>

Available in

  • Runtime block bodies
  • Shared helper functions

Native C++

Statically discovered state fields are stored as doubles initialized to zero and reset at task start. They cannot hold Lua tables or strings; use explicit numeric flags such as state.ready == 1.

Example

state.name