Condition_HasRelationshipFlagGroup
Description
Checks if BaseObject has relationship flags belonging to the specified flag group against the counterpart. S2 controls both scope and logic:
- SingleOr: BaseObject has at least one flag from the group toward the counterpart.
- SingleAnd: BaseObject has all flags from the group toward the counterpart.
- BothOr: Both BaseObject and the counterpart have at least one flag from the group toward each other.
- BothAnd: Both BaseObject and the counterpart have all flags from the group toward each other.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Owner of the relationship flags to check (Self or Target) |
| CompareType | Type of comparison operation (Equal, NotEqual) |
| S1 | Relationship flag group ID (defined in RelationshipFlagGroup data) |
| S2 | Scope and logic of the check (SingleOr, SingleAnd, BothOr, BothAnd) |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Self has loved Target before (any flag in group) | Self | HasRelationshipFlagGroup | Equal | HasLoved | SingleOr |
| Target has never loved Self (no flags in group) | Target | HasRelationshipFlagGroup | NotEqual | HasLoved | SingleOr |
| Both Self and Target have loved each other (any flag) | Self | HasRelationshipFlagGroup | Equal | HasLoved | BothOr |
| Self has all flags in the HasLoved group toward Target | Self | HasRelationshipFlagGroup | Equal | HasLoved | SingleAnd |
Back to Command FinderSearch and filter all 491 Script Condition documents