Latest version | v2.0.0 |
---|---|
Minimum Core | 9 |
Compatible Core | 9 |
Last updated | 4 days ago |
Created | 2 years ago |
Authors |
|
Languages |
English Français (French) Português (Brasil) polski 中文 (Chinese) |
Systems | All systems |
Project source | Project URL |
Report bugs | Bug tracker URL |
Read-me | Readme URL |
Changelog | Changelog URL |
Enhance the utility of your macros.
Check out the Macros compendium for some useful macros that showcase the advanced macros system as well as provide additional features.
In the case of chat macros, you can now use handlebars templating to render your chat text using common helpers, or use it along with the macro helper to call other macros, for example {{macro "name of my macro" actor 3 "a text argument"}}
In the case of script macros, you can now use a return statement for the early return paradigm, but also to return a string which can then be used in chat macros. You will also be able to receive arguments via an array named args.
Do note that if you create an async macro, it cannot be used to return text in a chat macro when using the {{macro}}
helper. It will still be executed if used, but will be considered to have returned an empty string. If you want to use an async macro that prints its results to chat, read further for the use of recursive async chat commands.
Besides those two enhancements to macros, you can now also create a temporary chat macro with handlebars templating directly from the chat entry, by entering text in the chat that includes the handlebars mustache characters {{ }}
. You will also be able to call your macro directly from chat with the /
prefix. As an example, you can send in the chat /my-macro-name argument1 argument2 argument3
. If your macro name has spaces in it, you can call it with /"My macro name" "argument one" 100
for example. You can also call multiple macros by writing them one per line.
In addition, you can now recursively call macros, so you could call a script or chat macro which returns a /macro-name text
for it to call the macros recursively.
If you're using this module just to call simple script macros without arguments directly from chat, consider the Core Foundry /macro macro-name
command.
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: advanced-macros 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.