GithubHelp home page GithubHelp logo

Comments (1)

eggdropsoap avatar eggdropsoap commented on August 27, 2024

Not all tables like this should be counted as malformed. For example, treasure tables in some game systems have the possibility of no results. These should be displayed as "(no results)" or something in Table Ninja instead of throwing constant errors.

For a reproducible example using tables that are being used in an existing game system:

  1. Install the Old School Essentials game system
  2. Install the Old School Essential OGL Content module to get the compendium entries
  3. Make a new world using OSE, start it, and add the OSE OGL module
  4. Import the Treasure Tables from the compendium
  5. Make a Treasure folder in Table Ninja for a Treasure tab
  6. Drag any OSE treasure table (e.g. the first table, Treasure Type A) into the Table Ninja > Treasure folder
  7. Open Table Ninja button and click Refresh

These tables are weird, but they're not malformed. They have a "chance" value for each line instead of a weight or range, and each line is independently rolled and it's possible for all lines to produce no output. This is necessary to reproduce the behaviour of the original tables.

Currently, I can't use Table Ninja to generate treasure hoards in my OSE world. That's okay for now, but I would hope that the fix wouldn't be to prevent me using these tables, but instead would be to gracefully handle tables that don't always produce a result.

from fvtt-module-table-ninja.

Related Issues (8)

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.