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

Macro help: getting the macro to auto calculate DC

Hello and a preemptive thank you for helping, I am trying to create an Ability Button macro for a Pushing attack. I want it to auto calculate the Save DC. The save DC is based [[8 + @{pb} + ?]] Where the question mark represents strength modifier. If you know how to add an auto str mod, I would really appreciate the help.  I apologize that this might be a noob question, but I'm not used to the Macro system.  Thanks again!
1509321975
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Depends on the sheet you are using, based on your @{pb} attribute syntax, I'm guessing you're using the 5e OGL sheet. By an auto str mod, do you mean that you want the player (or you) to be able to select the target of the attack, and then have it autocalc the DC? This is how you'd do that: [[8+@{pb}+@{target|strength_mod}]]
I'm looking for it to auto calc my own mod into the save, so that I don't have to go in and change it later if I take more points into strength. 
I mean... I could do it that way and just select my own character to auto calc the dc by adding in my strength mod. 
Nevermind... I'm an idiot and kept forgetting one of the symbols. I got it working now. Thanks for your help, though. I couldn't figure out how to get the Strength mod to read without you!