FutureProg functions

countcurrency

Currency · computer function, computer program, standard futureprog

Number countcurrency(Character character, Currency currency)
Contexts: 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.
character: The character whose worn, held, and carried items should be searched.
currency: The currency definition whose coins should be counted.

Number countcurrency(Item item, Currency currency)
Contexts: 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.
item: The item to search, including nested container contents.
currency: The currency definition whose coins should be counted.

Number countcurrency(Location location, Currency currency)
Contexts: 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.
location: The room whose loose items should be searched.
currency: The currency definition whose coins should be counted.

← Back to FutureProg functions