FutureProg functions
loadcurrency
Overload 1
loadcurrency overload 1
Item loadcurrency(Currency currency, Number amount)
Available in
- computer function
- computer program
- standard futureprog
Creates a new currency-pile item worth the supplied numeric or text amount. Errors if the currency is null or the text amount cannot be parsed.
| Parameter | Type | Description |
|---|---|---|
currency |
Currency |
The currency definition to query, load, give, or count. |
amount |
Number |
The amount to use. Text amounts are parsed using the target system's normal builder/player parsing rules. |
Overload 2
loadcurrency overload 2
Item loadcurrency(Currency currency, Text amount)
Available in
- computer function
- computer program
- standard futureprog
Creates a new currency-pile item worth the supplied numeric or text amount. Errors if the currency is null or the text amount cannot be parsed.
| Parameter | Type | Description |
|---|---|---|
currency |
Currency |
The currency definition to query, load, give, or count. |
amount |
Text |
The amount to use. Text amounts are parsed using the target system's normal builder/player parsing rules. |