设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2998|回复: 1
打印 上一主题 下一主题

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

[复制链接]

Lv1.梦旅人

梦石
0
星屑
138
在线时间
304 小时
注册时间
2014-4-11
帖子
419
跳转到指定楼层
1
发表于 2016-6-18 14:34:37 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
RT
va是可以的……脚本框完全写不下……
人生是一场漫长的自杀。

Lv1.梦旅人

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

JAVASCRIPT 代码复制
  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.  
  45.         this._index++;
  46.         this.setWaitMode('message');
  47.     }
  48.     return false;
  49. };


点评

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

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-4 02:13

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表