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 Auto Battle - NRP_AutoBattle.js

Plugin desc : v1.031 Add an auto-battle command.

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_AutoBattle.js

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

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

File name : NRP_AutoBattle.js

Help of plugin :

Add an auto-battle command.
 * The battle will be executed automatically
 * until the cancel key is pressed.
 * ※It can also be released by touch operation with a right click.
 *   Or left-click and hold to release.
 * 
 * Initially, it behaves like an auto-battle
 * with special flag of traits,
 * but it is also possible to have it only normal attack.
 * 
 * Can be turn-based, TPB, or CTB.
 * 
 * -------------------------------------------------------------------
 * [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 CommandName
 * @type string
 * @default Auto Battle
 * @desc The name of the auto-battle command.
 * 
 * @param PartyCommandPosition
 * @type number
 * @default 1
 * @desc The position when inserted into a party command.
 * 0 first. Delete with the DEL key when not needed.
 * 
 * @param ActorCommandPosition
 * @type number
 * @desc The position when inserted into an actor command.
 * 0 first. Delete with the DEL key when not needed.
 * 
 * @param NormalAttackOnly
 * @type boolean
 * @default false
 * @desc Only normal attacks are made during the battle.
 * 
 * @param TargetFrontOnly
 * @parent NormalAttackOnly
 * @type boolean
 * @default false
 * @desc If only the normal attack is on, only the first enemy is targeted.
 * 
 * @param ShortcutKey
 * @text [MZ]ShortcutKey
 * @type select
 * @option shift
 * @option menu
 * @option pageup
 * @option pagedown
 * @option control
 * @option tab
 * @desc Shortcut key to execute auto-battle.
 * 
 * @param ReleaseSameKey
 * @parent ShortcutKey
 * @type boolean
 * @default true
 * @desc The same key as the shortcut key will cancel the auto-battle.
 * 
 * @param StartSound
 * @type file
 * @dir audio/se
 * @desc This is the sound effect played at the start of auto-battle.
 * 
 * @param CancelSound
 * @type file
 * @dir audio/se
 * @desc Sound effect to be played when auto-battle is canceled.
 * If blank, the system cancel sound is played.
 * 
 * @param AutoBattleSwitch
 * @type switch
 * @desc This switch is turned on during the execution of auto-battle.
 * 
 * @param <TurnBased>
 * @desc This item is for turn-base only.
 * 
 * @param Only1Turn
 * @parent <TurnBased>
 * @type boolean
 * @default false
 * @desc Always disengage the auto-battle in one turn.

スポンサードリンク

-MZ plugins

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