Latest version | 12.1.1 |
---|---|
Minimum Core | 12 |
Compatible Core | 12 |
Last updated | 8 months ago |
Created | 2 years ago |
Authors |
|
Languages |
English Português (Brasil) |
Systems | All systems |
Project source | Project URL |
A module that allows users to embed macros directly into effects. These macros are then called automatically when the appropriate trigger happens. The options are:
An effect can have a macro of any of these types, not just one. There is also the static 'never' type meant for being explicitly called by other scripts. This type is never called automatically.
Macros are added in the ActiveEffect config. Selecting the type of trigger and clicking 'Add Macro' (or 'Edit Macro' for an existing macro) opens a macro editor. When an embedded macro is triggered, it is executed for the owner of the actor who has the effect. If no such owner, then it is executed as if by the GM.
The module will automatically iterate over all effects that currently affect the actor.
By default, these variables are pre-defined in any effect macro.
effect
: The effect itself.actor
: The actor who owns the effect (even if the effect is on an item). If no actor, then null
.character
: The user's assigned actor. If no assigned actor, then null
.token
: If the actor is synthetic (unlinked), then token
is the is the token placeable on the actor's scene, otherwise the first token found on the currently viewed scene belonging to actor
. If none found, then null
.scene
: The scene on which token
is embedded. If there is no token, then the currently active scene is used. If no scene, then null
.origin
: The document that ActiveEffect#origin
points to. If no such thing, then null
.speaker
: The 'speaker' object normally used in chat messages, speaking as the actor
if they exist.item
: If the effect is on an item and not an actor, this is that, otherwise null
.Additionally, the module has a small api and system-specific triggers. See the readme on github for details.
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: effectmacro 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.