Stored Value (Entity Condition Type)

Entity condition — passes when the entity has a text value saved under a key.

Passes when the entity has a text value saved in its store under key, optionally equal to a specific string.

Type ID: origins:stored_value — an entity condition.

Needs the Origins mod. Registered by Origins, not core Apoli. It reads server-side state, so it always fails when evaluated purely client-side.

Fields

FieldTypeDefaultPurpose
keyStringrequiredWhich entry to check.
valueStringoptionalThe stored text must equal this exactly. Omit to check only that the key exists.

Only text entries are checked — a key holding a stored origin does not satisfy this condition. Use origins:stored_origin for those.

Examples

Are we in the cursed phase?

{
  "type": "origins:stored_value",
  "key": "phase",
  "value": "cursed"
}

Has the phase been set at all?

{
  "type": "origins:stored_value",
  "key": "phase"
}