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 Handout from GM notes on map tokens

I have a map that has various tokens marking locations on the map. Things like bars, hotels, museums, guild halls etc. I'd like to make use of the new map pins to replace these and so would like to have a single document that contains all of the GM Notes in one place from which I can create the pins.  I have some experience with scripts but by no means am I an expert. Does anyone have any Idea of how this could be accomplished? I hope this gives enough information to understand what I am trying to do.
1772305356
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Yes! You want PinTool . I wrote it to do specifically this. You can watch the video on that linked page. I would suggest practice on a copy of the page until you like the results.
keithcurtis said: Yes! You want PinTool . I wrote it to do specifically this. You can watch the video on that linked page. I would suggest practice on a copy of the page until you like the results. Ya, I found that after I posted. I am having a problem with it though. I creates the handout with all 170+ locations in it but it is only adding the first 3 pins to the map. The command I'm using is,  !pintool --convert name|h2 title|Greyhawk City Pins gmnotes|normal replace|true Any ideas of what I might be doing wrong?
1772310324
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hmm. Hard to tell without examining the actual game. The macro looks clean though. Are you on the Experimental API server? If you want to shoot me an invite in a PM, I'd be happy to take a look. One possibility is a timeout condition, though the script should be mitigating that with a burndown queue per pin (thanks to the Aaron's help). Every time a pin is placed, the Roll20 engine updates the handout (internally, not associated with any script code), so the script needs to wait for each pin. This can take a while, depending on the size of the game and map, but I have tested it on quite large games. This should not be the problem. As a last gasp, if it is successfully creating a handout, you should be able to place pins using the --place command, but that's not optimal, because it just spaces the new pins out across the top of the map, not knowing where they should go.
Not a huge deal as I want to customize like pins anyway, but would the fact that my tokens are all on the GM layer have anything to do with it? At least the handout is being created and that is what I was really looking for in the first place. :)