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 - Adding/Subtracting Values to Final Dice Roll

In all role playing games, we usually have a "target number", from accumulating positive or negative modifiers, influencing the possibility of success or failure.  I'm currently working on a macro that has negatives as well as positives.  So far, it's only shown positive numbers.  I searched the forums and found several instances of questions, suggestions, even polite community "threats" to get in and implement it for the community.  It's been five years to at least over a year ago for many of those topics. My current question, yes, is the same with a certain change: Is it possible to use positive or negative numbers to influence a dice roll using macros without using API scripts ? Thank you!
1545800822
GiGs
Pro
Sheet Author
API Scripter
You'll need to be more specific about the issue, can you give an example of the macro that isn't working properly? Where does using negative numbers not work properly? Also, what are you referring to here, that needs to be implemented?  I searched the forums and found several instances of questions, suggestions, even polite community "threats" to get in and implement it for the community.  It's been five years to at least over a year ago for many of those topics.
1545804320

Edited 1545804344
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I assume you are talking about something other than [[2+-2]], [[2+(-2)]], [[1d20-2]], or [[1d20+-2]], all of which correctly recognize the negative sign as a unary operator? Perhaps you're talking about using a negative number while referencing an attribute? In which case, make sure the attribute, regardless of the value, is in parentheses: [[1d20-(@{selected|str})]]