module

Inline Roll Commands

Endorsements
0
Installs
0.13%
Comments
0
Latest version0.3
Minimum Core10
Compatible Core11
Last updated1 year ago
Created1 year ago
Authors
Languages
Systems Dnd5e
Project source Project URL
Read-me Readme URL
Changelog Changelog URL

End Of Life Notice

The D&D 5e system has included it's own copy of these "enrichers" as of version 2.4.0. While it is still missing a command similar to rollItem, that should be coming in a future release. It's suggested that you use the system's version of this feature instead of the module going forward. When rollItem functionality comes to the system, I'll stop working on this module. You can find more information on the system's version of this feature at: https://github.com/foundryvtt/dnd5e/wiki/Enrichers

 

This module lets you create buttons in item descriptions, chat messages, or journal entries to trigger commands. They look very similar to the deferred inline roll buttons you can create with core Foundry. They also have a similar syntax, making them easy to use and you can use them in the same places.

Say a feature requires a skill check. Currently, the dnd5e system does not support that action type so you have to write it in the description and the player has to trigger it manually. Now you can put [[/rollSkill slt]] into the feature's description and this module will turn that into a button that will roll an Slight of Hand check when clicked.

Before and After

Fast Hands before screenshot Fast Hands after screenshot

Usage

If you are familiar with the deferred inline rolls that Foundry supports, then this should look familiar. You write a command inside square brackets that will trigger that command when clicked. You can optionally pass a flavor at the end to override the button text and use as flavor text when rolled.

General Syntax: [[/<roll-mode><command> <command arguments>]]{<flavor>}

Skill Command

This command will trigger a skill check for the currently-selected tokens. The command requires the skill ID (the short, 3-letter code) for the skill you want to roll. You can find the skill IDs by typing CONFIG.DND5E.skills into the browser's console.

Example: [[/rollSkill ath]] to make an Athletics check

Ability Command

This command will trigger an ability check for the currently-selected tokens. The command requires the ability ID (the short, 3-letter code) for the ability check you want to roll. You can find the ability IDs by typing CONFIG.DND5E.abilities into the browser's console.

Example: [[/rollAbility str]] to make a Strength ability check

Save Command

This command will trigger a saving throw for the currently-selected tokens. The command requires the ability ID (the short, 3-letter code) for the saving throw you want to roll. You can find the ability IDs by typing CONFIG.DND5E.abilities into the browser's console.

Example: [[/rollSave dex]] to make a Dexterity saving throw

Item Command

This command will use an item that the selected token has. The command requires the name of the item you want to use and only supports the roll Roll Mode.

Example: [[/rollItem Dagger]] to use a Dagger

Roll Modes

In additon to the regular /roll that uses the current roll mode at the bottom of the chat log, you can explicitly make the button perform other roll modes using their syntax. Useful if you want to prompt players to make a blind roll so only the GM sees the result by using /blindroll. More information on roll modes can be found on the Basic Dice Foundry KB article.

Example: [[/gmrSkill ath]] for a GM Roll or [[/srSkill ath]] for a Self Roll

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x