Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[[Bug?]] Inline rolls being parsed too soon?

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.
+1, also experience this issue when I try to add In-line rolls to the condition tracker script
I've figured a way around the problem, but I'm basically have to write my own inline die roll css style inside my script with variables replaced for crit misses and hits.
1391012917

Edited 1391014270
Figured out what the problem is. It has to do with using /direct instead of any other chat command with the sendChat function. Is there a way to stop /direct from doing this?
1391027508
DXWarlock
Sheet Author
API Scripter
I ran into that too, was rolling on a rollabletable with a macro, which didn't take inline rolls in the table item name. When I did it as a 'sendChat /w' a side effect was it worked with it. The other side effect was what you said, trying to do it as a /direct with any inline rolls throws out a $(something).