Latest version | 1.0.4 |
---|---|
Minimum Core | 11 |
Compatible Core | 11.315 |
File size | 0 B |
Last updated | 2 weeks ago |
Created | 2 months ago |
Authors | |
Languages |
|
Systems | All systems |
Project source | Project URL |
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!
The dice are rolled secretly in the background ensuring only your desired result is shown to the players. Sometimes, if your formula or desire result are too extreme, (like 10d100 = 10)
, it will take too many attempts to roll the result and you'll be privately be messaged a failure alert. Max attempts are set to 100,000 by default but can be changed in the setting configuration. Max attempts are set to 100,000 by default but can be changed in the configuration settings.
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
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");
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: loaded-dice-roll or copy its manifest URL:
And paste it to the input box at the bottom of your window.
You can install this package directly to your Forge account.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to deliver visitors with customized advertisements based on the pages they visited before and analyze the effectiveness of the ad campaign.