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 .
×
May your rolls be chill this holiday season!
Create a free account

Minimum roll result.

[[floor(#NestingAttackMacro *( 1+(@{Selected|WEAPON STRENGTH|Max}-(1d?{Armour})) ,+@{Selected|ARMOUR PIERCING|Max}))]] For a homeruled system addition i've been trying to get it so the result of WEAPON STRENGTH and ARMOUR is at minimum of 1. So if an enemy's armour value ends up something like 40, they roll any number between 1 and 40 to negate damage. Weapon Strength is damage. Is the weapon strength ends up being 11, for a total of 12, and the armour value rolled ends up being 14, it'd go to -2 when I would like for it to revert to a minimum of 1 damage left over.
1547848235

Edited 1547848256
Spren
Sheet Author
You would want to do a grouped roll then (<a href="https://wiki.roll20.net/Dice_Reference#Grouping_Rolls" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Grouping_Rolls</a>). It compares two rolls and you can keep the higher or lower. In this case you compare to 1 and keep it if your number is lower than a 1. They are supposed to be for rolls though so you just have to fool it by making 0d0 rolls and adding your numbers after. So something like: [[floor(#NestingAttackMacro *( 1+( {0d0+[[@{Selected|WEAPON STRENGTH|Max}-(1d?{Armour}]],0d0+1}kh1 ) ),+@{Selected|ARMOUR PIERCING|Max}))]]