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
| Field | Type | Default | Description |
|---|---|---|---|
storage | Identifier | optional | Only look in this storage power. Omit to count across every one the entity has. |
power | Identifier | optional | Only count this stored power. |
tags | String or list | optional | Only count stored powers carrying one of these tags. |
comparison | Comparison | >= | How to compare the number of matches against compare_to. |
compare_to | Integer | 1 | The 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
}