FutureProg functions
loadcoins
loadcoins overload 1
Item loadcoins(Currency currency, Text coins)
Available in
- computer function
- computer program
- standard futureprog
Creates a new currency-pile item from exact coin counts such as '2 crowns 5 pennies'. Errors if the currency is null, the coin text is malformed, or a coin name is invalid.
| Parameter | Type | Description |
|---|---|---|
currency |
Currency |
The currency definition to query, load, give, or count. |
coins |
Text |
A text list of coin counts and coin names, such as '3 silver 8 copper'. |