Giter VIP home page Giter VIP logo

tom-wolfe / this-is-your-life Goto Github PK

View Code? Open in Web Editor NEW
39.0 1.0 9.0 1.04 MB

An angular app character backstories based on the Xanathar's Guide to Everything 'This Is Your Life' tables.

Home Page: https://tiyl.twolfe.dev

License: MIT License

JavaScript 37.83% HTML 32.33% Handlebars 27.50% SCSS 2.34%
xgte xanathar-s guide to everything dungeons and dragons generator random dnd dnd5e character

this-is-your-life's Introduction

This Is Your Life

See it Running Here!

This is a simple generator that automates the process of generating a Dungeons & Dragons 5th Edition character based on the random tables in the Player Handbook, Volo's Guide to Monsters, Xanathar's Guide to Everything and accompanying material.

Initializing

Run npm i to install all required dependencies before running the development server.

Development server

Run npm run start for a dev server. Navigate to http://localhost:8080/. The app will automatically reload if you change any of the source files.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run npm test to execute the unit tests via Jasmine.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

this-is-your-life's People

Contributors

dependabot[bot] avatar smashman avatar tom-wolfe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

this-is-your-life's Issues

Siblings

Sibling generation seems to be bugged in that all siblings are "brothers", younger or older, and there are no "sisters".

Ranger with Acolyte appears randomly

The following appears randomly throughout the document:

You became a acolyte because you ran away from home at an early age and found refuge in a temple.
You became a ranger because you have seen what happens when the monsters come out from the dark. You took it upon yourself to become the first line of defense against the evils that lie beyond civilization's borders.

It often appears just under the actual class and background write up but I have seen it appear in other places too, like under the origin (eg Had an Orc Bard Charlatan that was raised by humans, dwarves, or elves and just under that, the acolyte and ranger thing appeared)

Implement as module

Hey, there's some great data in this library, and I'd love to use the character generation stuff for https://github.com/mikechabot/pixelwood.

I don't need the UI so much, so I went ahead and forked the repo, and published it to npm as a standalone module, that's available from CLI or within another module.

https://www.npmjs.com/package/this-is-your-life-cli

This is a super rough pass right now, I really just needed access to the generateCharacter function. I can transfer the npm repo over to you if you'd like to begin maintaining this, but I think having this functionality separate out as a separate package is useful.

Install globally
npm install -g this-is-your-life-cli

Execute from CLI:

$ this-is-your-life-cli
{ race: { name: 'Hobgoblin', subraces: [], other: { Origin: [Object] } },
  subrace: undefined,
  class:
   { name: 'Warlock',
     ...

Execute from CLI with options

$ this-is-your-life-cli '' '' Monk
{ race:
   { name: 'Firbolg',
     subraces: [],
     other: { 'Reason for Adventure': [Object] } },
  subrace: '',
  class:
   { name: 'Monk',

CommonJS

const generateCharacter = require('this-is-your-life-cli/lib').default;

ES6

import generateCharacter from 'this-is-your-life-cli/lib/';

console.log(chalk.blue('Generating Random Character'))
console.log(generateCharacter())

console.log(chalk.blue('Generating Monk Class Character'))
console.log(generateCharacter(null, null, 'Monk'))

Threefold Issue

  1. Monstrous races not selectable, but show up when generating random characters.

Straightforward issue.

  1. Non-PHB Backgrounds not supported.

While this is understandly less of an issue, non-PHB backgrounds tend to refer to specific PHB backgrounds for traits, flaws, etc. so it may be worthwhile to add these to the list.

  1. No support fon-official races.

Understandable, but maybe look into a "blank" race value for people playing homebrew races?

Peace.

Feature Request: Alignment restrictions.

As the title says. It'd be nice if we had the option not to leave a character's alignment to chance - especially if you're quickly generating a character for Adventurers' League play (where alignment is effectively restricted to non-Evil) or if you've already chosen that part.

Two personality traits

PHB123 says that you should give your character two personality traits. Currently the generator only chooses one trait.

I will endeavour to add the second trait and open a PR in due course, but feel free to add it yourself, @trwolfe13.

Thanks.

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.