character-gen

A small utility package to perform random character attribute generation for writers and role-players.

Usage no npm install needed!

<script type="module">
  import characterGen from 'https://cdn.skypack.dev/character-gen';
</script>

README

character-generator

An npm utility package to perform random character attribute generation for writers and role-players. Written in pure JS, with no dependencies.

Usage

const characterGen = require('character-gen');

//To generate a basic archetype string: 
characterGen.basic();
// Output: Lazy Landscape gardener
 
//To generate an appearance attribute string:
characterGen.appearance();
// Output: average height with golden colored unkempt hair. 

//A complete character with attribute, profession, appearance, and age (random between 15 and 100): 
characterGen.complex();
// Output: A Lazy Landscape gardener, average height with golden colored unkempt hair. 27 years old.

Alteration

The string data for all random combinations can be found and freely edited to suit personal use in "/lists.js".