2d6khX is the syntax to keep the highest X number of dice rolls . what's the exact macro code you're trying to run. Are you trying to roll 2d6 for each level, and keep a number of the highest rolls equal to your level (e.g. 3rd level would be 6d6kh3)? The way to do that would be: /r [[@{level}*2]]d6kh@{level} Assuming that your level is represented on your Roll20 character sheet by an attribute named "level". If you're trying for something else, can you give a little more explanation on it?