Condition_HasRelationshipFlag
Description
Checks if BaseObject has the specified relationship flag against the counterpart. S2 controls the scope of the check:
- Single: BaseObject has the flag toward the counterpart only.
- Both: Both BaseObject and the counterpart have the flag toward each other.
- SingleToAny: BaseObject has the flag toward at least one person in the relationship window.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Owner of the relationship flag to check (Self or Target) |
| CompareType | Type of comparison operation (Equal, NotEqual) |
| S1 | Relationship flag ID to check |
| S2 | Scope of the check (Single, Both, SingleToAny) |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Self has a crush on Target | Self | HasRelationshipFlag | Equal | Crush | Single |
| Self does not have a crush on Target | Self | HasRelationshipFlag | NotEqual | Crush | Single |
| Both Self and Target have exchanged presents | Self | HasRelationshipFlag | Equal | GavePresent | Both |
| Self has a crush on at least someone | Self | HasRelationshipFlag | Equal | Crush | SingleToAny |
Back to Command FinderSearch and filter all 491 Script Condition documents