Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
May your rolls be merry + bright! 🎄
Create a free account

Macro that gives you a half caster's MAX spell level, for rolling dice

I am trying to get this macro to give me the appropriate number, currently it seems to jump up at level 11 (to 4 when it should still be 3), when it shouldn't jump up until level 13 because of being a half caster. I'm using the OGL D&D 5e's sheet. The code I'm using is bellow. The ceiling was put in place because it jumped to 6 at some point.  [[{[[ceil({[[floor(@{selected|caster_level} / 1.5)]],1}kh1)]],5}kl1)]]
I managed to solve it, I didn't think I would. For anyone else who may need it.  [[ [[floor({[[round(@{selected|caster_level}/2)]],1}kh1)d12]]d12+@{selected|spell_attack_bonus}-+@{selected|pb} ]]