查看: 3611|回复: 2

[已经解决] 【求助】脚本问题

[复制链接]
梦石
0
星屑
50
在线时间
68 小时
注册时间
2014-7-8
回帖
28
发表于 2016-7-19 14:01:50 | 显示全部楼层 |阅读模式

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

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

×
  1. Game_Player.prototype.startMapEvent = function(x, y, triggers, normal) {
  2.     if (!$gameMap.isEventRunning()) {
  3.         $gameMap.eventsXy(x, y).forEach(function(event) {
  4.             if (event.isTriggerIn(triggers) && event.isNormalPriority() === normal) {
  5.                 event.start();
  6.             }
  7.         });
  8.     }
  9. };
复制代码

请问参数里的triggers和normal是指什么?要怎么填?
梦石
0
星屑
1232
在线时间
1017 小时
注册时间
2011-4-30
回帖
1464
发表于 2016-7-20 13:11:14 | 显示全部楼层

triggers 是一个数组,添加触发的情况,比如 1,2,3,4 之类的, 如果事件的触发在这个数组里,那么就返回 true , 比如 写成[1,2] ,那么事件触发条件为1或2时为 true ,否则为false
具体看 mv 的事件编辑器 里 的触发器一栏
normal 是指 是否是正常优先级 ,大概 true 就好
见事件编辑器里的 优先级一栏

点评

非常感谢!  发表于 2016-7-20 20:16
回复 1 0

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部