Currency Pouch

Scripting with the CurrencyPouch class.

The CurrencyPouch is an object that stores currency. This can be used to provide to an Item so that the item acts as a currency.

Fields & Properties

Name
Description
Type
Access

currencyIdentity

The currency type.

CurrencyIdentity

public

amount

The currency amount. Relevant when random range is disabled.

Currency

public

amountMin

The min currency amount. Relevant when random range is enabled.

Currency

public

amountMax

The max currency amount. Relevant when random range is enabled.

Currency

public

randomRange

If the currency gained should be randomized.

bool

public

Get Currency

It's recommended to use the GetCurrency method to get the currency. This method will return a Currency based on the set properties. If randomRange is set to true, a random amount between the min and max values will be returned.

Currency currency = currencyPouch.GetCurrency();

Last updated