Skip to content

v1.0.2 - Data Extraction Fix & World Context

Choose a tag to compare

@MathieuDR MathieuDR released this 01 Sep 00:22
· 9 commits to main since this release
3bf6563

FoundryVTT Event Hooker v1.0.2

Critical patch fixing data extraction and adding world context for multi-game setups.

馃敡 Bug Fixes

  • Fixed data extraction: Corrected hook argument parsing to match actual FoundryVTT structure
  • Actor data now working: Properly extract actor information from context.subject
  • Roll data now populated: Fixed roll parsing to get totals, formulas, and dice results

馃啎 New Features

  • World Context: Every event now includes world information for multi-game differentiation:
    • World ID and title (e.g., "Curse of Drakkenheim")
    • System information (dnd5e version)
    • Enables proper campaign separation on API side

馃搳 Expected Event Structure

Events now properly contain meaningful data:

{
  "event": "dnd5e.rollSkill",
  "timestamp": 1756684675516,
  "world": {
    "id": "my-campaign",
    "title": "Curse of Drakkenheim", 
    "system": "dnd5e",
    "systemVersion": "5.1.1"
  },
  "actor": {
    "id": "...",
    "name": "Character Name",
    "type": "character"
  },
  "roll": {
    "total": 13,
    "formula": "1d20 + 4 + 2",
    "dice": [{"faces": 20, "results": [7]}]
  },
  "context": {
    "skill": "per"
  }
}

Installation

Use this manifest URL in FoundryVTT's module installer:

https://github.com/MathieuDR/foundry-event-hooker/releases/latest/download/module.json

Compatibility

  • FoundryVTT v11+
  • D&D 5e System