Coder Social home page Coder Social logo

dnd-generator's Introduction

D&D Generator

A system for generating random D&D information

Generators

  • Abilities (random generation of a Character/NPC's ability scores)
  • NPC (random generation of an NPC, using the below "Lists")
  • Tavern (random generation of a tavern with staff and patrons)

Lists

Each list extends the List class, which implements...

  • Constructor to set file location/items directly
  • getItems() to retrieve all items
  • getValues() - to retrieve all item values
  • getItem(value) - to retrieve a specific item by value
  • getFiltered(filter?) to retrieve all items with a filter
  • pickRandom(filter?) to pick random item from all items (with an optional filter)

Existing Lists

  • Age (number, e.g. "400" - filters for Race & Maturity)
  • Armor (e.g. "studded leather armor") - filters for Druids not using metal
  • Background (e.g. "Entertainer")
  • Characteristic (e.g. "slender")
  • Class (e.g. "Paladin") - filters for races not suiting a class
  • Conclusion (methods by which a situation may end, e.g. "was killed")
  • Currency (e.g. "gold") - weights to their respective conversions
  • Danger (methods by which a situation might worsen, e.g. "seeking revenge")
  • Ethic (e.g. "Chaotic") - weights to a reasonably interesting society
  • Eye (e.g. "blue") - weights to the real world
  • Flaw (character flaws, e.g. "I killed my family.")
  • Hair (colour, e.g. "light brown") - weights to the real world
  • Language (spoken language, e.g. "Giant")
  • Location (generic locations, e.g. "ancient ruins")
  • Maturity (range not number, e.g. "adult")
  • Monster (generic monster, e.g. "a mummy")
  • Moral (e.g. "Good") - weights to a reasonably interesting society
  • Motivation (why someone does what they do, e.g. "family")
  • Name (wrapper for Fantasy Name Generator to support more races)
  • Nobility (e.g. "Merchant") - weights to the real world very roughly
  • Past (generic previous time frame, e.g. " last month")
  • Profession (e.g. "Town Crier")
    • Royal (currently no Royal-only professions) - throne sitter and their family
    • Noble (e.g. "Disgraced Royal") - ascending to or descending from royalty
    • Knight (currently no Knight-only professions) - those who have been knighted
    • Esquire (e.g. "Banker") - highly respected in society
    • Gentle (e.g. "Town Crier") - regular invitee to the royal court
    • Yeoman (e.g. "Farmer") - owner or cultivator of an estate
    • Scholar (e.g. "Anthropologist") - expert in their academic field
    • Merchant (e.g. "Wagoner") - proprietor of any commercial endeavour
    • Servant (e.g. "Ferryman") - in service to one of the above
    • Common (e.g. "Traveler") - most people in any society
    • Peasant (e.g. "Runaway Slave") - extreme poverty
    • Underclass (e.g. "Squatter") - fringe of society
  • Race (e.g. "Kobold")
  • Rumor (template for generating rumors, e.g. "A {Merchant:pickRandom} from the town was {Verb:pickRandom}{Past:pickRandom}")
  • Sex (birth-assigned sex, e.g. "Female")
  • Skin (colour, e.g. "olive")
  • Subtlety (how flagrant an action may be, e.g. "quietly")
  • Title (e.g. "Mrs")
  • Trait (personality traits, e.g. "Nothing can shake my optimistic attitude.")
  • Verb (generic verbs for rumors, e.g. "blackmailed")
  • Weapon (e.g. "mace") - assigned only if maturity, class, and profession make sense

dnd-generator's People

Contributors

lukesrw avatar snailcodes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.