Entity Set Size (Entity Condition Type)

Compares the amount of entities stored in a power that uses the Entity Set to a certain value.

Compares the amount of entities stored in a power that uses the apoli:entity_set to a certain value.

Type ID: apoli:entity_set_size (but can use it’s old set_size type id as an alias)

Fields

FieldTypeDefaultDescription
setIdentifierThe ID of the power.
comparisonComparisonDetermines how the amount of referenced entities in the specified power should be compared to the specified value.
compare_toIntegerThe value at which the amount of referenced entities in the specified power will be compared to.

Examples

"condition": {
	"type": "apoli:entity_set_size",
	"set": "example:special_pets",
	"comparison": ">",
	"compare_to": 0
}

This example will check if the amount of entities stored in the example:special_pets (data/example/powers/special_pets.json) power is non-zero (e.g: if it’s not empty).