
I am generating an API command button to resolve opposed combat. It's a two step process so it's necessary to call the function twice as the defender has to make a choice of how to defend themselves. This works by replacing certain special characters with escape codes as recommend under the API command button wiki chat = "[RESOLVE](!STRIKE selected=&#64;{target|token_id} | " < some parameters >")"; However overnight or at some time, or other an automated script replaces &#64; with the @ symbol which is what the escape code &#64; represents. and replaces it with this line chat = "[RESOLVE](!STRIKE selected=@{target|token_id} | " < some parameters >")"; when output with sendChat results in the malformed line !STRIKE selected=target|token_id | <some parameters> instead of this being output to the chat window !STRIKE selected=@{target|token_id} | < some parameters > The end result is my script has been broken by the unknown automated process.