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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Toughness Feat Macro

It took me a bit of doing, but I've finally made a macro for the Toughness Feat in Pathfinder, though it can be adapted for similar feats. The feat basically gives you 3 HP upon taking it, and 1 more for each level beyond 3rd (so at 4th you get +1, 5th you get +2, etc. in addition to the 3 you got). This macro will manage this for you. 3 + [[ [[@{level}>4]] * (@{level} - 3) ]] Here's a rundown in case you want to alter it to suit another purpose: [[@{level}>4]] will test if the total level is greater than or equal to 4. It has to be 4 because the feat starts adding after level 3, and the > doesn't actually test if it's strictly greater than the target. It will return the number of successes , so this will either be 0 or 1. We then multiply that number to the result of subtracting 3 from the total level. If the level isn't 4 or higher, it'll be returned as 0 successes, voiding whatever it's multiplied to. At 4th level, the problem will end up looking like this: 3 + ([[1 success]] * (4-3)) The success is returned as an integer. This can be modified to check for a threshold, such as whether a creature is bloodied or not. The "Boolean Statement" is [[@{integer to be tested} > or < {Integer to be compared against}]]. Hope this helps, or even brings a little tucked away macro function to your attention.
Thanks for sharing, Dan R. ! You may already know this, but it's worth mentioning that Compare Points can only be applied to a dice roll (i.e. NdX) or a Grouped Roll (e.g. {c + NdX} where c is a number). So, [[ 6>5 + 1 ]] will return as 6 (parser ignores everything to the right of invalid syntax), but [[ {6 + d0}>5 + 1 ]] will return 2.