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

Any good resources for hooking into the initiative tracker and running a command every round?

Heya Folks, I'm looking to write a quick script that will hook into the initiative tracker and then execute a command at the top (or bottom) of every round. I did some poking, and it looks like the `cron` script would have done this, but it seems to be discontinued and I was unable to find the source. I looked at what events are issued, and didn't see any that looked like what I wanted. Doing even more poking, it looks like maybe what I want to do is add a custom item to the tracker, then do a `on("change: @{tracker|Item Name}")` ? Any pointers appreciated!
1616700165
The Aaron
Roll20 Production Team
API Scripter
OnMyTurn has code that does this if you want to dig into how you'd do it.
Beautiful, thanks! I'll dig into that to grok it. Much appreciated.