intrinsical said: I'm mapping a token's hitpoints into a numeric category that can be summed up by the following table: I hope you understand now why I take the hitpoints and divide by 10 before taking log base 2. I don't expect hitpoint values less than 0 or greater than 160, but if its possible I still want the macro to return sane values. The dice roller can do that using ' Grouped Success ' rolls with fairly simple code: [[{1,11,21,41,81,161}<@{selected|bar2}]]