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 error?

I'm new to macros and I'm working on making a melee attack nested in the emote. /me Sam slams the holy sword Raidence down on his enemy! [[ 1d20 @{MeleeBAB} + 1 ]] and he does [[ 1d1 +@{STRMOD} ]] This is the full command I wrote but it's not working. It sends nothing. So I decided to try and do a little troubleshooting and I removed the "and he does and he does [[ 1d1 +@{STRMOD} ]]" part and this is what it returns. Brandon F. Sam slams the holy sword Raidence down on his enemy! 16 Brandon F.: it's adding a blank line for some reason. What should I do to fix this and to get the full comand?
1398611729

Edited 1398611797
Sungrass
Plus
Sheet Author
Pretty sure you're missing a +-sign between 1d20 and the MeleeBAB.
And the blank line with your name on it, is from having a blank line in your macro code.
Meleebab is set to +7 so it still calcs fine.
1398634582

Edited 1398634661
Gauss
Forum Champion
Are you using a "+" sign in your @{STRMOD} value? I am guessing you have a +# in your STRMOD attribute. If you put a "+" or "-" sign in your attributes you need to put them in parenthesis. Example: "+7" should be "(+7)". The reason is that ++7 results in a (known) bug while +(+7) does not.
I got this and all my macros working. /me slams the holy sword Raidence down on his enemy! [[ 1d20 @{MeleeBAB} + 1 ]] and dealing [[1d8 @{STRMOD} ]] damage! displays Brandon F. slams the holy sword Raidence down on his enemy! 14 and dealing 9 damage! my strmod is setupt as +4