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

[Help] Auto Initiative

I keep getting an Unexpected token var error in Josh's Auto Initiative and I have reviewed the code. I haven't found any missing characters, {} or (). Code looks sound, but I still get the error. Any idea why? I read his post and no one else mentioned the issue. The code I am using is from github. Please help?
1401846104
Lithl
Pro
Sheet Author
API Scripter
Have you changed any of the configuration options in his script?
I tried running it as written and changing "Dex" to "Initiative". Other than that, I have made no changes. But all I'm really looking to get working is rolling init to tracker for selected tokens. I don't need to check for players, or stats. All tokens are on the gm layer and were built by me from a template.
1402080408

Edited 1402080435
If it's okay for me to post about a problem, We're having the same issue as this person with the script inexplicably running twice, and it says "fixed," but they don't say how they fixed it. Does anyone know how?
Perhaps I am using the wrong init api... My players roll every round. All I need is an API that performs the "//gmroll 1d20 + @{selected|Initiative}&{tracker}" for each token selected. Then sorts tracker... Anyone know of one?