You don't need to check either of the boxes, you just need to save it by pressing the check mark (abilities that are still in the edit view cannot be called). If it still doesn't quite produce the right template, can you post both parts of the macro you have and a shot of the chat output? Also, just to make sure, you have the defender attack listed first on your list of attacks on the character sheet, right?
I did test this in my test game, and though I don't have the pro subscription to test the script part of it, that shouldn't interfere with the template in any way, as it is on a different line.
I did notice though that this macro in the attack description does disrupt the setting to show the attacker's name on the template (for reasons I'm not entirely clear on) - but that's easy enough to fix by adding that row manually as {{charname=@{character_name}}}, for
}} {{r1=[[@{d20}cs>20 + @{strength_mod}[STR] + @{pb}[PROF] + [[3-?{Defender setting?|3,0|2,1|1,2|0,3}]][DEFENDER]]]}} @{rtype}cs>20 + @{strength_mod}[STR] + @{pb}[PROF] + [[3-?{Defender setting?|3,0|2,1|1,2|0,3}]][DEFENDER] ]]}} {{dmg1=[[@{repeating_attack_$0_dmgbase} + @{strength_mod}[STR] + [[3-?{Defender setting?|3,0|2,1|1,2|0,3}]][DEFENDER]]]}} {{mod=[[@{pb} + @{strength_mod} + [[3-?{Defender setting?|3,0|2,1|1,2|0,3}]] ]]}} {{rname=[@{repeating_attack_$0_atkname}](` %{@{character_name}|defender-damage} {{dmg1=[[@{repeating_attack_$0_dmgbase} + @{strength_mod}[STR] + [[3-?{Defender setting?|3,0|2,1|1,2|0,3}]][DEFENDER]]]}} "style=" display:inline-block; border: 1px solid black; border-radius: 5px; background-color; #e8e8e8; color: black; text-align: center; font-weight: bold; padding: 2px; margin-bottom: 3px)}} {{rnamec=[@{repeating_attack_$0_atkname}](` %{@{character_name}|defender-damage} {{dmg1=[[@{repeating_attack_$0_dmgbase} + @{strength_mod}[STR] + [[3-?{Defender setting?|3,0|2,1|1,2|0,3}]][DEFENDER]]]}} {{crit=1}} {{globaldamagecrit=[[@{global_damage_mod_crit}]]}} "style=" display:inline-block; border: 1px solid black; border-radius: 5px; background-color; #e8e8e8; color: black; text-align: center; font-weight: bold; padding: 2px; margin-bottom: 3px)}} {{globalattack=@{global_attack_mod}}} {{globaldamage=[[@{global_damage_mod_roll}]]}} {{globaldamagecrit=[[@{global_damage_mod_crit}]]}} {{charname=@{character_name}}}
!setattr {{
--name charactername
--nocreate
--silent
--repeating_acmod_$0_global_ac_val|?{Defender setting?|3,0|2,1|1,2|0,3}
![](https://i.imgur.com/HdOKclQ.png)
(using a dagger as a stand-in for the weapon, loading the damage dice, damage type, and weapon name from the weapon)