Cosmere Useful Macros
This module is a community collection of macro commands that is intended to be used for the Cosmere RPG system on FoundryVTT. This module adds a Macro Compendium with macros that can be added to the FoundryVTT hotbar. Each macro calls functions from the module itself, so once imported, the macros will never need to be re-imported when the module updates.
List of Macros
1. Token Disposition Picker
This macro will change the token disposition of all selected tokens between Neutral, Friendly, or Hostile depending on the option chosen in a pop-up dialog box. If this macro is used on a token from an official Cosmere RPG module, the color of the token ring will change to match the new disposition: gold for Neutral, Blue for Friendly, and red for Hostile.
2. Infuse Dun Spheres
This macro will convert all loot items on a character from Dun Sphere currency (mk ○) to Infused Spheres currency (mk ●) for all selected tokens. For each selected token, a chat message will apear to say whether any dun spheres were infused. This macro will only work when using the Cosmere RPG game system.
3. Mass Invisibility
This macro will add or remove the Invisible condition from all selected tokens.
4. See Invisibility
This macro will enable or disable the See Invisibility vision mode for all selected tokens. When See Invisibility is enabled by this macro, the vision mode of the token is changed to Light Amplification as a visual indicator that the vision mode is enabled.
5. Token Size Picker
This macro will change the token height and token width of all selected tokens depedning on the option chosen in a pop-up dialog box. The options in the dialog box are Medium, Large, Huge, Gargantuan, and Small as the character sizes are defined by the Cosmere RPG.
Contributing
To contribute a macro to this repository:
1. Add the macro code in a function as a seperate `.js` file in the `/macros` folder
2. Add a line to `CUM-index.js` to import the function
3. Add the function to the object in `CUM-index.js` that gets globalized
4. Create a macro in FoundryVTT that calls the function and add it to the module's compendium.