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

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

MV plugins

Vanguard And Rearguard - VanguardAndRearguard.js

Plugin desc : Vanguard and rearguard

License : MIT License

Author : triacontane

Website : https://triacontane.blogspot.com/

Download Page : https://raw.githubusercontent.com/triacontane/RPGMakerMV/master/VanguardAndRearguard.js

File name : VanguardAndRearguard.js

Help of plugin :

* @plugindesc Vanguard and rearguard
 * @author triacontane
 *
 * @param VanguardStateId
 * @desc State ID of vanguard.
 * @default 4
 * @type state
 *
 * @param RearguardStateId
 * @desc State ID of rearguard.
 * @default 5
 * @type state
 *
 * @param ChangeInMenu
 * @desc Changeable formation in menu screen.
 * @default true
 * @type boolean
 *
 * @param TopActorFixedSwitch
 * @desc When the specified switch is ON, the order of the first actor can be fixed.
 * @default 0
 * @type switch
 *
 * @param RearDefense
 * @desc Rearguard member never targeting, if vanguard member alive.
 * @default false
 * @type boolean
 *
 * @param SkillIdChange
 * @desc Skill ID of formation change.
 * @default 0
 * @type skill
 *
 * @param RearguardOffsetX
 * @desc Offset X Position of rearguard.
 * @default 48
 * @type number
 * @min -9999
 * @max 9999
 *
 * @param RearguardOffsetY
 * @desc Offset Y Position of rearguard.
 * @default 0
 * @type number
 * @min -9999
 * @max 9999
 *
 * @param ChangeSpeed
 * @desc Move speed of formation change.
 * @default 8
 * @type number
 *
 * @param HiddenIcon
 * @desc Hide the enemy character's vanguard, state game icon of the rear guard. (Actor icon is displayed)
 * @default false
 * @type boolean
 *
 * @param FaceShift
 * @desc On the menu screen, display the rearguard face graphics slightly shifted to the right.
 * @default true
 * @type boolean
 *
 * @param ShiftVanguard
 * @desc At the time the wiped out, the guards will be forcibly moved to vanguard.
 * @default false
 * @type boolean
 *
 * @param ValidActor
 * @desc 前衛・後衛の仕様をアクター側に適用します。
 * @default true
 * @type boolean
 *
 * @param ValidEnemy
 * @desc 前衛・後衛の仕様を敵キャラ側に適用します。
 * @default true
 * @type boolean
 *
 * @param RearguardLimit
 * @desc 後衛になれるメンバーの上限です。0に設定すると無制限になります。
 * @default 0
 * @type number
 *
 * @param EnemyRearBorderX
 * @desc 敵キャラの配置X座標(中心原点)が指定したラインより小さいと自動的に後衛配置されます。
 * @default 0
 * @type number
 *
 * @param EnemyRearBorderY
 * @desc 敵キャラの配置Y座標(下原点)が指定したラインより小さいと自動的に後衛配置されます。
 * @default 0
 * @type number
 *
 * @help We add the concept of "vanguard" "rearguard" to battle.
 * After designating the state at "vanguard" and the state at "guard"
 * Please set special effects of "vanguard" and "rearguard"
 * by using "Trait" column and so on.
 *
 * It is recommended to set the priority to "0".
 * [SV] Motion and [SV] Superimposition is the state with the highest priority
 * It is due to the MV's specification that it will be given priority.
 *
 * The state specified as "vanguard" "rearguard" will not be canceled
 * even if it satisfies the cancellation condition.
 * To change it, choose one of the following methods.
 *
 * - Select the same character by "Sort" on the menu screen.
 * - Execute the "change" command on the battle screen.
 * - Grant the target state from the event.
 *
 * When changing during battle is effective, change the
 * target of the change skill to "user"
 * Further please set in the memo field as follows.
 * (We recommend copying existing skill "defense")
 * <VARChange>
 *
 * The memo field above is also valid for skills other than change.
 * If you want to change the skill user, please set the following
 * in the memo field.
 * <VARUserChange>
 *
 * If you want to create a skill that targets only vanguard,
 * Please set as follows in the memo field of skill.
 * <VAROnlyVanguard>  # target only vanguard
 * <VAROnlyRearguard> # target only rearguard
 *
 * However, it is invalid when using from the menu screen.
 *
 * If you want to rearrange the initial placement of enemy characters,
 * please set as follows in the memo field.
 * <VARRearguard>
 *
 * If you want to ban the vanguard of vanguard and fix it
 * with vanguard or rearguard,
 * Please set as follows in the memo field of actor and enemy character.
 * <VARChangeDisable> # Changes to the target butler are prohibited.
 *
 * - Plugin Command
 *
 * VAR_SET_DEFEAT_CONDITION 1 # We will change the defeat conditions of our enemy ally.
 *  0: Normal
 *  1: All vanguards are unable to fight and defeat
 *  2: All rearguards are unable to fight and defeat
 *
 * This plugin is released under the MIT License.

スポンサードリンク

-MV plugins

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