Matteo B. said: Hello, I built a sheet in Excel to create png and I would like to import this sheet into Roll20. To do this I used this script, for example, using ChatSetAttr: !setattr --sel --replace --repeating_npcaction_-CREATE_name|Halberd --repeating_npcaction_-CREATE_description|{{ Melee Weapon Attack: <<1d20cs>19+6>> to hit. Reach 5ft, one target. Critical hit 19-20 Hit: <<3d10 + 4>> Slashing damage plus <<2d10>> Necrotic damage. Critical Hit Total Damage: 36 Slashing damage +22 Necrotic damage. }} The problem is that ChatSetAttr change this <<1d20cs>19+6>> with the braket [[ 1d20cs]19+6]] and I want to mantain cs>19. How can I do? Unfortunately the ChatSetAttr --replace function changes all < to [ and > to ]. The script author Jakob must have guessed that no one would be using < or > in their outputs. ChatSetAttr Readme : --replace will replace the characters < , > , ~ , ; , and ` by the characters [,],-,?, and @ in attribute values. This is useful when you do not want roll20 to evaluate your expression in chat before it is parsed by the script. Alternatively, you can use \lbrak, \rbrak, \n, \at, and \ques to create [, ], a newline, @, and ?. It also looks like his deferral character only works on | or # characters: If you want to use the '|' or '#' characters inside an attribute value, you may escape them with a backslash: use '|' or '#' instead. I'm trying to figure out how to use a Metascript replace function, but it looks like it needs to be deferred until after ChatSetAttr runs... but the order of operations isn't working for me. A temporary workaround in the meantime: manually change the ChatSetAttr script to remove lines 17 and 19: [/</g, "["], [/>/g, "]"], Those are the lines that replace < with [ and > with ]. Then just use the other replacement values for [ and ]: !setattr --sel --repeating_npcaction_-CREATE_name|Halberd --replace --repeating_npcaction_-CREATE_description|Melee Weapon Attack: \\lbrak\\lbrak1d20cs>19+6\\rbrak\\rbrak to hit. Reach 5ft, one target. Critical hit 19-20 Or change lines 17 and 19 to: [/<</g, "["], [/>>/g, "]"], And the command will be: !setattr --sel --repeating_npcaction_-CREATE_name|Halberd --replace --repeating_npcaction_-CREATE_description|Melee Weapon Attack: <<<<1d20cs>19+6>>>> to hit. Reach 5ft, one target. Critical hit 19-20