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 Recover After Action - NRP_RecoverAfterAction.js

Plugin desc : v1.022 Implemented a system of recovery after action.

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

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

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

Desc page : https://newrpg.seesaa.net/article/498761194.html

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

File name : NRP_RecoverAfterAction.js

Help of plugin :

Implement a system in which HP, MP, and TP
 * are recovered after an action.
 * 
 * You can set the conditions under
 * which recovery takes place in detail.
 * In addition, the amount of recovery can be displayed
 * when selecting a skill.
 * 
 * Note that this plug-in was created to implement the
 * "MP recovery when using weapons" and "TP recovery when using magic"
 * systems in the author's own work,
 * so the specifications are slightly maniacal.
 * 
 * -------------------------------------------------------------------
 * [Note (Actor, Enemy, Class, Equipment, State, and Passive Skill)]
 * -------------------------------------------------------------------
 * <RecoverActionHpAdd:?>
 * <RecoverActionMpAdd:?>
 * <RecoverActionTpAdd:?>
 * Recovers HP, MP, and TP by the specified value after an action.
 * Duplicate addition by multiple equipment etc. is also possible.
 * 
 * Also, formulas can be used.
 * "a.mhp / 2" will be half of the maximum HP.
 * 
 * -------------------------------------------------------------------
 * [About Passive Skills]
 * -------------------------------------------------------------------
 * If the Occasion of a skill is set to "Never",
 * the skill functions as a passive skill.
 * If the above settings are to be used, they should be passive skills.
 * 
 * -------------------------------------------------------------------
 * [Note (Skill, Item)]
 * -------------------------------------------------------------------
 * <RecoverActionHp:true/false>
 * <RecoverActionMp:true/false>
 * <RecoverActionTp:true/false>
 * Enables/Disables recovery of HP, MP, and TP
 * when that skill (item) is used.
 * These take precedence over the plugin parameter settings.
 * 
 * -------------------------------------------------------------------
 * [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]
 * @-----------------------------------------------------
 * 
 * @param ApplyEnemy
 * @type boolean
 * @default false
 * @desc Apply the recovery setting to enemy characters as well.
 * 
 * @param <HPRecover>
 * @desc HP recovery-related settings.
 * 
 * @param BasicHpRecover
 * @parent <HPRecover>
 * @type string
 * @desc This is the basic HP recovery amount.
 * 
 * @param HpRecoverSkillType
 * @parent <HPRecover>
 * @type string
 * @default 0,1,2
 * @desc Skill type to recover HP. Multiple possible.
 * Standard is 0:attack or guard, 1:magic, 2:special
 * 
 * @param HpRecoverUseItem
 * @parent <HPRecover>
 * @type boolean
 * @default false
 * @desc Recovers the user's HP when the item is used.
 * 
 * @param DisplayHpRecover
 * @parent <HPRecover>
 * @type boolean
 * @default false
 * @desc Displays the amount of HP recovery in damage.
 * 
 * @param HpRecoverLabel
 * @parent <HPRecover>
 * @type string
 * @default HP+
 * @desc The notation for displaying the amount of HP recovery in the window.
 * 
 * @param <MPRecover>
 * @desc MP recovery-related settings.
 * 
 * @param BasicMpRecover
 * @parent <MPRecover>
 * @type string
 * @desc This is the basic MP recovery amount.
 * 
 * @param MpRecoverSkillType
 * @parent <MPRecover>
 * @type string
 * @default 0,1,2
 * @desc Skill type to recover MP. Multiple possible.
 * Standard is 0:attack or guard, 1:magic, 2:special
 * 
 * @param MpRecoverUseItem
 * @parent <MPRecover>
 * @type boolean
 * @default false
 * @desc Recovers the user's MP when the item is used.
 * 
 * @param DisplayMpRecover
 * @parent <MPRecover>
 * @type boolean
 * @default false
 * @desc Displays the amount of MP recovery in damage.
 * 
 * @param MpRecoverLabel
 * @parent <MPRecover>
 * @type string
 * @default MP+
 * @desc The notation for displaying the amount of MP recovery in the window.
 * 
 * @param <TPRecover>
 * @desc TP recovery-related settings.
 * 
 * @param BasicTpRecover
 * @parent <TPRecover>
 * @type string
 * @desc This is the basic TP recovery amount.
 * 
 * @param TpRecoverSkillType
 * @parent <TPRecover>
 * @type string
 * @default 0,1,2
 * @desc Skill type to recover TP. Multiple possible.
 * Standard is 0:attack or guard, 1:magic, 2:special
 * 
 * @param TpRecoverUseItem
 * @parent <TPRecover>
 * @type boolean
 * @default false
 * @desc Recovers the user's TP when the item is used.
 * 
 * @param DisplayTpRecover
 * @parent <TPRecover>
 * @type boolean
 * @default false
 * @desc Displays the amount of TP recovery in damage.
 * 
 * @param TpRecoverLabel
 * @parent <TPRecover>
 * @type string
 * @default TP+
 * @desc The notation for displaying the amount of TP recovery in the window.
 * 
 * @param <RecoverWindow>
 * @desc This is a window setting for displaying recovery values.
 * 
 * @param UseRecoverWindow
 * @parent <RecoverWindow>
 * @type boolean
 * @default true
 * @desc The amount of recovery is displayed in a window when selecting a skill.
 * 
 * @param CommandType
 * @parent <RecoverWindow>
 * @type select
 * @option
 * @option command
 * @option target
 * @desc How the recovery window is displayed when a command (normal attack or guard) is selected.
 * 
 * @param HorizontalPosition
 * @parent <RecoverWindow>
 * @type select
 * @option left
 * @option right
 * @default left
 * @desc Recovery window placement (horizontal).
 * 
 * @param NumberWidth
 * @parent <RecoverWindow>
 * @type number
 * @default 30
 * @desc The width of the numeric display in the recovery window.

スポンサードリンク

-MZ plugins

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