查看: 3717|回复: 1

[已经解决] mv的事件脚本框可以扩大吗

[复制链接]
梦石
0
星屑
138
在线时间
304 小时
注册时间
2014-4-11
回帖
319
发表于 2016-6-18 14:34:37 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
RT
va是可以的……脚本框完全写不下……
人生是一场漫长的自杀。
梦石
0
星屑
50
在线时间
370 小时
注册时间
2016-1-7
回帖
81
发表于 2016-6-18 17:30:17 | 显示全部楼层
可以试试在事件的脚本框自定义函数衔接到Game_Interpreter,
跨脚本框的时候调用 this.xxxxx()或 xxxxx.call(this)。
楼主提到va...,va的是说晴兰大大那个下一行脚本么?
貌似是重写滚动文字接入到脚本框调用的。
可以试试插入自定义参数提取this._index进行比较,
自定义标签拦截脚本部分,然后重写
Game_Interpreter.prototype.command105
以下仅供参考:

[pre lang="javascript" line="1"]

                  /*---------------------------------------------------------------*/       
                        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;
};
[/pre]

MLC.gif

点评

va可以用eXescopa扩大的 感谢回答  发表于 2016-6-18 17:53
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部