Condition_CurrentAmbition
Description
Checks the current step of a specific ambition for the specified entity. Retrieves the ambition's current step by ambition ID (S1) and compares it against the expected step value (F1), with optional upper bound (F2) for range comparisons.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity to check (Self or Target). |
| CompareType | Comparison operator (Equal, NotEqual, Less, Greater, LessOrEqual, GreaterOrEqual, InRange, OutRange). |
| S1 | Ambition ID to look up the current step for (e.g., Rich, Voice). |
| F1 | Expected ambition step value to compare against. |
| F2 | Upper bound for range comparisons (used when CompareType is InRange or OutRange). |
Examples
| Description | BaseObject | Command | CompareType | S1 | F1 | F2 |
|---|---|---|---|---|---|---|
| Check if self's Rich ambition is exactly at step 2 | Self | CurrentAmbition | Equal | Rich | 2 | 0 |
| Check if self's Rich ambition is below step 3 | Self | CurrentAmbition | Less | Rich | 3 | 0 |
| Check if self's Voice ambition is at step 2 or higher | Self | CurrentAmbition | GreaterOrEqual | Voice | 2 | 0 |
| Check if self's Rich ambition step is between 1 and 2 | Self | CurrentAmbition | InRange | Rich | 1 | 2 |