I tested the macro out and it seems to be working as intended. I made a game with the PF sheet, checked the 'casts spells' box then went to the 'Spells' tab and set 'Base Level' [in between 'Class Name' and 'Buff', top left hand corner] Then I pasted the macro into the character's 'Attributes and Abilities' tab [in the macro section] and rolled the macro. I tried it at lv 6, 10 and 20 and each time it returned the proper roll [it limited the number of rolled die and returned something other than 1.5] I'm not sure what went wrong but I think it may be an issue with how the sheet is filled in as apposed to an issue with the macro, also if you are pasting this into the chat box you will need to specify the character's name before the stat call like so: [[ [[ {@{Leupag Aogad|spellclass-0-level}/2,5}kl1 ]]d6 ]] [of course replacing "Leupag Aogad" with your character's name]