Skip to main content

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

ParameterDescription
BaseObjectThe entity to check for trait group possession (Self or Target)
CompareTypeSupported compare types: Equal, NotEqual
S1Trait group ID to check for (defined in TraitGroup.json)

Examples

DescriptionBaseObjectCommandCompareTypeS1
Checks if Self has any trait in the Thinking groupSelfTraitGroupEqualThinking
Checks if Target does NOT have any trait in the Social groupTargetTraitGroupNotEqualSocial
Checks if Self has any trait in the Creative groupSelfTraitGroupEqualCreative