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 .
×

Trouble making a Damage Total Macro

I'm having trouble making a Macro so that it can add all of the damage from my weapon, and damage modifiers as well When I tried making a macro, it came out like this but I'm having trouble getting them all to add up. Also this only seems to work when I press the "Test Macro" button, when I hit Token Action of it it just displays a # on the Roll 20 Chatbox I'm kind of a Noob when it comes to making Macro's but can someone help me out?  Here are the Macro details for my character: @{Ayamo Amastacia  (copy)|wtype}&{template:atkdmg} {{mod=+13}} {{rname=Ascendant Dragon's Wrath Longbow (SS)}} {{r1=[[@{Ayamo Amastacia  (copy)|d20}cs>20 + 7[DEX] + -3[MOD] + 6[PROF] + 3[MAGIC]]]}} @{Ayamo Amastacia  (copy)|rtype}cs>20 + 7[DEX] + -3[MOD] + 6[PROF] + 3[MAGIC]]]}} {{attack=1}} {{range=150/600}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + 7[DEX] + 10[MOD] + 3[MAGIC]]]}} {{dmg1type=Magical Piercing}} {{damage=1}} {{dmg2flag=1}} {{dmg2=[[3d6]]}} {{dmg2type=Radiant}} {{crit1=[[1d8[CRIT]]]}} {{crit2=[[3d6[CRIT]]]}} 0 {{desc=}}   {{spelllevel=}} {{innate=}} {{globalattack=@{Ayamo Amastacia  (copy)|global_attack_mod}}} {{globaldamage=[[1d8[Favored Foe]+2d8[Planar Warrior]]]}} {{globaldamagecrit=[[1d8[Favored Foe] + 2d8[Planar Warrior]]]}} {{globaldamagetype=@{Ayamo Amastacia  (copy)|global_damage_mod_type}}} ammo= @{Ayamo Amastacia  (copy)|charname_output}{{desc=Total Damage: $[[2]] + $[[3]] + $[[6]]}}
1790805409

Edited 1790805468
Gauss
Forum Champion
You cannot sum up reused rolls. But you can do the math elsewhere then pull the rolls out. So lets reverse the logic here:  combine all the damage into one line on the attack, then use the description $[[#]] trick to pull out the damage you want.  dmg1=[[ [[1d8 +7[DEX] + 10[MOD] +3[MAGIC]]][Magic Piercing] +[[3d6]][Radiant] + [[1d8]][Favored Foe] +[[2d8]][Planar Warrior] ]] Note: if you want to switch on/off Favored Foe and Planar Warrior we can do that via switches.  Then you use the description section to pull out the specific values for Magical Piercing, Radiant, etc. 
1790808702

Edited 1790809972
Dizzy
Plus
Well, thats a bit of a bummer that I can't add the sum of reused rolls. But combining the damage in one line Really helped me out. Thanks for helping out, I was racking my brains over this and this is the probably the closest I'm going to get to what I want. Thanks again!
1790811111
Gauss
Forum Champion
You can do more with it.  You can get the damage into a normal damage roll, then pull out the parts.  If you'd like to get it to work better I suggest we get into a call on Discord. You can find me in the Champion of Roll20 category on the Roll20 Discord.