oasis-b

Docs / Battle system

LW_DamageSteps

Battle system
RPG Maker MV and MZ damage formula and damage cap plugin

Damage in clear steps, damage and healing caps, formulas over many lines, minimum damage and flat bonuses.

Battle Essentials ($9.99)Full Collection ($19.99)

Needs LW_Core (LWZ_Core in MZ) above all Living World plugins in the Plugin Manager. It's included in every pack.

LW_DamageSteps in a test project

Damage worked out in clear steps.

Highlights

Ideas for your game

Works well with

LW_ElementRulesLW_HitFormulaLW_EnemyScaling

Introduction

Requires LW_Core.

Damage is worked out in fixed steps. Each step is its own function on Game_Action, so other plugins can hook into exactly the part they need:

 1. evalDamageFormula        base damage from the formula
 2. modifyBaseDamage         free for other plugins
 3. calcElementRate          element rate
 4. modifyCritical           is it critical?
 5. applyDamageRate          free for other plugins
    applyHealRate            recovery effect rate (REC)
 6. applyCriticalRate        critical rate
 7. applyPhysicalRate        physical damage rate (PDR), physical only
    applyFlatPhysical        flat physical bonus and defense
 8. applyMagicalRate         magical damage rate (MDR), magical only
    applyFlatMagical         flat magical bonus and defense
 9. applyFlatDamage, applyFlatHeal, applyFlatGlobal
10. variance, guard, Last Step Code, minimum damage, caps

Notetags (Actor, Class, Weapon, Armor, State, Enemy)

<LW Damage Cap: 99999>       own damage cap, the highest one counts
<LW Heal Cap: 50000>         own healing cap

Flat bonus to what this battler deals:

<LW Physical Damage: +50>    <LW Magical Damage: -20>
<LW Flat Damage: +10>        <LW Flat Heal: +30>

Flat reduction of what this battler takes:

<LW Physical Defense: +50>   <LW Magical Defense: +20>

Skill and Item Notetags

<LW No Damage Cap>           no cap for this action
<LW Damage Cap: 50000>       cap for this action only
<LW Heal Cap: 50000>
<LW Damage Formula>
value = a.atk * 4 - b.def * 2;
if (b.isStateAffected(4)) value *= 2;
</LW Damage Formula>
    used instead of the formula in the database. For healing, keep
    value positive, the damage type sets the sign. a, b, v(n), s(n),
    item, user and target can be used.

Terms of Use

See TERMS_OF_USE.txt in the download. Short version: use it in as many of your own games as you like, free or commercial. Edit it for your game, but keep this header. Don't share or resell the plugin files on their own. Name oasis-b in the credits of your game.

Changelog

Version 1.0.0 - 2026-11-21 - First release.

Introduction

Requires LWZ_Core.

Damage is worked out in fixed steps. Each step is its own function on Game_Action, so other plugins can hook into exactly the part they need:

 1. evalDamageFormula        base damage from the formula
 2. modifyBaseDamage         free for other plugins
 3. calcElementRate          element rate
 4. modifyCritical           is it critical?
 5. applyDamageRate          free for other plugins
    applyHealRate            recovery effect rate (REC)
 6. applyCriticalRate        critical rate
 7. applyPhysicalRate        physical damage rate (PDR), physical only
    applyFlatPhysical        flat physical bonus and defense
 8. applyMagicalRate         magical damage rate (MDR), magical only
    applyFlatMagical         flat magical bonus and defense
 9. applyFlatDamage, applyFlatHeal, applyFlatGlobal
10. variance, guard, Last Step Code, minimum damage, caps

Notetags (Actor, Class, Weapon, Armor, State, Enemy)

<LW Damage Cap: 99999>       own damage cap, the highest one counts
<LW Heal Cap: 50000>         own healing cap

Flat bonus to what this battler deals:

<LW Physical Damage: +50>    <LW Magical Damage: -20>
<LW Flat Damage: +10>        <LW Flat Heal: +30>

Flat reduction of what this battler takes:

<LW Physical Defense: +50>   <LW Magical Defense: +20>

Skill and Item Notetags

<LW No Damage Cap>           no cap for this action
<LW Damage Cap: 50000>       cap for this action only
<LW Heal Cap: 50000>
<LW Damage Formula>
value = a.atk * 4 - b.def * 2;
if (b.isStateAffected(4)) value *= 2;
</LW Damage Formula>
    used instead of the formula in the database. For healing, keep
    value positive, the damage type sets the sign. a, b, v(n), s(n),
    item, user and target can be used.

Terms of Use

See TERMS_OF_USE.txt in the download. Short version: use it in as many of your own games as you like, free or commercial. Edit it for your game, but keep this header. Don't share or resell the plugin files on their own. Name oasis-b in the credits of your game.

Changelog

Version 1.0.0 - First release for MZ.

Get it

LW_DamageSteps is in these packs. Every pack comes as an MV and an MZ download at the same price and needs no other plugin collection. Tested in RPG Maker MV 1.6.2 and MZ 1.10.0 games on Windows, macOS and Linux and in current browsers.

Battle Essentials ($9.99)Full Collection ($19.99)
← LW_HitFormulaLW_Counters →