Foundry community-contributed macros are noted here and merged into the Foundry Community Macros module for ease of use.
Macros may cause unintended side effects, such as issues with performance. Please read the comments in each macro to understand how it works before running!
It's always easiest to install modules from the in game add-on browser.
To install this module manually:
- Inside the Foundry "Configuration and Setup" screen, click "Add-on Modules"
- Click "Install Module"
- In the "Manifest URL" field, paste the following url:
https://raw.githubusercontent.com/foundry-vtt-community/macros/master/module.json
- Click 'Install' and wait for installation to complete
- Don't forget to enable the module in game using the "Manage Module" button
As GM go to the Manage Modules options menu in your World Settings tab then enable the Foundry Community Macros module.
This module adds all of the community macros as a Compendium Packs called FVTT Community Macros.
You can open these packs, right click and click on import the macros you want. You can then add these macros to the Macro Toolbar at the bottom of the screen.
- Download the
.js
file to your machine - Create a new macro in Foundry VTT
- Give it a name and set the Type to "Script"
- Use a text editor, such as Notepad or vscode, to open the download
.js
file and copy the contents - Paste the contents into the Command section of the new macro
- Click "Save Macro"
- Celebrate π
To clone this repository, along with every macro in it, use the following command:
git clone https://github.com/foundry-vtt-community/macros.git
You can make pull requests to add or update macros here: https://github.com/foundry-vtt-community/macros/pulls
- Navigate to the directory where you wish to add your file
- Click on add file at the top
- Name your file with a
.js
ending and paste your content and save (add details in the description field of your.js
file) - Save the file and then open a pull request (GitHub should walk you through these steps)
To simplify the creation of packs with a github action activate during the creaion of the release we can use this method:
- Go under a macros folder like
5e
- Choose a macro like
stealth_check.js
an create a new json file with the same base namestealth_check.json
- Prepare a json structure for your macro entry:
Here a json example:
{
"name":"Stealth Check",
"permission":{"default":0 },
"type":"script",
"flags":{},
"scope":"global",
"command":"", // HERE IS WHERE THE ACTION PROCESS WILL PUT THE TEXT OF THE MACRO
"author":"",
"img":"icons/svg/dice-target.svg",
"actorIds":[],
"_id":"2RitOkKtnQe9pbuF" // THIS IS OPTIONAL BUT ESSENTIAL IF YOU WANT TO MAINTAIN THE REFERENCE OR NEDB WILL CREATE A NEW ONE
}
Point 2 and 3 are optional if no javascript file is founded we use the generic json model generic_macro.json
, the '_id' attribute will be generated from the nedb library, here the example:
{
"name": "<NAME OF THE FILE MACRO JAVASCRIPT>",
"permission":{"default":0 },
"type":"script",
"flags":{},
"scope":"global",
"command":"", // HERE IS WHERE THE ACTION PROCESS WILL PUT THE TEXT OF THE MACRO
"author":"",
"img":"icons/svg/dice-target.svg",
"actorIds":[]
}
- Kekilla0 Personal-Macros
- Otigon Foundry-Macros
- MisterHims DnD5e-WildShape-Macro
- Crymic foundry-vtt-macros
- Rinnocenti Personal-Macros
- VanceCole macros
- Unsoluble fvtt-macros
- flamewave000 fvtt-macros
- itamarcu foundry-macros
- itamarcu shemetz-macros
- trioderegion fvtt-macros
- theripper93 FoundryVTT-Macro
- Freeze020 foundry-vtt-scripts
- Jeznar Utility-Macros
- Kuffeh1 Foundry
- caewok Foundry-Macros
- GeneralZero FounderyMacros
- JamesBrandts FoundryVTT Macro
npm install
will build the code and copy all necessary assets into the dist folder and make a symlink to install the result into your foundry data; create a
foundryconfig.json
file with your Foundry Data path.
{
"dataPath": "~/.local/share/FoundryVTT/"
}
build
will build and set up a symlink between dist
and your dataPath
.
npm run-script build
You don't need to build the foundryconfig.json
file you can just copy the content of the dist
folder on the module folder under modules
of Foundry
build:watch
will build and watch for changes, rebuilding automatically.
npm run-script build:watch
clean
will remove all contents in the dist folder (but keeps the link from build:install).
npm run-script clean
lint
launch the eslint process based on the configuration here
npm run-script lint
lintfix
launch the eslint process with the fix argument
npm run-script lintfix
prettier-format
launch the prettier plugin based on the configuration here
npm run-script prettier-format
package
generates a zip file containing the contents of the dist folder generated previously with the build
command. Useful for those who want to manually load the module or want to create their own release
npm run-script package
Any issues, bugs, or feature requests are always welcome to be reported directly to the Issue Tracker, or using the Bug Reporter Module.
This Foundry VTT module is licensed under a Creative Commons Attribution 4.0 International License and the Foundry Virtual Tabletop Limited License Agreement for module development.