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

Weights on Rollable Tables

Can the weights give to an item on the Rollable Table be in decimal points so that it equal 100? Or can it only be in whole integers? For example I want to create a table to represent the probabilities on 3d6 so I want the item representing a 3 result to equal 0.46. Can this be done?
1421955445
Lithl
Pro
Sheet Author
API Scripter
I'm pretty sure that works fine. Alternatively, you could use integers that sum to 100 rather than fractions that sum to 1, no? =)
1421956071
The Aaron
Roll20 Production Team
API Scripter
Based on testing, I'd say the fractional part is dropped. I created a table with 2 entries: 1 at .5 and the other at 1. I rolled it 1000t{fractional-weights} and never got the .5 weighted entry. Additionally, the entry box's up/down buttons move by increments of 1 and the help text describes this as "the number of times the row appears in the table" which leads me to believe it will be used as a count. The help text also suggests using the raw percent in such a way as to add up to 100.
1421956164
The Aaron
Roll20 Production Team
API Scripter
Additionally: <a href="https://wiki.roll20.net/Card_Decks_and_Rollable_Ta" rel="nofollow">https://wiki.roll20.net/Card_Decks_and_Rollable_Ta</a>... "You can additionally add "weight" to items in two methods; either enter the number of times you want the item be a possible result OR enter a percentage value. When using percentage values, do not place "%" after the number, and the final number of all items that are elements of the table must equal 100." I'll follow up with the devs and see about getting a more explicit statement there.
1421977579

Edited 1421977614
Yeah, I read the wiki and made the weights equal 100 but used decimals. When I went back and look up the item, as you did, it looks like it dropped the decimals after the whole number and rounded it. So as it stands looks like I cannot recreate a true 3d6 roll because I would have to flub it a bit and give 3 and 18 a weight of 1 instead of the true half that amount.
1421977769

Edited 1421977891
Gen Kitty
Forum Champion
Well, double all the numbers and make it add up to 200? Or make it all add up to 1000?
GenKitty said: Well, double all the numbers and make it add up to 200? Or make it all add up to 1000? Better still, 10,000. .46 100 1 (or 0) .46 1000 4 .46 10000 46
1422025659

Edited 1422025693
So if I multiple the percentage by 100 and enter that value as the weight of the item, then I would be using the first method of assigning weights as described in the wiki rather than the second. If I want to simulate a '3' or '18' result on 3d6 then I would assign it a weight of 46 and for a '10' or '11' result on 3d6 I would assign it a weight of 1250. Am I following this correctly?
1422027773
The Aaron
Roll20 Production Team
API Scripter
That's right! ( <a href="http://anydice.com/program/e6" rel="nofollow">http://anydice.com/program/e6</a> )
OK, it looks good now and weights are coming up properly. Thanks everyone! :)