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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
Hi all, I have some rolltables and a macro that randemly sends whispers to random PCs. Is it possible (or maybe its already been done) to have a script that runs the macro every X minutes (or similiar)? Thanks.
Sure, setTimeout and setInterval are designed to do things just like that. setTimeout will call a function once after waiting a specified number of milliseconds. setInterval will call a function repeatedly, waiting a specified number of milliseconds between each call.