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

Sheet Worker Sections State/Handout Access

Are there any function calls to get access to the State object or even handouts for data lookup?  Currently I'm handling this in the API, but I'd like to move it into Sheet Worker Scripts.
1458585710
The Aaron
Roll20 Production Team
API Scripter
There isn't a means of accessing anything outside the current character with sheet workers.
If these scripts are running clientside, is it possible to make an AJAX call out to a web service to get the information we need?  I already have a web application that we use to manage all of our information.  Exposing that information through a web service would be simple enough.
1458602730
The Aaron
Roll20 Production Team
API Scripter
Sheet workers are sandboxed to prevent access to exterior sites as a security measure. Probably embedding the data you want access to in a JavaScript object in the sheet worker is the best way to have it available.