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

MapChange bolt on feasibility?

So Nick Olivo's excellent video on extending the functionality of the Map Change API got me thinking about what I actually want as functionality for manipulating maps. Since I am not competent at scripting I am trying to see how hard it would be to implement the following - all help / suggestions welcome! 1) I would like to be able to move myself as the GM to a specified map with a command - this would allow me to set this as a GMnote on a token and easily jump to the next area. 2) I would like to be able to easily define groups of maps (eg all those in an adventure) and have this selectable as a dropdown as part of a Map Change command. Ideally there would be a static list that was appended to this that is again user defined (eg random battle maps etc) My layperson take is that #1 is probably just a command I'm not aware of, and that #2 would ideally be great if it could defined in say a simple Handout that could be scraped where the groups are annotated somehow and then each line below is a map name. Then I guess an API command is needed to "set the active map group" with a drop down, which then passes the child map list (+that of "universal" or something) to a variable that can be called as the dropdown in a MapChange command? I'm sure I'm either dramatically under or over thinking this... all help appreciated!
1599575494
The Aaron
Roll20 Production Team
API Scripter
1) isn't possible.  There's not a way that the API can move a GM player, unfortunately. 2) probably doesn't even require the API.  You can go to your macros and edit the "partyMover" macro, then just copy out the contents to a new macro and cherry pick the list down to the maps you're interested in.
Thanks Aaron. A bugger about #1. As for #2, I mostly run AL, so the intent was to be able to get it down to just 2 pieces: a selection of the active map group (that could be folded into a ready up macro) and then a static macro button on the bar to execute the map change between the required maps, that way the GM isn't having to either change out the macro bar each time or navigate a very cluttered macro list.
Suggestion created for API to move GM: <a href="https://app.roll20.net/forum/post/9160055/allow-gm-to-switch-maps-via-api" rel="nofollow">https://app.roll20.net/forum/post/9160055/allow-gm-to-switch-maps-via-api</a>
1599578608
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
MykeMyke said: Suggestion created for API to move GM: <a href="https://app.roll20.net/forum/post/9160055/allow-gm-to-switch-maps-via-api" rel="nofollow">https://app.roll20.net/forum/post/9160055/allow-gm-to-switch-maps-via-api</a> Upvoted. That would be handy.
1599578744
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Here is an example of a but of macro code I run with map change for a similar situation. This could be put into a button, or into a GMNote that you could read with Supernotes. To modify it to move the whole party, change "move" to "moveall": **Change Map** [Rejoin Party](!mc rejoin) [Home Page](!mc move --target Home) [PC Token Page](!mc move --target PC Tokens) [Ash Guard Station House](!mc move --target Station House) [High Harbor City Map](!mc move --target High Harbor) [Western Lands](!mc move --target Western Lands) [World of Elda Map](!mc move --target World Map) Here is what it looks like as part of a roll template I use for player access:
1599579113

Edited 1599579291
That's great thanks. Yep - a token at the "map exit" with a gmNote is what I do for whatever narration is required, so being able to add a couple of buttons to that to first push the GM then pull the party would be the goal!
1599579403
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It should work well with Nick's&nbsp; Auto Ping &nbsp;[ code ]
Indeed - and that I have already implemented!