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] Rolls being sent before chat commands...

!desc Strength Check [[1d20+@{STR_MOD}]] The above macro will put the inline roll first following by Strength Check via the api !desc command instead of the other way around.
What is your !desc script doing? If it's using sendChat(), then it's going to appear after the inline roll because the inline roll is executing, then you are doing sendChat which is like adding a 3rd line, essentially, to your macro (at least, that's a basic way to look at it).
Ah... well that sucks. That ruins my plans since sendChat doesn't work very well with inline rolls.
1377656102
Lithl
Pro
Sheet Author
API Scripter
With my roll repeater script, my solution was to use an API for each command in the macro, and echo the line to sendChat if there wasn't anything else to perform on the line. It's not a perfect solution (and, interestingly, it still sometimes gets the lines out of order), but it's the best solution I've found.