Register

Drop Effects on Items

An Add-on Module for Foundry Virtual Tabletop

Author: Calego Project Source: Project URL Versions 10+ (Verified 10) Last Updated 1 year, 8 months ago

This module allows active effects to be dragged and dropped to and from Item Sheets.

With it enabled, creating duplicate effects between different items (e.g. "Poisoned" for various weapons or spells which inflict that condition) is as simple as dragging and dropping from one to the next.

It also allows the application of an Item's Effects onto actors from the item sheet directly.

Compatibility

Tested with dnd5e, might work on other systems as well though.

Technical Details

The module uses the renderItemSheet hook to bind a DragDrop instance with callbacks that expect/conform to the data model used by ActorSheet's ActiveEffect drag and drop handlers (ActorSheet._onDropActiveEffect). This consists roughly of a dataTransfer object that looks like this:

{
  type: "ActiveEffect",
  uuid: string }

Categories

Available Versions

  1. Version 2.0.1

    1 year, 8 months ago
    Foundry Version 10+ (Verified 10) Manifest URL Read Notes
  2. Version 2.0.0

    Foundry Version 10+ (Verified 10) Manifest URL Read Notes
  3. Version 1.0.0

    Foundry Version 0.8.9+ (Verified 9) Manifest URL Read Notes