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

Run a macro every X minutes?

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.
1475299123
Lithl
Pro
Sheet Author
API Scripter
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.
Thanks, I will tinker!