Where are you putting this macro? If you are putting this in the effect line of an entry in the spell-like abilities section, you can't use /r in those fields. They can only take inline roll syntax. You might also want to use the exact level for a specific class, since @{level} is the overall character level. Of course, it doesn't matter if you don't ever pick up another class. This should work for the lay on hands, assuming that paladin is on the first line: [[[[floor(@{class1_level}/2)]]d6]] I am also assuming this is the Pathfinder by Roll20 sheet. If you are using the community, simple, or legacy sheets, then this probably doesn't work.