Skip to main content

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

ParameterDescription
BaseObjectOwner of the relationship flags to check (Self or Target)
CompareTypeType of comparison operation (Equal, NotEqual)
S1Relationship flag group ID (defined in RelationshipFlagGroup data)
S2Scope and logic of the check (SingleOr, SingleAnd, BothOr, BothAnd)

Examples

DescriptionBaseObjectCommandCompareTypeS1S2
Self has loved Target before (any flag in group)SelfHasRelationshipFlagGroupEqualHasLovedSingleOr
Target has never loved Self (no flags in group)TargetHasRelationshipFlagGroupNotEqualHasLovedSingleOr
Both Self and Target have loved each other (any flag)SelfHasRelationshipFlagGroupEqualHasLovedBothOr
Self has all flags in the HasLoved group toward TargetSelfHasRelationshipFlagGroupEqualHasLovedSingleAnd