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

[Script] Shadowrun-RollExtender

1490688475
Jens
Sheet Author
API Scripter
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>...
1490691290
Jakob
Sheet Author
API Scripter
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&nbsp; on('ready', function () { 'use strict' MovementTracker.init() MovementTracker.registerAPI() })var scriptName = blablabla which gives a syntax error.
Done in one! Thanks Jakob!
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).
1490713017
Jens
Sheet Author
API Scripter
Alright found a typo. Its fixed in v0.2
Would it be possible to add limits to the extended tests?
1490755777
Jens
Sheet Author
API Scripter
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.
Excellent as always. Thank you!
1490791457
The Aaron
Pro
API Scripter
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&nbsp; on('ready', function () { 'use strict' MovementTracker.init() MovementTracker.registerAPI() })var scriptName = blablabla which gives a syntax error. yup:&nbsp; <a href="https://app.roll20.net/forum/post/1028853/bug-sugg" rel="nofollow">https://app.roll20.net/forum/post/1028853/bug-sugg</a>...