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

Attn Silvyre and other math wizards: D&D 3.5 Formula for Bonus Hit Points for Constructs

Converting this table to a formula: Size Bonus HP 8 0 4 0 2 0 1 10 0 20 -1 30 -2 40 -4 60 -8 80 I think I have reduced this to the following math. Is there a better way to express this mathematically? Max( (-10*@{size})+20, 0 ) - Max( (-10*@{size})-60, 0 )
1496768145

Edited 1496768196
I think this would work for the roll [[ ( {(-10*@{size})+20, 0}kh1 - {(-10*@{size})-60, 0}kh1 ) ]] For Reference: <a href="https://wiki.roll20.net/Dice_Reference#Grouping_Rolls" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Grouping_Rolls</a>
This should also work for reducing the formula Max( Min( ( (-10*@{size})+20 ),80 ), 0 ) For the roll formula you could use&nbsp; [[{ {(-10*@{size})+20,80}kl1, 0d0}kh1]]
Thanks for the replies. It is not clear in my post, but I was just checking the math and will be using this with a sheetworker script, so I do not need the roll formulas, but thank you all the same. Kyle's more concise version is what I was looking for. I felt there was a way to streamline it further, but I could not figure it out. Thanks again!