Resources

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.

100 Combat Systems resources for MUD players illustration
Placeholder illustration shown while custom artwork is being produced.

Damage Formula Design & Math

  1. 1

    Flat vs. Percentage Armor Mitigation

    intermediatehigh

    Implement flat reduction for early-game tanking and percentage-based mitigation for late-game scaling to prevent stat overflow in high-level encounters.

  2. 2

    Diku-style Dice Rolling (NdS+M)

    beginnerstandard

    Use the Number of Dice (N), Sides (S), and Modifier (M) system to create controlled randomness in weapon damage outputs.

  3. 3

    Logarithmic Stat Scaling

    advancedhigh

    Apply logarithmic curves to attributes like Strength or Agility to ensure that diminishing returns prevent single-stat 'god-builds'.

  4. 4

    Normalized Weapon Speeds

    intermediatemedium

    Adjust damage per hit based on weapon delay to ensure daggers and two-handed axes maintain comparable Damage Per Second (DPS).

  5. 5

    To-Hit Probability Matrices

    intermediatehigh

    Calculate hit chance using (Attacker Accuracy / (Attacker Accuracy + Defender Evasion)) to avoid the '100% miss' or '100% hit' plateaus.

  6. 6

    Elemental Resistance Tables

    beginnermedium

    Implement a bitvector or array-based lookup for damage types (Fire, Cold, Electric) to allow for tactical gear swapping.

  7. 7

    Critical Hit Multipliers

    beginnerstandard

    Define a base crit multiplier (e.g., 1.5x) and allow specific skills or gear to modify the multiplier rather than just the frequency.

  8. 8

    Mana-to-Damage Efficiency Ratios

    intermediatemedium

    Benchmark spell costs by calculating Damage Per Mana (DPM) to ensure high-tier spells are worth the resource expenditure.

  9. 9

    Level-Gap Penalties

    beginnerstandard

    Introduce a scalar multiplier that reduces damage dealt to mobs significantly higher level than the player to enforce progression gates.

  10. 10

    Health-Percentage Execution Logic

    intermediatemedium

    Code specific damage bonuses for when a target is below 20% health to create 'finisher' mechanics for specific classes.

Active Combat & Skill Mechanics

  1. 1

    Global Cooldown (GCD) Implementation

    intermediatehigh

    Add a short, universal delay (e.g., 1.0s) between all active skills to prevent macro-based input flooding.

  2. 2

    Stance-Based Combat States

    intermediatemedium

    Create 'Offensive', 'Defensive', and 'Balanced' stances that modify hit chance and damage intake variables in real-time.

  3. 3

    Interruptible Cast Times

    advancedhigh

    Implement a 'casting' state that can be broken by 'bash' or 'silence' effects, adding a layer of tactical timing to combat.

  4. 4

    Skill Chain/Combo Systems

    advancedhigh

    Use a state machine to track the last used skill; if 'Skill B' follows 'Skill A' within 5 seconds, apply a 20% damage bonus.

  5. 5

    Positional Requirements

    intermediatemedium

    Restrict certain skills (like Backstab) to only function when the player is not the primary target in the mob's hate list.

  6. 6

    Resource Depletion (Stamina/Vigor)

    beginnerstandard

    Link physical skills to a stamina pool that regenerates slower than mana to limit sustained physical burst damage.

  7. 7

    Damage-over-Time (DoT) Tick Logic

    intermediatemedium

    Separate DoT processing from the main combat round to allow bleeds and poisons to tick independently of attack speed.

  8. 8

    Active Parrying and Blocking

    intermediatemedium

    Implement 'active' versions of passive defenses that consume a turn or resource but guarantee a mitigation event.

  9. 9

    Area of Effect (AoE) Target Caps

    beginnerstandard

    Limit AoE skills to a maximum of 5 targets to prevent players from clearing entire zones with single high-level spells.

  10. 10

    Reactive Counter-Attacks

    advancedmedium

    Code a 'Riposte' flag that triggers a free attack immediately after a successful parry or dodge event.

State Management & Logic Hooks

  1. 1

    Threat/Hate List Management

    advancedhigh

    Implement a dynamic array for each mob that tracks damage dealt by players to determine the current primary target.

  2. 2

    Flee Success Calculations

    beginnerstandard

    Base flee success on (Player Dexterity vs Mob Agility) and apply a 'wimpy' HP threshold for automated fleeing.

  3. 3

    Stun Diminishing Returns

    advancedhigh

    Track 'recent crowd control' timestamps on mobs to reduce the duration of subsequent stuns, preventing infinite stun-locking.

  4. 4

    Combat Round Heartbeat

    intermediatemedium

    Standardize combat pulses (e.g., every 2 seconds) while allowing 'Haste' or 'Slow' buffs to modify individual pulse intervals.

  5. 5

    Experience Point Distribution Logic

    intermediatestandard

    Calculate XP based on the percentage of total damage dealt by each party member to prevent 'power-leveling' by idle players.

  6. 6

    Corpse and Loot Generation Hooks

    beginnerstandard

    Trigger a 'die' function that handles inventory transfer to a corpse object and updates quest flags simultaneously.

  7. 7

    Combat Messaging Buffer

    intermediatehigh

    Group multiple small hits into a single output string (e.g., 'You hit 3 times for 45 damage') to reduce screen scroll/spam.

  8. 8

    PvP Flagging and Timers

    beginnermedium

    Implement a 'combat' state that prevents logging out or entering 'safe' rooms for 30 seconds after the last aggressive action.

  9. 9

    Equipment Durability Degradation

    beginnerstandard

    Apply a 0.1% chance for armor to lose durability on every hit taken, creating a gold sink for high-level players.

  10. 10

    Environmental Hazard Integration

    intermediatemedium

    Allow room-based scripts to inject damage into the combat loop (e.g., 'The lava room deals 10 fire damage per round').