/*------------------------------ Copyright (c) 2025 PotatoDragon Released under the MIT License. https://opensource.org/license/mit ------------------------------*/ /*: @target MZ @url https://raw.githubusercontent.com/pota-gon/RPGMakerMZ/refs/heads/main/plugins/Game/Event/NameWindow.js @plugindesc Name Window Automation Ver1.3.6 (2024/11/3) @author PotatoDragon @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/PotatoDragon-MZ-plugins ). Original plugin by PotatoDragon. Please check the latest official version at: https://github.com/pota-gon/RPGMakerMZ/wiki ----- ## Overview The name will be set automatically to some extent even if you don't enter anything in the name window. ## How to Use No initial setup required. Just install the plugin and it will work. @param IgnoreEventName @text Name Window Exclude Event Name @desc When displaying text in a normal window, the event name is @default EV */ /*:ja @plugindesc 名前ウィンドウ自動化 Ver1.3.6(2024/11/3) @url https://raw.githubusercontent.com/pota-gon/RPGMakerMZ/refs/heads/main/plugins/Game/Event/NameWindow.js @target MZ @author ポテトードラゴン ・アップデート情報 Ver1.3.6: プラグインパラメータの名前ウィンドウ除外イベント名(IgnoreEventName) が機能していなかったバグを修正 Ver1.3.5: コピーライト更新 Copyright (c) 2025 ポテトードラゴン Released under the MIT License. https://opensource.org/license/mit @help ## 概要 名前ウィンドウに何も入力してなくてもある程度自動で名前を設定します ## 使い方 初期設定は必要ありません プラグイン導入だけで動作します @param IgnoreEventName @text 名前ウィンドウ除外イベント名 @desc 通常ウィンドウで文章の表示をするときにイベント名が この文字列を含む場合、名前ウィンドウを表示しない @default EV */ (() => { 'use strict'; // ベースプラグインの処理 function Potadra_getPluginName(extension = 'js') { const reg = new RegExp(".+\/(.+)\." + extension); return decodeURIComponent(document.currentScript.src).replace(reg, '$1'); } // パラメータ用変数 const plugin_name = Potadra_getPluginName(); const params = PluginManager.parameters(plugin_name); // 各パラメータ用変数 const IgnoreEventName = String(params.IgnoreEventName || ''); /** * イベントコマンドを実行するインタプリタです。 * このクラスは Game_Map クラス、Game_Troop クラス、 * Game_Event クラスの内部で使用されます。 * * @class */ /** * 文章の表示 * * @param {array} params - *