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

[Question] A quick question about Sheet Workers

1527265370
Missingquery
Pro
Sheet Author
API Scripter
I know in the regular R20 API it's possible to output messages to chat, but can you output messages to chat using Sheet Workers as well? Would you still use the sendChat() function, or would you use something different since the API scripts are sandboxed and the sheet workers operates within a browser context? There doesn't seem to be anything regarding chat output on the section on the Sheet Workers API, but I would like to be able to print messages to chat when certain values change on a character sheet.
1527266742
Finderski
Pro
Sheet Author
Compendium Curator
I'm not aware of that capability, and don't believe you can.  However, you could create a field (textarea would probably be the best) on the character sheet called chat log or something and just update that with information as things change.  I'd just append the info so you'd have a record of the history.
1527268072
Missingquery
Pro
Sheet Author
API Scripter
Yeah, I'm looking to output it to the actual chat where everyone can see it, haha. If that's not possible, that's fine.
1527269510
vÍnce
Pro
Sheet Author
While sheet workers can be used to create/manipulate attribute data I don't believe they have the ability to directly output to chat. ie API's sendChat()  A sheet roll or similar macro would have to be used to actually display the data and that would need to happen manually or via API.