Skip to content

stories-with-dice/rpg_tables

Repository files navigation

RPG Tables

Available at https://stories-with-dice.github.io/rpg_tables/

Features

  • tons of random tables
  • search for tables
  • history of rolls
  • easily extendable (tables are in the very readable JSON format)
  • static HTML & javascript only (you can download it and it's all yours. No need for active internet connection)
  • subtable rolls
  • custom ranges in tables

TODOs

    • tables subrolls. I want to roll all the tables under a category
  • fix not being able to have subrolls in separate file

Collaboration & feedback

Please submit any ideas & feedback you might have as a github issue here

Feel free to have a look at the code and suggest improvements as well.

Check issues and projects for possible ideas to start.

If you want to add your own tables, look at this example: Planescape NPC

Adding a new table

  • add a new file roll_your_type.js
  • add this file to index.html, like
  <script src="js/roll_modern_horror.js"></script>
  • add a case in rolltables.js
    case "modern_horror":
        return top.modern_horror;
        break;   
  • if it's got multiple rolls, you need to add it to roll_menu.js, like
   {
        id: "modern_horror",
        title: "Modern Horror",
        items: [
            {
                title: "Gothic All",
                use: "",
                sub_rolls: [
                ],
                main_rolls: [
                    "modern_horror/gothic_motifs",
                    "modern_horror/gothic_events",
                    "modern_horror/gothic_locations",
                    "modern_horror/gothic_buildings",
                    "modern_horror/gothic_parts_buildings",
                ]
            }
        ]
    }

Parse clipboard

Copy a selection of lines.

Use

python scripts\parse_clipboard.py gothic_characters "Gothic Characters"

Contents pasted back to clipboard.

Credits

Developed based on initial work here

Tables content by:

Top image by https://unsplash.com/@armato

About

A set of auto roll tables for use in tabletop RPGs

Resources

License

Stars

Watchers

Forks

Languages