🎲 ModifierCalculator

Game-agnostic modifier calculator for any RPG system

Try It Out

See how modifiers combine in real-time

Features

🎯

Game-Agnostic

Works with D&D, Pathfinder, Call of Cthulhu, FATE, and any RPG system

📊

Visual Breakdown

See exactly where each modifier comes from with detailed breakdowns

🔧

Configurable Stacking

Support for all-stack, typed bonuses, or highest-only rules

Reactive

Auto-updates when modifiers change with Vue 3 reactivity

🎨

Customizable

CSS variables for complete color customization

🔌

Flexible Output

Display as numeric totals or dice notation formulas

⏱️

Temporary Modifiers

Track buffs and debuffs separately with visual highlighting

📱

Responsive

Mobile-friendly design that works on any device

🎮

Interactive Mode

Allow players to add and remove modifiers dynamically

Installation

Vue Component

Ready-to-use Vue 3 component for modifier calculations

npm install @modifier-calculator/vue

Usage:

<template>
  <VModifierCalculator
    :modifiers="modifiers"
    show-breakdown
    @update:total="handleUpdate"
  />
</template>

<script setup>
import { ref } from 'vue';
import { VModifierCalculator } from '@modifier-calculator/vue';

const modifiers = ref([
  { id: '1', label: 'Strength', value: 3, type: 'base' },
  { id: '2', label: 'Proficiency', value: 3, type: 'training' },
  { id: '3', label: 'Magic Weapon', value: 1, type: 'bonus' }
]);
</script>