This is a lot more complicated than you might expect. Assuming that 72-63 gives 1 success, 62-53 gives 2 success levels, and so on, here's a formula that works: /roll {ceil((?{target|72}+1-1d100)/10),0d0}kh1 You might want to use an inline roll, but you cant see the dice roll unless you hover over it. [[{ceil((?{target|72}+1-1d100)/10),0d0}kh1]] This allows you to enter the target value, you dont have take 72 as the only skill value.