Register

Loaded Dice Roll

An Add-on Module for Foundry Virtual Tabletop

Author: Lefteous Project Source: Project URL Versions 11+ (Verified 12.325) Last Updated 5 months, 3 weeks ago

Loaded Dice Roll

You can load dice rolls! This module adds a new dice roll tool to the tokens toolbar. Click the 🎲 (dice) button, enter in a dice roll formula (like 2d6), enter in your desired result, either a specific number or great/less than, (like 7 or >10), and the result will be printed to chat messages!

 

Our new method of rolling dice has a much lower chance of failure. It should almost always roll your formula. Max attempt settings are no longer needed.

 

Demo

Example of a formula targetting the number 7:

Formula for rolling a 7
Rolling a 7 result


Example of a formula targetting a range of numbers greater than 10:

Formula for rolling over 10
Rolling over 10 result (11)
 

Operators

Below are the options you can use for your dice loading.

The Formula Operators are used for making the dice formula that you want to have rolled (like 2d10+10).

The Target Operators are used for making the desired end result of your loaded dice (like >14).

Target Operators have letter variants as well. For example > and gt are both for greater than.

Formula Operators:
+
-
*
/

Target Operators:
=, ==, ===, eq
>, gt
>=, gte
<, lt
<=, lte
 

Macros

The loaded dice can now be used in FoundryVTT Macros.

 

You can open the dialog via macro using the following code

game.loadedDiceRoll.showDialog();

 

You can also set macros to roll specified loaded dice like in the following examples.

game.loadedDiceRoll.rollDice("2d6", "7");

game.loadedDiceRoll.rollDice("1d20+5", ">=15");

Categories

Available Versions

  1. Version 2.1.0

    5 months, 3 weeks ago
    Foundry Version 11+ (Verified 12.325) Manifest URL Read Notes
  2. Version 2.0.0

    6 months, 3 weeks ago
    Foundry Version 11+ (Verified 11.315) Manifest URL Read Notes
  3. Version 1.0.4

    7 months, 1 week ago
    Foundry Version 11+ (Verified 11.315) Manifest URL Read Notes
  4. Version 1.0.3

    7 months, 1 week ago
    Foundry Version 11+ (Verified 11.315) Manifest URL Read Notes
  5. Version 1.0.2

    9 months ago
    Foundry Version 11+ (Verified 11.315) Manifest URL Read Notes
  6. Version 1.0.1

    9 months, 1 week ago
    Foundry Version 11+ (Verified 11.315) Manifest URL