
I'm using the powercards script and have built the following macro: !power {{ --tokenid|@{selected|token_id} --target_list|@{target|token_id} --emote|**@{Selected|token_name}** slashes at @{Target|token_name} with a longsword! --format|atwill --titlefontshadow|none --name|Longsword --leftsub|Main Hand --rightsub|Melee Slashing --Attack|[[ [$atk] 1d20+@{Selected|ATK}+?{Modifier|0}]] vs Slashing AC --?? $atk.total > @{target|AC} ?? Enemy Dodge:|[[ 1d100cf>[[@{target|Dodge}-2*($atk.total-@{target|AC}+1)]]cs<[[@{target|Dodge}-2*($atk.total-@{target|AC})]] ]] }} The combat flow goes something like this: Token A rolls 1d20 + modifiers to hit Token B, if the result is higher than Token B's Slashing AC, then Token B rolls a dodge attempt. Token B has an attribute called "dodge" and rolls 1d100 to attempt to roll under this value. However, the value is modified by how well Token A succeeded initially on the to-hit roll. Token B subtracts their AC from the Token A's total, multiplies the resultant value by 2, then penalizes their dodge roll by that amount. So, assume Token A rolls a 22 after all modifiers, and Token B's AC is 12. That means when Token B rolls to dodge, they penalize their dodge score by 20. (10*2) This is the only part of the above macro that isn't working. It's simply rolling the base dodge chance of Token B. The cs/cf stuff is just to make the box red or green on a failure/success. Any idea what I'm missing/doing wrong?