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 .
×
May your rolls be merry + bright! 🎄
Create a free account

macro to constantly move an npc from A to B

So how would I go for a macro that makes one npc move every five seconds from one point to another - say on the same line for ease ? I have tokenmod installed, but I have a hard time figuring the time aspect...And I want that in front of an entrance...Would be great Thanks !
1643224822
David M.
Pro
API Scripter
Sounds like you would be interested in the Patrol api script . I played around with it a couple yrs ago but never implemented it in a game. Not sure if it still works, but you might want to give it a shot.
Hi David, I ,implemented it, it works like a charm, but for the fact at at each turnaround, it shows on the map a box info with the speed and distance before starting back on its patrol route. Otherwise, great ! thanks a lot !