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
| Parameter | Description |
|---|---|
| BaseObject | Character whose relationships are scanned (Self or Target) |
| CompareType | Type of comparison operation (Equal, NotEqual) |
| S1 | Relationship ID to check for (defined in Relationship.json) |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Self has an engagement relationship with anyone | Self | HasRelationshipName | Equal | engagement |
| Self does not have an engagement relationship with anyone | Self | HasRelationshipName | NotEqual | engagement |
| Target has a MarriagePartner relationship with anyone | Target | HasRelationshipName | Equal | MarriagePartner |
| Target does not have a BestFriend relationship with anyone | Target | HasRelationshipName | NotEqual | BestFriend |
Back to Command FinderSearch and filter all 491 Script Condition documents