100 Combat Systems resources for MUD players
This resource provides technical frameworks and design patterns for building robust combat systems in text-based environments. It covers mathematical balancing, state management for active combat, and implementation strategies for legacy and modern MUD engines.

Damage Formula Design & Math
- 1
Flat vs. Percentage Armor Mitigation
intermediatehighImplement flat reduction for early-game tanking and percentage-based mitigation for late-game scaling to prevent stat overflow in high-level encounters.
- 2
Diku-style Dice Rolling (NdS+M)
beginnerstandardUse the Number of Dice (N), Sides (S), and Modifier (M) system to create controlled randomness in weapon damage outputs.
- 3
Logarithmic Stat Scaling
advancedhighApply logarithmic curves to attributes like Strength or Agility to ensure that diminishing returns prevent single-stat 'god-builds'.
- 4
Normalized Weapon Speeds
intermediatemediumAdjust damage per hit based on weapon delay to ensure daggers and two-handed axes maintain comparable Damage Per Second (DPS).
- 5
To-Hit Probability Matrices
intermediatehighCalculate hit chance using (Attacker Accuracy / (Attacker Accuracy + Defender Evasion)) to avoid the '100% miss' or '100% hit' plateaus.
- 6
Elemental Resistance Tables
beginnermediumImplement a bitvector or array-based lookup for damage types (Fire, Cold, Electric) to allow for tactical gear swapping.
- 7
Critical Hit Multipliers
beginnerstandardDefine a base crit multiplier (e.g., 1.5x) and allow specific skills or gear to modify the multiplier rather than just the frequency.
- 8
Mana-to-Damage Efficiency Ratios
intermediatemediumBenchmark spell costs by calculating Damage Per Mana (DPM) to ensure high-tier spells are worth the resource expenditure.
- 9
Level-Gap Penalties
beginnerstandardIntroduce a scalar multiplier that reduces damage dealt to mobs significantly higher level than the player to enforce progression gates.
- 10
Health-Percentage Execution Logic
intermediatemediumCode specific damage bonuses for when a target is below 20% health to create 'finisher' mechanics for specific classes.
Active Combat & Skill Mechanics
- 1
Global Cooldown (GCD) Implementation
intermediatehighAdd a short, universal delay (e.g., 1.0s) between all active skills to prevent macro-based input flooding.
- 2
Stance-Based Combat States
intermediatemediumCreate 'Offensive', 'Defensive', and 'Balanced' stances that modify hit chance and damage intake variables in real-time.
- 3
Interruptible Cast Times
advancedhighImplement a 'casting' state that can be broken by 'bash' or 'silence' effects, adding a layer of tactical timing to combat.
- 4
Skill Chain/Combo Systems
advancedhighUse a state machine to track the last used skill; if 'Skill B' follows 'Skill A' within 5 seconds, apply a 20% damage bonus.
- 5
Positional Requirements
intermediatemediumRestrict certain skills (like Backstab) to only function when the player is not the primary target in the mob's hate list.
- 6
Resource Depletion (Stamina/Vigor)
beginnerstandardLink physical skills to a stamina pool that regenerates slower than mana to limit sustained physical burst damage.
- 7
Damage-over-Time (DoT) Tick Logic
intermediatemediumSeparate DoT processing from the main combat round to allow bleeds and poisons to tick independently of attack speed.
- 8
Active Parrying and Blocking
intermediatemediumImplement 'active' versions of passive defenses that consume a turn or resource but guarantee a mitigation event.
- 9
Area of Effect (AoE) Target Caps
beginnerstandardLimit AoE skills to a maximum of 5 targets to prevent players from clearing entire zones with single high-level spells.
- 10
Reactive Counter-Attacks
advancedmediumCode a 'Riposte' flag that triggers a free attack immediately after a successful parry or dodge event.
State Management & Logic Hooks
- 1
Threat/Hate List Management
advancedhighImplement a dynamic array for each mob that tracks damage dealt by players to determine the current primary target.
- 2
Flee Success Calculations
beginnerstandardBase flee success on (Player Dexterity vs Mob Agility) and apply a 'wimpy' HP threshold for automated fleeing.
- 3
Stun Diminishing Returns
advancedhighTrack 'recent crowd control' timestamps on mobs to reduce the duration of subsequent stuns, preventing infinite stun-locking.
- 4
Combat Round Heartbeat
intermediatemediumStandardize combat pulses (e.g., every 2 seconds) while allowing 'Haste' or 'Slow' buffs to modify individual pulse intervals.
- 5
Experience Point Distribution Logic
intermediatestandardCalculate XP based on the percentage of total damage dealt by each party member to prevent 'power-leveling' by idle players.
- 6
Corpse and Loot Generation Hooks
beginnerstandardTrigger a 'die' function that handles inventory transfer to a corpse object and updates quest flags simultaneously.
- 7
Combat Messaging Buffer
intermediatehighGroup multiple small hits into a single output string (e.g., 'You hit 3 times for 45 damage') to reduce screen scroll/spam.
- 8
PvP Flagging and Timers
beginnermediumImplement a 'combat' state that prevents logging out or entering 'safe' rooms for 30 seconds after the last aggressive action.
- 9
Equipment Durability Degradation
beginnerstandardApply a 0.1% chance for armor to lose durability on every hit taken, creating a gold sink for high-level players.
- 10
Environmental Hazard Integration
intermediatemediumAllow room-based scripts to inject damage into the combat loop (e.g., 'The lava room deals 10 fire damage per round').