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 Party Attack - NRP_PartyAttack.js

Plugin desc : v1.021 Realize changes in the target side (such as friendly fire).

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Takeshi Sunagawa (http://newrpg.seesaa.net/)

Website : https://github.com/NewRPGProject/MZMV_Plugin/blob/main/NRP_PartyAttack.js

Desc page : http://newrpg.seesaa.net/article/482791611.html

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

File name : NRP_PartyAttack.js

Help of plugin :

Allows you to use attacks, skills,
 * and items on a different target side than normal during battle.
 * 
 * For example, you can attack an ally or heal an enemy.
 * 
 * -------------------------------------------------------------------
 * [Usage]
 * -------------------------------------------------------------------
 * Just by installing it, switching the target side will be enabled.
 * In the initial state, the target side is switched by PageUp/Down.
 * (This is equivalent to the LR button on a gamepad.)
 * 
 * By default, skills with a range of All or Random will not show
 * the target selection window, so you cannot change the side.
 * By turning on the "AlwaysSelection" parameter,
 * you can make those skills switch the target side as well.
 * 
 * -------------------------------------------------------------------
 * [Note on skills (items)]
 * -------------------------------------------------------------------
 * You can disable or enable changes to the target side for each skill.
 * Please specify the following in the note field of the skill
 * 
 * <PermitSideChange:true>  : Enable ("true" can be omitted)
 * <PermitSideChange:false> : Disable
 * 
 * ※The item's note field is valid as well.
 * ※If not specified, it will follow the setting
 *   of "EnableAllSkills" in the plugin parameters.
 * 
 * -------------------------------------------------------------------
 * [Notice]
 * -------------------------------------------------------------------
 * Depending on the plugin parameters,
 * you can set the left/right key (assuming side view)
 * or up/down key (assuming front view) to switch the target side.
 * 
 * However, even if you turn on "ChangeSideByLeftRight" or "ChangeSideByUpDown",
 * the behavior will be uncomfortable by itself.
 * This is because it is supposed to be used
 * in combination with NRP_BattleTargetCursor.
 * 
 * For example, if you turn on "ChangeSideByLeftRight",
 * you should be able to switch the target up and down.
 * If you want to turn on "ChangeSideByUpDown", please do the opposite.
 * 
 * -------------------------------------------------------------------
 * [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 EnableAllSkills
 * @type boolean
 * @default true
 * @desc Enable target side change for all skills.
 * You can specify exceptions in the Notes field.
 * 
 * @param EnableTouch
 * @type boolean
 * @default true
 * @desc Enable to change the target side by touch operation.
 * 
 * @param <Selection>
 * 
 * @param AlwaysSelection
 * @parent <Selection>
 * @type boolean
 * @default false
 * @desc Show the target selection even for skills with a range such as whole. This will enable target side switching.
 * 
 * @param UserSelection
 * @parent <Selection>
 * @type boolean
 * @default false
 * @desc Displays a selection of targets, even for skills with a User range.
 * 
 * @param EveryoneSelection
 * @parent <Selection>
 * @type boolean
 * @default false
 * @desc Displays a selection of targets, even for skills with a range of Everyone.
 * 
 * @param <ChangeSideKey>
 * 
 * @param ChangeSideByPageUpDown
 * @parent <ChangeSideKey>
 * @type boolean
 * @default true
 * @desc The target side can be switched by PageUp/Down.
 *
 * @param ChangeSideByLeftRight
 * @parent <ChangeSideKey>
 * @type boolean
 * @default false
 * @desc The target side can be switched by Left/Right.
 * Combination with NRP_BattleTargetCursor is recommended.
 *
 * @param ChangeSideByUpDown
 * @parent <ChangeSideKey>
 * @type boolean
 * @default false
 * @desc The target side can be switched by Up/Down.
 * Combination with NRP_BattleTargetCursor is recommended.
 * 
 * @param <Other>
 * 
 * @param KeepWindow
 * @parent <Other>
 * @type boolean
 * @default false
 * @desc Keeps the window visible.
 * In other words, do not hide the Actor/Enemy window.

スポンサードリンク

-MZ plugins

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