Condition_CheckEntityCountInAura
Description
Checks the number of entities within the aura range of the specified BaseObject. Retrieves the aura identified by S1 and counts entities of the type specified by S2 within that aura's range. The resulting count is compared against F1 (and optionally F2) using CompareType.
Note
S2 accepts EB2EntityType values: Character (Zoi), GameObject, etc. F2 is only required when CompareType is InRange or OutRange.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity whose aura is evaluated (Self or Target). |
| CompareType | Comparison operator (Equal, Greater, InRange, OutRange, etc.). |
| S1 | Aura ID owned by the BaseObject (e.g., ProximityAura). |
| S2 | Entity type to count within the aura (e.g., Character, GameObject). |
| F1 | Count threshold for comparison. |
| F2 | Upper bound for range comparisons (InRange or OutRange only). |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 | F1 | F2 |
|---|---|---|---|---|---|---|---|
| Check if any character exists in self's aura | Self | CheckEntityCountInAura | Greater | AuraId | Character | 0 | |
| Check if any GameObject exists in self's aura | Self | CheckEntityCountInAura | Greater | AuraId | GameObject | 0 | |
| Check if no GameObject exists in self's aura | Self | CheckEntityCountInAura | Equal | AuraId | GameObject | 0 | |
| Check if 20 to 30 characters exist in self's aura | Self | CheckEntityCountInAura | InRange | AuraId | Character | 20 | 30 |
Back to Command FinderSearch and filter all 491 Script Condition documents