First, there are a couple pages in the wiki that might be useful: <a href="https://wiki.roll20.net/Macros" rel="nofollow">https://wiki.roll20.net/Macros</a> <a href="https://wiki.roll20.net/Useful_Macros" rel="nofollow">https://wiki.roll20.net/Useful_Macros</a> <a href="https://wiki.roll20.net/Macros/Pathfinder_Examples" rel="nofollow">https://wiki.roll20.net/Macros/Pathfinder_Examples</a> The format of the macro may be different depending on what sheet you are using. Somewhere, there will be an attribute for your level. On the sheet I am most familiar, it is "level", so a macro that is built in the attributes and abilities tab of your character sheet would use @{level} to pull in your level. The wiki should give an explanation for being able to write in how to get the macro to compare 2 numbers and keep the highest or lowest one. Since Burning Hands is 1d4 per level, but a max of 5, a macro that will calculate damage and cap the damage when/after you hit 5th level might look something like this: [[[[{@{level},5}kl1]]d4]] How you write around that will depend if you are doing an emote macro, using the default roll template, or using a roll template built into whatever character sheet is being used in your game.