combat-system

Implement Oxidus combat mechanics for NPCs and players in LPC.

8|3|Updated Sep 29, 2021
One-click install
npx skills add https://github.com/gesslar/oxidus-mudlib --skill combat-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: combat-system
Source: https://github.com/gesslar/oxidus-mudlib/tree/main/.claude/skills/combat-system
Command: npx skills add https://github.com/gesslar/oxidus-mudlib --skill combat-system

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Oxidus combat systems can be intricate, making it difficult to implement, debug, and extend every aspect of fighting, defense, and progression without a clear guide.

Core Features & Use Cases

  • Attack loop, hit chance, and damage pipeline coordinating threat tracking and defense/AC.
  • Procs, vitals/regen, death sequence, XP/advancement, NPC combat behavior, and combat memory.
  • NPCs and players can engage in structured combat flows with clear integration points for GMCP events.

Quick Start

Activate the combat-system skill in your LPC environment and reference the Architecture Overview to begin implementing or modifying combat flows.

Frequently Asked Questions about combat-system

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

FAQPage Schema
How do I implement an LPC attack loop and damage pipeline for NPCs?

Implement the LPC attack loop by coordinating hit chance calculations, damage pipelines, and threat tracking within combat.c and body.c modules to structure NPC engagements and process damage outputs.

How does combat memory and threat tracking work in LPC mudlibs?

Combat memory and threat tracking in LPC mudlibs function by maintaining persistent NPC aggro states and target prioritization throughout the engagement loop, ensuring NPCs react dynamically to player actions.

Can I integrate GMCP combat events directly into a mudlib body.c module?

Yes, you can integrate GMCP combat events into body.c by mapping the documented combat mechanics, such as vitals, regen, and attack sequences, to structured GMCP output flows for client communication.

What is the best way to structure NPC vitals, regen, and death sequences in LPC?

Structure NPC vitals, regen, and death sequences by defining health and stamina thresholds, applying regen tick rates via the attack loop, and triggering XP advancement and cleanup upon reaching zero vitals.

Does the LPC combat system support procs and defense AC calculations?

Yes, the LPC combat system supports procs and defense AC calculations by processing armor class mitigation during the damage pipeline and executing special combat procs based on hit success rates.

Why does my NPC combat behavior fail to follow the lpc-coding-style standards?

NPC combat behavior fails lpc-coding-style standards when threat tracking and damage pipeline implementations bypass the required formatting rules, requiring module structure alignment with body.c and npc.c integration points.