Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
NUUN Scene Battle Formation - NUUN_SceneBattleFormation.js
Plugin desc : Screen Formation (battle)
License : MIT License
Author : NUUN
Website : https://github.com/nuun888/MZ/blob/master/NUUN_SceneBattleFormation.js
Download Page : https://raw.githubusercontent.com/nuun888/MZ/master/NUUN_SceneBattleFormation.js
File name : NUUN_SceneBattleFormation.js
Help of plugin :
* @target MZ
* @plugindesc Screen Formation (battle)
* @author NUUN
* @version 2.1.4
* @base NUUN_SceneFormation
* @orderAfter NUUN_SceneFormation
*
* @help
* Allows you to change members during battle.
* This plugin is an extension plugin for the member change screen ("NUUN_SceneFormation").
*
* Terms of Use
* This plugin is distributed under the MIT license.
*
* Log
* 5/4/2025 Ver.2.1.4
* Fixed "NUUN_SaveMembers" to be able to be executed during battle.
* 4/23/2025 Ver.2.1.3
* Added the ability to revert to members before the change.
* 4/7/2025 Ver.2.1.2
* Changed the functionality for restoring pre-battle members to the method used in 2.1.0.
* Changed the specification so that the switch to return to pre-battle members can only be set when "ReturnPartyMember" is enabled.
* 4/6/2025 Ver.2.1.1
* Fixed an issue where returning to pre-battle member order would result in the formation being displayed with members changed during battle.
* Changed the function that returns the member order to the pre-battle member order after the battle to a switch function.
* 4/4/2025 Ver.2.1.0
* Implemented a function to restore the member order to the order before the battle started after the battle ends.
* Added a function to make fixed actors movable when restoring member order to the order before the battle starts is enabled.
* 6/22/2024 Ver.2.0.0
* Changed the plug-in parameter specifications.
* Added a function to end the turn of the actor who executed the command after switching members via actor command in TPB.
* Added a function to grant a state when switching from a reserve member to a combat member.
*
* @param BasicSetting
* @text Basic setting
* @default ------------------------------
*
* @param MenuFormationLayout
* @text Same as menu layout
* @desc This will display the layout when opened from the menu.
* @type boolean
* @default true
* @parent BasicSetting
*
* @param WindowCenter
* @text Window center automatic adjustment
* @desc Automatically adjusts the window to the center. It will be adjusted to the width of the waiting member window.
* @type boolean
* @default true
* @parent BasicSetting
*
* @param WindowZero
* @text Window criteria 0
* @desc Sets the coordinate reference of all windows to 0,0. Use this if you want to change the layout yourself.
* @type boolean
* @default false
* @parent BasicSetting
*
* @param CursorSwitchingDirection
* @text Cursor switching direction
* @desc The direction in which the cursor moves when switching between battle members and reserve members.
* @type select
* @option Battle members (top) Reserve members (bottom)
* @value 0
* @option Battle member (left) Reserve member (right)
* @value 1
* @default 0
* @parent BasicSetting
*
* @param CommandShowMode
* @text Command display target
* @desc The target for which the command should display sorting.
* @type select
* @option None
* @value 'None'
* @option PartyCommand
* @value 'Party'
* @option ActorCommand
* @value 'Actor'
* @default 'Party'
* @parent BasicSetting
*
* @param CommandIndex
* @text Insert Index Number
* @desc The party command index number to insert.
* @type number
* @default 1
* @min 0
* @parent BasicSetting
*
* @param BattleFormationCommandName
* @text Sort command name
* @desc Set the command name for sorting (battle command). If left blank, the name in the database will be used.
* @type string
* @default
* @parent BasicSetting
*
* @param CondFormationActor
* @text Actor Command Sorting Conditions
* @desc Specifies the conditions for opening the Actor Command Reordering screen.
* @type combo
* @option BattleManager.actor() === $gameParty.leader();//Leader only
* @default
* @parent BasicSetting
*
* @param FormationActorState
* @text After state
* @desc A state is granted when a standby member is moved to a combat member.
* @type state
* @default 0
* @parent BasicSetting
*
* @param EndTurnAfteExecution
* @text End of turn after TPB sorting
* @desc After rearranging using the TPB, the turn ends. A turn does not end if it is executed from a party command, in battle, or when sub members are switched.
* @type boolean
* @default false
* @parent BasicSetting
*
* @param BeforeMemberSetting
* @text Revert settings before change
* @default ------------------------------
*
* @param BeforeMemberButton_X
* @text Button X coordinate
* @desc X coordinate of the undo button.
* @type number
* @max 9999
* @min -9999
* @default 4
* @parent BeforeMemberSetting
*
* @param BeforeMemberButton_Y
* @text Button Y coordinate
* @desc Y coordinate of the undo button.
* @type number
* @max 9999
* @min -9999
* @default 2
* @parent BeforeMemberSetting
*
* @param MemberSortOrderInitializationSettings
* @text Initialize member order after battle
* @default ------------------------------
*
* @param ReturnPartyMember
* @text Restore member order after battle ends
* @desc The order of party members after the battle will be restored to the state before the battle began.
* @type switch
* @default 0
* @parent MemberSortOrderInitializationSettings
*
* @param ReturnPartyMemberSwitch
* @text Switch to restore order of members after battle
* @desc When "ReturnPartyMember" is enabled, specify the switch ID that allows returning members after battle.
* @type switch
* @default 0
* @parent MemberSortOrderInitializationSettings
*
* @param FixedActorOnChange
* @text Fixed members can be moved during battle
* @desc Allows fixed members to move during battle.
* @type boolean
* @default true
* @parent MemberSortOrderInitializationSettings
*
* @param BattleMemberWindowSetting
* @text Formation Window Settings
* @default ------------------------------
*
* @param BattleMemberNameSetting
* @text Battle member name window settings
* @default ------------------------------
* @parent BattleMemberWindowSetting
*
* @param BattleMemberName_X
* @text Battle member name window X coordinate
* @desc Battle member name window X coordinate.
* @type number
* @default 0
* @min -9999
* @parent BattleMemberNameSetting
*
* @param BattleMemberName_Y
* @text Battle member name window Y coordinate
* @desc Battle member name window Y coordinate.
* @type number
* @default 0
* @min -9999
* @parent BattleMemberNameSetting
*
* @param MemberNameSetting
* @text Standby Member Name Window Settings
* @default ------------------------------
* @parent BattleMemberWindowSetting
*
* @param MemberName_X
* @text Standby member name window X coordinate
* @desc Standby member name window X coordinate.
* @type number
* @default 0
* @min -9999
* @parent MemberNameSetting
*
* @param MemberName_Y
* @text Standby member name window Y-coordinate
* @desc Standby member name window Y-coordinate.
* @type number
* @default 0
* @min -9999
* @parent MemberNameSetting
*
* @param BattleMemberSetting
* @text Battle Member Window Settings
* @default ------------------------------
* @parent BattleMemberWindowSetting
*
* @param BattleMember_Cols
* @text Battle member horizontally display number
* @desc Battle member horizontally display number. If it is 0, the display width will change according to the maximum number of members.
* @type number
* @default 0
* @min 0
* @parent BattleMemberSetting
*
* @param BattleMember_Rows
* @text Battle member vertical display number
* @desc Battle member vertical display number.
* @type number
* @default 1
* @min 1
* @parent BattleMemberSetting
*
* @param BattleMember_X
* @text Battle member window X coordinate
* @desc Battle member window X coordinate.
* @type number
* @default 0
* @min -9999
* @parent BattleMemberSetting
*
* @param BattleMember_Y
* @text Battle member window Y coordinate
* @desc Battle member window Y coordinate.
* @type number
* @default 0
* @min -9999
* @parent BattleMemberSetting
*
* @param MemberSetting
* @text Standby member window settings
* @default ------------------------------
* @parent BattleMemberWindowSetting
*
* @param Member_Cols
* @text Standby member horizontally display number
* @desc Standby member horizontally display number.
* @type number
* @default 10
* @min 0
* @parent MemberSetting
*
* @param Member_Rows
* @text Standby member vertical display number
* @desc Standby member vertical display number.
* @type number
* @default 1
* @parent MemberSetting
*
* @param Member_X
* @text Standby member window X coordinate
* @desc Standby member window X coordinate.
* @type number
* @default 0
* @min -9999
* @parent MemberSetting
*
* @param Member_Y
* @text Standby member window Y coordinate
* @desc Standby member window Y coordinate.
* @type number
* @default 0
* @min -9999
* @parent MemberSetting
*
* @param StatusSetting
* @text Status Window Settings
* @default ------------------------------
* @parent BattleMemberWindowSetting
*
* @param Status_X
* @text Status window X coordinate
* @desc Status window X coordinate.
* @type number
* @default 0
* @min -9999
* @parent StatusSetting
*
* @param Status_Y
* @text Status window Y coordinate
* @desc Status window Y coordinate.
* @type number
* @default 0
* @min -9999
* @parent StatusSetting
*
* @param Status_Width
* @text Status window width
* @desc Status window width.
* @type number
* @default 0
* @min -9999
* @parent StatusSetting
*
* @param Status_Height
* @text Status window height
* @desc Status window height.
* @type number
* @default 0
* @min -9999
* @parent StatusSetting
*
* @param ContentsSetting
* @text Content Settings
* @default ------------------------------
* @parent StatusSetting
*
* @param ActorStatus
* @text Display actor status settings
* @desc Actor Display Status Settings.
* @default
* @type struct<ActorStatusList>[]
* @parent ContentsSetting
*
* @param ContentsCols
* @text Contents cols
* @desc Number of columns of content in an item.
* @type number
* @default 4
* @min 1
* @max 4
* @parent ContentsSetting
*