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 .
×

Completely new to Macros, need help setting up.

So, I'm trying to create a Macro based off a character's attribute, but since this is D&D, I need the specific modifier and not the attribute itself. Do I have to toss a whole bunch of new Attributes into the character sheet to make this work, or is it possible to have a special formula for factoring the modifier of the attribute?
1406925275
The Aaron
Roll20 Production Team
API Scripter
You can handle it a few different ways. Using a formula based on the selected character's strength attribute /roll 1d20+floor((@{selected|strength}-10)/2) Using the second box on the attribute to store it: (so strength would be [ 18 ] / [ 4 ] in the attributes) /roll 1d20+@{selected|strength|max} If you're using character sheets, you might be able to reference their field for it, but I'm not familiar with that syntax. Also, if you are writing macros in the attributes of a specific character, you can omit the selected| as it is assumed.
Thank you!
Hi folks, another new user here. I'm not seeing a strength attribute for a token. Perhaps I'm misunderstanding what's written above. Any help would be greatly appreciated.
You have to create a character in the journal section and add the strength attribute.