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

Treaure Hoard API Using Tables

1567966492

Edited 1568148297
Hello, My aim is to have an easy to use and great looking Treasure Hoard that can be rolled up at the click of a button! I have created tables with the correct weights for all Magic Items in the tables from the DMG.&nbsp; The plan is to click a button which will roll the percentage for the players Hoard, Specific to the challenge rating of the treasure. Then the specific percentage will roll the number of magic items to be picked and then roll the specific tables the correct number of times. When researching I spotted this API from years ago but it has not been updated and is not being used. <a href="https://app.roll20.net/forum/post/3202395/5e-ogl-treasure-script/?pageforid=3202395#post-3202395" rel="nofollow">https://app.roll20.net/forum/post/3202395/5e-ogl-treasure-script/?pageforid=3202395#post-3202395</a> There were comments about the donjon website or similar hoard generators but I would like to add images and keep it in game too.. Any support with this idea would be appreciated and I can share the import tables for all of the items if anyone needs later :D&nbsp; Cheers For Anyone wanting to copy and paste these Tables I have made using the Import API Here ya go. <a href="https://app.roll20.net/forum/post/1144568/script-tableexport-a-script-for-exporting-rollable-tables-between-accounts" rel="nofollow">https://app.roll20.net/forum/post/1144568/script-tableexport-a-script-for-exporting-rollable-tables-between-accounts</a> This is another of The Aaron's great inventions! Edit: The Tables used so far. (To be updated as I go) Magic Item Table A to I&nbsp; &amp; Gems &amp; Art Objects You will need tables called: Magic-Item-Table-A Magic-Item-Table-B (And so on until the letter I) Also, Tables called: 10gpGems 50gpGems 100gpGems 500gpGems 1000gpGems Finally, Tables Named: 25gpArts 250gpArts 750gpArts 2500gpArts 7500gpArts !import-table-item --Magic-Item-Table-A --Potion of Healing --50 !import-table-item --Magic-Item-Table-A --Spell Scroll (cantrip) --10 !import-table-item --Magic-Item-Table-A --Potion of Climbing&nbsp; --10 !import-table-item --Magic-Item-Table-A --Spell Scrol (1st Level) --10 !import-table-item --Magic-Item-Table-A --Spell Scroll (2nd Level) --5 !import-table-item --Magic-Item-Table-A --Potion of Greater Healing --5 !import-table-item --Magic-Item-Table-A --Bag of Holding --1 !import-table-item --Magic-Item-Table-A --Driftglobe --1 !import-table-item --Magic-Item-Table-B --Potion of Greater Healing --15 !import-table-item --Magic-Item-Table-B --Potion of Fire Breath --7 !import-table-item --Magic-Item-Table-B --Potion of Resistance --7 !import-table-item --Magic-Item-Table-B --Ammunition +1 --5 !import-table-item --Magic-Item-Table-B --Potion of Animal Friendship --5 !import-table-item --Magic-Item-Table-B --Potion of Hill Giant Strength --5 !import-table-item --Magic-Item-Table-B --Potion of Growth --5 !import-table-item --Magic-Item-Table-B --Potion of Water Breathing --5 !import-table-item --Magic-Item-Table-B --Spell Scroll (2nd Level) --5 !import-table-item --Magic-Item-Table-B --Spell Scroll (3rd Level_ --5 !import-table-item --Magic-Item-Table-B --Bag of Holding --3 !import-table-item --Magic-Item-Table-B --Keoghtom's Ointment --3 !import-table-item --Magic-Item-Table-B --oil of Slipperiness --3 !import-table-item --Magic-Item-Table-B --Dust of Sneezing and Disappearance --2 !import-table-item --Magic-Item-Table-B --Dust of Dryness --2 !import-table-item --Magic-Item-Table-B --Dust of Sneezing and Choking --2 !import-table-item --Magic-Item-Table-B --Elemental Gem --2 !import-table-item --Magic-Item-Table-B --Philter of Love --2 !import-table-item --Magic-Item-Table-B --Alchemy Jug --1 !import-table-item --Magic-Item-Table-B --Cap of Water Breathing --1 !import-table-item --Magic-Item-Table-B --Cloak of the Manta Ray --1 !import-table-item --Magic-Item-Table-B --Driftglobe --1 !import-table-item --Magic-Item-Table-B --Goggles of the night --1 !import-table-item --Magic-Item-Table-B --Helm of Comprehending Languages --1 !import-table-item --Magic-Item-Table-B --Immovable Rod --1 !import-table-item --Magic-Item-Table-B --Lantern of Revealing --1 !import-table-item --Magic-Item-Table-B --Mariner's Armour --1 !import-table-item --Magic-Item-Table-B --Mithril Armour --1 !import-table-item --Magic-Item-Table-B --Potion of Poison --1 !import-table-item --Magic-Item-Table-B --Ring of Swimming --1 !import-table-item --Magic-Item-Table-B --Robe of Useful Items --1 !import-table-item --Magic-Item-Table-B --Rope of Climbing --1 !import-table-item --Magic-Item-Table-B --Saddled of the Cavalier --1 !import-table-item --Magic-Item-Table-B --Wand of Magic Detection --1 !import-table-item --Magic-Item-Table-B --wand of Secrets --1 !import-table-item --Magic-Item-Table-C --Potion of Superior Healing --15 !import-table-item --Magic-Item-Table-C --Spell Scrol (4th Level) --7 !import-table-item --Magic-Item-Table-C --Ammunition +2 --5 !import-table-item --Magic-Item-Table-C --Potion of Clairvoyance --5 !import-table-item --Magic-Item-Table-C --Potion of Diminution --5 !import-table-item --Magic-Item-Table-C --Potion of Gaseous Form --5 !import-table-item --Magic-Item-Table-C --Potion of Frost Giant Strength --5 !import-table-item --Magic-Item-Table-C --Potion of Stone Giant Strength --5 !import-table-item --Magic-Item-Table-C --Potion of Heroism --5 !import-table-item --Magic-Item-Table-C --Potion of Invulnerability --5 !import-table-item --Magic-Item-Table-C --Potion of Mind Reading --5 !import-table-item --Magic-Item-Table-C --Spell Scroll (5th Level) --5 !import-table-item --Magic-Item-Table-C --Elixir of Health --3 !import-table-item --Magic-Item-Table-C --Oil of Etheralness --3 !import-table-item --Magic-Item-Table-C --Potion of Fire Giant Strength --3 !import-table-item --Magic-Item-Table-C --Quaal's Feather Token --3 !import-table-item --Magic-Item-Table-C --Scroll of Protection --3 !import-table-item --Magic-Item-Table-C --Bag of Beans --2 !import-table-item --Magic-Item-Table-C --Chime of Opening --2 !import-table-item --Magic-Item-Table-C --Decanter of Endless Water --1 !import-table-item --Magic-Item-Table-C --Eyes of Minute Seeing --1 !import-table-item --Magic-Item-Table-C --Folding Boat --1 !import-table-item --Magic-Item-Table-C --Heward's Handy Haversack --1 !import-table-item --Magic-Item-Table-C --Horseshoes of Speed --1 !import-table-item --Magic-Item-Table-C --Necklace of Fireballs --1 !import-table-item --Magic-Item-Table-C --Periapt of Health --1 !import-table-item --Magic-Item-Table-C --Sending Stones --1 !import-table-item --Magic-Item-Table-D --Potion of Supreme Healing --20 !import-table-item --Magic-Item-Table-D --Potion of Invisibility --10 !import-table-item --Magic-Item-Table-D --Potion of Speed --10 !import-table-item --Magic-Item-Table-D --Spell Scroll (6th Level) --10 !import-table-item --Magic-Item-Table-D --Spell Scroll (7th Level) --7 !import-table-item --Magic-Item-Table-D --Ammunition +3 --5 !import-table-item --Magic-Item-Table-D --Oil of Sharpness --5 !import-table-item --Magic-Item-Table-D --Potion of Flying --5 !import-table-item --Magic-Item-Table-D --Potion of Cloud Giant Strength --5 !import-table-item --Magic-Item-Table-D --Potion of Longevity --5 !import-table-item --Magic-Item-Table-D --Potion of Vitality --5 !import-table-item --Magic-Item-Table-D --Spell Scroll (8th Level) --5 !import-table-item --Magic-Item-Table-D --Horseshoes of Zephyr --3 !import-table-item --Magic Item Table D --Nolzur's Marvelous Pigments --1 !import-table-item --Magic Item Table D --Bag of Devouring --1 !import-table-item --Magic Item Table D --portable Hole --1 !import-table-item --Magic-Item-Table-E --Spell Scroll (8th Level) --30 !import-table-item --Magic-Item-Table-E --Potion of Storm Giant Strength --25 !import-table-item --Magic-Item-Table-E --Potion of Supreme Healing --15 !import-table-item --Magic-Item-Table-E --Spell Scroll (9th Level) --15 !import-table-item --Magic-Item-Table-E --Universal Solevent --8 !import-table-item --Magic-Item-Table-E --Arrow of Slaying --5 !import-table-item --Magic-Item-Table-E --Soverign Glue --2 !import-table-item --Magic-Item-Table-F --Weapon +1 --15 !import-table-item --Magic-Item-Table-F --Shield +1 --3 !import-table-item --Magic-Item-Table-F --Sentinel Shield --3 !import-table-item --Magic-Item-Table-F --Amulet of Proof Against Detection and Location --3 !import-table-item --Magic-Item-Table-F --Boots of Elvenkind --2 !import-table-item --Magic-Item-Table-F --Boots of Striding and Springing --2 !import-table-item --Magic-Item-Table-F --Bracers of Archery --2 !import-table-item --Magic-Item-Table-F --Broach of Shielding --2 !import-table-item --Magic-Item-Table-F --Broom of Flying --2 !import-table-item --Magic-Item-Table-F --Cloak of Elvenkind --2 !import-table-item --Magic-Item-Table-F --Cloak of Protection --2 !import-table-item --Magic-Item-Table-F --Gauntlets of Ogre Power --2 !import-table-item --Magic-Item-Table-F --Hat of Disguise --2 !import-table-item --Magic-Item-Table-F --Javelin of Lightning --2 !import-table-item --Magic-Item-Table-F --Pearl of Power --2 !import-table-item --Magic-Item-Table-F --Rod of the Pack Keeper +1 --2 !import-table-item --Magic-Item-Table-F --Slippers of Spider Climbing --2 !import-table-item --Magic-Item-Table-F --Staff of the Adder --2 !import-table-item --Magic-Item-Table-F --Staff of the Python --2 !import-table-item --Magic-Item-Table-F --Sword of Vengeance --2 !import-table-item --Magic-Item-Table-F --Trident of Fish command --2 !import-table-item --Magic-Item-Table-F --Wand of Magic Missiles --2 !import-table-item --Magic-Item-Table-F --Wand of the War Mage +1 --2 !import-table-item --Magic-Item-Table-F --Wand of Web --2 !import-table-item --Magic-Item-Table-F --Weapon of Warning --2 !import-table-item --Magic-Item-Table-F --Adamantine Armour (Chain mail) --1 !import-table-item --Magic-Item-Table-F --Adamantine Armour (Chain Shirt) --1 !import-table-item --Magic-Item-Table-F --Adamantine Armour (Scale Mail) --1 !import-table-item --Magic-Item-Table-F --Bag of Tricks (Grey) --1 !import-table-item --Magic-Item-Table-F --Bag of Tricks (Rust) --1 !import-table-item --Magic-Item-Table-F --Bag of Tricks (Tan)&nbsp; --1 !import-table-item --Magic-Item-Table-F --Boots of the Winterlands --1 !import-table-item --Magic-Item-Table-F --Circlet of Blasting --1 !import-table-item --Magic-Item-Table-F --Deck of Illusions --1 !import-table-item --Magic-Item-Table-F --Eversmoking Bottle --1 !import-table-item --Magic-Item-Table-F --Eyes of Charming --1 !import-table-item --Magic-Item-Table-F --Eyes of the Eagle --1 !import-table-item --Magic-Item-Table-F --Figurine of the Wonderous Power --1 !import-table-item --Magic-Item-Table-F --Gem of Brightness --1 !import-table-item --Magic-Item-Table-F --Gloves of Millise Snarring --1 !import-table-item --Magic-Item-Table-F --Gloves of Swimming and Climbing --1 !import-table-item --Magic-Item-Table-F --Gloves of Thievery --1 !import-table-item --Magic-Item-Table-F --Headband of Intellect --1 !import-table-item --Magic-Item-Table-F --Helm of Telepathy --1 !import-table-item --Magic-Item-Table-F --Instrument of the Bards (Doss Lute) --1 !import-table-item --Magic-Item-Table-F --Instrument of the Bards (Fochlucan Bandore) --1 !import-table-item --Magic-Item-Table-F --Instumrnet of the Bards (Mac-Fuimidh Cittern) --1 !import-table-item --Magic-Item-Table-F --Medallion of Thoughts --1 !import-table-item --Magic-Item-Table-F --Necklace of Adaption --1 !import-table-item --Magic-Item-Table-F --Periapt of Wound Clousure --1 !import-table-item --Magic-Item-Table-F --Pipes of Haunting --1 !import-table-item --Magic-Item-Table-F --Pipes of the Sewers --1 !import-table-item --Magic-Item-Table-F --Ring of Jumping --1 !import-table-item --Magic-Item-Table-F --Ring of Mind Shielding --1 !import-table-item --Magic-Item-Table-F --Rind of Warmth --1 !import-table-item --Magic-Item-Table-F --Ring of Water Walking --1 !import-table-item --Magic-Item-Table-F --Quiver of Ehlonna --1 !import-table-item --Magic-Item-Table-F --Stone of Good Luck --1 !import-table-item --Magic-Item-Table-F --Wind Fan --1 !import-table-item --Magic-Item-Table-F --Winged Boots --1 !import-table-item --Magic-Item-Table-G --Weapon +2 --11 !import-table-item --Magic-Item-Table-G --Figurine of Wonderous Power (Roll d8) --3 !import-table-item --Magic-Item-Table-G --Adamantine Armour (Breastplate) --1 !import-table-item --Magic-Item-Table-G --Adamantine Armour (Splint Mail) --1 !import-table-item --Magic-Item-Table-G --Amulet of Health --1 !import-table-item --Magic-Item-Table-G --Armour of Vulnerabiltiy --1 !import-table-item --Magic-Item-Table-G --Arrow Catching Shield --1 !import-table-item --Magic-Item-Table-G --Belt of Dwarvenkind --1 !import-table-item --Magic-Item-Table-G --Belf of Hill giant Strength --1 !import-table-item --Magic-Item-Table-G --Berserker Axe --1 !import-table-item --Magic-Item-Table-G --Boots of Levitation --1 !import-table-item --Magic-Item-Table-G --Boots of Speed --1 !import-table-item --Magic-Item-Table-G --Bowl of Commanding Water Elementals --1 !import-table-item --Magic-Item-Table-G --Bracers of Defence --1 !import-table-item --Magic-Item-Table-G --Brazier of Commanding Fire Elementals --1 !import-table-item --Magic-Item-Table-G --Cape of Mountebank --1 !import-table-item --Magic-Item-Table-G --Censer of Controlling Air Elementals --1 !import-table-item --Magic-Item-Table-G --Armour&nbsp; +1 Chain Mail --1 !import-table-item --Magic-Item-Table-G --Armour of Resistance (Chain Mail) --1 !import-table-item --Magic-Item-Table-G --Armour +1 Chain Shirt --1 !import-table-item --Magic-Item-Table-G --Armour of Resistance (Chain Shirt) --1 !import-table-item --Magic-Item-Table-G --Cloak of Displacement&nbsp; --1 !import-table-item --Magic-Item-Table-G --Cloak of the Bat --1 !import-table-item --Magic-Item-Table-G --Cube of Force --1 !import-table-item --Magic-Item-Table-G --Daern's Instant Fortress --1 !import-table-item --Magic-Item-Table-G --Dagger of Venom --1 !import-table-item --Magic-Item-Table-G --Dimensional Shackles --1 !import-table-item --Magic-Item-Table-G --Dragon Slayer --1 !import-table-item --Magic-Item-Table-G --Elven Chain --1 !import-table-item --Magic-Item-Table-G --Flame Tongue --1 !import-table-item --Magic-Item-Table-G --Gem of Seeing --1 !import-table-item --Magic-Item-Table-G --Giant Slayer --1 !import-table-item --Magic-Item-Table-G --Glamoured Studded Leather --1 !import-table-item --Magic-Item-Table-G --Helm of Teleportation --1 !import-table-item --Magic-Item-Table-G --Horn of Blasting --1 !import-table-item --Magic-Item-Table-G --Horn Of Valhalla (Silver or Brass) --1 !import-table-item --Magic-Item-Table-G --Instrument of the Bards (Canaith Mandolin) --1 !import-table-item --Magic-Item-Table-G --Instrument of the Bards (Cli Lyre) --1 !import-table-item --Magic-Item-Table-G --Ioun Stone (Awareness) --1 !import-table-item --Magic-Item-Table-G --Ioun Stone (Protection) --1 !import-table-item --Magic-Item-Table-G --Ioun Stone (Reserve) --1 !import-table-item --Magic-Item-Table-G --Ioun Stone (Sustanance) --1 !import-table-item --Magic-Item-Table-G --Iron Bands of Bilarro --1 !import-table-item --Magic-Item-Table-G --Armour +1 Leather --1 !import-table-item --Magic-Item-Table-G --Armour of Resistance (Leather) --1 !import-table-item --Magic-Item-Table-G --Mace of Disruption --1 !import-table-item --Magic-Item-Table-G --Mace of Smithing --1 !import-table-item --Magic-Item-Table-G --Mace of Terror --1 !import-table-item --Magic-Item-Table-G --Mantle of Spell Resistance --1 !import-table-item --Magic-Item-Table-G --Necklace of Prayer Beads --1 !import-table-item --Magic-Item-Table-G --Periapt of Proof Against Poison --1 !import-table-item --Magic-Item-Table-G --Ring of Animal Influence --1 !import-table-item --Magic-Item-Table-G --Ring of Evasion --1 !import-table-item --Magic-Item-Table-G --Ring of Feather Falling --1 !import-table-item --Magic-Item-Table-G --Ring of Free Action --1 !import-table-item --Magic-Item-Table-G --Ring of Protection --1 !import-table-item --Magic-Item-Table-G --Ring og Resistance --1 !import-table-item --Magic-Item-Table-G --Ring of Spell Storing --1 !import-table-item --Magic-Item-Table-G --Ring of the Ram --1 !import-table-item --Magic-Item-Table-G --Ring of X Ray Vision --1 !import-table-item --Magic-Item-Table-G --Robe of Eyes --1 !import-table-item --Magic-Item-Table-G --Rod of Rulership --1 !import-table-item --Magic-Item-Table-G --Rod of the Pact Keeper +2 --1 !import-table-item --Magic-Item-Table-G --Rope of Entanglement --1 !import-table-item --Magic-Item-Table-G --Armour +1 Scale Mail --1 !import-table-item --Magic-Item-Table-G --Armour of Resistance (Scale Mail) --1 !import-table-item --Magic-Item-Table-G --Shield +2 --1 !import-table-item --Magic-Item-Table-G --Shield of Missile Attraction --1 !import-table-item --Magic-Item-Table-G --Staff of Charming --1 !import-table-item --Magic-Item-Table-G --Staff of Healing --1 !import-table-item --Magic-Item-Table-G --Staff od Swarming Insects --1 !import-table-item --Magic-Item-Table-G --Staff of Woodlands --1 !import-table-item --Magic-Item-Table-G --Staff of Withering --1 !import-table-item --Magic-Item-Table-G --Stone of Controlling Earth Elementals --1 !import-table-item --Magic-Item-Table-G --Sun Blade --1 !import-table-item --Magic-Item-Table-G --Sword of Life Stealing --1 !import-table-item --Magic-Item-Table-G --Sword of Wounding --1 !import-table-item --Magic-Item-Table-G --Tentacle Rod --1 !import-table-item --Magic-Item-Table-G --Vicious Weapon --1 !import-table-item --Magic-Item-Table-G --Wand of Binding --1 !import-table-item --Magic-Item-Table-G --Wand of Enemy Detection --1 !import-table-item --Magic-Item-Table-G --Wand of Fear --1 !import-table-item --Magic-Item-Table-G --Wand of Fireballs --1 !import-table-item --Magic-Item-Table-G --Wand of Lightning Bolts --1 !import-table-item --Magic-Item-Table-G --Wand of Paralysis --1 !import-table-item --Magic-Item-Table-G --Wand of the War Mage +2 --1 !import-table-item --Magic-Item-Table-G --Wand of Wonder --1 !import-table-item --Magic-Item-Table-G --Wings of Flying --1 !import-table-item --Magic-Item-Table-H --Weapon +3 --10 !import-table-item --Magic-Item-Table-H --Amulet of Planes --2 !import-table-item --Magic-Item-Table-H --Carpet of Flying --2 !import-table-item --Magic-Item-Table-H --Crystal Ball --2 !import-table-item --Magic-Item-Table-H --Ring of Regeneration --2 !import-table-item --Magic-Item-Table-H --Ring of Shooting Stars --2 !import-table-item --Magic-Item-Table-H --Ring of Telekenesis --2 !import-table-item --Magic-Item-Table-H --Robe of Scintillating Colours --2 !import-table-item --Magic-Item-Table-H --Robe of Stars --2 !import-table-item --Magic-Item-Table-H --Rod of Absorption --2 !import-table-item --Magic-Item-Table-H --Rod of Alertness --2 !import-table-item --Magic-Item-Table-H --Rod of Security --2 !import-table-item --Magic-Item-Table-H --Rod of the Pact Keeper +3 --2 !import-table-item --Magic-Item-Table-H --Scimitar of Speed --2 !import-table-item --Magic-Item-Table-H --Shield +3 --2 !import-table-item --Magic-Item-Table-H --Staff of Fire --2 !import-table-item --Magic-Item-Table-H --Staff of Frost --2 !import-table-item --Magic-Item-Table-H --Staff of Power --2 !import-table-item --Magic-Item-Table-H --Staff of Striking --2 !import-table-item --Magic-Item-Table-H --Staff of Thunder and Lightning --2 !import-table-item --Magic-Item-Table-H --Sword of Sharpness --2 !import-table-item --Magic-Item-Table-H --Wand of Polymorph --2 !import-table-item --Magic-Item-Table-H --Wand of the War Mage +3 --2 !import-table-item --Magic-Item-Table-H --Adamantine Armour (Half Plate) --1 !import-table-item --Magic-Item-Table-H --Adamantine Armour (Full Plate) --1 !import-table-item --Magic-Item-Table-H --Animated Shield --1 !import-table-item --Magic-Item-Table-H --Belt of Fire Giant Strength --1 !import-table-item --Magic-Item-Table-H --Belt of Frost (or Stone) Giant Strength --1 !import-table-item --Magic-Item-Table-H --Armour +1 Breastplate --1 !import-table-item --Magic-Item-Table-H --Candle of Invocation --1 !import-table-item --Magic-Item-Table-H --Armour +2 Chain Mail --1 !import-table-item --Magic-Item-Table-H --Armour +2 Chain Shirt --1 !import-table-item --Magic-Item-Table-H --Cloack of Arachnida --1 !import-table-item --Magic-Item-Table-H --Dancing Sword --1 !import-table-item --Magic-Item-Table-H --Deamon Armour --1 !import-table-item --Magic-Item-Table-H --Dragon Scale Mail --1 !import-table-item --Magic-Item-Table-H --Dwarven Plate --1 !import-table-item --Magic-Item-Table-H --Dwarven Thrower --1 !import-table-item --Magic-Item-Table-H --Efreeti Bottle --1 !import-table-item --Magic-Item-Table-H --Figurine of Wonderous Power (Obsidian Steed) --1 !import-table-item --Magic-Item-Table-H --Frost Brand --1 !import-table-item --Magic-Item-Table-H --Helm of Brilliance --1 !import-table-item --Magic-Item-Table-H --Horn of Valhalla (Bronse) --1 !import-table-item --Magic-Item-Table-H --Instrument of the Bard (Anstruth Harp) --1 !import-table-item --Magic-Item-Table-H --Ioun Stone (Absorption) --1 !import-table-item --Magic-Item-Table-H --Ioun Stone (Agility) --1 !import-table-item --Magic-Item-Table-H --Ioun Stone ( Fortitude) --1 !import-table-item --Magic-Item-Table-H --Ioun Stone(Insight)&nbsp; --1 !import-table-item --Magic-Item-Table-H --Ioun Stone ( Intellect) --1 !import-table-item --Magic-Item-Table-H --Ioun Stone (Leadership) --1 !import-table-item --Magic-Item-Table-H --Ioun Stone (Strength) --1 !import-table-item --Magic-Item-Table-H --Armour +2 Leather --1 !import-table-item --Magic-Item-Table-H --Manual of Bodily Health --1 !import-table-item --Magic-Item-Table-H --Manual of Gainful Exercise --1 !import-table-item --Magic-Item-Table-H --Manual of Golems --1 !import-table-item --Magic-Item-Table-H --Manual of Quickness of Action --1 !import-table-item --Magic-Item-Table-H --Mirror of Life Trapping --1 !import-table-item --Magic-Item-Table-H --Nine Lives Stealer --1 !import-table-item --Magic-Item-Table-H --Oathbow --1 !import-table-item --Magic-Item-Table-H --Armour +2 Scale Mail --1 !import-table-item --Magic-Item-Table-H --Spellguard Shield --1 !import-table-item --Magic-Item-Table-H --Armour +1 Splint --1 !import-table-item --Magic-Item-Table-H --Armour of Resistance (Splint) --1 !import-table-item --Magic-Item-Table-H --Armour +1 Studded Leather --1 !import-table-item --Magic-Item-Table-H --Armour of Resistance (Studded Leather) --1 !import-table-item --Magic-Item-Table-H --Tome of Clear Thoughts --1 !import-table-item --Magic-Item-Table-H --Tome of Leadership and Influence --1 !import-table-item --Magic-Item-Table-H --Tome of Understanding --1 !import-table-item --Magic-Item-Table-I --Defender --5 !import-table-item --Magic-Item-Table-I --Hammer of Thunderbolts --5 !import-table-item --Magic-Item-Table-I --Luck Blade --5 !import-table-item --Magic-Item-Table-I --Sword of Answering --5 !import-table-item --Magic-Item-Table-I --Holy Avenger --3 !import-table-item --Magic-Item-Table-I --Ring of Djinni Summoning --3 !import-table-item --Magic-Item-Table-I --Ring of Invisibility --3 !import-table-item --Magic-Item-Table-I --Ring of Spell Turning --3 !import-table-item --Magic-Item-Table-I --Rod of Lordly Might --3 !import-table-item --Magic-Item-Table-I --Staff of the Magi --3 !import-table-item --Magic-Item-Table-I --Vorpal Sword --3 !import-table-item --Magic-Item-Table-I --Belt of Cloud Giant Strength --2 !import-table-item --Magic-Item-Table-I --Armour +2 Breastplate --2 !import-table-item --Magic-Item-Table-I --Armour +3 Chainmail --2 !import-table-item --Magic-Item-Table-I --Armour +3 Chain Shirt --2 !import-table-item --Magic-Item-Table-I --Cloak of Invisibility --2 !import-table-item --Magic-Item-Table-I --Crystal Ball (Legendary Version) --2 !import-table-item --Magic-Item-Table-I --Armour +1 (Half Plate) --2 !import-table-item --Magic-Item-Table-I --Iron Flask --2 !import-table-item --Magic-Item-Table-I --Armour +3 Leather --2 !import-table-item --Magic-Item-Table-I --Armour +1 Plate --2 !import-table-item --Magic-Item-Table-I --Robe of the Archmagi --2 !import-table-item --Magic-Item-Table-I --Rod of Resurrection --2 !import-table-item --Magic-Item-Table-I --Armour +1 Scale Mail --2 !import-table-item --Magic-Item-Table-I --Scarab of Protection --2 !import-table-item --Magic-Item-Table-I --Armour +2 Splint --2 !import-table-item --Magic-Item-Table-I --Armour +2 Studded Leather --2 !import-table-item --Magic-Item-Table-I --Well of Many Worlds --2 !import-table-item --Magic-Item-Table-I --Magic Armour (Roll d12) --1 !import-table-item --Magic-Item-Table-I --Apparatus of Kwalish --1 !import-table-item --Magic-Item-Table-I --Armour of Invulnerability --1 !import-table-item --Magic-Item-Table-I --Belt of Storm Giant Strength --1 !import-table-item --Magic-Item-Table-I --Cubic Gate --1 !import-table-item --Magic-Item-Table-I --Deck of Many Things --1 !import-table-item --Magic-Item-Table-I --Efreeti Chain --1 !import-table-item --Magic-Item-Table-I --Armour of Resistance (Half Plate --1 !import-table-item --Magic-Item-Table-I --Horn of Valhalla (iron) --1 !import-table-item --Magic-Item-Table-I --Instrument of Bards (Ollamh Harp) --1 !import-table-item --Magic-Item-Table-I --Ioun Stone (Greather Absorption) --1 !import-table-item --Magic-Item-Table-I --Ioun Stone (Mastery) --1 !import-table-item --Magic-Item-Table-I --Ioun Stone (Regeneration) --1 !import-table-item --Magic-Item-Table-I --Plate armour of Resistance --1 !import-table-item --Magic-Item-Table-I --Ring of Air Elemental Command --1 !import-table-item --Magic-Item-Table-I --Ring of Fire Elemental Command --1 !import-table-item --Magic-Item-Table-I --Ring of Earth Elemental Command --1 !import-table-item --Magic-Item-Table-I --Ring of Three Wishes --1 !import-table-item --Magic-Item-Table-I --Ring of Water Elemental Command --1 !import-table-item --Magic-Item-Table-I --Sphere of Annihilation --1 !import-table-item --Magic-Item-Table-I --Talisman of Pure Good --1 !import-table-item --Magic-Item-Table-I --Talisman of the Sphere --1 !import-table-item --Magic-Item-Table-I --Talisman of Ultimate Evil --1 !import-table-item --Magic-Item-Table-I --Tome of the Stilled Tongue --1
1567967639
The Aaron
Roll20 Production Team
API Scripter
I created this script for just such a purpose:&nbsp; <a href="https://app.roll20.net/forum/post/5954076/script-update-recursivetables-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates" rel="nofollow">https://app.roll20.net/forum/post/5954076/script-update-recursivetables-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates</a>
Looks like quite the idea there, Can you help me then with an example of how that can be incorporated to make it work like: Roll Percentage = 45% &gt; roll 1d4,&nbsp; 2 rolls on Table B items then those 2are shown. But it would also the posibility of rolling 76% then rolling Table C 1d4 &gt; 3 times on table C Complete laymen at all this!
1567973286
The Aaron
Roll20 Production Team
API Scripter
With that script installed, you can pass something to the !rt command and it will recursively expand inline rolls.&nbsp; Example: !rt [[ 1t[TreasureCR4] ]] Assuming that's a treasure table for Challenge Rating 4, it might have in it some 45% weighted entry like: [[ [[1d4]]t[TableB] ]] Which itself might have a row like: [[ [[1d8]]t[Potions] ]], [[ [[1d4]]t[magic-items-a] ]] etc.&nbsp; Each additional roll result is expanded until either there are no inline rolls left, or the maximum recursion depth (10 by default) is hit. There are various formatting options you can provide, mostly people put it in a Roll Template.
You sir, are a gem. I'll go and look in to that now, I'll post back with what I manage with the rolls from the DMG etc
1568056776
The Aaron
Roll20 Production Team
API Scripter
No problem. Ping us if you hit any roadblocks.&nbsp;
1568145469

Edited 1568145591
Edit: Just looked at the roll for an enemy action that uses the template part. I am going to investigate that use just now. Okey dokey! On to the next phase. I have the roll sorted now and organised that for each section.&nbsp; !rt [[2d4]]t[[25gpArts] ]]. [[1d6]]t[Magic-Item-Table-A] ]]&nbsp;&nbsp; This yields: Small Gold Bracelet, Cloth of Gold Vestment, Carved Bone Statuette, Small mirror set in painted wooden frame, Potion of Healing, Potion of Healing, Potion of Climbing, Spell Scroll (Cantrip), Potion of Climbing The next trick. Is there a way of differentiating the sections (apart from just reading) Such as a table to show the results or a space between the rolled sections with a name above? If it is getting to the 'go write an API territory' just say!
1568156259
The Aaron
Roll20 Production Team
API Scripter
Many people organize it into a Roll Template. There are some features of the script to make that easier. I'll see if I can find an example, but the details are in the help: !rt --help
!rt &amp;{template:default} {{name=CR 1-4 00% }} {{Coins= [[6d6*100]] CP, [[3d6*100]] SP [[2d6*10]] GP}} {{Gems 50gp Each= [[ [[2d6]]t[50gpGems] ]]}}, {{Magic Table G= [[ [[1]]t[Magic-Item-Table-G] ]]}} Working well, continuing work! thanks again. Learning loads :D&nbsp;
1568327279
The Aaron
Roll20 Production Team
API Scripter
Sweet!!!