查看: 3762|回复: 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
以下仅供参考:



  1.                   /*---------------------------------------------------------------*/       
  2.                         var MLC = {};          /* <<<  插入参数 */
  3.                   /*---------------------------------------------------------------*/
  4. // Show Scrolling Text
  5. Game_Interpreter.prototype.command105 = function() {
  6.     if (!$gameMessage.isBusy()) {
  7.         $gameMessage.setScroll(this._params[0], this._params[1]);
  8.         while (this.nextEventCode() === 405) {
  9.             this._index++;
  10.             $gameMessage.add(this.currentCommand().parameters[0]);
  11.                         MLC.TXT = this.currentCommand().parameters[0];
  12.                        
  13.                         /* -- 拦截文本 -- */
  14.                         if (MLC.TXT == '[begin]'){
  15.                                 MLC.indexBegin = this._index ;
  16.                         }else if(MLC.TXT == '[end]'){
  17.                                 MLC.indexEnd = this._index ;
  18.                         };
  19.                        
  20.                         /* -- 提取脚本 -- */
  21.                         if (MLC.indexBegin && this._index > MLC.indexBegin){
  22.                                 if (!MLC.indexEnd){
  23.                                         if (!MLC.Script){
  24.                                                 MLC.Script = MLC.TXT + '\n';
  25.                                         }
  26.                                         else{
  27.                                                 MLC.Script = MLC.Script + MLC.TXT + '\n';
  28.                                         };
  29.                                 }else if(this._index < MLC.indexEnd){
  30.                                         MLC.Script = MLC.Script + MLC.TXT + '\n';
  31.                                 };
  32.                         };
  33.                        
  34.         }
  35.                 /* -- 执行脚本 -- */
  36.                 if (MLC.Script){
  37.                     eval(MLC.Script);
  38.                           /* -- 重置参数 --*/
  39.                         MLC.indexBegin = 0 ;
  40.                         MLC.indexEnd   = 0 ;
  41.                         MLC.Script     = '';
  42.                
  43.                 };   

  44.         this._index++;
  45.         this.setWaitMode('message');
  46.     }
  47.     return false;
  48. };
复制代码


MLC.gif

点评

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

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部