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

SelectManager docs/help

I've looked all over and I can't seem to find complete documentation for select manager.  I'm looking for a way to select all the token on the gm layer to add them to the turn tracker w/o having to click each one. Is there a place I just am missing that shows all the options you can use for {&select ...}? Is it possible to select based on layer?  Thanks
1761501996

Edited 1761502032
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Darryn! There is a wiki page here , with a long list of example thread links. The forum page, with fuller documentation, is here .
1761535349
timmaugh
Forum Champion
API Scripter
Thanks, Keith, for the assist on the links... Also of interest to Darryn I think would be this link with the criteria examples. (Yeah, I really need to get all of this into the wiki!) Darryn, you can get all tokens on the gmlayer like this: {&select *, +layer=gmlayer} Getting them all into the Turn Tracker is a little trickier (at least if you are using a roll) because rolls are going to resolve before scripts... so the roll will try to put a token into the turn tracker before there is even a token for the message! The above should work if you are having a script (like GroupInit) add the tokens-you've-selected to the Turn Tracker. If you want to add them using a roll (and you want that roll to be specific for each token), you actually have to use a deferred roll with the {&tracker} tag: !forselected(^) /w gm {^&r} 1d20 {&tracker} {^&/r} {^&simple} {&select *, +layer=gmlayer}
Thanks!  I'm using the Combat Master API for initiative, but I wanted an easy way to select them all before starting combat :)
Here's the final command CM to start turn with all objects on GM layer and not on Objects that have HP > 0 and are not traps (cobweb symbol used by It's A Trap API).  Works beautifully.  Been watching Nick Olivo's vids on SelectManager. !cmaster --turn,start --main {&select *,+bar1 > 0,-cobweb,+layer=gmlayer,-layer=objects}