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 modifier

Hi, I have a table of random events, weighted by 2d6+modifier. I know how to do a weight by 2d6. How can I apply a modifier? My solution is: The modifier can be -2 to 2, so 5 possible modifiers. I'd make one table per modifier with the modifier appended to the name. Then I could read the modifier from an attribute and call /r 1t[tablename@{character_id|mod_attribute}] . But that's a lot of work to set up the table multiple times. Is there a simpler solution? Kind regards Danii
1569708107
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Not that I am aware of. The rollable table feature is just a weighted list, not a lookup table, unfortunately.
That's a bummer. But thanks for the answer. :)
1569720676
Finderski
Plus
Sheet Author
Compendium Curator
As a pro subscriber, you could creat a macro for that table, though...that’s I had to do when I needed a table that allowed a modified roll...
1569725916
GiGs
Pro
Sheet Author
API Scripter
There's an old script that lets you do proper tables with modifiers. It uses the tables you've created, and lets you roll with modifiers. It's very old, but probably still works, if the text format upgrade didnt break it: <a href="https://app.roll20.net/forum/post/1408851/script-real-rollable-tables" rel="nofollow">https://app.roll20.net/forum/post/1408851/script-real-rollable-tables</a>
1569745157

Edited 1569745256
@Finderski If you mean a script, I don't know how to javascript. @GiGs Thanks for the link! That would solve the problem I posted above. But actually I use the Rollable Table Macro script which sends the result to chat and then interprets inlinerolls. It looks like this doesn't work with the script you suggest. I have set it up as described in my first post now. But I like the conversation, and it's very likely I need this in the future again, so if you have any more ideas, keep them coming. :)