I am trying to apply damage to a bunch of starship tokens at once by changing their bar values. Several of the ships have a damage reduction score of 10. I want to apply the damage correctly for all the tokens. Currently, the macro kind of works, but is having some problems with target selection, I think. I've noticed it continues to let me select "Target 8" repeatedly after the prompt appears for the damage amount. It applies correctly to some targets, but does nothing to others and occasionally applies the damage more than once if I click the same target twice (which I thought Token Mod was supposed to prevent). I think it is not correctly selecting all the targets. It almost always fails to apply any damage to target 8 (the last one). I'm also using the CFX and Delay scripts. Here's the macro, which is called as an ability from my Macro Holder character sheet. Integrity is the ship's damage reduction stat, which all the ships do have, though for some the value is 0. The macro usually applies the damage correctly to these, so the 0 isn't the issue. I kept the non-relevant parts in because the mistake might be there. I know I had some problems with open brackets never being closed, but I fixed the ones I could find. !roll20AM --audio,play,nomenu,mode:single | CruiserMissileHit
!delay 0.5 --!cfx ShipHitMedium @{target|1|token_id} @{target|1|token_id} @{target|2|token_id} @{target|3|token_id} @{target|4|token_id} @{target|5|token_id} @{target|6|token_id} @{target|7|token_id} @{target|8|token_id}
!delay 0.55 --!token-mod --ids @{target|1|token_id} @{target|2|token_id} @{target|3|token_id} @{target|4|token_id} @{target|5|token_id} @{target|6|token_id} @{target|7|token_id} @{target|8|token_id} --set tint_color|rgb(64,0,0)
!token-mod --ids @{target|1|token_id} --set bar3_value|-[[?{Damage|60}-@{target|1|Integrity}]]!
!token-mod --ids @{target|2|token_id} --set bar3_value|-[[?{Damage|60}-@{target|2|Integrity}]]!
!token-mod --ids @{target|3|token_id} --set bar3_value|-[[?{Damage|60}-@{target|3|Integrity}]]!
!token-mod --ids @{target|4|token_id} --set bar3_value|-[[?{Damage|60}-@{target|4|Integrity}]]!
!token-mod --ids @{target|5|token_id} --set bar3_value|-[[?{Damage|60}-@{target|5|Integrity}]]!
!token-mod --ids @{target|6|token_id} --set bar3_value|-[[?{Damage|60}-@{target|6|Integrity}]]!
!token-mod --ids @{target|7|token_id} --set bar3_value|-[[?{Damage|60}-@{target|7|Integrity}]]!
!token-mod --ids @{target|8|token_id} --set bar3_value|-[[?{Damage|60}-@{target|8|Integrity}]]!
!delay 0.6 --!token-mod --ids @{target|1|token_id} @{target|2|token_id} @{target|3|token_id} @{target|4|token_id} @{target|5|token_id} @{target|6|token_id} @{target|7|token_id} @{target|8|token_id} --set tint_color|rgb(128,0,0)
!delay 0.65 --!token-mod --ids @{target|1|token_id} @{target|2|token_id} @{target|3|token_id} @{target|4|token_id} @{target|5|token_id} @{target|6|token_id} @{target|7|token_id} @{target|8|token_id} --set tint_color|rgb(256,0,0)
!delay 0.7 --!token-mod --ids @{target|1|token_id} @{target|2|token_id} @{target|3|token_id} @{target|4|token_id} @{target|5|token_id} @{target|6|token_id} @{target|7|token_id} @{target|8|token_id} --set tint_color|rgb(128,0,0)
!delay 0.75 --!token-mod --ids @{target|1|token_id} @{target|2|token_id} @{target|3|token_id} @{target|4|token_id} @{target|5|token_id} @{target|6|token_id} @{target|7|token_id} @{target|8|token_id} --set tint_color|rgb(64,0,0)
!delay 0.8 --!token-mod --ids @{target|1|token_id} @{target|2|token_id} @{target|3|token_id} @{target|4|token_id} @{target|5|token_id} @{target|6|token_id} @{target|7|token_id} @{target|8|token_id} --set tint_color|transparent Any insight would be appreciated.