Skip to main content

Condition_HasRelationshipNameCount

Description

Checks the number of characters who have the specified relationship name with BaseObject, and compares that count against F1 (and F2 for range operations).

Parameters

ParameterDescription
BaseObjectCharacter whose relationship name count is checked (Self or Target)
CompareTypeComparison operator (Equal, NotEqual, Less, Greater, LessOrEqual, GreaterOrEqual, InRange, OutRange)
S1Relationship ID to count (defined in Relationship.json)
F1Comparison threshold or range minimum
F2Range maximum (used with InRange or OutRange)

Examples

DescriptionBaseObjectCommandCompareTypeS1F1F2
Self has exactly 2 BestFriend relationshipsSelfHasRelationshipNameCountEqualBestFriend2
Self has fewer than 3 engagement relationshipsSelfHasRelationshipNameCountLessengagement3
Self has between 1 and 5 MarriagePartner relationshipsSelfHasRelationshipNameCountInRangeMarriagePartner15
Target has at least 1 BestFriend relationshipTargetHasRelationshipNameCountGreaterOrEqualBestFriend1