In Entity Set (Entity Condition Type)
Checks whether the entity is a member of someone's entity set, by counting the sets it is in. With no fields, it passes when the entity is in at least one set.
Type ID: apoli:in_entity_set (alias apoli:in_set)
This asks from the member's side. The bi-entity condition of the same name asks from the owner's side instead, checking whether the target is in the actor's set.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
set | Identifier | optional | Only counts sets that come from this apoli:entity_set power. Without it, every entity set counts. |
comparison | Comparison | ">=" | How the number of sets is compared with compare_to. |
compare_to | Integer or Expression | 1 | The number of sets to compare against. |
Each owner's set counts separately, so an entity that two players have each added to their example:party set is in 2 sets.
Examples
"condition": {
"type": "apoli:in_entity_set",
"set": "example:party"
}This passes while anyone has the entity in their example:party set.
"condition": {
"type": "apoli:in_entity_set",
"comparison": ">=",
"compare_to": 3
}This passes when the entity is in three or more sets at once, of any kind.
Only the server knows how many sets an entity is in, so this condition is always false when the client evaluates it. To drive a visual power such as apoli:model_color or apoli:entity_glow, ask from the owner's side with the bi-entity condition of the same name, which works on the client.