Condition_IsStatUrgent
Description
Checks whether the specified desire stat of the BaseObject character is urgent (Warning or Dangerous phase). Only Toilet, Hunger and Sleep can be urgent; any other stat always reads as not urgent.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character whose stat is checked (Self or Target) |
| CompareType | Equal: the stat is urgent. NotEqual: the stat is not urgent |
| S1 | The Stat ID to check (Toilet, Hunger, Sleep) |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Check if Self's Hunger is urgent | Self | IsStatUrgent | Equal | Hunger |
| Check if Target's Toilet is not urgent | Target | IsStatUrgent | NotEqual | Toilet |