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

Cumulative movement script.

I've done some searching but I haven't found anything like this and I was wondering how hard it would be to write. While my players are exploring a map, I'd like a script that keeps a running total of all their token movement and stores it as a character attribute that I can then reference. I could then use those distances to determine how much in game time has passed as they've been exploring the area. A simple function to reset all of the characters' totals to zero could then be macroed and used every time they begin to explore a new area. Thoughts?
1436656767
The Aaron
Pro
API Scripter
It would not be very hard at all. You can have an event on('change:token:lastmove',...) and just add it up, or you could continuously append the previous last move so you end up with last moving being an enormous list of where the player has been. Many options.