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

[Script] BackgroundChanger

1581249591

Edited 1581249787
Hey there! I've created a little script to manage multiple map tokens with different daytimes or themes.I first made a macro with tokenmod but this wasn't working too well as it affected other map token too. My script is not putting the desired map to the front but all others to the back so non related tokens are not affected. See it in action here or here I'm using this macro to manage the maps: !bgchange ?{daytime|night,night| day,day | sunset,sunset} !bgchange ?{Theme|normal,normal| summoning,summoning} <a href="https://github.com/elcool0r/bgchange" rel="nofollow">https://github.com/elcool0r/bgchange</a> As this is my first script I'm happy for any feedback and constructive criticism.
1581268715
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
How does your script know which maps to affect?&nbsp;
All map tokens with " bg" in the gmnotes are affected.
Was looking for exactly this. Thanks for sharing! :D