@molmedoz/rpg-dice-roller
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

RPG Dice Roller

Build Status Coverage Status Tyepscript friendly MIT license npm downloads

A JS based dice roller that can roll various types of dice and modifiers, along with mathematical equations. This is a fork of @dice-roller/rpg-dice-roller

Install

npm install @molmedoz/rpg-dice-roller

Documentation

Check out the documentation from original project https://dice-roller.github.io/documentation

Special Success

Order 9 (critical failure is now 10 and sorting is 11)

When a die rolls a high possible result, such as rolling <= 20% of skills on a d% , this is called a special success.

However, sometimes you want a special success to be on a different value, or a range.

To specify what is considered as a special success, add ss and a Compare Point, after the die notation:

// roll a d10 4 times, anything greater than 7 is a critical success
4d%sp<=12

We're always happy for community contributions. You can find our contributing guide in the docs: https://molmedoz.github.io/documentation/contributing

// the rolls of 5 and 11 are critical successes
5d%sp<=12: [13, 5++, 11++, 15, 68] = 62

Licence

This dice roller has been released under the MIT licence, meaning you can do pretty much anything you like with it, so long as the original copyright remains in place.

You can use it in commercial products.

If the licence terminology in the licence.txt is confusing, check out this: https://www.tldrlegal.com/l/mit

/@molmedoz/rpg-dice-roller/

    Package Sidebar

    Install

    npm i @molmedoz/rpg-dice-roller

    Weekly Downloads

    14

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    533 kB

    Total Files

    50

    Last publish

    Collaborators

    • molmedoz