FutureProg functions
magicresourcecapacity
Overload 1
magicresourcecapacity overload 1
Number magicresourcecapacity(MagicResourceHaver thing, Number resourceId)
Available in
- computer function
- computer program
- standard futureprog
Pure native maximum capacity query for a resource holder. Invalid/nonfinite capacities fail; nothing is granted or altered.
| Parameter | Type | Description |
|---|---|---|
thing |
MagicResourceHaver |
The character, item, or room whose magic resource level should be inspected |
resourceId |
Number |
The id of the magic resource to inspect |
Overload 2
magicresourcecapacity overload 2
Number magicresourcecapacity(MagicResourceHaver thing, Text resource)
Available in
- computer function
- computer program
- standard futureprog
Pure native maximum capacity query for a resource holder. Invalid/nonfinite capacities fail; nothing is granted or altered.
| Parameter | Type | Description |
|---|---|---|
thing |
MagicResourceHaver |
The character, item, or room whose magic resource level should be inspected |
resource |
Text |
The name or id of the magic resource to inspect |