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
| Field | Type | Default | Description |
|---|---|---|---|
storage | Identifier | optional | Only looks in this storage power. Leave it out to count across every one the entity has. |
power | Identifier | optional | Only counts this stored power. |
tags | String or list | optional | Only counts stored powers carrying one of these tags. |
comparison | Comparison | >= | How the number of matches is compared with 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, 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
}