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 Counter EX - NUUN_CounterEX.js
Plugin desc : Counter extension
License : MIT License
Author : NUUN
Website : https://github.com/nuun888/MZ/blob/master/NUUN_CounterEX.js
Download Page : https://raw.githubusercontent.com/nuun888/MZ/master/NUUN_CounterEX.js
File name : NUUN_CounterEX.js
Help of plugin :
* @target MZ * @plugindesc Counter extension * @author NUUN * @base NUUN_Base * @orderAfter NUUN_Base * @version 1.3.1 * * @help * Extend the counter. * * Counter trigger * Always: When the conditions are met, counterattack (reflection) is possible even if you are not the target of the attack. * Skill: Counterattacks (reflects) at the time of special skill. * Magic: Counterattacks (reflects) during magic. * Sure hit: Counterattack (reflect) when hit. * Use item: Counterattacks (reflects) when using an item. * If you do not specify Always, only the target that was attacked will be the counterattack target. * If you want to counterattack when using an item, please set both always and item. * * Counter skill * If you specify multiple skills, one will be activated randomly from the skills that match the conditions. * * Counter action * Counterattack: Counterattack with the specified skill when attacked. If none is specified, it will counterattack with a normal attack. * Reflection: Reflects the caster with the skill received when attacked. * Full reflection: Reflects with the skill received when attacked. If you receive a full attack, give the opponent a full attack. * * Activation timing * Per target: Counterattacks (reflects) each time a target is hit. * After Action: Counterattack when the action is over. * * Counter activation condition * "NUUN_ConditionsBase" (Ver.1.2.0 or later) is required to use this function. * Set from the counter activation condition of the plug-in parameter. * Specifies the list ID of plugin parameters for "NUUN_ConditionsBase". If you specify multiple items, separate them with a comma. * * Action Cancellation * When counterattacking (reflecting) against multiple target skills, skills that use items, or items, the damage dealt to battlers after the battler who counterattacked (reflected) will be nullified. * However, it will not be executed if "Activation timing" is 'EndAction'. * * Setting counterattack (reflection) * Notes with features * <CounterEX:[id]>Set a counter. * [id]:Counter setting list ID or Counter name. * * Counterattack (reflection) invalid tag * Skills, Item Notes * <[tag]:[rate]> Sets skills and items that do not affect the counter. * [tag]:Tag name entered as counterattack (reflection) invalid tag. * [rate]:Rate of invalidation. * * Terms of Use * This plugin is distributed under the MIT license. * * Log * 5/7/2025 Ver.1.3.1 * Added the ability to disable counters for parties. * 3/27/2025 Ver.1.3.0 * Added a function to limit the number of counters that can be activated when multiple counters are active. * Added the ability to specify activation priority when multiple counters are executable. * 7/21/2024 Ver.1.2.1 * If no counter skill is set, the counterattack skill will be counterattacked with skill ID 1. * Fixed an issue where reflection was not working. * 8/23/2023 Ver.1.2.0 * Added ability to counterattack against specific skills and items. * 7/17/2023 Ver.1.1.4 * Fixed not doing corpse shooting. * 7/9/2023 Ver.1.1.3 * Fixed an issue where a counter target Battler would still be attacked even if he was incapacitated. * 7/3/2023 Ver.1.1.2 * Fixed the problem that the counter attack (reflection) does not return to the original with the counter image switching function in "NUUN_BattleStyleEX". * 7/1/2023 Ver.1.1.1 * Corrected so that counterattack (reflection) counterattack after action end is not invalidated. * 7/1/2023 Ver.1.1.0 * Added a function that can specify the target of the counter. * 6/26/2023 Ver.1.0.2 * It corresponds to the standing picture switching in "NUUN_BattleStyleEX" and "NUUN_ActorPicture". * 6/25/2023 Ver.1.0.1 * Fixed to accommodate conditional base counter conditions. * Fixed an issue where the Hit Counterattack was not working. * 6/23/2023 Ver.1.0.0 * first edition. * * @param CounterData * @desc Set the counter. * @text Counter setting * @type struct<CounterList>[] * @default * * @param CounterSkillNum * @text Number of simultaneous counter activation skills * @desc Maximum skill count when processing multiple counters. (0 means unlimited) * @type number * @default 1 * @min 0 * * @param CounterPriority * @desc Execution priority when multiple counters are enabled * @text Counter Execution Priority * @type select * @option Feature reference order * @value 'trait' * @option Plug-in Parameter List Order(Counter setting) * @value 'list' * @default 'list' *