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

scaling number of dice rolled by level

September 07 (6 years ago)

situation.    a character has a skill that they gain at level 3 which lets them roll 1d6.  at level 19 it lets them roll 9d6

this is the equation used for his level scaling.   there is an easy process to finding the scaling for any type of dice

[[round(((8/16)*@{level}-0.5)-.1)]]

y=mx+b      y=number of dice  x = character level  b= modifier

at level 3 he gets 1d6 so  (3,2)  and at level 19 he gets 9d6 so (19,9)

now we find the slope of the scaling which is      (2-9)/(3-19) = -8/-16    because both are negative they become posotive

8/16....

to find your B use the equation -b=mx-y    in this case it is -b=(8/16)x-y.  you can use your lowest point for x and y in this case (3,2)

-b=(8/16)3-2 or -b = -.05

so now we have y=(8/16)x-0.5 for any level (x) you will get a number of dice to roll.  

because the scaling gives decimal values for even rolls we subtracted -0.1 to the end and rounded the value so it was always a whole number

[[round(((8/16)*@{level}-0.5)-.1)]]

I hope this helps.

September 07 (6 years ago)

Edited September 07 (6 years ago)
GiGs
Pro
Sheet Author
API Scripter

Is there a question here that you need an answer to?

If you are just demonstrating the scaling calculation there, the explanation is not very clear. Explaining something like this to someone who doesnt already understand needs a lot of careful explanations of what you're doing.

But once you know the principle, you are better off tailoring each function to the specific example. Your example of 1-9d6 at level 3-19 I'd have simplified as follows:

floor((@{level}-1)/2)


September 07 (6 years ago)

Hey thank you.  me and a friend worked out a scaling for his characters dice rolls using line slope calculations basically.  thanks for the simplified version tho.