/*: * @target MZ * @plugindesc 戦闘開始直前にアニメーション#120を再生するプラグイン * @author * @help * プラグイン名: BattleStartAnimation120 * * このプラグインは、戦闘開始直前にパーティ全員へ * アニメーション番号 120 を再生します。 * * ■使い方 * 1. プラグイン管理画面で当プラグインを登録し、ONにしてください。 * 2. アニメーションデータベースの #120 に再生したいアニメーションを設定してください。 * * ■ライセンス * クレジット表記不要。改変、再配布等もご自由にどうぞ。 */ (() => { // Scene_Battle.prototype.start を退避 const _Scene_Battle_start = Scene_Battle.prototype.start; Scene_Battle.prototype.start = function() { // 全パーティメンバーにアニメーション#120をリクエスト $gameTemp.requestAnimation($gameParty.members(), 120); // 元の処理を呼び出す _Scene_Battle_start.apply(this, arguments); }; })();