Skip to main content

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

ParameterDescription
BaseObjectThe entity whose currency amount is checked.
CompareTypeSupported compare types: Equal, NotEqual, Greater, Less, GreaterOrEqual, LessOrEqual, InRange, OutRange.
S1Currency ID (CurrencyDtId). If empty, the main currency is used.
F1Currency value to compare against (lower bound for InRange/OutRange).
F2Upper bound value for InRange/OutRange comparisons.

Examples

DescriptionBaseObjectCommandCompareType
Check if self has 0 or less main currencySelfHaveCurrencyLessOrEqual
Check if self has 100 or more main currencySelfHaveCurrencyGreaterOrEqual
Check if self has between 100 and 999 main currencySelfHaveCurrencyInRange
Check if self has 10 or more CatShopPointSelfHaveCurrencyGreaterOrEqual