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

[Looking for Help] Tokens Stuck to Tokens

Hi guys, I'm trying to figure out if an API script exists for keeping one token on a different layer stuck to another. I want to have a token on the tokens layer be mapped to a line (or token) on the dynamic lighting layer. So when the token on the token layer moves the dynamic lighting token moves. Is this possible and does a script already exist for this? Thanks Amir
1485957392
The Aaron
Pro
API Scripter
There are several door scripts that can handle that, what specifically are you liking to do?  I'm sure it can be done, but better to understand precisely what it should do. 
1485979609
Lithl
Pro
Sheet Author
API Scripter
Amir E. said: I want to have a token on the tokens layer be mapped to a line (or token) on the dynamic lighting layer. Just a note, while it's possible to have graphics on the DL layer, they don't have any interaction with the DL system.
The Aaron said: There are several door scripts that can handle that, what specifically are you liking to do?  I'm sure it can be done, but better to understand precisely what it should do.  I'm looking to move a piece of dynamic lighting with a model so he casts a shadow that blocks line of sight.
That would require an api script that tracks the movement of the token and deletes / re-draws the dynamic lighting path as needed. Simply moving it is not enough I believe.
Amir E. said: I'm looking to move a piece of dynamic lighting with a model so he casts a shadow that blocks line of sight. Perhaps you're looking for something like DynamicLightRecorder ?
1485987040
The Aaron
Pro
API Scripter
I bet that would work Silvyre!
Thats awesome thanks guys! :)