Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

How Do I Add Damage Roll Totals Together In This Macro?

February 19 (2 years ago)

Hi All, 


Looking for some help with this macro.  I've got it set up to query each of the different damage modifiers my character might use.  For the most part, it's working beautifully.  I just figured out how to get it to filter everything out into two damage types.  The only problem is it doesn't show me an overall total for the second damage type; it shows me the result of each of the queries separately.   Anyway to fix that?  I've got the macro and a screenshot of the result below (the first radiant damage is divine fury, the second is radiant consumption).  Thanks for any help you can give.


@{Kovas|wtype}&{template:atkdmg} {{mod=+11}} {{rname=Maul +1}} {{r1=[[@{Kovas|d20}cs>20 + 5[STR] + 5[PROF] + 1[MAGIC]]]}} @{Kovas|rtype}cs>20 + 5[STR] + 5[PROF] + 1[MAGIC]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[2d6 + 5[STR] + 1[MAGIC] + ?{Rage?|Yes, 3[RAGE]|No, 0[RAGE]}]]}} {{dmg1type=bludgeoning}} {{dmg2flag=1}}} {{dmg2=[[?{Divine Fury?|Yes, 1d6+8[DIVINE FURY]|No, 0}]] + [[?{Radiant Consumption?|Yes, 15[RADIANT CONSUMPTION]|No, 0[RADIANT CONSUMPTION]}]]}}  {{dmg2type=radiant}} {{crit1=[[2d6[CRIT] + 2d6[BRUTAL CRIT] + ?{Divine Fury?|Yes, 1d6[DIVINE FURY]|No, 0[DIVINE FURY]}]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=}} 


February 19 (2 years ago)

Sorry, forgot to mention it's for the D&D 5e sheet.

February 19 (2 years ago)

You just need to add another pair of braces around the two numbers you want to add together, and you'll have to hover over the result to see the individual numbers:

@{Kovas|wtype}&{template:atkdmg} {{mod=+11}} {{rname=Maul +1}} {{r1=[[@{Kovas|d20}cs>20 + 5[STR] + 5[PROF] + 1[MAGIC]]]}} @{Kovas|rtype}cs>20 + 5[STR] + 5[PROF] + 1[MAGIC]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[2d6 + 5[STR] + 1[MAGIC] + ?{Rage?|Yes, 3[RAGE]|No, 0[RAGE]}]]}} {{dmg1type=bludgeoning}} {{dmg2flag=1}}} {{dmg2=[[ [[?{Divine Fury?|Yes, 1d6+8[DIVINE FURY]|No, 0}]] + [[?{Radiant Consumption?|Yes, 15[RADIANT CONSUMPTION]|No, 0[RADIANT CONSUMPTION]}]] ]]}}  {{dmg2type=radiant}} {{crit1=[[2d6[CRIT] + 2d6[BRUTAL CRIT] + ?{Divine Fury?|Yes, 1d6[DIVINE FURY]|No, 0[DIVINE FURY]}]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=}} 


But the other option would be to simply add those modifiers into a regular weapon attack:

That would still need a little more tweaking to get all the modifiers into that attack roll, but that would allow you to use things like the Global Damage Modifier if the character has a Bless spell effect on for example.


February 20 (2 years ago)

Oh man...I knew it was going to be something simple.  If I had a dollar for every time I missed a bracket somewhere...


Thanks so much for the help; greatly appreciated!