Skip to main content

Condition_HasRelationshipName

Description

Checks whether BaseObject has a specific relationship name with anyone (not just the current target). Unlike Condition_Relationship which checks only Self-Target, this condition scans all relationships the character currently has.

Note

RelationshipName checks only the relationship with the current target. HasRelationshipName checks all relationships the character has regardless of target.

Parameters

ParameterDescription
BaseObjectCharacter whose relationships are scanned (Self or Target)
CompareTypeType of comparison operation (Equal, NotEqual)
S1Relationship ID to check for (defined in Relationship.json)

Examples

DescriptionBaseObjectCommandCompareTypeS1
Self has an engagement relationship with anyoneSelfHasRelationshipNameEqualengagement
Self does not have an engagement relationship with anyoneSelfHasRelationshipNameNotEqualengagement
Target has a MarriagePartner relationship with anyoneTargetHasRelationshipNameEqualMarriagePartner
Target does not have a BestFriend relationship with anyoneTargetHasRelationshipNameNotEqualBestFriend