A JavaScript console app that randomly generates a D&D character out of a pre-set collection of races, classes, backgrounds, and randomly rolled ability scores (strength, wisdom, dexterity, etc.)
Use this application to generate random playable or non-playable characters for your D&D campaign. Take the character as generated and put them in your game or use it as a source of inspiration to craft the perfect character for your setting or situation.
Prints a randomly generated character (out of a pre-set collection of races, classes, backgrounds, and randomly rolled ability scores) to the console. Ability scores are randomly generated based off the house rule of rolling 4d6 7 times, rerolling 1's, adding the three highest numbers for each set, and dropping the lowest set
- JavaScript
- Node.js
To be able to run this script, you need to setup Node.js locally in your machine.
Once you have Node.js set up, run the script.
...\your-script-directory> node script.js
After you run the script, a character should be randomly generated and printed to the console. Below is an example. Yes they were rolled randomly. Yes I wish I had been rolling for an actual character.
...\your-script-directory> node script.js
YOUR RANDOMLY GENERATED CHARACTER:
Tortle Barbarian - Gladiator background
Strength [10]
Dexterity [13]
Constitution [11]
Intelligence [12]
Wisdom [11]
Charisma [15]