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

[Script] Generic Token Chat Auditing

This script should be able to be dropped into any campaign, and all changes in token position will be audited in the chat window. The upper left grid space is considered (0,0). &nbsp;The script can work on any grid size and grid unit setting. &nbsp;The token's location is considered it's "center" position, so, if an object takes up 3x3 units, it's position in the upper left corner would show at (1,1). &nbsp; Tokens that are "even" sizes default to the lower # (so, a 2x2 token in the upper left would show (0,0)... a 4x4 token would show (1,1), etc. You can also put in some custom code to check for out of bounds positions, if you set the flag to true, then it will move the token back to it's original position. Open to any suggestions or thoughts about improving the script for general use. <a href="https://gist.github.com/dletter/6238017" rel="nofollow">https://gist.github.com/dletter/6238017</a>
Forgot to mention but you'd probably notice... this will NOT audit cards... card names are not visible right now to the API, and once they improve the access to card and deck information in the API, I plan on making a full generic "Card Auditing" script then as well.