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

Is there a way to use the max value of an Attribute as a variable in an Ability?

1377919468

Edited 1377919485
I know you can use the current value, but is there any way to use the max value of an Attribute when making Abilities and macros? Thanks so much for any help!
1377919625

Edited 1377919637
Gauss
Forum Champion
No there is not currently a way to use the max value (outside of the API). Sorry. - Gauss
Thank you very much for the quick reply. :3
Laura, you can make a separate attribute called "stat max" and set its value to the right number if that helps?
1377968512
Gauss
Forum Champion
Out of curiosity, why do you need to use the max value? - Gauss
1377976491

Edited 1377976614
I was mostly just curious, because I didn't see a way to do it in any of the documentation. I could think of plenty of ways to use it if I could. Namely, putting another value there could help save sheet space. (So you could put a stat in the "current" value and its modifier in "max" for example.)
Yeah, it would be great for cleaning up ability scores for D&D.
1377998144
Bill K.
Pro
Sheet Author
Well, unless you need to access the attribute itself, just put the modifier in the first block, and the attribute in the second.  ie: Strength: 4    18.  Then @Strength will return 4.  Not that that gives you the max value, but it looks like you want to use the max for something other than the actual maximum anyways?
That's true! I'm playing Anima and there are occasionally characteristic rolls where you roll against the actual stat but we've been playing it since it came out and we've used that maybe twice. Haha. Anima characteristic modifiers are typically much higher than the characteristics though. Setting "max" lower than "current" won't break anything, right? Thanks for the great idea!
1378060765
Gauss
Forum Champion
Max being lower then current shouldn't cause any problems. - Gauss