I have been working on understanding
replacements (D&D5e OGL) and came across the following great macro/PCMHelper
combo (kudos to author, tried to remember where this came from but couldn't retrace it) for choosing a character's weapon and attack /damage determination: Macro: !power {{
--replacepcattack|@{selected|character_id}|?{Select attack to
use|@{selected|attacklist}}
--replacement|Advantage
--replaceattrs|S-|@{selected|character_id}
--replaceattrs|T-|@{target|character_id}
--template|Basics|@{selected|token_id};@{target|token_id};uses
~PCA-NAME$;~PCA-NAME$;~PCA-ATYPE$;~PCA-RANGE$
--template|PCAttack|~@{selected|rtype}$
}} PCMHelper Template: Basics: --tokenid|~0! --target_list|~1! --emote|~S-CN$
~2! against ~T-CN$ --format|~S-CN$ --name|~3! --leftsub|~4! --rightsub|~5!
PCAttack: --Attack|[#[ [$Atk] ~0! + ~PCA-ATKBONUS$
[Attack Bonus] ]#] vs **AC** [#[~T-AC$]#] --?? $Atk.base == 1 ?? Fumble|The
attack went horribly wrong! --?? $Atk.base <> 1 AND $Atk.base <> 20
AND $Atk.total < ~T-AC$ ?? Miss|~S-CN$ missed. --["~PCA-DMG2DICE$"
-eq "none"]?? $Atk.base <> 20 AND $Atk.total >= ~T-AC$ ??
Hit|~S-CN$ hits ~T-CN$ for [#[ [$Dmg] ~PCA-DMG1DICE$ ]] ~PCA-DMG1TYPE$ damage
--["~PCA-DMG2DICE$" -ne "none"]?? $Atk.base <> 20 AND
$Atk.total >= ~T-AC$ ?? Hit|~S-CN$ hits ~T-CN$ for [#[ [$Dmg] ~PCA-DMG1DICE$
]] ~PCA-DMG1TYPE$ damage and [[ [$Dmg2] ~PCA-DMG2DICE$ ]] ~PCA-DMG2TYPE$ damage
--["~PCA-DMG2DICE$" -eq "none"]?? $Atk.base == 20 AND
$Atk.total >= ~T-AC$ ?? Critical Hit|~S-CN$ hits ~T-CN$ for [#[ [$Dmg]
~PCA-DMG1CRIT$ ]] ~PCA-DMG1TYPE$ damage --["~PCA-DMG2DICE$" -ne
"none"]?? $Atk.base == 20 AND $Atk.total >= ~T-AC$ ?? Critical
Hit|~S-CN$ hits ~T-CN$ for [#[ [$Dmg] ~PCA-DMG1CRIT$ ]] ~PCA-DMG1TYPE$ damage
and [[ [$Dmg2] ~PCA-DMG2CRIT$ ]] ~PCA-DMG2TYPE$ damage
--["~PCA-SAVE$" -eq "true"]?? $Atk.base == 20 OR $Atk.total
>= ~T-AC$ ?? Save|~T-CN$ can attempt a **DC ~PCA-SAVEDC$** ~PCA-SAVEATTR$
saving throw for ~PCA-SAVEEFFECT$ --["~PCA-DESC$" -ne
"none"]Description|~PCA-DESC$ I noticed that the macro included magic weapon bonuses
for the damage but not the attack. Where is the error? Thanks!