Honestly, it could be the template. That is why I use the --inlinereplace instead of templates. I would love to see your coding to see what may be happening. The way I use the PowerCards currently like example below is for the player to do an auto-attack on a monster. No manually deducting hit points from monsters for me unless they critical hit or critical fail. Gromduraz said: EDIT: So your solution for the problem below is awesome - however I ran into an odd issue with --replacesection and --inlinereplace. The tag seems to be registering as a normal tag - meaning the content is displayed and not being recognized as a reserved tag - I am using a template for the macro - would that be an issue? Thanks again! This is perfect - you are awesome. I'm always inspired to see all the ways people use Powercards. Theodore S. said: Gromduraz said: I'm not sure if this is possible, but I was hoping to make a generic API call (to ChatSetAttr) but based on a conditional. Essentially, I'm using a rollID to test if a weapon is ranged, then if it is, I want to make an API call to reduce ammo by 1 (I'm using Shaped Sheet). Is that possible? The --api_ tag doesn't seem like it can be used within a conditional, but maybe I'm missing something. Thanks! In 5e OGL, this is what I have done: !power {{ --inlinereplace|WEP|?{Which weapon?|Dagger|Dart|Sickle} --inlinereplace|THROWN|?{Thrown?|No|Yes} --inlinereplace|HAND|?{Which hand?|Main|Offhand} --?! "~WEP$" -eq "Dart" !? api_setattr|_name @{selected|character_name} _modb _other_resource|-1 _silent --?! "~WEP$" -eq "Dart" !? api_setattr*1|_name @{selected|character_name} _modb _repeating_resource_$0_resource_left|+1 _silent --replaceattrs|S-|@{selected|character_id} --replaceattrs|T-|@{target|character_id} --target_list|@{target|token_id} --emote|~S-CN$ ^^ attacks ^^ ~T-CN$ --tokenid|@{selected|token_id} --format|encounter --corners|10 --name|~WEP$ --leftsub|~S-CN$ --?! "~WEP$" -eq "Dagger" -and "~THROWN$" -eq "No" !? !Range*1:|**Range**: 5 feet --?! "~WEP$" -eq "Sickle" !? !Range*2:|**Range**: 5 feet --?! "~WEP$" -eq "Dagger" -and "~THROWN$" -eq "Yes" !? !Range*3:|**Range**: 20/60 feet --?! "~WEP$" -eq "Dart" !? !Range*4:|**Range**: 20/60 feet --?! "~WEP$" -eq "Dagger" -or "~WEP$" -eq "Dart" !? Attack*1|**Attack**: [[ [$Atk] ?{Advantage?| Normal, 1d20 + ~S-MDEX$ [DEX] + ~S-PB$ [PROF] | Advantage, 2d20KH1 + ~S-MDEX$ [DEX] + ~S-PB$ [PROF] | Disadvantage, 2d20KL1 + ~S-MDEX$ [DEX] + ~S-PB$ [PROF] } + ?{Flanking?|No, 0|Yes, 2} [FLANK] ]] --?! "~WEP$" -eq "Sickle" !? Attack*1|**Attack**: [[ [$Atk] ?{Advantage?| Normal, 1d20 + ~S-MSTR$ [STR] + ~S-PB$ [PROF] | Advantage, 2d20KH1 + ~S-MSTR$ [STR] + ~S-PB$ [PROF] | Disadvantage, 2d20KL1 + ~S-MSTR$ [STR] + ~S-PB$ [PROF] } + ?{Flanking?|No, 0|Yes, 2} [FLANK] ]] --?! $Atk -lt ~T-AC$ -and $Atk.base -gt 1 !? !Missed|**You missed!** --?! "~WEP$" -eq "Dagger" -and "~HAND$" -eq "Main" -and $Atk -ge ~T-AC$ -and $Atk.base -ne 20 !? !Damage*1:|You caused [#[ [$dmg] floor((1d6 + ~S-MDEX$ [DEX]) / ?{Resistance?|No, 1|Yes, 2} [RESIST] * ?{Vulnerable?|No, 1|Yes, 2} [VULN] ) ]#] piercing damage --?! "~WEP$" -eq "Dagger" -and "~HAND$" -eq "Offhand" -and $Atk -ge ~T-AC$ -and $Atk.base -ne 20 !? !Damage*2:|You caused [#[ [$dmg1] floor(1d6 [DEX] / ?{Resistance?|No, 1|Yes, 2} [RESIST] * ?{Vulnerable?|No, 1|Yes, 2} [VULN] ) ]#] piercing damage --?! "~WEP$" -eq "Dart" -and $Atk -ge ~T-AC$ -and $Atk.base -ne 20 !? !Damage*3:|You caused [#[ [$dmg2] floor((1d4 + ~S-MDEX$ [DEX]) / ?{Resistance?|No, 1|Yes, 2} [RESIST] * ?{Vulnerable?|No, 1|Yes, 2} [VULN] ) ]#] piercing damage --?! "~WEP$" -eq "Sickle" -and $Atk -ge ~T-AC$ -and $Atk.base -ne 20 !? !Damage*4:|You caused [#[ [$dmg3] floor((1d4 + ~S-MSTR$ [STR]) / ?{Resistance?|No, 1|Yes, 2} [RESIST] * ?{Vulnerable?|No, 1|Yes, 2} [VULN] ) ]#] piercing damage --?! "~WEP$" -eq "Dagger" -and $Atk.base -eq 20 !? !Critical Hit*1:|**Critcal Effect:** [#[ [TXT] 1t[Hit-Piercing-(Lv.5-8)] ]#] --?! "~WEP$" -eq "Dart" -and $Atk.base -eq 20 !? !Critical Hit*2:|**Critcal Effect:** [#[ [TXT] 1t[Hit-Piercing-(Lv.5-8)] ]#] --?! "~WEP$" -eq "Sickle" -and $Atk.base -eq 20 !? !Critical Hit*3:|**Critical Effect:** [#[ [TXT] 1t[Hit-Slashing-(Lv.5-8)] ]#] --?! "~WEP$" -eq "Dagger" -and "~THROWN$" -eq "No" -and $Atk.base -eq 1 !? !Fumble*1:|**Fumble**: [[ [TXT] 1t[Fumble-Melee-(Lv.5-8)] ]] --?! "~WEP$" -eq "Dagger" -and "~THROWN$" -eq "Yes" -and $Atk.base -eq 1 !? !Fumble*2:|**Fumble**: [[ [TXT] 1t[Fumble-Ranged-(Lv.5-8)] ]] --?! "~WEP$" -eq "Dart" -and $Atk.base -eq 1 !? !Fumble*3:|**Fumble**: [[ [TXT] 1t[Fumble-Ranged-(Lv.5-8)] ]] --?! "~WEP$" -eq "Sickle" -and $Atk.base -eq 1 !? !Fumble*4:|**Fumble**: [[ [TXT] 1t[Fumble-Melee-(Lv.5-8)] ]] --?! "~WEP$" -eq "Dagger" -and "~HAND$" -eq "Main" -and $Atk.base -eq 20 !? !Normal*1:|**Damage**: [^dmg] piercing damage --?! "~WEP$" -eq "Dagger" -and "~HAND$" -eq "Offhand" -and $Atk.base -eq 20 !? !Normal*2:|**Damage**: [^dmg1] piercing damage --?! "~WEP$" -eq "Dart" -and $Atk.base -eq 20 !? !Normal*3:|**Damage**: [^dmg2] piercing damage --?! "~WEP$" -eq "Sickle" -and $Atk.base -eq 20 !? !Normal*4:|**Damage**: [^dmg3] piercing damage --?! "~WEP$" -eq "Dagger" -and "~HAND$" -eq "Main" -and $Atk -ge ~T-AC$ -and $Atk.base -ne 20 !? alterbar1|_target|@{target|token_id} _bar|3 _amount|-[^dmg] _show|all --?! "~WEP$" -eq "Dagger" -and "~HAND$" -eq "Offhand" -and $Atk -ge ~T-AC$ -and $Atk.base -ne 20 !? alterbar2|_target|@{target|token_id} _bar|3 _amount|-[^dmg1] _show|all --?! "~WEP$" -eq "Dart" -and $Atk -ge ~T-AC$ -and $Atk.base -ne 20 !? alterbar3|_target|@{target|token_id} _bar|3 _amount|-[^dmg2] _show|all --?! "~WEP$" -eq "Sickle" -and $Atk -ge ~T-AC$ -and $Atk.base -ne 20 !? alterbar4|_target|@{target|token_id} _bar|3 _amount|-[^dmg3] _show|all }} The lines --?! "~WEP$" -eq "Dart" !? api_setattr|_name @{selected|character_name} _modb _other_resource|-1 _silent --?! "~WEP$" -eq "Dart" !? api_setattr*1|_name @{selected|character_name} _modb _repeating_resource_$0_resource_left|+1 _silent tell the API if the conditions are met, reduce the ammo by 1 and add 1 to expended ammo. I hope that helps.