Hi, I am trying to automate combat using this script in combination with Macro Parameters script (to avoid the target problem, because when I use target and selected in the same macro, it returns an error, as commented before). So the thing is I am trying this: /em @{selected|name} Attacks @{target|name} #MacroPar(@{selected|name},lastdice,[[1d20]]) #MacroPar(@{selected|name},lastdamage,[[{{[[@{selected|lastdice}+@{selected|closeattack}]],0}>@{target|AC}}*(@{selected|damage})]]) #MacroPar(@{target|name},hp,[[@{target|hp} -@{selected|lastdamage}]]) @{selected|name} rolls @{selected|lastdice} vs @{target|name} AC@{target|AC} For @{selected|lastdamage} Damage! And MacroPar does the following !setattr --silent --replace --name ?{name1} --?{att1}|?{value} Everything seems to go well on the chat, but when I check the attributes in the characters, they all are $[[0]] and $[[1]. I am trying the --replace, but it doesnt work in this case. Any idea why? Many thanks for your work!