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

Has anyone worked on a proximity to token script.

In particular I am using it for changing a token's light source (view range) when they enter a darkness spell. As of right now I can't really do anything about a player's magical light if it is only invading a part of a darkness spell (thus creating dim light) but I thought it seemed like a check could be done if a player's token gets within 20 feet of a darkness token and then their light source drops to almost nothing, and goes back up when leaving that range.
1406437978
The Aaron
Roll20 Production Team
API Scripter
When talk of darkness spells has come up in the past, I suggested using a round image of inky blackness fading to transparency at the edges. I'd upload sample but I'm on my phone. :/ If you search back through the forum you might find it, or PM me if you want samples and I'll send them tomorrow. If you're still interested in proximity scripts, Sarjenka has a Utils.js script that provides some tests for tokens in a circle, etc. that might serve your purposes.