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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
So for anyone using the shadowrun (advanced) charactersheet there is now an API-script called SR-RollExtender. So far it does extended tests in a compact way and detect glitches. Any feedback or requests are welcome.
OK, so i did some testing rather than just post a list of my scripts and found the one that is causing the API to crash when i load the companion script. I can't really tell why it interferes from a quick glance (i'm not a scriptomancer, just a tinkerer), but i'll paste the error message again so you don't have to jump across tabs. SyntaxError: Unexpected identifier Movement Tracker <a href="https://gist.github.com/DarKDinDoN/1948fa4c721440b" rel="nofollow">https://gist.github.com/DarKDinDoN/1948fa4c721440b</a>...
Add a semicolon to the end of the MovementTracker script, that should take care of it. I suspect the reason is that the API just concatenates all the scripts for your game, so if the next script starts with "var scriptName = blablabla", the total will look like on('ready', function () {
'use strict'
MovementTracker.init()
MovementTracker.registerAPI()
})var scriptName = blablabla which gives a syntax error.
I can't seem to get the minimum success function to work with the extended rolls. No matter what i do, it always rolls to the minimum number of dice or stops on a critical glitch (if any).
Too late for v0.2 but its done for v0.3. <a href="https://github.com/darkxyro/roll20-api-scripts/tre" rel="nofollow">https://github.com/darkxyro/roll20-api-scripts/tre</a>... if you need it right away.
Jakob said: I suspect the reason is that the API just concatenates all the scripts for your game, so if the next script starts with "var scriptName = blablabla", the total will look like on('ready', function () {
'use strict'
MovementTracker.init()
MovementTracker.registerAPI()
})var scriptName = blablabla which gives a syntax error. yup: <a href="https://app.roll20.net/forum/post/1028853/bug-sugg" rel="nofollow">https://app.roll20.net/forum/post/1028853/bug-sugg</a>...