Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Referencing _max

Hey guys, so, I've come across an issue in my macro making. I am unable to reference the @{attribute_max} of an item as opposed to its @{attribute} value. I find it necessary to be able to use this number for determining recovery rate macros and the like. Does any know if this is currently possible or Do I need to find a static field to input the number for reference only?
1471450027
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
try @{selected|attributeName|max}. You can sub the char's name, or the target keyword in for selected.
1471453312
Andrew R.
Pro
Sheet Author
Use a vertical bar | instead of an underscore _ in between the attribute's name and the max keyword. 
OOOOOOOOOO I get it now.... you have to specify who's max value to return even within the sheet.... Kind of redundant, but it works, thanks guys :)
1471459069
The Aaron
Roll20 Production Team
API Scripter
Check here for added info:&nbsp; <a href="https://wiki.roll20.net/Macros#Using_a_Selected_To" rel="nofollow">https://wiki.roll20.net/Macros#Using_a_Selected_To</a>...