🎲 ActionResolver

Complete action resolution for RPG systems - roll, modify, compare, resolve

Try It Out

Roll an attack against AC 15

Features

🎯

Complete Resolution

Roll dice, apply modifiers, compare to target, and determine outcome - all in one component

🎲

Game-Agnostic

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

📊

Outcome Detection

Automatically detects success, failure, critical success, and critical failure

⚖️

Advantage/Disadvantage

Built-in support for D&D 5e advantage and disadvantage mechanics

📈

Degrees of Success

Configurable for Pathfinder 2e degrees of success and other systems

🔢

Margin Calculation

See by how much you succeeded or failed for narrative effects

📜

Roll History

Track recent rolls with outcomes for reference

🎨

Visual Feedback

Color-coded results with animations for critical hits and fumbles

📱

Mobile-Friendly

Responsive design that works perfectly on phones and tablets

Installation

Vue Component

Ready-to-use Vue 3 component for complete action resolution

npm install @action-resolver/vue

Usage:

<template>
  <VActionResolver
    dice="d20"
    :modifiers="attackModifiers"
    :target="enemyAC"
    show-breakdown
    @success="handleHit"
    @failure="handleMiss"
  />
</template>

<script setup>
import { ref } from 'vue';
import { VActionResolver } from '@action-resolver/vue';

const attackModifiers = [
  { id: '1', label: 'Strength', value: 3 },
  { id: '2', label: 'Proficiency', value: 3 },
  { id: '3', label: 'Magic Weapon', value: 1 }
];

const enemyAC = 18;

function handleHit(result) {
  console.log('Hit!', result);
  // Roll damage...
}

function handleMiss(result) {
  console.log('Miss!', result);
}
</script>