Giter Site home page Giter Site logo

beltfednpcs's Introduction

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."
    }

beltfednpcs's People

Contributors

paulvmoreau avatar

Watchers

 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.