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

Multiple Column Rollable Table?

Hey everyone! So I'm trying to figure out if there is a way to create a macro that will roll a table, display the item, it's rarity, it's value and an item description. Beside adding all of that into the item name field, is there a way to build a table that has multiple columns that can display each field in a nice format? Here is the script I'm using right now and snips of the excel file where I store all the information.  Macro:  &{template:traits} {{name=You found loot!}} {{source=Rise of the Necromancer}} {{description=While searching the corpse of the recently departed, you found a  [[1t[Loot-Table-Halloween]]]}} Result: Spreadsheet: 
1698345900
GiGs
Pro
Sheet Author
API Scripter
You can display the results of a roll this way if you use a custom API script, or make your own character sheet and make your own rolltemplate. Sadly, the design of the rollable table can't be modified. You'd need to include all the information from each row of your spreadhseet in one item in the rollable table, and add a delimiter character between each row, then in your script you'd have to split each item on the delimiter and create your rows.
To pick up in what GiGs is saying, you could use something like  ScriptCards  API mod to do this since you are Pro member. You could make your entries colon separated like so: Then use a ScriptCard like this one: !scriptcard {{ --#title|Rise of the Necromancer --=LootRoll|[T#RotN-loot] --~LootInfo|string;split;:;[$LootRoll.tableEntryText] --#leftsub|Price:[&LootInfo2] --#rightsub|Rarity:[&LootInfo3] --+[&LootInfo1]|[&LootInfo4] }} to roll and display the values: It's not a perfect solution by any means but it is possible with the way rollable tables currently exist.
That's perfect! Thank you both!