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

&{tracker} without selected

1467041840
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Was wondering if there is a way to use the &{tracker} command to send an initiative roll to the turn tracker without having a token selected. Maybe by specifying a character before hand or using target?
The Turn Tracker is token-based for the most part.  It needs a token to work with normally. (Which is why the Mobile App can't really roll Initiative) The only other way I can think of would be to add a Custom Item to the tracker ( Link ) to represent your initiative There's very likely a way to do that with the API to help automate it, but I couldn't say offhand.
1467048686
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep, not important enough for me to go on a coding spree.
1467052101
Kirsty
Pro
Sheet Author
Scott, The Aaron is once again to the rescue!  This link seems to be exactly what you're looking for.
Kirsty said: Scott, The Aaron is once again to the rescue! Indeed! Here's a code snippet written by the scriptomancer that should also fulfill your needs.
1467056192

Edited 1467056209
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep, I've seen those, I was hoping there was a way to make an entry linked to a specific token, but that sounds like it's not possible at this time (or would require more API programming that I want to do at the moment). I've got a large group and a correspondingly large number of enemies that they run into. Helps to have the highlighting so I can tell what NPC is acting when. Thanks for all the help everyone.
1467058120
Lithl
Pro
Sheet Author
API Scripter
Scott, it sounds like  Group Initiative would suit your purposes. It doesn't let you roll for initiative without selecting the token, but it lets you roll for initiative on all  selected tokens at once (as opposed to only a single selected token with &{tracker}), which sounds like it would solve your problem.
1467060905
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Lol, true that, I really need to remember to use that
1467210537
The Aaron
Pro
API Scripter
GroupInitiative does let you re-roll the initiative without selecting tokens.  In the next rewrite I'll see about adding a way to specify the tokens to roll for on the command line (which won't be terribly difficult with the current structure, actually).
1467210589
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
ooohh, nice Aaron