oasis-b

Docs / Skills and states

LW_DamageOverTime

Skills and states
RPG Maker MV and MZ damage over time and regeneration plugin

States that hurt or heal at the end of each turn by formula, with variance, element and animation.

Free Battle Pack (free)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_DamageOverTime in a test project

Poison, burn and regen with real formulas.

Highlights

Ideas for your game

Works well with

LW_StateRulesLW_StateVisualsLW_ElementRules

Introduction

Requires LW_Core.

MV's states only hurt or heal by a percent of max HP. With this plugin a state uses a formula like a skill: a poison that grows with the magic of whoever cast it, a burn that counts the fire weakness of the target, a blessing that heals more on a weak hero.

It works in battle, at the end of each turn, on top of the normal HP regeneration. Whether the damage can kill is set in the database like in MV (System, "Floor/slip damage can kill").

State Notetags

<LW DoT: a.mat * 2 - b.mdf>     damage per turn
<LW Regen: b.mhp / 20 + 50>     healing per turn
a = who gave the state, b = who has it, v(n) = variable n.
Without a known giver, for example a state from an event, a is b.
<LW DoT Element: 2>         the element rate of the target counts
<LW DoT Variance: 10>       percent, instead of the parameter
<LW DoT Animation: 59>      animation when it hits
The same with Regen: <LW Regen Element: 5> and so on.

Longer code goes between two tags. Set value, and if you like variance and element:

<LW DoT Code>
value = a.level * 30;
if (b.isStateAffected(10)) value *= 2;
</LW DoT Code>

Formulas and code are run as JavaScript, like MV's damage formulas, so only use notes you wrote yourself.

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.

MZ's states only hurt or heal by a percent of max HP. With this plugin a state uses a formula like a skill: a poison that grows with the magic of whoever cast it, a burn that counts the fire weakness of the target, a blessing that heals more on a weak hero.

It works in battle, at the end of each turn, on top of the normal HP regeneration. Whether the damage can kill is set in the database like in MZ (System, "Floor/slip damage can kill").

State Notetags

<LW DoT: a.mat * 2 - b.mdf>     damage per turn
<LW Regen: b.mhp / 20 + 50>     healing per turn
a = who gave the state, b = who has it, v(n) = variable n.
Without a known giver, for example a state from an event, a is b.
<LW DoT Element: 2>         the element rate of the target counts
<LW DoT Variance: 10>       percent, instead of the parameter
<LW DoT Animation: 59>      animation when it hits
The same with Regen: <LW Regen Element: 5> and so on.

Longer code goes between two tags. Set value, and if you like variance and element:

<LW DoT Code>
value = a.level * 30;
if (b.isStateAffected(10)) value *= 2;
</LW DoT Code>

Formulas and code are run as JavaScript, like MZ's damage formulas, so only use notes you wrote yourself.

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_DamageOverTime 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.

Free Battle Pack (free)Battle Essentials ($9.99)Full Collection ($19.99)
← LW_StateVisualsLW_Taunt →