Skip to main content

Condition_Stat

Description

Checks whether the specified stat of a target entity satisfies the given comparison condition.

Parameters

ParameterDescription
BaseObjectThe target object whose stat is checked (Self or Target)
CompareTypeComparison operator: Equal, NotEqual, Less, Greater, LessOrEqual, GreaterOrEqual, InRange, OutRange
S1The Stat ID to compare (e.g., Cleanliness, Hungry, Energy)
F1The value to compare against (or minimum value for InRange/OutRange)
F2The maximum value for range comparisons (InRange/OutRange only)

Examples

DescriptionBaseObjectCommandCompareTypeS1F1F2
Check if Self's Cleanliness stat is less than 40SelfStatLessCleanliness40.0
Check if Self's Hungry stat equals 0SelfStatEqualHungry0.0
Check if Target's Hungry stat is 80 or moreTargetStatGreaterOrEqualHungry80.0
Check if Target's Hungry stat is between -10 and 10TargetStatInRangeHungry-10.010.0