FutureProg functions
givecurrency
Boolean givecurrency(Currency currency, Text Number amount, MagicResourceHaver target, Boolean respectGetRules)
Contexts: computer function, computer program, standard futureprog
Adds currency to a character, item, or room, creating a currency pile if needed. The amount can be numeric base currency or text parsed by the currency. Errors on null currency, invalid amount text, or null target; returns true when currency was added.
currency: The currency definition to query, load, give, or count.
amount: The amount to use. Text amounts are parsed using the target system's normal builder/player parsing rules.
target: The target character, item, location, or perceivable for the operation.
respectGetRules: Whether closed containers and other normal get-access restrictions should be respected.
Contexts: computer function, computer program, standard futureprog
Adds currency to a character, item, or room, creating a currency pile if needed. The amount can be numeric base currency or text parsed by the currency. Errors on null currency, invalid amount text, or null target; returns true when currency was added.
currency: The currency definition to query, load, give, or count.
amount: The amount to use. Text amounts are parsed using the target system's normal builder/player parsing rules.
target: The target character, item, location, or perceivable for the operation.
respectGetRules: Whether closed containers and other normal get-access restrictions should be respected.