Stored Origin (Entity Condition Type)

Entity condition — passes when the entity has an origin saved in its store.

Passes when the entity has an origin saved in its store, optionally matching a specific key, origin or layer.

Type ID: origins:stored_origin — 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
keyStringoptionalOnly check this key. Omit to match any stored origin.
originIdentifieroptionalThe stored entry must be this origin.
layerIdentifieroptionalThe stored entry must have been taken from this layer.

Examples

Is there anything to restore?

{
  "type": "origins:stored_origin",
  "key": "before_curse"
}

Have they stolen a Merling specifically?

{
  "type": "origins:stored_origin",
  "key": "stolen",
  "origin": "origins:merling"
}

Anything at all in the store:

{ "type": "origins:stored_origin" }