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

PGMV - The Community-Driven Plugin Library for RPG Maker MV

MV plugins

PANDA Fixed Auto Battle - PANDA_FixedAutoBattle.js

Plugin desc : Fixes that scripts in damage formulas is executed in auto battle.

License : MIT License

Author : panda(werepanda.jp)

Website : https://www.werepanda.jp/

Desc page : http://www.werepanda.jp/blog/20220321161150.html

File name : PANDA_FixedAutoBattle.js

Help of plugin :

* @target MV MZ
 * @plugindesc Fixes that scripts in damage formulas is executed in auto battle.
 * @author panda(werepanda.jp)
 * @url http://www.werepanda.jp/blog/20220321161150.html
 * 
 * @help You can embed any script in damage formula of skills.
 * For example,
 *  a.addState(13); a.atk * 4 - b.def * 2
 * allows you to apply the user the state id 13 while doing damage.
 * 
 * However, if you have actors with the trait of Auto Battle,
 * the scripts will be executed to evaluate the damage formula
 * for all usable skills at the beginning of the turn.
 * 
 * This plugin fixes this, so that the execution result will not be reflected
 * when evaluating for the auto battle.
 * 
 * Also, "inEval" will be defined as a global variable.
 * Only when evaluating auto battle, inEval = true, so you can change
 * the processing between evaluation and execution in the damage formula.
 * 
 * [License]
 * this plugin is released under MIT license.
 * https://opensource.org/licenses/mit-license.php
 *

スポンサードリンク

-MV plugins

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