I've looked through the lists of APIs and if any fit what I'm looking for, I either didn't see it, or couldn't figure out how to use it. At the moment, all I want are APIs that allow me: to stop players from moving tokens into something (exactly like the dynamic lighting feature) except I want it to be able to be used on top of the dynamic lighting feature and not block line of sight; I also want something that stops tokens from occupying the same space, effectively having tokens block movement for other tokens.
The best the API can do is move them back, it can't prevent them from moving through them.
And how does it work? is it a line/drawing tool like the dynamic lighting feature?
No. I'm not aware of the script that does this, I'm just speaking from capabilities. A good example is It's a Trap. After moving a token, it may move it back to a point where it triggered a trap.
Yeah, that was one of the scripts I tried that I couldn't figure out how to make work. That along with "Collision Detection" which seemed to do the second half of what I said I wanted in this post but I could never figure it out.
Collision Detection is a script for other scripts to use. Stephen L. wrote it for Its a Trap, other scripts like BOOM! use it.