Register

yugen-criticals

An Add-on Module for Foundry Virtual Tabletop

Author: yugen. Project: Source Foundry Versions 13.351 to 14.364 (Verified 14.364) Last Updated 1 week ago

yugen-criticals

Watch the demo
Click here for video demonstration


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.

In 1.0.12, this can occur for finishers as well.

Watch the demo
Finishers demonstration.

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

Categories

Available Versions

  1. Version 1.0.14

    1 week ago
    Foundry Version 13.351 - 14.364 (Verified 14.364) Manifest URL Read Notes
  2. Version 1.0.13

    1 week, 2 days ago
    Foundry Version 13.351 - 14.364 (Verified 14.364) Manifest URL Read Notes
  3. Version 1.0.12

    1 week, 3 days ago
    Foundry Version 13.351 - 14.364 (Verified 14.364) Manifest URL Read Notes
  4. Version 1.0.11

    1 week, 5 days ago
    Foundry Version 13.351 - 14.364 (Verified 14.364) Manifest URL Read Notes
  5. Version 1.0.10

    2 weeks, 1 day ago
    Foundry Version 13.351 - 14.364 (Verified 14.360) Manifest URL Read Notes
  6. Version 1.0.9

    3 weeks ago
    Foundry Version 13.351 - 14.364 (Verified 14.360) Manifest URL Read Notes
  7. Version 1.0.8

    3 weeks, 4 days ago
    Foundry Version 13.351 - 14.364 (Verified 14.360) Manifest URL Read Notes
  8. Version 1.0.7

    3 weeks, 5 days ago
    Foundry Version 13.351 - 14.360 (Verified 14.360) Manifest URL Read Notes
  9. Version 1.0.6

    1 month, 1 week ago
    Foundry Version 13.351 - 14.360 (Verified 14.360) Manifest URL Read Notes
  10. Version 1.0.5

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

    2 months ago
    Foundry Version 13.351 - 14.360 (Verified 14.360) Manifest URL Read Notes
  12. Version 1.0.3

    2 months ago
    Foundry Version 13.351 - 14.360 (Verified 14.360) Manifest URL Read Notes
  13. Version 1.0.2

    2 months, 3 weeks ago
    Foundry Version 14.360 - 14.360 (Verified 14.360) Manifest URL Read Notes
  14. Version 1.0.1

    2 months, 3 weeks ago
    Foundry Version 14.360 - 14.360 (Verified 14.360) Manifest URL Read Notes