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

Anyway to avoid the dreaded shift click

I have alot of tokens in my maps and often they intermingle with the party tokens due to multi-stage dungeons on one map. When it comes to using APIs like Group-init, it's incredibly annoying to have to go in and shift click to select all relevant tokens to a room to avoid rolling init for dead tokens that were from rooms before (if I pressed ctrl-A this is what would happen?). Is there any API out there that allows you to make token select groups that you can just click to have a certain group of tokens picked (and then the macros can just be run). I know you can group graphics, but that prevents my players from being able to move their tokens individually so it's a poor fix. If there isn't an API for this, would it be possible to make one? I may give it a shot to make if so.
1590171957
Pat S.
Forum Champion
Sheet Author
I've shifted dead tokens to the map layer so they are still seen but not clickable. This, to me, slowly reduces the clickable tokens on the token layer.
1590173968
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Although the API can single out certain tokens based on criteria, I don't think it can actually select them so that they can be operated on by other scripts. The scripts themselves would need to set those criteria. A script that shifts dead tokens to the map layer and replaces the graphic with a generic dead marker would be nice, so that it doesn't confuse players as to who is alive. Or perhaps it could be done with a tint...
1590180313
Pat S.
Forum Champion
Sheet Author
I usually put the big red x status marker in the dead before moving them to the map.
1590180585
The Aaron
Roll20 Production Team
API Scripter
GroupInitiative does support storing groups of initiatives.  See the stack stuff in the help.  Might be useful.
keithcurtis said: Although the API can single out certain tokens based on criteria, I don't think it can actually select them so that they can be operated on by other scripts. The scripts themselves would need to set those criteria. A script that shifts dead tokens to the map layer and replaces the graphic with a generic dead marker would be nice, so that it doesn't confuse players as to who is alive. Or perhaps it could be done with a tint... Hmm maybe it could store a list of their IDs that can then be passed to other APIs? I’m not 100% sure how Roll20 stores tokens and references them on the map. Yes definitely a good idea to maybe auto shift stuff to the map layer when dead. Maybe amending the aura/tint API could achieve this.  I do sometimes group initiatives of the same token type which is also an issue with Ctrl+A. I don’t always want 15 “Enemy type 1” rolls in a turn order. One roll to cover all of them would be nice - not sure GroupInitiative API can do that...