
Hi, sorry if this kind of problem has been already solved or something like that, I looked and couldn't find the solution I'm trying to make an Ability to automaticaly roll the dices for a Shocking Grasp Spell (D&D3.5) based on Caster Level. I devised this: @{Nivel de Conjurador}-(@{Nivel de Conjurador}-5)*((floor(1/(floor(@{Nivel de Conjurador}/5)+1))-1)*(floor(1/(floor(@{Nivel de Conjurador}/5)+1))-1)) It makes 1 for "Nivel de Conjurador"=1 , 2 for 2, 3 for 3, 4 for 4, 5 for 5, 5 for 6, and keeps on 5, since is the limit dice for the spell. It works but when I try to make it roll the dice: (@{Nivel de Conjurador}-(@{Nivel de Conjurador}-5)*((floor(1/(floor(@{Nivel de Conjurador}/5)+1))-1)*(floor(1/(floor(@{Nivel de Conjurador}/5)+1))-1)))d6 then it won't work, what I noticed (and is not documented on the wiki) is that floor() or ceil() won't roll dices in any way, you can make an expression to compute dice rolls, but these expressions can't contain floor() or ceil(). don't know if it's a bug, all I wanted was for an alternate way to make this roll. For now I'm using the above expression in line to inform about the roll, that would be made manually: roll [[@{Nivel de Conjurador}-(@{Nivel de Conjurador}-5)*((floor(1/(floor(@{Nivel de Conjurador}/5)+1))-1)*(floor(1/(floor(@{Nivel de Conjurador}/5)+1))-1))]]d6 for damage