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

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

MZ plugins

Dynamic Battler Param - DynamicBattlerParam.js

Plugin desc : Butler parameter dynamic configuration plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com

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

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

File name : DynamicBattlerParam.js

Help of plugin :

@target MZ
@url https://github.com/triacontane/RPGMakerMV/tree/mz_master/DynamicBattlerParam.js
@plugindesc Butler parameter dynamic configuration 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
-----

DynamicBattlerParameter.js

Replaces the battler’s stats with the result of evaluating the specified
JavaScript formula.
You can also apply the formula only if the battler has a specific notetag.
By specifying ”aaa” as the notetag name parameter, the formula will only be
applied to battlers with the tag <aaa>. (*1)

*1 This plugin references the actor, class, weapon, armor, state, and enemy
character memo fields.

Due to the nature of this plugin, performance may decrease when combined with
other plugins.
In addition, since this plugin makes heavy use of eval, performance may also
decrease if the Developer Tools are open.

The values of each parameter follow the specifications below.

- If the formula targets standard stats (max HP to luck),
The battler’s original parameters are used, without taking into account
fluctuations due to equipment or buffs.
This is to prevent the effects of equipment or buffs from being applied twice.
The results of the formula are also rounded to integers.

・If the calculation formula targets additional stats or special stats (from
hit rate to experience gain rate),
The parameters will take into account fluctuations due to equipment and buffs.
The result of the calculation formula will be a real number including decimal
points, with 100% = 1.0.

Furthermore, fluctuations due to this plugin will not be included in any of
the stats.
This is to avoid loops and significant performance degradation caused by
applying a formula to the source of the formula.

param # Original value specified in the database
a.hp # HP
a.mp # MP
a.tp # TP
a.mhp # Max HP
a.mmp # Max MP
a.atk # Attack Power
a.def # Defense Power
a.mat # Magic Power
a.mdf # Magic Defense
a.agi # Agility
a.luk # Luck
a.hpRate() # HP Rate (0.0 - 1.0)
a.mpRate() # MP Rate (0.0 - 1.0)
a.tpRate() # TP Rate (0.0 - 1.0)
a.special(’aaa’) # Value of [aaa] in the memo field (※)
a.level # Level
a.actorId() # Actor ID
a._classId # Class ID
a.currentExp() # Experience Points

※Retrieves the value corresponding to the specified content from the memo
field with the specified feature.
<aaa:100> # a.special(’aaa’) returns [100].

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

@param formulaList
@text Formula List
@desc A list of parameter calculation formulas.
@type struct<Param>[]
@default []

スポンサードリンク

-MZ plugins

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