I have a character in a 5e D&D game with an ability that lets me add a d4 to my attack rolls. Because the d4 should not be rerolled when I attack with advantage, I'm hiding the d4 roll by putting it outside all the properties in my roll template, and then I'm reusing the result by index. My macro currently looks like this (without the line breaks): @{Patrick Smith|wtype}&{template:atkdmg}
[[1d4[LABEL]]]
{{mod=+@{Patrick Smith|spell_attack_bonus}}}
{{rname=Warhammer}}
{{r1=[[@{Patrick Smith|d20}cs>20 + @{Patrick Smith|charisma_mod}[CHA] + @{Patrick Smith|pb}[PROF]]] + $[[0]]}}
@{Patrick Smith|rtype}cs>20 + @{Patrick Smith|charisma_mod}[CHA] + @{Patrick Smith|pb}[PROF]]] + $[[0]]}}
{{attack=1}}
{{damage=1}}
{{dmg1flag=1}}
{{dmg1=[[1d8 + @{Patrick Smith|charisma_mod}[CHA]]]}}
{{dmg1type=Bludgeoning}}
{{crit1=[[8[CRIT]]]}}
{{globalattack=@{Patrick Smith|global_attack_mod}}}
{{globaldamage=[[0]]}}
{{globaldamagecrit=[[0]]}}
{{globaldamagetype=@{Patrick Smith|global_damage_mod_type}}}
@{Patrick Smith|charname_output} My preference would be to include the reused roll within the overall attack roll, so that I could have just a single number, but I gather it's not possible to put a reused roll within another roll. I think that makes it impossible for me to include the result in both sums, but maybe I'm missing something clever? One of the examples in the wiki shows capturing an entire roll along with each of its parts to reuse both the parts and the sum. Using that trick, I can do this: @{Patrick Smith|wtype}&{template:atkdmg}
[[@{Patrick Smith|d20}cs>20 + @{Patrick Smith|charisma_mod}[CHA] + @{Patrick Smith|pb}[PROF] + [[1d4[LABEL]]][LABEL]]]
{{mod=+@{Patrick Smith|spell_attack_bonus}}}
{{rname=Warhammer}}
{{r1=$[[1]]}}
@{Patrick Smith|rtype}cs>20 + @{Patrick Smith|charisma_mod}[CHA] + @{Patrick Smith|pb}[PROF]]] + $[[0]]}}
{{attack=1}}
{{damage=1}}
{{dmg1flag=1}}
{{dmg1=[[1d8 + @{Patrick Smith|charisma_mod}[CHA]]]}}
{{dmg1type=Bludgeoning}}
{{crit1=[[8[CRIT]]]}}
{{globalattack=@{Patrick Smith|global_attack_mod}}}
{{globaldamage=[[0]]}}
{{globaldamagecrit=[[0]]}}
{{globaldamagetype=@{Patrick Smith|global_damage_mod_type}}}
@{Patrick Smith|charname_output} This shows me the first roll as a single number, but the second roll still has two parts to manually sum. Has anyone come up with anything clever to solve this?