FutureProg functions
countcurrency
Overload 1
countcurrency overload 1
Number countcurrency(Character character, Currency currency)
Available in
- computer function
- computer program
- standard futureprog
Counts all coins of a currency found on a character, inside an item, or in a room, recursively searching containers without applying get-access rules. Errors if the target or currency is null.
| Parameter | Type | Description |
|---|---|---|
character |
Character |
The character whose worn, held, and carried items should be searched. |
currency |
Currency |
The currency definition whose coins should be counted. |
Overload 2
countcurrency overload 2
Number countcurrency(Item item, Currency currency)
Available in
- computer function
- computer program
- standard futureprog
Counts all coins of a currency found on a character, inside an item, or in a room, recursively searching containers without applying get-access rules. Errors if the target or currency is null.
| Parameter | Type | Description |
|---|---|---|
item |
Item |
The item to search, including nested container contents. |
currency |
Currency |
The currency definition whose coins should be counted. |
Overload 3
countcurrency overload 3
Number countcurrency(Location location, Currency currency)
Available in
- computer function
- computer program
- standard futureprog
Counts all coins of a currency found on a character, inside an item, or in a room, recursively searching containers without applying get-access rules. Errors if the target or currency is null.
| Parameter | Type | Description |
|---|---|---|
location |
Location |
The room whose loose items should be searched. |
currency |
Currency |
The currency definition whose coins should be counted. |