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 Tables Modified by Attribute

I am attempting to replicate the "Childhood Memories" table from Xanathar's Guide to Everything (pg.64) in which it requires a roll of 3d6 + Charisma Modifier but due to the fact that the roll20 tables use weights as opposed to a value range I am not sure how I would go about implementing a table like this. I thought I was onto something and tried making a separate table for each possible Charisma Modifier (i.e. Memories-5 for a Charisma Modifier of -5 and Memories5 for a modifier of +5) and then use a selected token's attribute (charisma_mod) in the inline roll. In this case being [[1t[Memories@{selected|charisma_mod}]]] but it appears that you cannot use variables when doing an inline roll as I get the error "No table found with that name!" I also tried using RecursiveTables script as it has allowed me to have tables that roll other tables but did not work in this case. While it may not be as straightforward a method I imagine there is some method that would allow me to mimic the table in question.
maybe a nested macro array is better but outside my experience or do your sheet rolling then add the RT to the end if that works.  something like @{selected|charisma_mod} then on a new line new line !rt [memories] output would be the roll for the mod then the output from the table. Failing that some complicated formatted nested macro array as said 
I would recommend using the API Script PowerCards to handle this. An example of a PowerCards macro that emulates a modified Rollable Table can be found here .
From the sounds of it the PowerCards seems to be what I'm looking for. I'm not familiar with PowerCards but I am trying to reverse engineer it from the linked example.
Here's a better example ; let me know if you have any questions!