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

Rollable table with roll as weight

1540572014

Edited 1540572056
I know I can do this basically by using weight in a table, but my question is: is it possible to pick a specific item from a  table like in an array?  Background: most adventures have random encounters not from 1d20 but from a roll 1d8+1d12 or something like that. Effectively this puts a certain weight in the mid-range of the table (like 2d6 has a higher probability in the middle). So if I have a 'flat' table as rollable table, say 2="Goblin", 3="Gnoll", 4="Orc", 5="Troll", 6="Demon". Now I want to pick the item number [[2d3]] from that table to make "Goblin" and "Demon" less likely to appear. Is this possible with any syntax for rollable table? Thanks in advance!
1540574543
GiGs
Pro
Sheet Author
API Scripter
It's not possible without a custom script.&nbsp; I found a script for a recent question that returns table entries, which might suit your needs. <a href="https://app.roll20.net/forum/permalink/6908765/" rel="nofollow">https://app.roll20.net/forum/permalink/6908765/</a>
Are you talking about just making one item on the table more likely to be chosen. For instance, when rolling 2d3 you can get the following combinations. 1+1=2 1+2=3 1+3=4 2+1=3 2+2=4 2+3=5 3+1=4 3+2=5 3+3=6 With this there is one 2, two 3s, three 4s, two 5s, and one six.&nbsp; So, if I understand you correctly, you are asking how to set up a table so that there is one chance of getting a 2 (or goblin), two chances of getting a 3 (or gnoll), and so on. If this is the case than the rollable tables have the feature. When you go in to add a new item, or edit one, there is a place for the name, and then a space called weight (see image below). So, you just have to calculate the odds for each item. In your example you would give a weight of 1 to the goblin and the demon (the 2 and 6) a weight of 2 to the gnoll and troll (the 3 and 5) and a weight of 3 to the orc (the 4). Doing this will mimic the odds presented in rolling 2d3. For other die combinations you would have to calculate the odds of each final result being rolled and enter the weights for each item accordingly. I hope this helps, if it is what you are looking for.
G G said: It's not possible without a custom script.&nbsp; I found a script for a recent question that returns table entries, which might suit your needs. <a href="https://app.roll20.net/forum/permalink/6908765/" rel="nofollow">https://app.roll20.net/forum/permalink/6908765/</a> Thank you G G! I am not familiar with API scripts beyond just using them, but I will try!
Shem A. said: Are you talking about just making one item on the table more likely to be chosen. For instance, when rolling 2d3 you can get the following combinations. With this there is one 2, two 3s, three 4s, two 5s, and one six.&nbsp; So, if I understand you correctly, you are asking how to set up a table so that there is one chance of getting a 2 (or goblin), two chances of getting a 3 (or gnoll), and so on. If this is the case than the rollable tables have the feature. When you go in to add a new item, or edit one, there is a place for the name, and then a space called weight (see image below). So, you just have to calculate the odds for each item. In your example you would give a weight of 1 to the goblin and the demon (the 2 and 6) a weight of 2 to the gnoll and troll (the 3 and 5) and a weight of 3 to the orc (the 4). Doing this will mimic the odds presented in rolling 2d3. For other die combinations you would have to calculate the odds of each final result being rolled and enter the weights for each item accordingly. 1+1=2 1+2=3 1+3=4 2+1=3 2+2=4 2+3=5 3+1=4 3+2=5 3+3=6 I hope this helps, if it is what you are looking for. Hi Shem, thank you very much. That is what I intended, yes. And as I wrote, I know that this can be achieved using the weight. I just was looking for an easier way to do it on the usual D&amp;D 5E encounter tables (using 1d8+1d12 instead of 1d20) than calculating the weight for that. The example with 2d3 was just to give a hint what I mean. The table for 1d8+1d12 is a bit more pain :-)
1540653416
GiGs
Pro
Sheet Author
API Scripter
d8+d12 has weights of 2 1 3 2 4 3 5 4 6 5 7 6 8 7 9 8 10 8 11 8 12 8 13 8 14 7 15 6 16 5 17 4 18 3 19 2 20 1