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

Issue with Global Attack Modifier inside of Macro

1650239018

Edited 1650239325
So I have come up with a functioning macro for Eldritch Blast that looks like the Sheet Generated one but functions more cleanly (or was intended to). Sadly whenever I turn on the Global Attack Modifier this happens and I am unable to figure out what is wrong.&nbsp; Here is the Macro itself. &amp;{template:atkdmg} {{mod=[[@{selected|charisma_mod}+@{selected|PB}+@{selected|global_attack_mod}]]}} {{rname=Eldritch Blast}} {{r1=[[@{Selected|d20}cs&gt;20+@{selected|charisma_mod}+@{selected|PB}+@{selected|global_attack_mod}]]}} @{selected|rtype}cs&gt;20+@{selected|charisma_mod}+@{selected|PB}+@{selected|global_attack_mod}]]]} {{r2=[[@{Selected|d20}cs&gt;20+@{selected|charisma_mod}+@{selected|PB}+@{selected|global_attack_mod}]]}} @{selected|rtype}cs&gt;20+@{selected|charisma_mod}+@{selected|PB}+@{selected|global_attack_mod}]]}} {{always=1}} {{attack=1}} {{range=120ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[d10]]}}{{dmg1type=Force}} {{crit1=[[d10[CRIT]]]}} {{globaldamage=[[1d6[Hex]]]}} {{globaldamagecrit=[[1d6[Hex]]]}} {{globaldamagetype=Necrotic}} ammo= {{spelldesc_link=[Show Spell Description]( <a href="https://roll20.net/compendium/dnd5e/Spells:Eldritch%20Blast#content" rel="nofollow">https://roll20.net/compendium/dnd5e/Spells:Eldritch%20Blast#content</a> )}} I would appreciate any help or possible solutions to this issue. Thanks.
Solved. &amp;{template:atkdmg} {{mod=[[@{selected|charisma_mod}+@{selected|PB}+@{selected|spell_attack_mod}]]}} {{rname=Eldritch Blast}} {{r1=[[@{Selected|d20}cs&gt;20+@{selected|charisma_mod}+@{selected|PB}+@{selected|spell_attack_mod}]]}} @{selected|rtype}cs&gt;20+@{selected|charisma_mod}+@{selected|PB}+@{selected|spell_attack_mod}]]]} {{r2=[[@{Selected|d20}cs&gt;20+@{selected|charisma_mod}+@{selected|PB}+@{selected|spell_attack_mod}]]}} @{selected|rtype}cs&gt;20+@{selected|charisma_mod}+@{selected|PB}+@{selected|spell_attack_mod}]]}} {{always=1}} {{attack=1}} {{range=120ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[d10]]}}{{dmg1type=Force}} {{crit1=[[d10[CRIT]]]}} {{globalattack=@{selected|global_attack_mod}}} {{globaldamagetype=@{Selected|global_damage_mod_type}}} {{globaldamage=[[1d6[Hex]]]}} {{globaldamagecrit=[[1d6[Hex]]]}} {{globaldamagetype=Necrotic}} ammo= {{spelldesc_link=[Show Spell Description](<a href="https://roll20.net/compendium/dnd5e/Spells:Eldritch%20Blast#content" rel="nofollow">https://roll20.net/compendium/dnd5e/Spells:Eldritch%20Blast#content</a>)}} Me brain am good.