Condition_HaveCurrency
Description
Checks the BaseObject's current currency amount against the specified value using the given comparison type. If S1 is empty, the main currency is used by default.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity whose currency amount is checked. |
| CompareType | Supported compare types: Equal, NotEqual, Greater, Less, GreaterOrEqual, LessOrEqual, InRange, OutRange. |
| S1 | Currency ID (CurrencyDtId). If empty, the main currency is used. |
| F1 | Currency value to compare against (lower bound for InRange/OutRange). |
| F2 | Upper bound value for InRange/OutRange comparisons. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if self has 0 or less main currency | Self | HaveCurrency | LessOrEqual |
| Check if self has 100 or more main currency | Self | HaveCurrency | GreaterOrEqual |
| Check if self has between 100 and 999 main currency | Self | HaveCurrency | InRange |
| Check if self has 10 or more CatShopPoint | Self | HaveCurrency | GreaterOrEqual |
Back to Command FinderSearch and filter all 491 Script Condition documents