Now this one works! Thanks everyone! [[ {[[1 + abs(@{ability})]]d20kh[[1 + (1 - ceil((@{ability}) / 6)) * 5]]}kl1 ]] Thank you so much! There are also situations in the system that grant advantage, where you treat your score as if it were 1 higher, disadvantage, where you treat your score as if it were 1 lower, or super-advantage, where you treat your score as if it were 2 higher. I came up with the following based on your formula, which seems to work for this, but I admit that I don't fully understand how your formula works, just that it seems to do exactly what I needed and from it I was able to build the rest: Rolling with Advantage: /r {[[1 + abs([[({{@{ability},1}<0})*(1-{0,floor(1-abs(@{ability}-1))}dl1)*((-[[abs(@{ability})]]+1)-[[abs(@{ability})+1]])+[[abs(@{ability})+1]]]])]]d20skh[[1 + (1 - ceil(([[({{@{ability},1}<0})*(1-{0,floor(1-abs(@{ability}-1))}dl1)*((-[[abs(@{ability})]]+1)-[[abs(@{ability})+1]])+[[abs(@{ability})+1]]]]) / 7)) * 6]]}kl1 Rolling with Disadvantage: /r {[[1 + abs([[({{@{ability},1}<0})*(1-{0,floor(1-abs(@{ability}-0))}dl1)*((0-abs(@{ability})-1)-(@{ability}-1))+(@{ability}-1)]])]]d20skh[[1 + (1 - ceil(([[({{@{ability},1}<0})*(1-{0,floor(1-abs(@{ability}-0))}dl1)*((0-abs(@{ability})-1)-(@{ability}-1))+(@{ability}-1)]]) / 7)) * 6]]}kl1 Rolling with Super-Advantage: /r {[[1 + abs([[({{@{ability},1}<0})*(1-{0,floor(1-abs(@{ability}-1))}dl1)*((-[[abs(@{ability})]]+2)-[[abs(@{ability})+2]])+[[abs(@{ability})+2]]]])]]d20skh[[1 + (1 - ceil(([[({{@{ability},1}<0})*(1-{0,floor(1-abs(@{ability}-1))}dl1)*((-[[abs(@{ability})]]+2)-[[abs(@{ability})+2]])+[[abs(@{ability})+2]]]]) / 8)) * 7]]}kl1