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 API scripts to make tokens loop a movement?

I'm trying to set up a vehicle chase map and have buildings and other vehicle tokens scroll/constantly take incremental movements to simulate the feel of motion while the PC/npc vehicles stay stationary for round-based movement.

Are there any API scripts that can do this? I haven't tinkered too much with these sorts of things and I'm completely illiterate when it comes to software or anything resembling "programming", what I'm looking to do is have a token move X number of squares in Y direction and then reset itself once it reaches a set end point. Also, is it possible to set the "respawn" of a despawned token to a timer to stagger the traffic and make it feel a little more natural? Or is that beyond the capabilities of the API?

bump

June 21 (4 years ago)
Ravenknight
KS Backer

https://app.roll20.net/forum/post/2991336/script-patrols-using-waypoints

Check this script out. I don't know if it's able to do what you're looking for but you can set up looped movement with it rather easy.

June 21 (4 years ago)
The Aaron
Roll20 Production Team
API Scripter

All of that is possible, but would require some one to write it. I've thought about something similar for doing ship battles. 

Thanks pals, that's more than I was expecting and should get me on my way!