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 .
×

Variable Difficulty question

Hi yall, attempting to write a macro where a player inputs a difficulty number, then a skill number that is subtracted from the difficulty, and that is compared to a number of dice. /r ?{Action Dice|2}d10>[[?{Difficulty|10}]]-[[?{Skill|0}]] It correctly generates a number of successes compared to the difficulty, but its also taking that number of successes and subtracting the "skill" number from them. So for example, Difficulty 7 - Skill 2 = 5. A 2d10 roll that generates 2, 8 equals 1 success, but its displayed as -1 Successes because of the aforementioned math (1 success - 2 skill for some reason). Any solution?
1621374795
Kraynic
Pro
Sheet Author
You need to wrap the entire thing with an inline roll so that it is all resolved to a specific number before used to compare to your roll: /r ?{Action Dice|2}d10>[[?{Difficulty|10}-?{Skill|0}]] Otherwise, the macro will see your Difficulty query and your Skill query as being totally unrelated in the order of operations when it resolves the calculations.
Thanks!