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.
MNKR Battle Start Common - MNKR_BattleStartCommon.js
Plugin desc : Replaces the message at the start of battle with a common event.
License : MIT License
Author : munokura
Website : http://x.com/munokura
Desc page : https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_BattleStartCommon.js
File name : MNKR_BattleStartCommon.js
Help of plugin :
@target MZ MV
@url https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_BattleStartCommon.js
@plugindesc Replaces the message at the start of battle with a common event.
@author munokura
@license MIT License
@help
Replaces the battle start message with a common event.
Specify the variable to use as a parameter.
The variable’s value will be used as the common event ID.
If you want to display a battle start message after a common event,
add the following script (same code as in the core) to the common event.
$gameTroop.enemyNames().forEach(function(name) {
$gameMessage.add(TextManager.emerge.format(name));
});
if (this._preemptive) {
$gameMessage.add(TextManager.preemptive.format($gameParty.name()));
} else if (this._surprise) {
$gameMessage.add(TextManager.surprise.format($gameParty.name()));
}
Example
◆Combat animation display: Entire enemy group, Light/Entire group 3
◆Weight: 60 frames
◆Script:
$gameTroop.enemyNames().forEach(function(name) {
$gameMessage.add(TextManager.emerge.format(name));
});
if (this._preemptive) {
$gameMessage.add(TextManager.preemptive.format($gameParty.name()));
} else if (this._surprise) {
$gameMessage.add(TextManager.surprise.format($gameParty.name()));
}
There are no plugin commands.
# Terms of Use
MIT License.
http://opensource.org/licenses/mit-license.php
You may modify and redistribute this without permission from the author, and
there are no restrictions on its use (commercial, R18+, etc.).
@param variableId
@text Designated variables
@desc Variable ID that specifies a common event. Executes the common event whose variable value is ID. If none, it will behave the same as if the value was 0.
@type variable
@default 1
@param valueZero
@text Handling variable values of 0
@desc Whether to display the default battle start message if the specified variable’s value is 0
@type boolean
@on display
@off hidden
@default false