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

Not recognizing cards as "tokens"

I'm trying to set up my first play session using Geomorphic Cave Tiles from the Marketplace. I figured I would use Dynamic Light Recorder ( <a href="https://github.com/Roll20/roll20-api-scripts/tree/master/DynamicLightRecorder" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/tree/master/DynamicLightRecorder</a> ) to draw in my dynamic lighting paths and record them so that each time I "draw" that map tile, the paths are already drawn in. Not being able to do this kind of ruins the whole "drag-n-drop" feature of these packs, ya know? The issue is that the map pack uses each tile as a card in a deck, and AFAIK there is no way to simply convert them to normal tokens. As such, the script simply isn't recognizing the tiles, as it calls for "token" specifically from the API. Even when setting the cards to "Considered: Tokens", there is no change. I am not super familiar with the API, so my apologies if some things are explained wrong. But is there any way to "trick" the script into considering the tiles as tokens? If not, is there any other existing script or new built in function to do what I am trying to do? Thanks!
1563506436
The Aaron
Roll20 Production Team
API Scripter
Try this version:&nbsp; <a href="https://gist.github.com/shdwjk/b7d7e0c289d19ef4d37481a91ee7e207" rel="nofollow">https://gist.github.com/shdwjk/b7d7e0c289d19ef4d37481a91ee7e207</a>
Wow, thanks for the quick reply! Unfortunately I'm still getting "Selected tile must be on the map layer" thrown back. Card dragged to the map, drew in a line using the polygon tool, and attempted to run !dl-link, all while on the map layer.
1563583414
The Aaron
Roll20 Production Team
API Scripter
Hmm. I'll try that and see what I can figure out.&nbsp;
1563584715
The Aaron
Roll20 Production Team
API Scripter
Ah!&nbsp; I think I made a slight mistake in updating it, grab it again, I updated the gist above to correct that error.
There's no error now, and it transfers the polygon over to the DL layer just fine. But it seems to not be saving to the card. There is nothing on the DL layer when I delete and redraw the same tile.
1563629303
The Aaron
Roll20 Production Team
API Scripter
Hmmmm... &nbsp;I'll take a look!