Skip to content

p4535992/foundryvtt-better-rolltables

 
 

Repository files navigation

Better Rolltables (Powered by item Piles)

Latest Release Download Count

Forge Installs

Foundry Core Compatible Version

Latest Version

Foundry Hub Endorsements

GitHub all releases

Translation status

If you want to buy me a coffee alt-text

better-rolltables is Module for FoundryVTT to improve and add functionality to Rollable tables Implementing for example the Treasure Hoard" Tables from the Dungeon master manual becomes possible!

For every BRT Rolltable there is a specific sheet for manage the many use cases, so make sure to check if you see these before open any issues.

Features

  • Weight normalization: Generates appropriate weight value to results based on range, as opposed to doing the inverse with base sheet.
  • Drag & drop re-ordering: Allows drag & dropping results to re-order them. This involves above weight normalization being called automatically as ordering is based on ranges, and doing it without weights is unnecessarily difficult, so make sure this is intended.
  • Text result rich editor: Allows editing a text result in ProseMirror.
  • Enhance your RollTables with Drag and Drop, Generate Loot, Encounters and and build your NPC Generator!
  • Roll on multiple tables with roll formulas
  • Auto create a loot actor to store generated loot
  • (REMOVED) Automatically select a random spells when a scroll item is selected
  • A table can specify multiple currencies (with roll formulas) to always be awarded
  • Adds an option to change the table roll to GM only.
  • Adds the option to automatically import rolled items in controlled actors
  • Red colored background for broken references to a document on the specific row of the results table
  • Use percentages instead of the mechanism with the range and weight to retrieve objects from a rolltable. Values range from 1 to 100 with a step of 0.1, so values such as 27.1 or 0.5 are accepted.
  • Inline roll for text table result with the prefix /roll (e.g. /roll (1d4)+5)

Add some contextual action on the compendium directory

Integration with the module Better Harvesting and Looting

In the BRT Harvest Rolltable sheet, the "Source Reference" field is the one used by the Better Harvesting and Looting module to connect the monster to the rolltable ! So "Source Reference" === "Name of The Monster" , and REMEMBER YOU MUST PUT THE NEW ROLLTABLE IN THE BRT COMPENDIUM "better-rolltables.brt-harvest-harvester" or in the Rolltable directory of the world itself (for now).

NOTE: This module is under maintenance, I have no plans to update or add features. However, I will try to fix any bugs as possible. Any contribution is welcome.

Intro video (very old now everything is manage from specific sheet)

Overview video

How to Wiki

How to use it

Documentation

At the moment the documentation is in progress, any help on this front is more than welcomed, the module is intuitive enough.

Wiki

FAQ

Is there a way to from a rolltable to call another roll table and have it roll 4d4 times?

The use case you told me is very general, but to roll an inner (or child ) rolltable 4d4 times of you just need to set in the quantity field the string "4d4" and an amount roll of at least 1.

Api

All informations about the api can be found here API

Build

Install all packages

npm install

dev

dev will let you develop you own code with hot reloading on the browser

npm run dev

build

build will build and set up a symlink between dist and your dataPath.

npm run build

build:watch

build:watch will build and watch for changes, rebuilding automatically.

npm run build:watch

prettier-format

prettier-format launch the prettier plugin based on the configuration here

npm run-script prettier-format

lint

lint launch the eslint process based on the configuration here

npm run-script lint

lint:fix

lint:fix launch the eslint process with the fix argument

npm run-script lint:fix

Issues

Any issues, bugs, or feature requests are always welcome to be reported directly to the Issue Tracker, or using the Bug Reporter Module.

License

This package is under an MIT license and the Foundry Virtual Tabletop Limited License Agreement for module development.

Credit

The module was updated for the 10 by elizeuangelo on commission and then perfected by sasquach45932 with some updates and bug fixing . Finally p4535992 applied some code best practices (module id as prefix of i18n and css rules, etc.) and taking over maintenance of the module.

A special ty to the original authors Ultrakorne#6240, JackPrince#0494 and DanielBöttner.

About

Module for FoundryVTT to improve rolltables

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.6%
  • Handlebars 8.0%
  • SCSS 2.2%
  • Other 0.2%