FutureProg functions

setmagicresource

Magic · computer function, computer program, standard futureprog

Number setmagicresource(MagicResourceHaver thing, Number resourceId, Number amount)
Contexts: computer function, computer program, standard futureprog
Sets 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 setmagicresource(MagicResourceHaver thing, Text resource, Number amount)
Contexts: computer function, computer program, standard futureprog
Sets 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