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

Calling Max Attributes in a Macro

May 24 (11 years ago)

Edited May 24 (11 years ago)
Hithere,

I've been fooling around making some handy macros for an upcomming pathfinder campain (which I am GMing) and in one of them I am trying to have it whisper all the basic stats and ability scores back to me, but because I have them notated in the way suggested in the Pathfinder section (bonus/score, ie. STR 1/12) instead of the score I just get the bonus back. Having the sheet set up like that is very useful in all other capacities, but how do you get it to return the Max value?

Here is line in my macro for the sake of example:

/w GM CHA: [[@{target|CHA}]]

If I have character's CHA at 3/16 the macro will return 3.
May 24 (11 years ago)

Edited May 24 (11 years ago)
CHA-base returns the actual ability score value.
May 24 (11 years ago)
Pat S.
Forum Champion
Sheet Author
Have you read the Macro page in the wiki? Macros
May 24 (11 years ago)

Edited May 24 (11 years ago)
Justin, you can continue the syntax of the attribute as such:

/w GM CHA: [[@{target|CHA|max}]]

This will assign what you have for the Charisma score, instead of the modifier.

Pro Tip: You can also use the "|min" command, which will use the number that you have in place for the modifier. Though it isn't required and would just be redundant, maybe there's a situation you can find yourself needing that in the future.
May 25 (11 years ago)

Edited May 25 (11 years ago)
Thanks, everyone! I actually had read the macros section, scoured it one might say, but for some reason that part of it didn't click (I feel like it was just kind of glossed over a little bit.) I did fool around with the macros in chat quite a bit and came up with a solution. I'll post the full macro below so you can see the example!

gmStatCheck

/emas GM looks at @{target|target1|token_name}'s stats...
/w gm LVL: [[@{target|target1|LVL}]]
/w gm STR: [[@{target|target1|STR|Max}]]
/w gm DEX: [[@{target|target1|DEX|Max}]]
/w GM INT: [[@{target|target1|INT|Max}]]
/w GM CHA: [[@{target|target1|CHA|Max}]]
/w gm WIS: [[@{target|target1|WIS|Max}]]
/w gm CON: [[@{target|target1|CON|Max}]]
/w gm AC: [[@{target|target1|AC}]]

For some reason that I will probably never know, you have to declare your target as something for the |Max flag to work. It took me a longash time to figure out what that meant on the wiki page for some reason. I have pretty robust character sheets made up, and I've also created a template so I can make up more complete NPCs and enemies more quickly. I will play around with CHA-base at some point though.
May 25 (11 years ago)
GiGs
Pro
Sheet Author
API Scripter
You can use selected in place of target, for simpler syntax - though you do remember to have to click the token before clicking the macro. It's the same process though.