Aaron said: This is perhaps not the most precise way of doing it, but you can use: [[ ((@{selected|level}+6.2)/5.6)d6 ]] I arrived at almost the same thing: ((@{cleric_level}+7)/6)d8 , my problem is I needed to floor() it, but it is inline in a character sheet and I was running into syntactical issues calling the sheet button with the floor function inline in the sheet damage field. So, I was trying to mathmatically find the modulus and subtract it, but Brian said: 1 die at levels 1-4, 2 dice at 5-10, 3 dice at 11-16, 4 dice at 17-20: /roll 1d?{Damage Die} + ((@{level} / 5 - @{level} / 10) / 2 + 0.25)d?{Damage Die} + (@{level} / 11 - 0.5)d?{Damage Die} + (@{level} / 17 - 0.5)d?{Damage Die} If you get multiple dice per tier (eg, 2/4/6/8 instead of 1/2/3/4), you can use something like: /roll ?{Dice Per Tier}d?{Damage Die} + (?{Dice Per Tier} * ((@{level} / 5 - @{level} / 10) / 2 + 0.25))d?{Damage Die} + (?{Dice Per Tier} * (@{level} / 11 - 0.5)d?{Damage Die} + (@{level} / 17 - 0.5))d?{Damage Die} If you start with some number other than 1 die at level 1 but increment by 1 each tier (eg, 0/1/2/3 or 2/3/4/5), simply change the 1d?{Damage Die} from the first expression. Both of the above expressions can also be used as inline rolls. Seems an easier solution with a bit more modularity as well. I corrected a few order of operation parenthesis: /roll ?{Dice Per Tier}d?{Damage Die} + (?{Dice Per Tier} * ((@{selected|cleric_level} / 5 - @{selected|cleric_level} / 10) / 2 + 0.25))d?{Damage Die} + (?{Dice Per Tier} * (@{selected|cleric_level} / 11 - 0.5))d?{Damage Die} + (?{Dice Per Tier} * (@{selected|cleric_level} / 17 - 0.5))d?{Damage Die} It all seems to work fine, even in the sheet. Using the DnD_5e sheet and Cleric spell Sacred Flame as an example. The spell is 1d8 damage and increases by 1d8 at 5, 11 and 17th levels. Using: 1d8 + (1 * ((@{cleric_level} / 5 - @{cleric_level} / 10) / 2 + 0.25))d8 + (1 * (@{cleric_level} / 11 - 0.5))d8 + (1 * (@{cleric_level} / 17 - 0.5))d8 In the Damage Dice field of the Damage tab for the spell, auto rolls the proper amount of dice based on the character level. Thanks all!