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] Interpolated Trap Detection Revision

1406230458
TheWhiteWolves
KS Backer
API Scripter
This is a revision of Stephen L's Interpolated Trap Detection Script <a href="https://app.roll20.net/forum/post/529899/script-in" rel="nofollow">https://app.roll20.net/forum/post/529899/script-in</a>... I would have posted this as a reply to his original topic however it has been locked forcing me to create a new topic for it. I have added the ability for the script to reconstruct the tokens waypoint path and to then set this back to the token if it happens to run into a trap, Stephens original version of the script just reset the waypoint path and for me and my group this could be a hassle as it no longer showed the last move the token took, therefore I thought that it would be a nice feature to add this ability to the script. The script will construct the new waypoint path as it searches for the trap and replace the current one with the new altered on that follows the waypoints originally set by the player with the modification of it stopping at the trap that they ran into, allowing for the players to press space and still see the waypoints as normal, the script will not change the waypoint path if no trap is detected and thus will continue as normal. I hope Stephen approves of these changes. <a href="https://gist.github.com/TheWhiteWolves/80ddebfde47" rel="nofollow">https://gist.github.com/TheWhiteWolves/80ddebfde47</a>...
1406230716
The Aaron
Roll20 Production Team
API Scripter
Nice addition!