var AttackRoll = "1d20+6"; var AttackMessage = "/direct [[" + AttackRoll + "]] vs Reflex"; sendChat("", AttackMessage);  The inline roll is being parsed before being sent to chat via sendChat("", AttackMessage); and shows $[[#]] in chat instead of the results. If I don't use /direct, it doesn't parse it until it is displayed in the chat window.