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

SW FFG-Dice roller issues

Our regular group has been using the 6.5 version of the character sheet with the Fantasy Flight dice roller last updated by Angnarl, and we have been noticing an unusual amount of dice coming up blank, especially for green and yellow positive dice. I have plenty of the real dice, and only the blue and black 6-sided dice have 2 blank sides, all of the rest only have 1 side blank (green and purple d8 and yellow and red d12). Is there an easy way to adjust this? And would it be in the character sheet, or the dice roller API?
1643484227

Edited 1643484261
John D.
Pro
Sheet Author
Nick, would you please provide the exact name of the character sheet and script you're referring to? And/or provide their links to the Github repository? 
<a href="https://github.com/Angarl/Roll20_StarWars" rel="nofollow">https://github.com/Angarl/Roll20_StarWars</a> for the character sheet [Star Wars: Fantasy Flight Games - Dice Roller] in Roll20 for the dice roller I'm pretty sure it is something in the roller script, something to do with the random number generator, or how the dice were set up in the script, as the green d8s and yellow d12s are coming up blank way more often than they should (only 1 side on these dice is supposed to be blank), and especially if one of the first dice in the series is blank, it seems more likely that following dice come up blank. I posted here because my coding skills are not good enough to figure it out on my own.
1643642188
John D.
Pro
Sheet Author
Thanks Nick. I should be able to take a look this week.&nbsp;
Any news on this?
1644353843
John D.
Pro
Sheet Author
Hey guys, sorry for the delayed response.&nbsp; It appears the API script is handling the dice rolls.&nbsp; All dice seem to use the same method and leverage Roll20's randomInteger() function, which is supposed to be more reliably random than using the straight-up JavaScript Math.random() function.&nbsp; See here . While I'm not 100% familiar with this game system or this script, it does appear you can short circuit the randomness of the dice roller by enabling ' diceTestEnabled', or set to 'true', under global variables.&nbsp; This will increment the dice roll serially, so all sides are "rolled" through in numerical order (i.e.1, 2, 3, 4, 5...etc.) Other than that, I'd have to say what you're experiencing is either a computer's lack of randomness (which is a real problem and briefly discussed in the aforementioned&nbsp;link), is perception (you're expecting more randomness than you seem to experience...which is arguably random!&nbsp; :P ), or a bit of both. I don't know if the sheet/script authors are still around, but I believe The Aaron is and he had a hand in this.&nbsp; You might PM him or take this to the API forum to move it forward. Hope that help, and good luck!
1644408913
Ziechael
Forum Champion
Sheet Author
API Scripter
I've seen how many PMs he has yet to sift through, the API forum is likely your best bet, although I will put up the Aaron Signal and see if he might swing by with an opinion, at the very least, for you. John D. said: ...I believe The Aaron is and he had a hand in this.&nbsp; You might PM him...&nbsp; Paging the Arcane Scriptomancer... please hold...
1644419987
The Aaron
Roll20 Production Team
API Scripter
If you want to link the script, I'll take a look at it.&nbsp; =D
1644448807
John D.
Pro
Sheet Author
Hello, Mr. Arron!&nbsp; Big fan of your work. ;) The script can be found here .
Thanks for all the help guys
1644553945
The Aaron
Roll20 Production Team
API Scripter
Ok, I looked over the use of Random in the script.&nbsp; I don't see anything that concerns me about it.&nbsp; My gut feeling is that this is just noticing what seems like peculiar patterns, which is something humans are really good at, particularly when those patterns seem exceptional.&nbsp;&nbsp;
appreciate you taking the time
Yeah, thank you all!