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

Rolling formula's after the "<"

So here's my problem.&nbsp; this the formula I would like to use.&nbsp; /roll 1d100&lt;@{attributeA}+@{attributeB} &nbsp; I am playing a Black crusade game and trying to develope macros to roll skills.&nbsp; However, no matter how I set up the formula, the target number for successes is always attributeA with attributeB added to the total number of successes.&nbsp; Example would be if the formula looked like this, /roll 1d100&lt;34+10.&nbsp; On a roll of 34 or less the number of success would be 11.&nbsp; On a roll of&nbsp; 35 or more the number of successes would be 10. How can I fix it so that the computation of attributeA + attributeB happens before the number of successes are determined?
1371880708
Gauss
Forum Champion
Unfortunately, we cannot do what you want directly. But we can play with the terms mathematically to do it. /roll {1d100-B}&lt;A is mathematically identical to: /roll 1d100&lt;(A+B) The macro you want is: /roll {1d100-@{attributeB}}&lt;@{attributeA} - Gauss
I need to check if Roll20 is capable of calculating negative numbers because the problem with that formula is, if it's not then I would not know easily how many degrees of success I had.&nbsp; Degrees of success are determined by each full ten you are lower than the target number.&nbsp; With that in mind though, is it possible there is a formula to calculate degrees of success?
1372019964
Gauss
Forum Champion
From what I understood of your original post you wanted the successes to be either 1 or 0. The formula I provided does that.&nbsp; As for degrees of success, Roll20 is not set up to calculate that. You will need to do that manually. Sorry. :) - Gauss
Thats what I thought.&nbsp; :)&nbsp; TY.&nbsp;