GithubHelp home page GithubHelp logo

chillen / nodebb-plugin-roller Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 160 KB

NodeBB Plugin which lets users use commends such as /roll 1d6 to generate random values.

CSS 8.28% JavaScript 91.72%

nodebb-plugin-roller's Introduction

This is a plugin to add dice rolling to NodeBB forums! It will go through posts and change any /roll commands into a random dice roll. It will then display the original roll query when you hover over it.

Example:

/roll 3d20+1 will display 4

nodebb-plugin-roller's People

Contributors

chillen avatar

Watchers

James Cloos avatar  avatar

nodebb-plugin-roller's Issues

Reroll syntax

I am considering using this as a dice roller for a play by post campaign.

To do that, I would like to see a couple of things (maybe as options). One is the original roll, not just the result. This is important for folks like Rogues, etc etc that can reroll unlucky rolls or paladins who can reroll ones if that have taken the defensive style.

Something along the lines of

/roll 2d6+2, rr1

Would result in:

3,2 total: 6

That way everyone can be sure their rolls are behaving as appropriate. The rr syntax should take one number or a list of numbers to reroll on, excluding of course all the sides of the die.

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.