dragon-wyrmling/www/js/plugins/MOT_ScriptCommandExtension.js
2023-11-08 14:01:37 -06:00

76 lines
No EOL
2.9 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//=============================================================================
// MOT_ScriptCommandExtension.js
//=============================================================================
// MOTplugin - イベントのスクリプト拡張
// 作者: 翠 (http://midori.wp.xdomain.jp/)
// Version: 1.0
// 最終更新日: 2016/03/11
//=============================================================================
//■更新履歴
/*
2016/03/11 - 公開
*/
//=============================================================================
/*■利用規約
*-クレジットの表記
* クレジットの表記は基本的に不要です。
* 表記する場合はホームページを参照してください。
* 営利目的での使用する場合は表記してください。
*
* 表記例
* スクリプト素材 翠 (http://midori.wp.xdomain.jp/)
* または
* スクリプト素材 HM Project (http://midori.wp.xdomain.jp/)
*
*-スクリプトの改変/配布
* スクリプトの改変はご自由に行ってください。
* 改変を行って発生したバグ等には対処しません。
*
*-スクリプトの再配布
* そのままの再配布は禁止とさせていただきます。
* 改造した物を配布する場合、オリジナルのクレジットを残してもらえれば
* 配布することを可能とします。
* ※改造の有無に関わらず素材を有料で配布する場合は禁止とさせていただきます。
* ※ゲームに含まれる場合のみ再配布可能とします。
*
*-使用可能なゲームのジャンル
* エログロなんでも使用可能です。
*
*/
//=============================================================================
/*:
* @plugindesc イベントのスクリプト拡張
* @author 翠
* @help
* ■利用規約
* 本プラグインの中に記述してある物、または配布サイト
* の利用規約をご確認ください。
*
* ■プラグイン概要
* スクリプト連続で配置した場合、一つの
* スクリプトとして判別しますので行数制限が気にならなくなります。
* ■使用方法
* イベントのスクリプトを連続で配置してください。
* 
*/
//============================================================
//■Game_Interpreter
//============================================================
Game_Interpreter.prototype.command355 = function() {
var script = this.currentCommand().parameters[0] + '\n';
while (this.nextEventCode() === 655) {
this._index++;
script += this.currentCommand().parameters[0] + '\n';
}
while (this.nextEventCode() === 355) {
this._index++;
script += this.currentCommand().parameters[0] + '\n';
while (this.nextEventCode() === 655) {
this._index++;
script += this.currentCommand().parameters[0] + '\n';
}
}
eval(script);
return true;
};