Genie currency subs

From Elanthipedia
Revision as of 21:46, 12 June 2021 by TRAIGA (talk | contribs) (→‎Examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Subs

These Genie substitutions summarize large quantities of coin in terms of platinums so that instead of seeing a large number like 1874919423 you will see 187,491.9 plat.

#subs {(\D+(\d+)(\d\d\d)(\d)(\d\d\d) (copper )?([Kk]ronars|[Ll]irums|[Dd]okoras))} {$1 ($2,$3.$4 plat)} {currency}
#subs {(\D+(\d?\d?\d)(\d)(\d\d\d) (copper )?([Kk]ronars|[Ll]irums|[Dd]okoras))} {$1 ($2.$3 plat)} {currency}
#subs {(Cost:\D+(\d?\d?\d)(\d)(\d\d\d)\s+)$} {$1 ($2.$3 plat)} {currency}
#subs {(Cost:\D+(\d+)(\d\d\d)(\d)(\d\d\d)\s+)$} {$1 ($2,$3.$4 plat)} {currency}
#subs {(\d+\.\s+(\d?\d?\d)(\d)(\d\d\d))\D} {$1 ($2.$3 plat) } {currency}
#subs {(\d+\.\s+(\d\d\d)(\d)(\d\d\d))\D} {$1 ($2,$3.$4 plat) } {currency}

Examples

> shop notecard
Short: a boldly stenciled notecard
  Tap: a boldly stenciled notecard with a message that reads: "Ask me about forged weapons!"
 Cost: 1874919423 (187,491.9 plat)
 Look: Made from a single sheet of thick papyrus, this display has been pressed in such a way as to offer three equal sides for information.
 Read: There is nothing there to read.
> wealth
Wealth:
  24129 platinum, 3 gold, 3 silver, 4 bronze, and 7 copper Kronars (241293347 copper Kronars (24,129.3 plat)).
> order
#     Price    Item
-------------------------
1.   180000 (18.0 plat) an ornate ebonwood chair shaped like rose-brambles [chairs (set of 4)]
2.   120000 (12.0 plat) a delicate silverbirch chair painted with bright colors [chairs (set of 4)]
3.   150000 (15.0 plat) a twisting redwood chair cushioned with silk [chairs (set of 4)]