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 .
×

Specific item from the table?

Hi to all! What i need is not to make a random roll on table, but to select specific item from it. Is that possible?
1526641105
Ziechael
Forum Champion
Sheet Author
API Scripter
What is your use case? Maybe a table isn't the most appropriate option for you?
Ziechael said: What is your use case? Maybe a table isn't the most appropriate option for you? I need this for Dark Heresy critical damage effects. Damage type and body part defines what table I should use and amount of damage defines what line of table you should use.
I found a page explaining the Dark Heresy critical damage tables. There are sixteen separate tables; you determine which table to use by cross-referencing the body parts leg, head, body, arm with the damage types rending, impact, explosive, and energy. Each table contains ten separate entries based on how much critical damage is done (ten or more is the tenth entry). Each of these 160 entries is unique and might contain further dice-rolls for effects. There is no practical way to do this in Roll20. With a Pro account you might write an API script that lists and chooses from all of these. Theoretically you might create 160 separate rollable tables (can you have that many?), each named things like leg-rending-1, head-energy-6, and so on, and each containing only one item: the text of the effect. Then you'd call the appropriate table with: /roll 1t[?{Body Part|leg|head|body|arm}-?{Damage Type|rending|impact|explosive|energy}-?{Critical Damage|1|2|3|4|5|6|7|8|9|10-or-more}] Personally, I would just keep the original tables available and look up the result manually each time.
David T. said: I found a page explaining the Dark Heresy critical damage tables. There are sixteen separate tables; you determine which table to use by cross-referencing the body parts leg, head, body, arm with the damage types rending, impact, explosive, and energy. Each table contains ten separate entries based on how much critical damage is done (ten or more is the tenth entry). Each of these 160 entries is unique and might contain further dice-rolls for effects. There is no practical way to do this in Roll20. With a Pro account you might write an API script that lists and chooses from all of these. Theoretically you might create 160 separate rollable tables (can you have that many?), each named things like leg-rending-1, head-energy-6, and so on, and each containing only one item: the text of the effect. Then you'd call the appropriate table with: /roll 1t[?{Body Part|leg|head|body|arm}-?{Damage Type|rending|impact|explosive|energy}-?{Critical Damage|1|2|3|4|5|6|7|8|9|10-or-more}] Personally, I would just keep the original tables available and look up the result manually each time. Wow, interesting descigion. I'll keep it in mind. Thank you!