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

Macro help for Pathfinder sheet

Im trying to have my paladin Lay on hands level up with the paladins level for damage this is what im using please help. [[floor(@{level}/2)d6]] Healing to the living and heals Fatigue/ [[floor(@{level}/2)d6]] Damage to the dead
1506296393
vÍnce
Pro
Sheet Author
<a href="https://app.roll20.net/forum/permalink/1491826/" rel="nofollow">https://app.roll20.net/forum/permalink/1491826/</a> Brian said: Use (@{level} / 2 - 0.5)d6. The number of dice rolled is automatically rounded to the nearest whole number (since rolling fractional dice doesn't make sense unless you're Cohen the Barbarian), which rounds up at X.5. If you subtract 0.5 from a halved number, it will function the same as flooring the result. 1 / 2 - 0.5 = 0.5 - 0.5 = 0 =&gt; 0 = floor(1 / 2) 2 / 2 - 0.5 = 1 - 0.5 = 0.5 =&gt; 1 = floor(2 / 2) 3 / 2 - 0.5 = 1.5 - 0.5 = 1 =&gt; 1 = floor(3 / 2) etc. The concept can be extended, although not easily generalized. round(X / N - 1 / N) == floor(X / N) for all integers X when N = 2 or N = 3, but never holds for N = 1 (not that you need it for N = 1...) and only holds most of the time for larger N. There's probably variants of the same idea you can use for larger N, it's just not so trivial to generalize for all N. (eg, round(X / N - 2 / (N + 1)) == floor(X / N) holds for N = 4 and 5)
Thank you vince &lt;3 I feel so dumb when it comes to macros TT.TT