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

Is it possible to make a roll table with 12 entries, where sometimes I roll 1d12, but other times 1d8+4, or 1d10+2, and so on?

1731287952
Steve
Plus
Marketplace Creator
Hi All,  I am trying to implement the Trauma Tables from Tales of Argosa into Rollable Tables but I'm not sure it's actually possible.  I've just made a bunch of roll tables for Dark & Dangerous Magic, Injuries & Setbacks, Consult the Bones dice oracle (using images). All these tables are basically always a set die roll like d100 or d20 or 4d6.  But can a roll table be set up to allow for different kinds of dice to be rolled on it? For example, if I have 12 different entries on a trauma table (starting at minor severity and then escalating to the most extreme injury), is it possible to roll not only 1d12 on the table, but 1d8+4 or 1d10+2 or even 1d10? Any guidance greatly appreciated!  
1731289933
GiGs
Pro
Sheet Author
API Scripter
A rollable table cannot be modified in this way, at least not without writing a script.
What you are looking for is only possible with a Mod script (which requires the game creator to have a Roll20 Pro subscription).  Outside of that it is not possible to do exactly what you are looking for.  But you could build several copies of the Trauma tables that have corrected/adjusted listings to give you basically the same outcome: Regular Trauma Table would have 12 items on it - let's call them A through L. A 1d8+4 Trauma Table would only have the last 8 options on it. E through L. A 1d10+2 Trauma Table would only have the last 10 options on it. C through L. A 1d10 Trauma Table would only have the first 10 options on it. A through J. I'm pretty sure that is going to get too onerous to set up and use pretty quickly. When you roll on a rollable table, each item has a weight, and rolling on the table means that Roll20 will make a roll that is the sum of all the weights, and go through the list until it gets to the corresponding result. It's always 1d# where # is the size of table - the total of all the weights of all of the items. E.g. a table with 4 items (A, B, C, D) weighted 4, 3, 2, 1 will always be a 1d10 roll.  If the result is 1-4 then option A is returned.  If the result is 5-7 then option B is returned, and so on.  But there is no built-in way to perform any math on the 'number of dice' that are rolled without a Mod script. The only 'math' you can perform on a Rollable Table is to roll multiple times.
1731292456
Steve
Plus
Marketplace Creator
Thank you so much Gigs and Jarren, I suspected that this was the case; that the basic rollable table functionality would not be able to do it. I will look into commissioning someone to create a script for it. Cheers! 
The simplest way to do this, that doesn't require upgrading your subscription, is to just use different tables for the different rolls - though if the modifiers are dynamic, that gets a bit tedious. Another way to do this, which is a lot less efficient, is to use some advanced tricks. Something like The roll is [[[[?{die size|1d12|1d10|1d8}+?{modifier|0}]]]] [Result](!/
 &{template:default} {{[0](#" hidden)}} {{[[[{$[[1]],100}=1]]](#" hidden)= result 1 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=2]]](#" hidden)= result 2 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=3]]](#" hidden)= result 3 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=4]]](#" hidden)= result 4 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=5]]](#" hidden)= result 5 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=6]]](#" hidden)= result 6 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=7]]](#" hidden)= result 7 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=8]]](#" hidden)= result 8 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=9]]](#" hidden)= result 9 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=10]]](#" hidden)= result 10 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=11]]](#" hidden)= result 11 contains the description of a result, this text is just to fill the space for testing}} {{[[[{0,$[[1]]}>12]]](#" hidden)= result 12 contains the description of a result, this text is just to fill the space for testing}} {{[0](#" hidden)=[ ](#" null=)}})
1731394009
Brian C.
Pro
Marketplace Creator
Compendium Curator
As Tuo said, the straightforward way to do this is to have the rollable table 3 times. The first, for when you use 1d12, has all 12 entries. The second, for when you use 1d10 + 2, has the last 10 entries (3 to 12). The third, for when you use 1d8 + 4, has the last 8 entries (5 to 12). At the table, you would pick up one of the three dice, roll it, add any modifiers, and consult the one table. On Roll20, you roll on one of the three tables and receive the result directly.
1731442374
Steve
Plus
Marketplace Creator
Tuo said: The simplest way to do this, that doesn't require upgrading your subscription, is to just use different tables for the different rolls - though if the modifiers are dynamic, that gets a bit tedious. Another way to do this, which is a lot less efficient, is to use some advanced tricks. Something like The roll is [[[[?{die size|1d12|1d10|1d8}+?{modifier|0}]]]] [Result](!/
 &{template:default} {{[0](#" hidden)}} {{[[[{$[[1]],100}=1]]](#" hidden)= result 1 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=2]]](#" hidden)= result 2 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=3]]](#" hidden)= result 3 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=4]]](#" hidden)= result 4 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=5]]](#" hidden)= result 5 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=6]]](#" hidden)= result 6 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=7]]](#" hidden)= result 7 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=8]]](#" hidden)= result 8 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=9]]](#" hidden)= result 9 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=10]]](#" hidden)= result 10 contains the description of a result, this text is just to fill the space for testing}} {{[[[{$[[1]],100}=11]]](#" hidden)= result 11 contains the description of a result, this text is just to fill the space for testing}} {{[[[{0,$[[1]]}>12]]](#" hidden)= result 12 contains the description of a result, this text is just to fill the space for testing}} {{[0](#" hidden)=[ ](#" null=)}}) Thank you so much Tuo, this works great!! What a wonderful work around - amazing!!! I am in your debt!! :D
1731442447
Steve
Plus
Marketplace Creator
Unfortunately Brian I have 5 tables using at least 3 different kinds of dice each, so having 15 tables just for trauma rolls I think may be getting too much.  Brian C. said: As Tuo said, the straightforward way to do this is to have the rollable table 3 times. The first, for when you use 1d12, has all 12 entries. The second, for when you use 1d10 + 2, has the last 10 entries (3 to 12). The third, for when you use 1d8 + 4, has the last 8 entries (5 to 12). At the table, you would pick up one of the three dice, roll it, add any modifiers, and consult the one table. On Roll20, you roll on one of the three tables and receive the result directly.