Back to index...

NameTypeDeprecatedSecureDescription
Event.CurrencySignals a change in the player's available currency.
Inspect.Currency.Category.DetailfunctionReturns information about currency categories.
Inspect.Currency.Category.ListfunctionReturns a table of valid currency categories.
Inspect.Currency.DetailfunctionProvides detailed information about currencies.
Inspect.Currency.ListfunctionReturns a table of all known currencies.

Event.Currency

Signals a change in the player's available currency.

Usage:

Event.Currency(currencies)
ParameterTypeDatatypeDescription
currenciesparametervariantNew currency counts, in key/value form.

Inspect.Currency.Category.Detail

Returns information about currency categories.

Usage:

detail = Inspect.Currency.Category.Detail(category)
details = Inspect.Currency.Category.Detail(categories)
ParameterTypeDatatypeDescription
categoriesparametertableA table of identifiers of currency categories to retrieve detail for.
categoryparametercurrencycategoryThe identifier of the currency category to retrieve detail for.
detailresulttableDetail table for a single currency category.
detailsresulttableDetail tables for all requested currency categories. The key is the category ID, the value is the category's detail table.
members
id The ID of the requested element.
name The name of the currency category.

Inspect.Currency.Category.List

Returns a table of valid currency categories.

Usage:

categories = Inspect.Currency.Category.List()
ParameterTypeDatatypeDescription
categoriesresulttableValid currency categories, in {id = true} format.

Inspect.Currency.Detail

Provides detailed information about currencies.

Usage:

detail = Inspect.Currency.Detail(coin)
detail = Inspect.Currency.Detail(currency)
details = Inspect.Currency.Detail(currencies)
ParameterTypeDatatypeDescription
coinparameterstringThe string "coin", used as a value to request the player's money.
currenciesparametertableA table of identifiers of currencies to retrieve detail for.
currencyparameteritemtypeThe identifier of the currency to retrieve detail for.
detailresulttableDetail table for a single currency.
detailsresulttableDetail tables for all requested currencies. The key is the currency ID, the value is the currency's detail table.
members
category ID of the currency's category.
icon Internal name of the currency's icon.
id The ID of the requested element.
name The currency's name.
stack The number of this currency that you have.
stackMax The maximum number of this currency that you can have.

Inspect.Currency.List

Returns a table of all known currencies.

Usage:

currencies = Inspect.Currency.List()
ParameterTypeDatatypeDescription
currenciesresulttableAll known currencies, in {id = amount} format.

Back to index...