I am using the advanced dungeons and dragons sheet and attempting to use this macro:
/w @{selected|token_name} &{template:default}{{name=ATTACKS}}{{[@{selected|weaponname}](!
#ATTACK1)}}{{[@{selected|repeating_weapons_$0_weaponname}](!
#ATTACK2)}}{{[@{selected|repeating_weapons_$1_weaponname}](!
#ATTACK3)}}{{[@{selected|repeating_weapons_$2_weaponname}](!
#ATTACK4)}}{{[@{selected|repeating_weapons_$3_weaponname}](!
#ATTACK5)}}{{[@{selected|repeating_weapons_$4_weaponname}](!
#ATTACK6)}}{{[@{selected|repeating_weapons_$5_weaponname}](!
#ATTACK7)}}
ATTACK1
&{template:2Eattack}{{title=@{selected|token_name} USES A @{selected|weapsize} SIZED @{selected|weaponname} TO ATTACK @{target|token_name}}}{{ac_hit=[[@{selected|ThAC0}-((D20?{ATTACK ROLL MODIFIER|+0})+(@{selected|attackadj})+(@{selected|strengthhit}*@{selected|strbonus})+(@{selected|dexmissile}*@{selected|dexbonus}))]]}}{{dmg_s=[[((@{selected|damsm}?{DAMAGE ROLL MODIFIER|+0}))+(@{selected|damadj})+(@{selected|strengthdmg}*@{selected|strbonus})]]}}{{dmg_l=[[((@{selected|daml}?{DAMAGE ROLL MODIFIER|+0}))+(@{selected|damadj})+(@{selected|strengthdmg}*@{selected|strbonus})]]}}{{ crit = Roll extra die for crit }} {{ fumble = You Fumble }}
ATTACK2
&{template:2Eattack}{{title=@{selected|token_name} USES A @{selected|repeating_weapons_$0_weapsize} SIZED @{selected|repeating_weapons_$0_weaponname} TO ATTACK @{target|token_name}}}{{ac_hit=[[@{selected|ThAC0}-((D20?{ATTACK ROLL MODIFIER|+0})+(@{selected|repeating_weapons_$0_attackadj})+(@{selected|strengthhit}*@{selected|repeating_weapons_$0_strbonus})+(@{selected|dexmissile}*@{selected|repeating_weapons_$0_dexbonus}))]]}}{{dmg_s=[[((@{selected|repeating_weapons_$0_damsm}?{DAMAGE ROLL MODIFIER|+0}))+(@{selected|repeating_weapons_$0_damadj})+(@{selected|strengthdmg}*@{selected|repeating_weapons_$0_strbonus})]]}}{{dmg_l=[[((@{selected|repeating_weapons_$0_daml}?{DAMAGE ROLL MODIFIER|+0}))+(@{selected|repeating_weapons_$0_damadj})+(@{selected|strengthdmg}*@{selected|repeating_weapons_$0_strbonus})]]}}{{crit=RollCrit}} {{fumble=fumble}}
ATTACK3
&{template:default}{{name=@{selected|token_name} USES A @{selected|repeating_weapons_$1_weapsize} SIZED @{selected|repeating_weapons_$1_weaponname} TO ATTACK @{target|token_name}}}{{HITS AC=[[@{selected|ThAC0}-((D20?{ATTACK ROLL MODIFIER|+0})+(@{selected|repeating_weapons_$1_attackadj})+(@{selected|strengthhit}*@{selected|repeating_weapons_$1_strbonus})+(@{selected|dexmissile}*@{selected|repeating_weapons_$1_dexbonus}))]]}}{{NORMAL DAMAGE=S/M[[((@{selected|repeating_weapons_$1_damsm}?{DAMAGE ROLL MODIFIER|+0}))+(@{selected|repeating_weapons_$1_damadj})+(@{selected|strengthdmg}*@{selected|repeating_weapons_$1_strbonus})]] L[[((@{selected|repeating_weapons_$1_daml}?{DAMAGE ROLL MODIFIER|+0}))+(@{selected|repeating_weapons_$1_damadj})+(@{selected|strengthdmg}*@{selected|repeating_weapons_$1_strbonus})]]}}{{CRIT DAMAGE=S/M[[(((@{selected|repeating_weapons_$1_damsm}?{DAMAGE ROLL MODIFIER|+0})+(@{selected|repeating_weapons_$1_damsm})))+(@{selected|repeating_weapons_$1_damadj})+(@{selected|strengthdmg}*@{selected|repeating_weapons_$1_strbonus})]] L[[(((@{selected|repeating_weapons_$1_daml}?{DAMAGE ROLL MODIFIER|+0})+(@{selected|repeating_weapons_$1_daml})))+(@{selected|repeating_weapons_$1_damadj})+(@{selected|strengthdmg}*@{selected|repeating_weapons_$1_strbonus})]]}}
ATTACK4
&{template:default}{{name=@{selected|token_name} USES A @{selected|repeating_weapons_$2_weapsize} SIZED @{selected|repeating_weapons_$2_weaponname} TO ATTACK @{target|token_name}}}{{HITS AC=[[@{selected|ThAC0}-((D20?{ATTACK ROLL MODIFIER|+0})+(@{selected|repeating_weapons_$2_attackadj})+(@{selected|strengthhit}*@{selected|repeating_weapons_$2_strbonus})+(@{selected|dexmissile}*@{selected|repeating_weapons_$2_dexbonus}))]]}}{{NORMAL DAMAGE=S/M[[((@{selected|repeating_weapons_$2_damsm}?{DAMAGE ROLL MODIFIER|+0}))+(@{selected|repeating_weapons_$2_damadj})+(@{selected|strengthdmg}*@{selected|repeating_weapons_$2_strbonus})]] L[[((@{selected|repeating_weapons_$2_daml}?{DAMAGE ROLL MODIFIER|+0}))+(@{selected|repeating_weapons_$2_damadj})+(@{selected|strengthdmg}*@{selected|repeating_weapons_$2_strbonus})]]}}{{CRIT DAMAGE=S/M[[(((@{selected|repeating_weapons_$2_damsm}?{DAMAGE ROLL MODIFIER|+0})+(@{selected|repeating_weapons_$2_damsm})))+(@{selected|repeating_weapons_$2_damadj})+(@{selected|strengthdmg}*@{selected|repeating_weapons_$2_strbonus})]] L[[(((@{selected|repeating_weapons_$2_daml}?{DAMAGE ROLL MODIFIER|+0})+(@{selected|repeating_weapons_$2_daml})))+(@{selected|repeating_weapons_$2_damadj})+(@{selected|strengthdmg}*@{selected|repeating_weapons_$2_strbonus})]]}}
so on and so forth reapeating all the way to ATTACK7 changing the _$#_ for each but my output is:
The sheet is set up like:
What am i doing wrong? Please tell me as I have lost hours to this macro.