Skip to main content

Condition_RelationshipDeviation

Description

Checks the absolute deviation (difference) of a relationship stat between Self and Target. Computes |Self's stat value - Target's stat value| and compares it against F1 (and F2 for range operations). BaseObject is not used; the check always operates on the Self-Target pair from the script context.

Parameters

ParameterDescription
BaseObjectNot used; always evaluates the deviation between Self and Target
CompareTypeComparison operator (Equal, NotEqual, Less, Greater, LessOrEqual, GreaterOrEqual, InRange, OutRange)
S1Relationship stat ID to compare (e.g., Friendship, Romance, Business)
F1Comparison threshold or range minimum for the absolute difference
F2Range maximum (used with InRange or OutRange)

Examples

DescriptionBaseObjectCommandCompareTypeS1F1F2
Friendship deviation between Self and Target is greater than 30SelfRelationshipDeviationGreaterFriendship30
Romance deviation between Self and Target is within 10 pointsSelfRelationshipDeviationLessOrEqualRomance10
Business deviation between Self and Target is between 5 and 20SelfRelationshipDeviationInRangeBusiness520
Friendship deviation between Self and Target equals 0SelfRelationshipDeviationEqualFriendship0