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

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

MZ plugins

Speak In Battle - SpeakInBattle.js

Plugin desc : Displays dialogue in battle

License :
Public Domain
・Copyright: Waived

Author : MihailJP

Website : https://github.com/MihailJP/mihamzplugin/blob/master/SpeakInBattle.js

Desc page : https://github.com/MihailJP/mihamzplugin/blob/master/SpeakInBattle.js

Download Page : https://raw.githubusercontent.com/MihailJP/mihamzplugin/master/SpeakInBattle.js

File name : SpeakInBattle.js

Help of plugin :

* @target MZ
 * @plugindesc Displays dialogue in battle
 * @author MihailJP
 * @base PluginCommonBase
 * @base ExtraWindow
 * @orderBefore TPBCastTime
 * @url https://github.com/MihailJP/mihamzplugin/blob/master/SpeakInBattle.js
 *
 * @param duration
 * @text Display duration
 * @desc Set display duration by frames (sixtieth of a second).
 * @default 60
 * @type number
 * @min 0
 *
 * @param switchId
 * @text Display switch number
 * @desc Set switch number specified at `ExtraWindow` plugin.
 *       Uses 8 switches of sequential number starting at this number.
 * @default 1
 * @type switch
 *
 * @help SpeakInBattle.js
 *
 * Sets dialogues displayed during battle. Unlike message window,
 * small and input-wait-free.
 * This plugin supports the front-view battle screen only.
 *
 * Set memo of an enemy character like <BattleMsg1:Take this!>
 * (includes angle brackets).
 * Set memo of a skill like <enemySpeaks:1,2,3> to display messages of given
 * IDs (random if more than one) when an enemy character uses that skill.
 * Also, there is `speakPredefined` command to display message with given
 * enemy character index and message ID (the number after `BattleMsg`).
 *
 * This depends on `ExtraWindow` plugin.
 * On `ExtraWindow` configuration, requires 8 windows whose `SceneName` is
 * ”Scene_Battle” and `SwitchId` is sequential.
 * `x`, `y` and `width` are ignored since position and width are auto-adjusted.
 *
 * License: The Unlicense
 * https://github.com/MihailJP/mihamzplugin/blob/master/LICENSE.txt * Changelog
 *
 * 26 Sept 2020: Improve compatibility with TPBCastTime.
 * 21 Sept 2020: First edition.
 *
 * @command speakPredefined
 * @text Display predefined message
 * @desc Display predefined message.
 *
 * @arg enemy_index
 * @type number
 * @text Enemy character index
 * @desc Enemy character index.
 * @min 1
 * @max 8
 *
 * @arg message_id
 * @type number
 * @text Message ID
 * @desc Message ID.

スポンサードリンク

-MZ plugins

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