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

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

MZ plugins

NRP Damage Heal - NRP_DamageHeal.js

Plugin desc : v1.00 Create traits that restore MP and TP when damaged.

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Takeshi Sunagawa (http://newrpg.seesaa.net/)

Website : https://github.com/NewRPGProject/MZMV_Plugin/blob/main/NRP_DamageHeal.js

Desc page : http://newrpg.seesaa.net/article/500558062.html

Download Page : https://raw.githubusercontent.com/NewRPGProject/MZMV_Plugin/main/NRP_DamageHeal.js

File name : NRP_DamageHeal.js

Help of plugin :

Create traits that restore MP and TP when damaged.
 * 
 * -------------------------------------------------------------------
 * [Note (actor, enemy, class, equipment, state, skill, item)]
 * -------------------------------------------------------------------
 * In the note of the object that holds the trait,
 * please include the following.
 * For skills, this is a passive skill
 * that only needs to be learned to function.
 * Also, any of the effects can be stacked.
 * 
 * ◆HP recovery when damaged
 * <DamageHealHp:10>
 * HP recovers 10 points when damaged.
 * Note that it will not heal if the HP is reduced to 0 first.
 * 
 * ◆MP recovery when damaged
 * <DamageHealMp:10>
 * MP recovers 10 points when damaged.
 * 
 * ◆TP recovery when damaged
 * <DamageHealTp:10>
 * TP recovers 10 points when damaged.
 * 
 * Formulas are available for all of the above.
 * In addition, you can refer to the damage taken with "damage".
 * You can refer to the information of skills by "skill".
 * 
 * The following is an example
 * 
 * <DamageHealMp:skill.mpCost>
 * When damage is taken,
 * MP is recovered for the consumption of the skill.
 * 
 * <DamageHealTp:damage * 3/100>
 * TP is recovered for 3% of the damage received.
 * Note that the amount of recovery is rounded off.
 * 
 * -------------------------------------------------------------------
 * [Terms]
 * -------------------------------------------------------------------
 * There are no restrictions.
 * Modification, redistribution freedom, commercial availability,
 * and rights indication are also optional.
 * The author is not responsible,
 * but will deal with defects to the extent possible.
 * 
 * @------------------------------------------------------------------
 * @ Plugin Parameters
 * @------------------------------------------------------------------

スポンサードリンク

-MZ plugins

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