
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>...