
Hello, I've been making a global macro that utilizes a template (<a href="https://help.roll20.net/hc/en-us/articles/360037257834-D-D-5e-OGL-Roll-Templates#D&D5eOGLRollTemplates-Attack" rel="nofollow">https://help.roll20.net/hc/en-us/articles/360037257834-D-D-5e-OGL-Roll-Templates#D&D5eOGLRollTemplates-Attack</a>). The reason I'm making this macro is so that I can roll different NPCs actions without having to open their sheet. I utilize the @{selected|...} attributes to make their attack actions. My last snag is understanding how roll20 automatically determines critical hit damage dice in character sheets and somehow apply that knowledge into a template (npcaction) I'm using for my global macro. Also, for reference, critical hits in DnD 5e is that all damage dice are doubled. You do not double modifiers to damage. Simply, you double all dice on a crit. I want to know if there is a way to auto-determine what critical damage should be, using a template in a macro. In a template, you fill out parameters to have them roll values. Somehow, the template does know if an attack is a critical success and then adds additional damage ({{crit1}}) to your initial damage roll({{dmg1}}). I know there is a parameter for {{crit1=<dice roll>}}, it's clearly explained that whatever dice I put in this field will be rolled when the damage is crit. But that requires me to determine what dice should be rolled and I know Character Sheets somehow auto determine critical damage with NPC attack actions. The issue I have with this is that I do not For example. Let's say a fighter (16 STR) has a greatsword (2d6 weapon damage). the damage parameter would look like this: {{dmg1=[[2d6+3]]}}, rolling weapon damage and adding 3. The crit1 damage, as per 5E rules, would be an additional 2d6 damage. Is there a way to make the template auto calculate the critical damage from its dmg1 parameter? Is there some helper function I'm missing? Again, I want this global macro to do the calculation so I can use the same global macro and make full use of the @{selected|...} features to get info from the NPC's repeating actions. Hope this makes sense, I've been banging my head against the wall trying to figure it out. Any help would be appreciated. I do not have access to the API, but I assumed bc the character/NPC sheets in roll 20 for 5E have a way to auto calculate critical damage from the single damage parameter given, that the templates would as well. Thanks, Aly