randQuestTreasureGenerator
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
This Val randomly generates magical treasures from the Quest RPG system.
// Get a random treasure (weighted rarity)
randQuestTreasureGenerator()
// Get a treasure of specific rarity
randQuestTreasureGenerator("uncommon")
randQuestTreasureGenerator("rare")
randQuestTreasureGenerator("legendary")
randQuestTreasureGenerator("supreme")
Each treasure includes:
name: The name of the magical itemdesc: Description of the itempage: Reference to the page number in the Quest RPG bookdamage: (If applicable) Damage value for weaponsap: (If applicable) AP cost for certain itemsrarity: Rarity category of the item
Based on the Quest RPG Treasure Catalog. All content © The Adventure Guild, LLC, 2020.