Hi, I'm using PowerCards script along with Ammo script and everything was fine the day before the update and after the update some of them are not working, but some are working. I keep getting the error with some of the PowerCards macros that I wasn't getting before, and when I asked in the forum for PowerCards and they are able to use them just fine. Here is the error that I'm getting: Here is one of the macros that doesn't work: !power {{
--charid|@{character_id}
--emote|**@{selected|token_name}** aims bow at target!
--format|ambrose
--name|Short Bow
--leftsub|Action
--rightsub|Range 80/320
--!|**Ambrose** fires ?{Arrows fired|1} arrows(s) and has [[@{Arrows}-1]] arrows remaining.
--target_list|@{target| |token_id}
--Attack|~R[[ [$Atk] @{AtkRoll} + @{Melee To Hit} +4 ]] vs. [[0+ %%AC%% ]] (AC) (%%token_name%%)~R
--?? $Atk.total >= @{target| |bar3} AND $Atk.base <= 20 ?? Hit|~R[[ [NH] d6 +@{STR} +4 ]] ~R
--?? $Atk.total < @{target| |bar3} AND $Atk.base < 20 ?? !Miss| ~C$$#ff0000|**You Missed!**$$~C
--?? $Atk.base == 20 ?? Critical Hit|~R[[ [NH] d6]]~R
--?? $Atk.total >= @{target| |bar3} AND $Atk.base <= 20 ?? Properties|~RPiercing, Ammunition, 2-Handed~R
--?? $Atk.total < @{target| |bar3} AND $Atk.base == 1 ?? !Miss *1:|You missed horribly: ^^^^ $$#ff0000|**[[1t[Critical-Miss-Ranged] [txt] ]]**$$
}}
!ammo @{selected|token_id} Arrows -?{How many arrows?|1}
Here is one that does work: !power {{
--charid|@{character_id}
--emote|**@{selected|token_name}** swings sword at target!
--format|ambrose
--name|Short Sword
--leftsub|Action
--rightsub|Reach 5 ft.
--target_list|@{target| |token_id}
--Attack|~R[[ [$Atk] @{AtkRoll} + @{Melee To Hit} ]] vs. [[0+ %%AC%% ]] (AC) (%%token_name%%)~R
--?? $Atk.total >= @{target| |bar3} AND $Atk.base <= 20 ?? Hit|~R[[ [NH] d6 +@{STR} ]] ~R
--?? $Atk.total < @{target| |bar3} AND $Atk.base < 20 ?? !Miss| ~C$$#ff0000|**You Missed!**$$~C
--?? $Atk.base == 20 ?? Critical Hit|~R[[ [NH] d6]]~R
--?? $Atk.total >= @{target| |bar3} AND $Atk.base <= 20 ?? Properties|~RPiercing, Finesse, Light~R
--?? $Atk.total < @{target| |bar3} AND $Atk.base == 1 ?? !Miss *1:|You missed horribly: ^^^^ $$#ff0000|**[[1t[Critical-Miss-Melee] [txt] ]]**$$
}}
To reproduce the problem you just need to select the character, select the token action (Attack) and select Short Bow button. Or any of the spell book token actions. The setup I have is: Browser + version: Chrome 46.0.2490.86 Operating System: Windows 10 Pro Javascript: Enabled Cookies: Enabled Screen Resolution: 1366 x 768 Browser Size: 1292 x 683 Color Depth: 24 bit Flash Version: 19.0.-1 Any help with this would be appreciated. EDIT: I also tried to re-type the macro from scratch and still getting the same error message. Script writer said that this code shouldn't even come up for this instance because: "There are only four instances of e.replace in the PowerCards script and they're all part of the emote.replace, not e.replace by itself." EDIT 2: Ok, so I went through incrementally and it's giving the error when I try to add this part of the code: --!|**Cairo** throws ?{Daggers thrown|1} dagger(s) and has [[@{Daggers}-1]] daggers remaining. Specifically when adding the [[@{Daggers} -1]]. With or without the -1. EDIT 3: Ok, problem solved. Every Ability that I added to the character sheets on the day of (or just before) the Dev update is the problem. If I delete and re-add the Abilities they work just fine.