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

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

MZ plugins

Dark Plasma Surprise Control - DarkPlasma_SurpriseControl.js

Plugin desc : Control preemptive/surprise attacks

License : MIT License

Author : DarkPlasma

Website : https://github.com/munokura/DarkPlasma-MZ-Plugins/blob/main/DarkPlasma_SurpriseControl.js

Desc page : https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release

Download Page : https://raw.githubusercontent.com/munokura/DarkPlasma-MZ-Plugins/main/DarkPlasma_SurpriseControl.js

File name : DarkPlasma_SurpriseControl.js

Help of plugin :

@target MZ
@url https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release
@plugindesc Control preemptive/surprise attacks
@author DarkPlasma
@license MIT

@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/DarkPlasma-MZ-Plugins ).
Original plugin by DarkPlasma.
Please check the latest official version at:
https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release
-----

Version: 3.0.0
Controls preemptive attacks for the player and enemy sides.
When specific switches are ON in the plugin parameters, you can set preemptive
attacks to not/not/yes/yes.

When multiple switches are ON, the priority is as follows:

Always attack first > Always attack first > Never/Do not attack first

By entering <NoPreemptive>, <NoSurprise>,
<ForcePreemptive>, or <ForceSurprise> in the enemy's memo field,
you can set that enemy to never/not/yes/yes preemptive in battles involving
that enemy.

<NoPreemptive>: The player side will not attack first
<NoSurprise>: The enemy side will not attack first
<ForcePreemptive>: The player side will always attack first
<ForceSurprise>: The enemy side will always attack first

In battles that include multiple of the above, the priority is as follows:

Always attack first > Always be attacked first > Do not attack first/do not
attack first

Due to the specifications of RPG Maker MZ, preemptive/surprise attack
determination is not performed in battles triggered by the "Battle" event
command.
By using this plugin in conjunction with
DarkPlasma_SurpriseControlWithEventBattle,
this plugin's settings can also be applied to battles triggered by event
commands.

@param noPreemptiveSwitch
@text Switch number that will stop preemptive attacks
@desc When the specified switch is ON, the player will not attack first.
@type switch
@default 0

@param noSurpriseSwitch
@text Switch number to prevent preemptive attacks
@desc When the specified switch is ON, the enemy side will not launch a preemptive attack.
@type switch
@default 0

@param forcePreemptiveSwitch
@text Switch number to always attack first
@desc When the specified switch is ON, the player side will definitely attack first.
@type switch
@default 0

@param forceSurpriseSwitch
@text Switch numbers that are always preemptively attacked
@desc When the specified switch is ON, the enemy side will definitely launch a preemptive attack.
@type switch
@default 0

スポンサードリンク

-MZ plugins

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