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
This post has been closed. You can still view previous posts, but you can't post any new replies.

AD&D Treasure Types A-Z (macro)

1456541227

Edited 1456602765
This is a simple albeit very long macro for AD&D that i made which generates random computations for all the treasure types from A to Z. By default it whispers these to the DM. While it offers quantities for each category, it does not for example, give values or forms to gems & jewelry, or specifics about what item is generated. Those details require Rollable Tables which are much more work to add into an existing game -not complicated, just meticulous.  Anyway, i spent enough time reinventing the wheel on this one i opted to share it here with the community.  I made all the boring, repetitive calculations for you so that you don't have to.   In any event one difference you will notice with how i reproduced the math is that if a coin has a "chance" of occurring, it usually occurs.  Only the overall average is adjusted to compensate.  For example if the Monster Manual stated a 10% chance of 1d4*1000 gp occurring, i plugged in a formula closer to 1d4*100 (250 average) gp occurring 100% of the time -though my actual formula might be closer to (d6-1)*(d21-1) to allow a range between (0-500), still averaging 250. Soooooo....  flame away folks!  I am clad in my fire-proof asbestos underware!  :) /w GM &{template:default} {{name=TREASURE!}} {{Coins, Gems, Jewels & Magic}} {{?{Treasure Type?| TT:A, TREASURE TYPE: A CP: [[(d71-1)*(d51-1)]] SP: [[(d22-1)*(d101-1)]] EP: [[(d99-1)*(d51-1)]] GP: [[(d89-1)*(d101-1)]] PP: [[(d51-1)*(d6-1)]] Gems: [[d26-1]] Jewelry: [[d19-1]] Magic(A) [[d10>8]] Magic(B) [[d10>8]] Magic(C) [[d10>8]]| TT:B, TREASURE TYPE: B CP: [[(d4)*(d41-1)*(d101-1)]]! SP: [[(d41-1)*(d101-1)]]! EP: [[(d5-1)*(d41-1)*(d101-1)]]! GP: [[(d2-1)*(d39)*(d99)]]! Gems: [[d4-1]]! Jewels: [[d2-1]]! [[1d33>33]] Swords! [[1d33>33]] Armor! [[1d33>33]] Weapon!| TT:C, TREASURE TYPE: C CP: [[(d53-1)*(d101-1)]] SP: [[(d41-1)*(d101-1)]] EP: [[(d11-1)*(d101-1)]] GP: nill PP: nill Gems: [[d9-1]] Jewelry: [[d6-1]] Magic(A): [[d10>10]] Magic(B): [[d10>10]]| TT:D, TREASURE TYPE: D CP: [[d901-1]] SP: [[d1951-1]] EP: [[d1351-1]] GP: [[d3501-1]] PP: nill Gems: [[d4-1]] Jewelry: [[d3-1]] Magic(A) [[(d20>18)]] Magic(B) [[(d20>18)]] Potion: [[(d20>18)]] | TT:E, TREASURE TYPE: E CP: [[(d23-1)*(d51-1)]] SP: [[(d27-1)*(d51-1)]] EP: [[(d71-1)*(d51-1)]] GP: [[(d46-1)*(d51-1)]] PP: nill Gems: [[d3-1]] Jewelry: [[d2-1]] Magic(A): [[floor(d4/3)]] Magic(B): [[floor(d4/4)]] Magic(C): [[floor(d4/4)]] Scroll: [[floor(d4/4)]]| TT:F, TREASURE TYPE: F CP: nill SP: [[(d43-1)*(d101-1)]] EP: [[(d79-1)*(d51-1)]] GP: [[(d89-1)*(d101-1)]] PP: [[(d43-1)*(d16-1)]] Gems: [[d8-1]] Jewelry: [[d2-1]] Magic (A): [[floor(d10/8)]] Magic (B): [[floor(d10/8)]] Magic (C): [[floor(d10/8)]] Potion: [[floor(d10/8)]] Scroll: [[floor(d10/8)]]| TT:G, TREASURE TYPE: G CP: nill SP: nill EP: nill GP: [[(d501-1)*(d101-1)]] PP: [[(d43-1)*(d51-1)]] Gems: [[d9-1]] Jewelry: [[d4-1]] Magic(A): [[floor(d20/14)]] Magic(B): [[floor(d20/14)]] Magic(C): [[floor(d20/14)]] Magic(D): [[floor(d20/14)]] Scroll: [[floor(d20/14)]]| TT:H, TREASURE TYPE: H CP: [[d351-1)*(d51-1)]] SP: [[(809-1)*(d100)]] EP: [[(d201-1)*(d101-1)]] GP: [[(d771-1)*(d101-1)]] PP: [[(d47-1)*(d61-1)]] Gems: [[floor(d100/d3)]] Jewelry: [[floor(d50/d3)]] Magic(A): [[floor(d20/18)]] Magic(B): [[floor(d20/18)]] Magic(C): [[floor(d20/18)]] Magic(D): [[floor(d20/18)]] Potion: [[floor(d20/18)]] Scroll: [[floor(d20/18)]]| TT:I, TREASURE TYPE: I CP: nill SP: nill EP: nill GP: nill PP: [[(d43-1)*(d31-1)]] Gems: [[floor(2d20/d6)]] Jewelry: [[floor(d20/d6)]] Magic(A): [[d20>18]]| TT:J, TREASURE TYPE: J CP: [[(d8-1)*(d9-1)]] SP: nill EP: nill GP: nill PP: nill Gems: nill Jewelry: nill Magic: nill| TT:K, TREASURE TYPE: K Copper: nill Silver: [[(d8-1)*(d7-1)]] Electrum: nill Gold: nill Platinum: nill Gems: nill Jewelry: nill Magic: nill| TT:L, TREASURE TYPE: L CP: nill SP: nill EP: [[(d8-1)*(d5-1)]] GP: nill PP: nill Gems: nill Jewelry: nill Magic: nill| TT:M, TREASURE TYPE: M Copper: nill Silver: nill Electrum: nill Gold: [[(d5-1)*(d6-1)]] Platinum: nill Gems: nill Jewelry: nill Magic: nill| TT:N, TREASURE TYPE: N CP: nill SP: nill EP: nill GP: nill PP: [[(d13)*(d2-1)]] Gems: nill Jewelry: nill Magic: nill| TT:O, TREASURE TYPE: O CP: [[(d26-1)*(d51-1)]] SP: [[(d17-1)*(d101-1)]] EP: nill GP: nill PP: nill Gems: nill Jewelry: nill Magic: nill| TT:P, TREASURE TYPE: P CP: nill SP: [[(d43-1)*(d101-1)]] EP: [[(d31-1)*(d51-1)]] GP: nill PP: nill Gems: nill Jewelry: nill Magic: nill| TT:Q, TREASURE TYPE: Q CP: nill SP: nill EP: nill GP: nill PP: nill Gems: [[(d16-1)]] Jewelry: nill Magic: nill| TT:R, TREASURE TYPE: R CP: nill SP: nill EP: nill GP: [[(d81-1)*(d101-1)]] PP: [[(d71-1)*(d101-1)]] Gems: [[(d11-1)]] Jewelry: [[d7-1]] Magic: nill| TT:S, TREASURE TYPE: S CP: nill SP: nill EP: nill GP: nill PP: nill Gems: nill Jewelry: nill Magic: [[floor(d10/d7)]] Potions| TT:T, TREASURE TYPE: T CP: nill SP: nill EP: nill GP: nill PP: =nill Gems: nill Jewelry: nill Magic: [[floor(d10/d8)]] Scrolls| TT:U, TREASURE TYPE: U CP: nill SP: nill EP: nill GP: nill PP: nill Gems: [[(d82-1)]] Jewelry: [[(d29-1)]] Magic: [[(d9-1)]] items excluding potions & scrolls| TT:V, TREASURE TYPE: V CP: nill SP: nill EP: nill GP: nill PP: nill Gems: nill Jewelry: nill Magic: [[(d21-1)]] items excluding potions & scrolls| TT:W, TREASURE TYPE: W CP: nill SP: nill EP: nill GP: [[(d61-1)*(d71-1)*(d21-1)]] PP: [[(d19-1)*(d16-1)]] Gems: [[(d23-1)*(d11-1)]] Jewelry: [[(d23-1)]] Magic Items: [[d20>10]] Maps| TT:X, TREASURE TYPE: X CP: nill SP: nill EP: nill GP: nill PP: nill Gems: nill Jewelry: nill Magic(A): [[d5>3]] Potion Magic(B): =[[d5>3]] Miscellaneous| TT:Y, TREASURE TYPE: Y Copper: nill Silver: nill Electrum: nill Gold: [[(d15-1)*(d15-1)*(d21-1)*(d21-1)]] Platinum: nill Gems: nill Jewelry: nill| TT:Z, TREASURE TYPE: Z CP: [[(d9-1)*(d21-1)*(d21-1)]] SP: [[(d51-1)*(d51-1)]] EP: [[(d51-1)*(d51-1)]] GP: [[(d16-1)*(d100)]] PP: [[(d7-1)*(d8-1)*(d21-1)]] Gems: [[d39-1]] Jewelry: [[(d33-1)]] Magic(A): [[(d10>6)]] Magic(B): [[(d10>6)]] Magic(C): [[(d10>6)]]}}}
1456541817
vÍnce
Pro
Sheet Author
WOW!  Very cool.  Thanks for sharing your hard work GT.  No need to pull out my DMG for treasure tables.
Nicely done!
1456544005
Gold
Forum Champion
Thanks for sharing, another option for rolling those treasure tables by the Letter.
1456605168

Edited 1456605254
Thank you guys!  I learn so much from the advice you offer on these forums, a kind word from you does my heart kindly!  :) Vince, actually you will still need your DMG to clarify gems, jewelry & magic items, but hopefully this streamlines the process by getting the DM pointed in the right direction. This macro only tells you if treasures occurred & how many. In my own laboratory game, i incorporate specific Rollable Tables for greater detail.  However, Rollable Tables are not always efficient or ideal considering the work involved & the long term problems blindly generated magic items can pose to campaign balance. Sometimes a rolled item is just completely out of character for the setting & inappropriate for the type of encounter.  Whether i roll for an item one time or twenty times, at the end of the day i find myself choosing the item from the category list at least as often as relying on the dice, and that is the scenario where i think a general macro like this is a better return for the investment than Tables.  With that in mind, i decided that this would probably also meet the needs of my AD&D friends better than a long list of Rollable Tables that require a serious case of OCD (like mine) to implement and use! :)
1456611061

Edited 1456611102
vÍnce
Pro
Sheet Author
Goblintrain said: Thank you guys!  I learn so much from the advice you offer on these forums, a kind word from you does my heart kindly!  :) Vince, actually you will still need your DMG to clarify gems, jewelry & magic items, ... OK, we'll be patiently waiting for these other macros to "clarify" your Treasure Table results.  ;-P
Wow this is great. I'm a roll20 noob working on putting together an old school D&D game and this is definitely going in my tool kit. Thanks Goblintrain. :)
YW Dungeon Master!  The pattern i used  for this macro, i actually learned here from other forum users here -probably off a Saving Throw or Ability Check macro that GAR or Old School Chris posted.  And now that you have me thinking about it, the macro, even though it is pretty simple does have one seemingly arcane detail which will be super useful to understand for your future query macros if you are new to this stuff (like me). "Why" exactly it works, i don't know but once you make your query with ?{my query| pulldown box, [[1d20]]} that input between "| ," or "pulldown box" in this case is what you end up seeing in your menu when you use the trigger.  That is how TT:A, TT:B, etc always appear in a tidy little list.  They are placed between "| ," within the query.  That one little detail will open up query lists for many different situations.  I never would have figured that out if i hadn't seen some one else here use it in a working example.