Coder Social home page Coder Social logo

kanathan / rolltable-requester Goto Github PK

View Code? Open in Web Editor NEW

This project forked from colinbate/rolltable-requester

0.0 0.0 0.0 22 KB

Allow your players to roll on your random roll tables without needing direct access.

License: MIT License

JavaScript 73.29% CSS 14.56% HTML 12.15%

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.
  • Request Descriptive Roll
    • This is like the named roll except that it will also display the rolltable description.

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:

// Options = { blind: boolean; description: boolean; }.
RolltableRequester.requestRollById(tableId, opts);
RolltableRequester.requestRollByName(tableName, opts);

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

Changelog

See the Releases page for notes for each version.

rolltable-requester's People

Contributors

colinbate avatar yfery 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.