Condition_CompareGrowthStep
Description
Checks the age group difference between Self and Target. The difference is calculated
as (Target's GrowthStep) minus (Self's GrowthStep). A positive value means Target is
older; a negative value means Target is younger. When S1 is "Abs", the absolute value
of the difference is used for comparison.
Parameters
| Parameter | Description |
|---|
| BaseObject | Not used in this command. The comparison always uses Self and Target. |
| CompareType | Comparison operator (Equal, GreaterOrEqual, Less, InRange, OutRange, etc.). |
| S1 | Set to "Abs" to compare the absolute difference; leave empty for signed. |
| F1 | Expected difference value to compare against. |
| F2 | Upper bound for range comparisons (InRange or OutRange only). |
Examples
| Description | BaseObject | Command | CompareType | S1 | F1 | F2 |
|---|
| Check if target's age group equals self's | Self | CompareGrowthStep | Equal | | 0 | |
| Check if target is one or more steps older than self | Self | CompareGrowthStep | GreaterOrEqual | | 1 | |
| Check if the absolute age group difference is 1 or more | Self | CompareGrowthStep | Greater | Abs | 0 | |
| Check if the absolute age group difference is 2 to 3 | Self | CompareGrowthStep | InRange | Abs | 2 | 3 |