Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroupInitiative --ids command not working? #942

Open
greenpaws opened this issue Apr 18, 2020 · 2 comments
Open

GroupInitiative --ids command not working? #942

greenpaws opened this issue Apr 18, 2020 · 2 comments

Comments

@greenpaws
Copy link

!group-init
works fine

!group-init --ids token1 token2
does nothing. help menu doesn't show up, nothing changes in the turn tracker. doesn't seem to matter if the names I type are tokens on the grid or not.
I tried a bunch of variants on the syntax to see if I was typing something wrong but nothing changes. What am I missing? Am I doing the syntax wrong and just haven't tried the right thing? Is a token's ID not its name?

I just want a macro that rolls initiative for all my players, I don't want to have to select all their tokens every time.

@johcker
Copy link

johcker commented Jun 1, 2020

I've notice this bug yesterday. No APIs was working. I solved this problem restarting the API sandbox in the configurations of my game.

@shdwjk
Copy link
Contributor

shdwjk commented Sep 17, 2020

Sorry for the delay, this isn't the best way to get help with specific API scripts. It's better to reach out directly on Roll20, generally speaking.

To answer your question, the name is not the ID. The ID is what you get from @{selected|token_id}. It's a unique identifier for a given token on a given page. Since the is changes for each copy of a graphic, it won't make for a useful macro I'm afraid. It's better for using @{target|token_id} to make a click interface rather than a select one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants