Skip to main content

Condition_RelationshipStat

Description

Evaluates the relationship stat (e.g., friendship, romance, business) from BaseObject toward the counterpart against a comparison value. Supports all standard comparison operators including InRange and OutRange.

Parameters

ParameterDescription
BaseObjectStat owner for the check. Self evaluates Self->Target stat; Target evaluates Target->Self stat
CompareTypeComparison operator (Equal, NotEqual, Less, Greater, LessOrEqual, GreaterOrEqual, InRange, OutRange)
S1Relationship stat ID to compare (defined in RelationshipStat.json)
S2None evaluates BaseObject; Household evaluates BaseObject's household
F1Value to compare against, or range minimum when using InRange/OutRange
F2Range maximum when using InRange or OutRange

Examples

DescriptionBaseObjectCommandCompareTypeS1S2F1F2
Self's friendship toward target is less than 40SelfRelationshipStatLessfriendshipNone40
Self's romance toward target is 0SelfRelationshipStatEqualromanceNone0
Target's business toward Self is at least 80TargetRelationshipStatGreaterOrEqualbusinessNone80
Any Target household member's friendship toward Self is 30+TargetRelationshipStatGreaterOrEqualfriendshipHousehold30
Target household's strongest absolute relationship is positiveTargetRelationshipStatGreaterOrEqual{HighestAbsRelationship}Household0

Notes

Household normally succeeds when any member matches. When S1 is {HighestAbsRelationship}, it compares only the single strongest absolute relationship stat across the whole household. Positive values win ties with equal absolute values.