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

Limiting table results?

Hello, been evaluating tables and trying to wrap my head around its limitations, and so far I do not see a method to do this without creating 3 or more tables, please clarify if I am in error. My goal is to have one table, with 10 items of equal weight, but I want to limit the results. For example, the table has 10 items, the character rolls a 1D6, I want the results to be limited to only the first 6 items on the table, if a modifier it granted, say a plus 1, then then results returned should only be items 2 through 7. same thing if a D8 is rolled, and a D10, and if the modifier that has been assigned exceeds the number of items the table accommodates that. so, for example the character rolls 1D10+4 the results are still limited to items 5 to 10. Thank you for any guidance or suggestions.
1540299251

Edited 1540300680
GiGs
Pro
Sheet Author
API Scripter
Tables dont have any concept of a roll. There's no way to affect how the results are returned. As you're a Pro user, if you want to have tables that allow dice + modifiers, limited ranges, etc., the best way is to completely bypass the table system and build a table script. There might even be one already in existence. You might be able to build a script to return a specific row from the table (I haven't checked out how the table object works in roll20, but i expect this is possible), and so use your method of rolling dice.&nbsp; Edit: there is indeed a pre-existing script for rolling dice on tables. It's 3 years old, so it might need testing to see if it still works: <a href="https://app.roll20.net/forum/post/1408851/script-real-rollable-tables/?pageforid=1408851#post-1408851" rel="nofollow">https://app.roll20.net/forum/post/1408851/script-real-rollable-tables/?pageforid=1408851#post-1408851</a>
1540299645
GiGs
Pro
Sheet Author
API Scripter
I'd also add that this shortcoming of the way the table system works makes it almost completely useless, and definitely not fit for the purpose it is designed for. When people encounter a table object in an rpg application, they expect at the very least the following features: That you can roll dice to determine which table entry is used That the dice roll can have modifiers applied, and the table naturally handles the upper and lower bound of table results. The fact that roll20's table system can't do something as basic as this, something absolutely integral to the way tables are expected to work for rpg users, is just baffling to me. The fact that it has never been improved in the years of roll20's existence to fix this shortcoming is even more baffling. I do hope the roll20 devs take this criticism to heart. I love roll20, but whenever I discuss the shortcomings of the service with other people, this is always right at the top. It does influence people's perception of the app.
Thank you, yes I agree with you on the implementation of the tables, I was beginning to wonder if I was missing something basic in their usage. That API script looks pretty cool and seems to imply I can do what I want with it, so thanks again.
1540352584
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Jude O., this Stupid Trick is nothing like what you are looking for mechanically, but maybe it can help you achieve some of the results you are looking for.