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

Need ?{xxxx} to have manual +/- input

In the thread below I was introduced to Exploding Dice, which really is an awesome feature and does exactly what we need for our game. <a href="https://app.roll20.net/forum/post/4458185/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/4458185/slug%7D</a> But we have another issue I hope was a solution for. We use macro's like this: /roll d100!&gt;96 + ?{Skill Value|0} - ?{Modifier|0} The modifier from the game can be both negative and positive however. But the macro doesn't allow for that. Is there another variable I can use instead of the - so I can fill in +20 or -20? Or for the standard to be negative, but when I want it to be positive I fill in a +20. Because when I type in +20 now in the Modifier pop up I get a macro error message.
It's because it's trying to do ++20 instead of +20.
1484480355
Tetsuo
Forum Champion
Try this: /roll d100!&gt;96 + [[?{Skill Value|0} ?{Modifier|0}]] Just remember to add the + or - to the modifier number.
1484487392
The Aaron
Pro
API Scripter
Should be able to just do this: /roll d100!&gt;96 + (?{Skill Value|0}) - (?{Modifier|0}) Parenthesis around the values that might have their own sign cause evaluation as needed:
Thanks all. This seems to do the trick.