FutureProg functions
countaccessiblecurrency
Overload 1
countaccessiblecurrency overload 1
Number countaccessiblecurrency(Character character, Currency currency)
Available in
- computer function
- computer program
- standard futureprog
Counts coins of a currency found on a character, inside an item, or in a room while respecting normal get-access limits such as closed containers. Errors if the target or currency is null.
| Parameter | Type | Description |
|---|---|---|
character |
Character |
The character whose accessible worn, held, and carried items should be searched. |
currency |
Currency |
The currency definition whose coins should be counted. |
Overload 2
countaccessiblecurrency overload 2
Number countaccessiblecurrency(Item item, Currency currency)
Available in
- computer function
- computer program
- standard futureprog
Counts coins of a currency found on a character, inside an item, or in a room while respecting normal get-access limits such as closed containers. Errors if the target or currency is null.
| Parameter | Type | Description |
|---|---|---|
item |
Item |
The item to search, skipping closed containers that normal get rules would block. |
currency |
Currency |
The currency definition whose coins should be counted. |
Overload 3
countaccessiblecurrency overload 3
Number countaccessiblecurrency(Location location, Currency currency)
Available in
- computer function
- computer program
- standard futureprog
Counts coins of a currency found on a character, inside an item, or in a room while respecting normal get-access limits such as closed containers. Errors if the target or currency is null.
| Parameter | Type | Description |
|---|---|---|
location |
Location |
The room whose accessible loose items should be searched. |
currency |
Currency |
The currency definition whose coins should be counted. |