Condition_Stat
Description
Checks whether the specified stat of a target entity satisfies the given comparison condition.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The target object whose stat is checked (Self or Target) |
| CompareType | Comparison operator: Equal, NotEqual, Less, Greater, LessOrEqual, GreaterOrEqual, InRange, OutRange |
| S1 | The Stat ID to compare (e.g., Cleanliness, Hungry, Energy) |
| F1 | The value to compare against (or minimum value for InRange/OutRange) |
| F2 | The maximum value for range comparisons (InRange/OutRange only) |
Examples
| Description | BaseObject | Command | CompareType | S1 | F1 | F2 |
|---|---|---|---|---|---|---|
| Check if Self's Cleanliness stat is less than 40 | Self | Stat | Less | Cleanliness | 40.0 | |
| Check if Self's Hungry stat equals 0 | Self | Stat | Equal | Hungry | 0.0 | |
| Check if Target's Hungry stat is 80 or more | Target | Stat | GreaterOrEqual | Hungry | 80.0 | |
| Check if Target's Hungry stat is between -10 and 10 | Target | Stat | InRange | Hungry | -10.0 | 10.0 |