Allright. I know I'm way beyond the anticipated scope of your PowerCards at this point, but I want to create the ultimate attack script, universally applicable to all of my (or your) players. Does anything stand out to you as to why this stalls after prompting me for the appropriate weapon selection and advantage/disadvantage: !power {{
--name|[[ [$WeaponName] ?{Weapon|@{meleeweaponname1},@{meleeweaponname1}|@{meleeweaponname2},@{meleeweaponname2}|@{meleeweaponname3},@{meleeweaponname3}|@{meleeweaponname4},@{meleeweaponname4}|@{meleeweaponname5},@{meleeweaponname5}|@{meleeweaponname6},@{meleeweaponname6}}} ]]
--tokenid|@{selected|token_id}
--?? @{selected|token_name} == Arah ?? bgcolor|blue
--?? @{selected|token_name} == Bo ?? bgcolor|blue
--?? @{selected|token_name} == Theodora ?? bgcolor|red
--?? @{selected|token_name} == Lo'Kag ?? bgcolor|red
--?? @{selected|token_name} == Bodhi ?? bgcolor|black
--?? @{selected|token_name} == Martyn ?? bgcolor|orange
--leftsub|Action
--rightsub|Melee
--?? $WeaponName == @{meleeweaponname1} ?? @{meleeweaponname1} Attack|[[ [$Atk1] ?{Roll|Normal, 1d20r<2|Advantage, 2d20kh1r<2|Disadvantage, 2d20kl1r<2} + @{meleetohit1} ]] vs @{target|token_name}'s [[@{target|bar2}]] AC
--?? $WeaponName == @{meleeweaponname1} AND $Atk1.base == 1 OR $Atk1.total < [[@{target|bar2}]] ?? Under AC|You deal no damage
--?? $WeaponName == @{meleeweaponname1} AND $Atk1.total >= [[@{target|bar2}]] AND $Atk1.base <> 1 AND $Atk1.base <> 20 AND $Atk1.base <> 19 ?? Over AC|Deal [[ [$Dmg1] @{meleedmg1} + @{meleeattackstat1} + @{meleemagic1} ]] @{meleedmgtype1} damage
--?? $WeaponName == @{meleeweaponname1} AND $Atk1.base >= 19 ?? Critical hit|Deal [[ [$Dmg2] @{meleedmg1} + @{meleedmg1} + @{meleeattackstat1} + @{meleemagic1} ]] [[ [$DmgType] @{meleedmgtype1} ]] damage
--?? $WeaponName == @{meleeweaponname2} ?? @{meleeweaponname2} Attack|[[ [$Atk1] ?{Roll|Normal, 1d20r<2|Advantage, 2d20kh1r<2|Disadvantage, 2d20kl1r<2} + @{meleetohit2} ]] vs @{target|token_name}'s [[@{target|bar2}]] AC
--?? $WeaponName == @{meleeweaponname2} AND $Atk1.base == 1 OR $Atk1.total < [[@{target|bar2}]] ?? Under AC|You deal no damage
--?? $WeaponName == @{meleeweaponname2} AND $Atk1.total >= [[@{target|bar2}]] AND $Atk1.base <> 1 AND $Atk1.base <> 20 AND $Atk1.base <> 19 ?? Over AC|Deal [[ [$Dmg1] @{meleedmg2} + @{meleeattackstat2} + @{meleemagic2} ]] @{meleedmgtype2} damage
--?? $WeaponName == @{meleeweaponname2} AND $Atk1.base >= 19 ?? Critical hit|Deal [[ [$Dmg2] @{meleedmg2} + @{meleedmg2} + @{meleeattackstat2} + @{meleemagic2} ]] [[ [$DmgType] @{meleedmgtype2} ]] damage
--?? $WeaponName == @{meleeweaponname3} ?? @{meleeweaponname3} Attack|[[ [$Atk1] ?{Roll|Normal, 1d20r<2|Advantage, 2d20kh1r<2|Disadvantage, 2d20kl1r<2} + @{meleetohit3} ]] vs @{target|token_name}'s [[@{target|bar2}]] AC
--?? $WeaponName == @{meleeweaponname3} AND $Atk1.base == 1 OR $Atk1.total < [[@{target|bar2}]] ?? Under AC|You deal no damage
--?? $WeaponName == @{meleeweaponname3} AND $Atk1.total >= [[@{target|bar2}]] AND $Atk1.base <> 1 AND $Atk1.base <> 20 AND $Atk1.base <> 19 ?? Over AC|Deal [[ [$Dmg1] @{meleedmg3} + @{meleeattackstat3} + @{meleemagic3} ]] @{meleedmgtype3} damage
--?? $WeaponName == @{meleeweaponname3} AND $Atk1.base >= 19 ?? Critical hit|Deal [[ [$Dmg2] @{meleedmg3} + @{meleedmg3} + @{meleeattackstat3} + @{meleemagic3} ]] [[ [$DmgType] @{meleedmgtype3} ]] damage
--?? $WeaponName == @{meleeweaponname4} ?? @{meleeweaponname4} Attack|[[ [$Atk1] ?{Roll|Normal, 1d20r<2|Advantage, 2d20kh1r<2|Disadvantage, 2d20kl1r<2} + @{meleetohit4} ]] vs @{target|token_name}'s [[@{target|bar2}]] AC
--?? $WeaponName == @{meleeweaponname4} AND $Atk1.base == 1 OR $Atk1.total < [[@{target|bar2}]] ?? Under AC|You deal no damage
--?? $WeaponName == @{meleeweaponname4} AND $Atk1.total >= [[@{target|bar2}]] AND $Atk1.base <> 1 AND $Atk1.base <> 20 AND $Atk1.base <> 19 ?? Over AC|Deal [[ [$Dmg1] @{meleedmg4} + @{meleeattackstat4} + @{meleemagic4} ]] @{meleedmgtype4} damage
--?? $WeaponName == @{meleeweaponname4} AND $Atk1.base >= 19 ?? Critical hit|Deal [[ [$Dmg2] @{meleedmg4} + @{meleedmg4} + @{meleeattackstat4} + @{meleemagic4} ]] [[ [$DmgType] @{meleedmgtype4} ]] damage
--?? $WeaponName == @{meleeweaponname5} ?? @{meleeweaponname5} Attack|[[ [$Atk1] ?{Roll|Normal, 1d20r<2|Advantage, 2d20kh1r<2|Disadvantage, 2d20kl1r<2} + @{meleetohit5} ]] vs @{target|token_name}'s [[@{target|bar2}]] AC
--?? $WeaponName == @{meleeweaponname5} AND $Atk1.base == 1 OR $Atk1.total < [[@{target|bar2}]] ?? Under AC|You deal no damage
--?? $WeaponName == @{meleeweaponname5} AND $Atk1.total >= [[@{target|bar2}]] AND $Atk1.base <> 1 AND $Atk1.base <> 20 AND $Atk1.base <> 19 ?? Over AC|Deal [[ [$Dmg1] @{meleedmg5} + @{meleeattackstat5} + @{meleemagic5} ]] @{meleedmgtype5} damage
--?? $WeaponName == @{meleeweaponname5} AND $Atk1.base >= 19 ?? Critical hit|Deal [[ [$Dmg2] @{meleedmg5} + @{meleedmg5} + @{meleeattackstat5} + @{meleemagic5} ]] [[ [$DmgType] @{meleedmgtype5} ]] damage
--?? $WeaponName == @{meleeweaponname6} ?? @{meleeweaponname6} Attack|[[ [$Atk1] ?{Roll|Normal, 1d20r<2|Advantage, 2d20kh1r<2|Disadvantage, 2d20kl1r<2} + @{meleetohit6} ]] vs @{target|token_name}'s [[@{target|bar2}]] AC
--?? $WeaponName == @{meleeweaponname6} AND $Atk1.base == 1 OR $Atk1.total < [[@{target|bar2}]] ?? Under AC|You deal no damage
--?? $WeaponName == @{meleeweaponname6} AND $Atk1.total >= [[@{target|bar2}]] AND $Atk1.base <> 1 AND $Atk1.base <> 20 AND $Atk1.base <> 19 ?? Over AC|Deal [[ [$Dmg1] @{meleedmg6} + @{meleeattackstat6} + @{meleemagic6} ]] @{meleedmgtype6} damage
--?? $WeaponName == @{meleeweaponname6} AND $Atk1.base >= 19 ?? Critical hit|Deal [[ [$Dmg2] @{meleedmg6} + @{meleedmg6} + @{meleeattackstat6} + @{meleemagic6} ]] [[ [$DmgType] @{meleedmgtype6} ]] damage
--?? $DmgType == Bludgeoning AND $Atk1.base == 1 ?? emote|[[ [$PM] 1t[Bludgeoning Miss] ]]
--?? $DmgType == Bludgeoning AND $Atk1.total < [[@{target|bar2}]] ?? emote|[[ [$PM] 1t[Bludgeoning Miss] ]]
--?? $DmgType == Bludgeoning AND $Atk1.total >= [[@{target|bar2}]] AND $Atk1.base <> 1 AND $Atk1.base <> 20 AND $Atk1.base <> 19 AND $Dmg1.total < [[@{target|Bar3}]] ?? emote|[[ [$PH] 1t[Bludgeoning Hit] ]]
--?? $DmgType == Bludgeoning AND $Atk1.base >= 19 AND $Dmg2.total < [[@{target|Bar3}]] ?? emote|[[ [$PC] 1t[Bludgeoning Critical] ]]
--?? $DmgType == Bludgeoning AND $Dmg1.total > [[@{target|Bar3}]] ?? emote|[[ [$PC] 1t[Bludgeoning Kill] ]]
--?? $DmgType == Bludgeoning AND $Dmg1.total > [[@{target|Bar3}]] OR $Dmg2.total > [[@{target|Bar3}]] ?? emote|[[ [$PK] 1t[Bludgeoning Kill] ]]
--?? $DmgType == Slashing AND $Atk1.base == 1 ?? emote|[[ [$PM] 1t[Slashing Miss] ]]
--?? $DmgType == Slashing AND $Atk1.total < [[@{target|bar2}]] ?? emote|[[ [$PM] 1t[Slashing Miss] ]]
--?? $DmgType == Slashing AND $Atk1.total >= [[@{target|bar2}]] AND $Atk1.base <> 1 AND $Atk1.base <> 20 AND $Atk1.base <> 19 AND $Dmg1.total < [[@{target|Bar3}]] ?? emote|[[ [$PH] 1t[Slashing Hit] ]]
--?? $DmgType == Slashing AND $Atk1.base >= 19 AND $Dmg2.total < [[@{target|Bar3}]] ?? emote|[[ [$PC] 1t[Slashing Critical] ]]
--?? $DmgType == Slashing AND $Dmg1.total > [[@{target|Bar3}]] ?? emote|[[ [$PC] 1t[Slashing Kill] ]]
--?? $DmgType == Slashing AND $Dmg1.total > [[@{target|Bar3}]] OR $Dmg2.total > [[@{target|Bar3}]] ?? emote|[[ [$PK] 1t[Slashing Kill] ]]
--?? $DmgType == Piercing AND $Atk1.base == 1 ?? emote|[[ [$PM] 1t[Piercing Miss] ]]
--?? $DmgType == Piercing AND $Atk1.total < [[@{target|bar2}]] ?? emote|[[ [$PM] 1t[Piercing Miss] ]]
--?? $DmgType == Piercing AND $Atk1.total >= [[@{target|bar2}]] AND $Atk1.base <> 1 AND $Atk1.base <> 20 AND $Atk1.base <> 19 AND $Dmg1.total < [[@{target|Bar3}]] ?? emote|[[ [$PH] 1t[Piercing Hit] ]]
--?? $DmgType == Piercing AND $Atk1.base >= 19 AND $Dmg2.total < [[@{target|Bar3}]] ?? emote|[[ [$PC] 1t[Piercing Critical] ]]
--?? $DmgType == Piercing AND $Dmg1.total > [[@{target|Bar3}]] ?? emote|[[ [$PC] 1t[Piercing Kill] ]]
--?? $DmgType == Piercing AND $Dmg1.total > [[@{target|Bar3}]] OR $Dmg2.total > [[@{target|Bar3}]] ?? emote|[[ [$PK] 1t[Piercing Kill] ]]
}}
I get no errors in the API. It just sticks with the target selection crosshair and box still up.