/*---------------------------------------------------------------*/
var MLC = {}; /* <<< 插入参数 */
/*---------------------------------------------------------------*/
// Show Scrolling Text
Game_Interpreter.prototype.command105 = function() {
if (!$gameMessage.isBusy()) {
$gameMessage.setScroll(this._params[0], this._params[1]);
while (this.nextEventCode() === 405) {
this._index++;
$gameMessage.add(this.currentCommand().parameters[0]);
MLC.TXT = this.currentCommand().parameters[0];
/* -- 拦截文本 -- */
if (MLC.TXT == '[begin]'){
MLC.indexBegin = this._index ;
}else if(MLC.TXT == '[end]'){
MLC.indexEnd = this._index ;
};
/* -- 提取脚本 -- */
if (MLC.indexBegin && this._index > MLC.indexBegin){
if (!MLC.indexEnd){
if (!MLC.Script){
MLC.Script = MLC.TXT + '\n';
}
else{
MLC.Script = MLC.Script + MLC.TXT + '\n';
};
}else if(this._index < MLC.indexEnd){
MLC.Script = MLC.Script + MLC.TXT + '\n';
};
};
}
/* -- 执行脚本 -- */
if (MLC.Script){
eval(MLC.Script);
/* -- 重置参数 --*/
MLC.indexBegin = 0 ;
MLC.indexEnd = 0 ;
MLC.Script = '';
};
this._index++;
this.setWaitMode('message');
}
return false;
};