Skip to main content

Stored Power (Entity Condition Type)

Checks what an entity is carrying in its apoli:power_storage. With no filters it asks whether anything is stored, and with power or tags it only counts matching entries. An entry whose power is no longer loaded isn't counted, so this agrees with the number apoli:resource reads from the same storage.

Type ID: apoli:stored_power

Fields

FieldTypeDefaultDescription
storageIdentifieroptionalOnly looks in this storage power. Leave it out to count across every one the entity has.
powerIdentifieroptionalOnly counts this stored power.
tagsString or listoptionalOnly counts stored powers carrying one of these tags.
comparisonComparison>=How the number of matches is compared with 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, with 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
}