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

Scalable Lookup Table

August 17 (6 years ago)
MrBS
Pro
Sheet Author
API Scripter

I have a system that does d66.  This is not 1 to 66 but concatenating two six-sided dice: 11 to 16; 21 to 26; 31 to 36; etc.  The value is cross indexed with a lookup table.  I can break this down into 36 data points to reference for 1d36 and weight it appropriately.  The challenge is the table goes up by another 24 items to reference for a total of 60. 

These additional items are referenced when there is a complication -- from the skill test roll, environmental factor, or equipment used.  The complication changes the tens roll.  So one complication would change an 11 to a 21, two complications from 11 to 31, etc.  The table goes up to 106 and any complications pushing a result above 106, has a ceiling of 106.  For each complication I can add +6 to the roll.

Ideally what I would like to happen is have a user initiate the roll (via character sheet), enter the number of complications on a prompt, have the dice rolled in the background, find the appropriate table entry, and display the result in chat.

Here are my questions:

1) Can this be setup through macro + roll tables (I have not found anything yet)?  If so how?

2) Is there an api out there that can handle this?  I was thinking power cards but on looking at power cards was not sure how a lookup table would be formatted for 60 items.

Any other thoughts or ideas greatly appreciated.

Thanks,

Barry


August 17 (6 years ago)
The Aaron
Pro
API Scripter

1) No.

2) There have been API scripts that could do this.  Real Rollable Tables is one. PCPP (PowerCards PreProcessor) is another.  I've not dug into either recently.

August 18 (6 years ago)
MrBS
Pro
Sheet Author
API Scripter

Thanks Aaron.  I will look into those.

August 18 (6 years ago)
The Aaron
Pro
API Scripter

No problem. I can get you links or the source if you can’t find them. I’m pretty sure both are in the official repo. (I know PCPP is, I wrote it!)

August 18 (6 years ago)
MrBS
Pro
Sheet Author
API Scripter

I already found both and was about to start digging into experimenting with RRT followed by PCPP.

August 18 (6 years ago)
MrBS
Pro
Sheet Author
API Scripter

Real Rollable Tables with a simple macro did the trick!  Thanks man!  As always, you are unbelievably helpful.  I saw a reference in a thread today comparing you to Gandalf -- ride in, throw a hand, and ride off into the sunset to help the next wanderer lost in the woods -- fully agree with that statement!

August 18 (6 years ago)
The Aaron
Pro
API Scripter

Hahaha! Well, I’ve been working on my gray beard... =D