🛡️ Mod-Engine Interactive Demo

Explore the power of the mod-engine library with this interactive RPG item builder. Create items, apply modifiers with conditions, and see real-time evaluation results.

🚀 Quick Start Guide

1

Configure Item

Set item name, rarity, level, and attributes

2

Add Modifiers

Create modifiers with operations, conditions, and priorities

3

Evaluate

See the final metrics and applied modifiers

⚡ Type Safety

Full TypeScript support with autocomplete and validation

🔧 Custom Operations

Build with core operations: sum, subtract, multiply

🎯 Conditional Logic

Apply modifiers based on item attributes

📊 Deterministic

Predictable evaluation with priority ordering

Item Configuration

Modifiers

Modifier

Modifier

Condition

Legendary Sword

Epic
Level:50
Quality:85%
Sockets:○○●●●●
✨ Enchanted
Tags:
Weapon

Configure modifiers and click "Build & Evaluate" to see this item's final stats

📊 Final Metrics

❤️Health
10
💪Strength
10
Speed
10
🔮Mana
10
⚔️Damage
10
🛡️Defense
10

📚 Learn More

Example Use Cases

  • • RPG item systems with enchantments
  • • Equipment upgrade mechanics
  • • Buff/debuff systems in games
  • • Configuration-driven rule engines

Key Concepts

  • Metrics: The values being modified
  • Operations: How modifications are applied
  • Conditions: When modifiers should apply
  • Stacking: How multiple modifiers combine