Skip to main content

๐Ÿช™ CoinsEngine

This page covers the compatibility with CoinsEngine.

Actionsโ€‹

Modify Balanceโ€‹

Modifies the amount of a specific currency for the player.

Syntax: coinsEngine <type> <currency> <amount>

ParameterSyntaxDefault ValueExplanation
typeSET, ADD, REMOVE, MULTIPLYnoneThe type of balance modification to perform.
currencycurrencynoneThe ID of the currency to be modified (e.g., coins, gem).
amountnumbernoneThe value to be used in the operation.
Example
actions:
coinsEngineSetCoins: coinsEngine set coins 50
coinsEngineAddGem: coinsEngine add gem 1000
coinsEngineRemoveMoney: coinsEngine remove money 100
coinsEngineMultiplyCoins: coinsEngine multiply coins 0.5

Conditionsโ€‹

Has Currencyโ€‹

Checks if the player possesses a certain amount (or more) of a specific currency.

Syntax: coinsEngine <currency> <amount>

ParameterSyntaxDefault ValueExplanation
currencycurrencynoneThe ID of the currency to check.
amountnumbernoneThe minimum amount required to return true.
Example
conditions:
coinsEngineHasCoins: coinsEngine coins 1
coinsEngineGemCanAffordPlot: coinsEngine gem 10000
coinsEngineIsRich: coinsEngine money 1000000