
I'm trying to make a Macro for DnD 3.5 where a skillcheck results in adding additional damage dice to an attack. I have the Macro set up, but the problem is that for the rules, the extra dice only goes up to a maximum of an additional 9d6. This is the table for the rules 10—14 +1d6 15—19 +2d6 20—24 +3d6 25—29 +4d6 30—34 +5d6 35—39 +6d6 40—44 +7d6 45—49 +8d6 50—∞ +9d6 (maximum) And this is the Macro I have so far, since the amount of d6 goes up by one for every value of 5, I just used a floor for the total and divided the whole thing by 5. {{Iaijutsu Focus= [[[[floor( ( [[1d20+@{cha-mod}+((@{level}+3)*2))/5)-1}}]]d6]]}} I am going to put this macro into a weapon attack as a dropdown so it just automatically does it when the bonus applies, and I can turn it off but still attack with the same button if it doesn't. Any help would be greatly appreciated.