
Good day scripters, I am having some trouble getting a macro to work using the new powercard3 API. The script itself, rolls as it is supposed to. It pulls the correct attributes and even does the correct logic. The only thing I can't figure out is why I am getting this Error. I have looked over all the attribute I have in the macro, the character I am attacking with and the character I am attacking. All have all the stats inputted like they should {or at least as I see it they do). Below is a screen shot of the attack and the Error Also, I can get the token to show in the --tokenid|@{selected|token_id} part of the script but not for one particular token. Hence the MylyycjBVO part of the screenshot. If I select any token on the board for the attack it works with all but MylyycjBVO. Below is a screenshot of the token in question and the macro I am using. !power --tokenid|@{selected|token_id} --emote|A distracting flourish causes the enemy to forget the blade at his throat. {{
--format|atwill
--name| Sly Flourish
--leftsub|At-Will
--rightsub|Standard Action ^^Melee or Ranged ^^Light Blade, Crossbow or Sling
--Attack|[[ [$Atk] 1d20 + @{dexterity-mod} [Dexterity Mod] + @{weapon-1-total-attack}]] vs @{target|token_name} AC of [[@{target|AC}]]
--?? $Atk base == 1 ?? !CritFail:|Critical Failure
--?? $Atk total < [[@{target|AC}]] OR ?? !Miss:|You missed.
--?? $Atk total >= [[@{target|AC}]] AND $Atk base <> 1 AND $Atk base <> 20 ?? Hit:|[[ [NH] d@{weapon-1-dice} + @{weapon-1-total-damage} + @{dexterity-mod} + @{charisma-mod}]] martial damage
--?? $Atk base == 20 ?? Critical Hit:|[[1*@{weapon-1-dice} + @{weapon-1-total-damage} + @{dexterity-mod} + @{charisma-mod}]] martial damage
}} @{weapon-1-total-attack} is @{weapon-1-attack-class}+@{weapon-1-attack-misc}+@{weapon-1-attack-feat}+@{weapon-1-prof}+@{weapon-1-enh}+floor(@{level}/2) And @{weapon-1-total-damage} is the exact same as total attack but with <damage> in replace of all <attack> Thank you, Ryeaa Edit : I just looked in my API scripts and found this error_____"ERROR: Unable to find character target in chat command."_____