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

How do I add two vars in a Macro?

I'm trying to do this: @{selected|Stance}+@{target|bar3} But it outputs `6+6` rather than `12`. I need to a) display it, but b) use it as a target number for a roll as well.
1398636216
Lithl
Pro
Sheet Author
API Scripter
Simply typing 6+6 won't sum the values, but it will work if you put them into a roll: /r 6+6 or [[6+6]] . However, target numbers don't like extra stuff. You shoul be able to combine the roll command and inline rolls: /r d20>[[6+6]] . Another alternative is to subtract the target's modifier from the roll rather than add it to the target: [[{d20-6}>6]] .