Git Product home page Git Product logo

rolltable-requester's Introduction

Latest Release Download Count

Rolltable Requester

Rolltables (or rollable tables, or random tables) are a great way to fuel ideas and add a bit of randomness to your games. They are often used ahead of time to set up a session or as part of world building. However they are also sometimes used directly within a game. The issue with rolling on a roll table in Foundry is that accessing them as players is awkward.

This module makes it easier to use rolltables during your game and involve your players. If you want to give your players Observer access to your tables so they can open them and roll on them, then you don't need this module. If you want then to be able to roll but not see the full list (or even the result), then this may be the module you are looking for. waves hand like a Jedi

Features

Adds options to the context (right-click) menu of the rolltables:

  • Make Roll
    • Performs the roll in public and displays the results to GM only.
  • Request Named Roll
    • Displays a chat card with button asking a player to click it to roll on a the table which is named. When they click it, the roll happens just as with the 'Make Roll' option.
  • Request Blind Roll
    • Displays the same chat card prompt, but without the name of the table.

Provides API access to making and requesting rolls above, so you can add them to macros.

If you give Limited access to a roll table to a player, they can access the 'Make Roll' option, providing a self service way for them to roll without being able to see the full list of options.

API

The following functions are available:

// Only option is setting { blind: true }.
RolltableRequester.requestRollById(tableId, opts);
RolltableRequester.requestRollByName(tableName, opts);

RolltableRequester.makeRollById(tableId);
RolltableRequester.makeRollByName(tableName);

Changelog

See the Releases page for notes for each version.

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.