Skip to main content

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

ParameterDescription
BaseObjectNot used in this command. The comparison always uses Self and Target.
CompareTypeComparison operator (Equal, GreaterOrEqual, Less, InRange, OutRange, etc.).
S1Set to "Abs" to compare the absolute difference; leave empty for signed.
F1Expected difference value to compare against.
F2Upper bound for range comparisons (InRange or OutRange only).

Examples

DescriptionBaseObjectCommandCompareTypeS1F1F2
Check if target's age group equals self'sSelfCompareGrowthStepEqual0
Check if target is one or more steps older than selfSelfCompareGrowthStepGreaterOrEqual1
Check if the absolute age group difference is 1 or moreSelfCompareGrowthStepGreaterAbs0
Check if the absolute age group difference is 2 to 3SelfCompareGrowthStepInRangeAbs23