An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

Drain Extend - DrainExtend.js

Plugin desc : Absorption Extension Plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com

Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/DrainExtend.js

Download Page : https://raw.githubusercontent.com/munokura/triacontane-MZ-plugins/refs/heads/main/DrainExtend.js

File name : DrainExtend.js

Help of plugin :

@target MZ
@url https://github.com/triacontane/RPGMakerMV/tree/mz_master/DrainExtend.js
@plugindesc Absorption Extension Plugin
@author Triacontane
@license MIT License

@help
English Help Translator: munokura
This is an unofficial English translation of the plugin help,
created to support global RPG Maker users.
Feedback is welcome to improve translation quality
(see: https://github.com/munokura/triacontane-MZ-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----

DrainExtend.js

Extends the ”HP Absorption” and ”MP Absorption” damage types.
1. Absorption rates can be specified, allowing recovery of N% of damage dealt.
2. MP or TP recovery for HP damage.
3. HP or TP recovery for MP damage.
4. Messages and sound effects can be changed for normal damage.
5. Absorption capped at the opponent’s remaining HP can be removed.

Set the skill or item’s damage type to ”HP Absorption” or ”MP Absorption.”
Then enter the following in the memo field.
id: Identifier of the absorption type specified by the parameter.
<AbsorptionExtension:id>
<DrainEx:id>

The parameter value can contain JavaScript expressions in addition to control
characters.
The following variables can also be used in the expression:
a: Attacker
b: Target

You can set the effectiveness of the absorption attack on the target. This
does not affect the damage dealt.
Enter the following in the memo field of the feature database.
<Absorption Effectiveness Rate: 50> # Absorption rate is set to [50%].
<DrainRate: 50> # Same as above

This plugin requires the base plugin ”PluginCommonBase.js.”
”PluginCommonBase.js” is located in the following folder under the RPG Maker
MZ installation folder:
dlc/BasicResources/plugins/official

Terms of Use:
You may modify and redistribute this plugin without permission, and there are
no restrictions on its use (commercial, 18+, etc.).
This plugin is now yours.

@param drainList
@text List of absorption settings
@desc A list of absorption settings.
@type struct<Drain>[]
@default []

@param recoverSe
@text Recovery sound effect
@desc Plays recovery sound effect when absorption is successful.
@type boolean
@default false

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.