Condition_HasEnoughCurrencyExchangeCostInSite
Description
Checks whether the self character has enough currency to cover the exchange cost of the target object within the site. The exchange cost is retrieved from the target entity, and B2CurrencyHelper is used to compare the character's balance against it.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character whose currency balance is checked (Self). |
| CompareType | Comparison type used to evaluate the balance against the exchange cost. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if Self has enough currency to pay the target object exchange cost | Self | HasEnoughCurrencyExchangeCostInSite | GreaterOrEqual |
| Check if Self cannot afford the exchange cost | Self | HasEnoughCurrencyExchangeCostInSite | Less |
| Check if Self has exactly enough to pay the target exchange cost | Self | HasEnoughCurrencyExchangeCostInSite | Equal |
Back to Command FinderSearch and filter all 491 Script Condition documents