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

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

Counter Extend - CounterExtend.js

Plugin desc : Counterattack Extension Plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com

Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/CounterExtend.js

Download Page : https://raw.githubusercontent.com/munokura/triacontane-MZ-plugins/refs/heads/main/CounterExtend.js

File name : CounterExtend.js

Help of plugin :

@target MZ
@url https://github.com/triacontane/RPGMakerMV/tree/mz_master/CounterExtend.js
@plugindesc Counterattack Extension Plugin
@author Triacontane
@license MIT License

@help
English Help Translator: munokura
This is an unofficial English translation of the plugin help,
created to support global RPG Maker users.
Feedback is welcome to improve translation quality
(see: https://github.com/munokura/triacontane-MZ-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----

CounterExtend.js

You can activate skills and items as a reaction (counterattack) to an
opponent’s actions.
You can set counterattacks under a variety of conditions and settings.
This function operates regardless of the default ”Counterattack Rate” feature.

Specify the following in the memo field for the feature (actor, class, weapon,
armor, state, enemy character). A battler with that feature will
counterattack.
For example, if you set it in the memo field for a state, a battler affected
by that state will counterattack when attacked.

<CounterExtend:aaa> # Counterattacks with the counterattack setting matching
the identifier [aaa].
<CounterExtend:aaa> # Same as above
<CounterExtend:1> # Counterattacks with the counterattack setting [1] in the
counterattack list.
<CounterExtend:1> # Same as above

Detailed counterattack settings can be entered via the plugin parameters.
Unlike normal counterattacks, they are activated after the opponent’s action
is completed.

The target of a counterattack skill is determined by the following conditions:

- If the counterattack skill targets an enemy, it will target the attacker.

- If the counterattack skill targets an ally, it will target the
counterattacker.

- If the counterattack skill targets all, it will target the skill itself.

If multiple counterattack tags are met simultaneously, they will be activated
in the following order:

State (in order of priority) > Actor/Enemy > Occupation > Equipment

Skills and items entered in the memo field as follows will reduce the enemy’s
counterattack frequency by the specified value.
<CounterEvasion: 100>
<Counterattack Evasion: 100>

〇 Local variables available in scripts
subject -> Counterattacking battler
target -> Opposing battler
triggerAction -> Action taken by the opposing battler

〇 Variables available in counterattack skill calculation formulas
a.lastHpDamage -> HP damage last taken by the counterattacker

This plugin requires the base plugin ”PluginCommonBase.js.”
”PluginCommonBase.js” is located in the following folder under the RPG Maker
MZ installation folder:

dlc/BasicResources/plugins/official

@param CounterList
@text Counterattack Settings List
@desc This is a list of counterattack settings. Specify the identifiers specified here in each memo field.
@type struct<COUNTER>[]
@default []

@param ConsiderateRepeat
@text Consider consecutive attacks
@desc If enabled, you will only be able to counterattack once against your opponent’s consecutive attacks or multiple actions.
@type boolean
@default false

スポンサードリンク

-MZ plugins

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