Skip to content

Used to quickly generate NPC's with backgrounds and quirks.

Notifications You must be signed in to change notification settings

vorpalhex/BeltFedNPCs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BeltFedNPCs

Used to quickly generate NPC's with backgrounds and quirks.
NPC is also given a random class and race. Weighted random is used to balance the frequency of race occurances, favoring humans to appear the most.
Program pulls data from names.json and backgrounds.json.
First name is pulled from a json object found in names.json. Feel free to add more to the list, but I would avise
to keep them gender neutral.
Last name is randomly generated from two arrays found in names.json. feel free to add to the lists as you wish.

I plan on adding more quirks and maneurisms as I go, but if you have any ideas then that would be great as well.
I also plan on developing a precompiler that would allow for each background to exist as it's own json file that
get collected together into a single file at compile.


Format for adding additional backgrounds to the backgrounds.json file:

{
      "title": "Background Title",
      "description": "The introductory paragraph on the background. You can insert variable extras here by inserting <exampletag> and then including exampletag choices in the extras section. <otherexample>",
      "skillProficiencies": [
        "for now, this is text only"
      ],
      "Tool Proficiencies": ["Again, this will simply output whatever text is here"],
      "languages": [
        "this will output the text"
      ],
      "extras": [
        {
          "description": {
            "exampletag":[
              "Place a list here of random items you want to insert into <exampletag>.",
              "Because the parent of this object is named description, the program will find/replace for <exampletag> in description only.",
              "For now, the program does not do weighted random on these items",
              "Make sure your description has the right spacing before and after <exampletag> or it will look weird."
            ],
            "otherexample":[
              "keep in mind that the tags are case sensitive",
              "but you should be able to write any text for your tags as they will be replaced prior to being put on the page",
              "make sure you use unique tags or I cannot guarantee expected behavior"
            ]
          }
        }
      ],
      "equipment": "text only for now",
      "feature": "text only for now",
      "personalityTrait": [
        "Place any number of possible traits here",
        "One will be selected at random",
        "be creative, but the program will only pick one"
      ],
      "ideal": [
        "Place any number of possible ideals here",
        "One will be selected at random",
        "be creative, but the program will only pick one",
        "be sure to include alignment as needed",
      ],
      "bond": [
        "Place any number of possible traits here",
        "One will be selected at random",
        "be creative, but the program will only pick one"
      ],
      "flaw": [
        "Place any number of possible traits here",
        "One will be selected at random",
        "be creative, but the program will only pick one"
      ],
      "credit": "If you did not write this background. Please credit the creator here. Also, please avoid using lisenced backgrounds that you do not have rights to publish. you can also credit yourself here if you did create this background."
    }

About

Used to quickly generate NPC's with backgrounds and quirks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 37.0%
  • JavaScript 34.4%
  • CSS 28.6%