Register

yugen-criticals

An Add-on Module for Foundry Virtual Tabletop

Author: yugen. Project: Source Foundry Versions 13.351 to 14.360 (Verified 14.360) Last Updated 2 days, 4 hours ago

yugen-criticals

Watch the demo
Click here for video demonstration

Fire Emblem Awakening style critical animations for Foundry VTT v14.


Description

This module adds an overlay animation when a critical hit or natural 1 fumble is made. It brings a JRPG aesthetic to your table. Compatible with D&D 5e and Pathfinder 2e game systems.

Elemental themes are automatically applied based on the damage type. Animations trigger for everyone at the table simultaneously. Quotes and sounds are customizable via actor flags.

You can also make it so that it always appears for you or everyone whenever you attack.

Features

Actor Customization

1. Set Signature Quotes

This replaces the "CRITICAL HIT" or "FUMBLE" text with your custom line. You can provide a single string, a delimiter string, or an array of strings. If multiple quotes are provided, one will be chosen at random for each animation.

const actor = canvas.tokens.controlled[0]?.actor || game.user.character;

// Single quote
await actor.setFlag('yugen-criticals', 'crit-quote', "Pick a god and pray!");

// Multiple quotes (Array)
await actor.setFlag('yugen-criticals', 'crit-quote', [
  "Pick a god and pray!",
  "My sword hand hungers!",
  "This ends now!"
]);

// Multiple quotes (| Delimiter)
await actor.setFlag('yugen-criticals', 'fumble-quote', "I miscalculated... | Not like this... | How could I fail?");
 

2. Set Custom Sounds

Supports single files, delimited strings, or arrays for random playback.

const actor = canvas.tokens.controlled[0]?.actor || game.user.character;

// Multiple sounds (Array or Delimited)
await actor.setFlag('yugen-criticals', 'crit-sound', "sounds/crit1.ogg|sounds/crit2.ogg");
await actor.setFlag('yugen-criticals', 'fumble-sound', ["sounds/fail1.ogg", "sounds/fail2.ogg"]);
 

3. Reset to Defaults

const actor = canvas.tokens.controlled[0]?.actor || game.user.character;
await actor.unsetFlag('yugen-criticals', 'crit-quote');
await actor.unsetFlag('yugen-criticals', 'fumble-quote');
await actor.unsetFlag('yugen-criticals', 'crit-sound');
await actor.unsetFlag('yugen-criticals', 'fumble-sound');
 

Macro Configuration

The module automatically creates a script macro named yugen-criticals config in the world's macro collection upon initialization.

Styles

Watch the base styles demo
Click here for base styles video demonstration

Watch the class styles demo
Click here for class-specific styles video demonstration

Available Visual Themes:

Compatibility

Credits

Available Versions

  1. Version 1.0.6

    2 days, 4 hours ago
    Foundry Version 13.351 - 14.360 (Verified 14.360) Manifest URL Read Notes
  2. Version 1.0.5

    5 days, 4 hours ago
    Foundry Version 13.351 - 14.360 (Verified 14.360) Manifest URL Read Notes
  3. Version 1.0.4

    2 weeks, 6 days ago
    Foundry Version 13.351 - 14.360 (Verified 14.360) Manifest URL Read Notes
  4. Version 1.0.3

    3 weeks ago
    Foundry Version 13.351 - 14.360 (Verified 14.360) Manifest URL Read Notes
  5. Version 1.0.2

    1 month, 2 weeks ago
    Foundry Version 14.360 - 14.360 (Verified 14.360) Manifest URL Read Notes
  6. Version 1.0.1

    1 month, 2 weeks ago
    Foundry Version 14.360 - 14.360 (Verified 14.360) Manifest URL Read Notes