FutureProg functions

subtractmagicresourcelevel

Magic · computer function, computer program, standard futureprog

Number subtractmagicresourcelevel(MagicResourceHaver thing, Number resourceId, Number amount)
Contexts: computer function, computer program, standard futureprog
Subtracts from the specified magic resource on a character, item, or room and returns the resulting clamped amount.
thing: The character, item, or room whose magic resource level should be altered
resourceId: The id of the magic resource to alter
amount: The amount to set, add, or subtract

Number subtractmagicresourcelevel(MagicResourceHaver thing, Text resource, Number amount)
Contexts: computer function, computer program, standard futureprog
Subtracts from the specified magic resource on a character, item, or room and returns the resulting clamped amount.
thing: The character, item, or room whose magic resource level should be altered
resource: The name or id of the magic resource to alter
amount: The amount to set, add, or subtract

← Back to FutureProg functions