Condition_TraitGroup
Description
Checks whether the BaseObject entity possesses a trait that belongs to the specified trait group. The trait group must be defined in TraitGroup.json.
Note
A trait group can bundle both Nature and Characteristic traits under one ID (e.g., Trait_1: Outlaw(Nature) + Malicious(Characteristic)).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity to check for trait group possession (Self or Target) |
| CompareType | Supported compare types: Equal, NotEqual |
| S1 | Trait group ID to check for (defined in TraitGroup.json) |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Checks if Self has any trait in the Thinking group | Self | TraitGroup | Equal | Thinking |
| Checks if Target does NOT have any trait in the Social group | Target | TraitGroup | NotEqual | Social |
| Checks if Self has any trait in the Creative group | Self | TraitGroup | Equal | Creative |