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

Is there a way to find the location of the map room numbers?

I figured there would be a way to link the numbers that come built into the 5e modules to the appropriate journal entries but looking through the properties of the object there doesn't seem to be any way to tell which object in the DM layer is the number 1, which is the number 2, and so on. Is there some way I'm not thinking of?
1580707352
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Well, you could manually name them, but that still doesn't change that you can't link a token and a handout.
You might not be able to link them but my code may do something else with them. I just need to be able to identify them first. Preferably without opening the module and manually naming all of them since I'd like it to work for other people as well. But there doesn't appear to be anything that does that. Their ID numbers are random, they appear in a random order in the list. I was kind of hoping I was missing something.
1580751641
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Well, the only programmaticish method I can think of would not be very robust. The number graphics may be the same for each product line (D&D 5e, PF, PF2, etc). If they are, then you could potentially use the image src url as your index. This obviously isn't very stable since what image is used could change at any time, and may not even be standardized currently.
1580783980
The Aaron
Roll20 Production Team
API Scripter
Actually, the Unique ID will be the same for everyone that creates a game from that module. If you're making some sort of supplemental API script, you can reference the token_id and it will work as long as they haven't copy/pasted and deleted the original marker, which is super unlikely. 
Yeah, I was just hoping that if my code had no idea which module was being opened (and so that it worked with future modules) that it could scan the ids or some other data to figure out which id applied to which number. But it sounds like without knowing the ids in advance, there's no way to do that.
1580954297
The Aaron
Roll20 Production Team
API Scripter
Correct. If module developers named them with their number, that might work, but that's probably not the way things are. 
1580954393
The Aaron
Roll20 Production Team
API Scripter
You could write a script that makes it easy to generate the mapping and and export the data for sharing with other users.