Stored Power (Entity Condition Type)

Checks what an entity is carrying in its apoli:power_storage.

Checks what an entity is carrying in its apoli:power_storage. With no filters it is simply “is anything stored?”; with power or tags it counts only matching entries. An entry whose power is no longer loaded is not counted, so this agrees with the number apoli:resource reads from the same storage.

Type ID: apoli:stored_power

Fields

FieldTypeDefaultDescription
storageIdentifieroptionalOnly look in this storage power. Omit to count across every one the entity has.
powerIdentifieroptionalOnly count this stored power.
tagsString or listoptionalOnly count stored powers carrying one of these tags.
comparisonComparison>=How to compare the number of matches against compare_to.
compare_toInteger1The number to compare against.

Examples

Is a specific spell in the book?

{
  "type": "apoli:stored_power",
  "storage": "example:spell_book",
  "power": "example:fireball"
}

Is the book full — three or more spells?

{
  "type": "apoli:stored_power",
  "storage": "example:spell_book",
  "comparison": ">=",
  "compare_to": 3
}

Is the book empty?

{
  "type": "apoli:stored_power",
  "comparison": "==",
  "compare_to": 0
}