Latest version | 1.11.1 |
---|---|
Minimum Core | 11 |
Compatible Core | 11.315 |
Last updated | 29 minutes ago |
Created | 4 years ago |
Authors |
|
Languages |
English |
Systems |
Dnd5e Sfrpg Swade Dungeonworld Ose Demonlord Worldbuilding |
Project source | Project URL |
Report bugs | Bug tracker URL |
Read-me | Readme URL |
Changelog | Changelog URL |
This FoundryVTT module allows macros to be saved inside of an item and for various different ways to execute them.
You can execute the macro from the "item" class using the executeMacro(...args)
function, from the character sheet (if the settings are satisfied to do so), from the hotbar using the default rollItemMacro
function for your system (if the settings are satisfied to do so), or from token-action-hud.
Please note that if your system is not on this list, you can still save and run macros on the item and you can use all API functions to access and execute those macros programatically!
Once activated, open an Item Sheet, click on the Item Macro button to open the Macro window.
Various different settings will change the way Item Macro interacts with the game server.
With no settings enabled, you can still execute the macro that is saved in the item, perfect for macros!
Added context menu support allowing GM users to mass update item-macros on like named items throughout the game! (the context menu is on items in the game directory, will update all item-macros in the item-directory, actor items, and token items)
Item.hasMacro()
=> returns boolean on if the item has a macro commandItem.getMacro()
=> returns Macro instance, if the item has a macro commandItem.setMacro(Macro)
=> overwrites and saves given Macro to the ItemItem.executeMacro(...args)
=> executes Macro command, giving item
, speaker
, actor
, token
, character
, and event
constants. This is recognized as the macro itself. Pass an event as the first argument.For questions, feature requests, or bug reports, feel free to contact me on the Foundry Discord (forien
) or open an issue here directly.
You are also welcome to join my Discord where you can talk about this and other Foundry modules.
If you wish to support module's development, please consider becoming my Patreon or donating through Paypal or Ko-Fi. Thanks!
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: itemacro 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.