Register

Effect Macro

An Add-on Module for Foundry Virtual Tabletop

Author: Zhell Project Source: Project URL Versions 11 - 11 (Verified 11) Last Updated 2 months, 1 week ago

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.

How to

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.

Script Helpers

By default, these variables are pre-defined in any effect macro.

Added functions

A set of async functions have been added to active effects.

System Specific Triggers

The module works in every system that has Active Effect support, however it can leverage system-specific hooks as well, if added. These are the system-specific hooks added so far:

Categories

Available Versions

  1. Version 11.2.2

    2 months, 1 week ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  2. Version 11.2.1

    2 months, 1 week ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  3. Version 11.1.0

    3 months, 1 week ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  4. Version 11.0.3

    6 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  5. Version 11.0.2

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  6. Version 11.0.1

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  7. Version 11.0.0

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  8. Version 10.0.15

    Foundry Version 10 - 10 (Verified 10.291) Manifest URL Read Notes
  9. Version 1.0.1

    Foundry Version 9 - 9 (Verified 9) Manifest URL Read Notes