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

Storing Settings for script

Hello. Long story short: I want to store some variables between game sessions and sandbox restarts, but not between campaigns. Any hints how this may be achieved? I've seen this done in other scripts, but their source codes are usually too difficult for me to understand (I'm pretty green in JavaScript). Thanks in advance.
1493256867
The Aaron
Pro
API Scripter
You're in the right track. Check out the state documentation:&nbsp; <a href="https://wiki.roll20.net/API:Objects#state" rel="nofollow">https://wiki.roll20.net/API:Objects#state</a>