EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

variable

Read a declared variable, using its virtual initial value when absent.

Signature

(VariableId, VariableOwner) -> StateValue

Typechecked usage

The snapshot must declare the scope required by this read.

local value = ctx.read.variable("core:potions_used", "self")