
Sometimes the PCs and NPCs Get an Error "not a valid target id" When using Attack Macros with the Power Card Alterbars scripts. The same exact macros work for some of the PCs and some of the NPCs but not all, there seems to be a lack of consistency. Any thought what the problem could be? This macro used by a Goblin works perfectly against most of the PCs but not all... !power --whisper|GM {{ --tokenid|@{selected|token_id} --emote|** @{selected|token_name} shoots a Shortbow. ** --corners|10 --name|Shortbow --leftsub|Ranged Attack --rightsub|Range: [80/360] --Target|@{target||token_name} --Attack|[[ [$Atk] ?{Advantage?| Normal, 1d20 + [[@{selected|dexterity_mod}]] [DEX] + [[@{selected|pb}]] [PROF]] | Advantage, 2d20KH1 + [[@{selected|dexterity_mod}]] [DEX] + [[@{selected|pb}]] [PROF]] | Disadvantage, 2d20KL1 + [[@{selected|dexterity_mod}]] [DEX] + [[@{selected|pb}]] [PROF]]} ]] vs **AC** [[@{target||ac}]] --?? $Atk < @{target||ac} ?? !Missed|**You missed!** --?? $Atk >= @{target||ac} AND $Atk.base <> 20 ?? Hit:|[[ [$Dmg] 1d6+[[@{selected|dexterity_mod}]]]] piercing damage --?? $Atk >= @{target||ac} AND $Atk.base <> 20 ?? alterbar1|_target|@{target||token_id} _bar|1 _amount|-[^Dmg] _show|all --?? $Atk.base == 20 ?? Critical Hit:|[[ [$CritDmg] 2d6+[[@{selected|dexterity_mod}]]]] piercing damage --?? $Atk.base == 20 ?? alterbar2|_target|@{target||token_id} _bar|1 _amount|-[^CritDmg] _show|all --?? $Atk.base == 1 ?? !|**Fumble: }}