torre-combat-engine

Implement a deterministic DnD 5e combat engine for TORRE with seeded RNG.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/lfggarcia/dnd-app --skill torre-combat-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: torre-combat-engine
Source: https://github.com/lfggarcia/dnd-app/tree/main/.github/skills/torre-combat-engine
Command: npx skills add https://github.com/lfggarcia/dnd-app --skill torre-combat-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The combat engine provides a complete, deterministic framework for DnD 5e combat in TORRE, including formulas, file references, and a defined battle flow to ensure consistent outcomes during battles.

Core Features & Use Cases

  • Exact initiative, attack, and damage calculations with seeded RNG for reproducible replays.
  • Clear integration guidance for BattleScreen, ReportScreen, and the dungeon loop.
  • Data models and utilities to support end-to-end combat from setup to victory/defeat.

Quick Start

Follow this guide to implement the combat loop and battle flow for TORRE by wiring the BattleScreen, ReportScreen, and related services to the formulas and data models described.

Frequently Asked Questions about torre-combat-engine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is a deterministic DnD 5e combat engine and when do I need one?

A deterministic DnD 5e combat engine provides a complete framework for exact initiative, attack, and damage calculations using seeded RNG. You need it to ensure consistent, reproducible battle outcomes and replays across your game loop.

How do I implement a DnD 5e battle loop with initiative, attacks, and damage?

To implement a DnD 5e battle loop, wire your BattleScreen, ReportScreen, and related services to the predefined combat formulas, data models, and AI behavior logic. This integration handles the end-to-end flow from setup to victory or defeat.

Does this combat engine support seeded RNG for reproducible replays?

Yes, the combat engine supports seeded RNG for reproducible replays. This deterministic approach ensures that initiative rolls, attack calculations, and damage outputs remain exactly consistent across multiple battle executions.

Can I use this combat engine for dungeon battle loops and report screens?

Yes, you can use this combat engine for dungeon battle loops and report screens. The framework provides clear integration guidance for wiring BattleScreen, ReportScreen, and dungeon loop services to support end-to-end combat functionality.

What's the best way to define data models for DnD 5e combat calculations?

The best way to define data models for DnD 5e combat is to use the core formulas and utilities provided by the engine. These models support end-to-end combat calculations, ensuring accurate damage computation and AI behavior integration.