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 .
×
Create a free account

Power Card Alter Bars Problem

1507788582

Edited 1507788763
Ajax
Pro
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: }}
1507819907

Edited 1507819996
Make sure you're targeting Tokens, and not Drawings. (Tokens can be turned into Drawings via a right-click menu option.) If that's not the issue, copy and paste the Token to get a new Token with a new token_id.
Had this problem often, you have to delete and re-import your target token again.