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

Randomly Changing/Cycling Images

My search-fu hasn't turned up anything yet but does anyone know of a script that will, every n minutes, change an image to one from a random selection (either from a rollable table or a manually curated list of Art Library links)? Looking to have a "World Information" section of my players' landing page that cycles through little tidbits of information.
1475579716
The Aaron
Pro
API Scripter
There is a script called Loading that does this for text: &nbsp; <a href="https://app.roll20.net/forum/post/1226651/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/1226651/slug%7D</a> It could be pretty easily modified to have a list of image urls and swap out the imgsrc on a graphic instead.
Aha, looks great. Knew someone must've made something along these lines! This might work even better actually; instead of loading images, the world info can just be pure text. Only thing to change is to have it target a specific text object (as it'll be on a page with many such objects); perhaps a way to "set" which text object to use.
1475587102
The Aaron
Pro
API Scripter
Yeah, I'd probably add a command to toggle a text block as being updated by the script and store the id in state, probably add a gmlayer label to tell you what it's being used for, then only update if someone is on the page.