• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
dcm31

dcm31

randQuestTreasureGenerator

Public
Like
randQuestTreasureGenerator
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
Code
/
Search
README.md

Quest RPG Treasure Generator

This Val randomly generates magical treasures from the Quest RPG system.

Usage

// 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 item
  • desc: Description of the item
  • page: Reference to the page number in the Quest RPG book
  • damage: (If applicable) Damage value for weapons
  • ap: (If applicable) AP cost for certain items
  • rarity: Rarity category of the item

Based on the Quest RPG Treasure Catalog. All content © The Adventure Guild, LLC, 2020.

Code
README.mdmain.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.