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

[API] sendChat has trouble with some inlinerolls containing tags (type 'L' results)

1479919132
Jakob
Sheet Author
API Scripter
Some types of inline rolls cannot be sent via sendChat, although they normally work. This may be connected to the use of roll tags, and seems to show up more when no 'R' type results are present. To reproduce, run sendChat('name', '[[10 + 5[str]]]') You get the following error message: Could not determine result type of: [{"type":"M","expr":"10+2"},{"type":"L","text":"str"}] Entering [[10 + 5[str]]] in chat gives the expected result instead. Strangely enough, [[d20 + 5[str]]] works fine. When omitting the '[str]', it also works.
1479935588
Lithl
Pro
Sheet Author
API Scripter
Yes, I have had issues using labels in Powercards without dice in the past. I simply tacked on a 0d0 to the math and went on, because I wanted to play the game ~_^
1480981658
Gid
Roll20 Team
I've written up a ticket for this issue. Thank you for the report!
1481867138
The Aaron
Pro
API Scripter
This might be related or at least close enough to be addressed at the same time:&nbsp;<a href="https://app.roll20.net/forum/post/2217884/api-regressions-for-inline-dice-expression-in-the-sendchat-api-function" rel="nofollow">https://app.roll20.net/forum/post/2217884/api-regressions-for-inline-dice-expression-in-the-sendchat-api-function</a>
1481871153

Edited 1481871167
Silvyre
Forum Champion
Crossing my fingers that, by addressing these issues, this case will be fixed, too!
The Aaron said: This might be related or at least close enough to be addressed at the same time:&nbsp; <a href="https://app.roll20.net/forum/post/2217884/api-regressions-for-inline-dice-expression-in-the-sendchat-api-function" rel="nofollow">https://app.roll20.net/forum/post/2217884/api-regressions-for-inline-dice-expression-in-the-sendchat-api-function</a> Been a year though...&nbsp;