
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)]]}}}
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)]]}}}