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

Changing The Map

Let's say I have one map, but two different versions of that map. One version is clean, no-frills, without a grid. The other has a bold grid overlay, clear elevation indicators, tactical cover nodes, etc. I create a multi-sided token on the map layer, using these two versions as different sides of the same token. Is there a way, using the API and macros, that players could have the map switch to/from the "clean" view and the tactical view as needed? What about more than two versions, for a gradient of information? Example: "Clean" view, grid-only view, elevation overlay, tactical cover overlay, full tactical view with all options visible. It feels like all of this should be possible, but I can't quite figure how to start on it.
Sorry, no help here, but this type of thing would be GREAT with the weather API. One could have many different maps based on the ambient weather: snow covered, dark from rain, fog, clear and sunny, etc. I was just thinking today of adding the weather API and thought of this.
1406850702
Lithl
Pro
Sheet Author
API Scripter
You can set the imgsrc property of the graphic object to an image in your library. There are some restrictions , but it should let you accomplish what you want.
1406870858
The Aaron
Roll20 Production Team
API Scripter
You could also just have all the maps on the map layer and call toFront() on the one that should be on top...
1406899480

Edited 1406899769
DXWarlock
Sheet Author
API Scripter
I do it with a rollable table and the map as options on it, and do the right click 'choose side'. Dont do it for the same exact reason, but same effect. I got one "combat" page with a rolltable map on it with like 20 maps. Just pick the one I need for that combat turn setting, to save from having 20 different random encounter map pages.
1406905781
The Aaron
Roll20 Production Team
API Scripter
That's pretty briliant!
Yeah, that's what I'm doing right now. I was just trying to figure out whether it was possible to give the players single-click access to the same thing via macros, so that I didn't have to change it myself whenever they wanted a different view. #firstworldproblems, I guess, lol
1406909625
The Aaron
Roll20 Production Team
API Scripter
You could certainly write an API script that does it and let them call it from a macro. I'd be happy to help with that if you aren't the scripting type. =D