查看: 3152|回复: 2

[有事请教] 请教如何在YEP战斗序列里强制某个技能的指令

[复制链接]
梦石
0
星屑
723
在线时间
530 小时
注册时间
2010-6-9
回帖
668
发表于 2018-12-11 22:27:16 | 显示全部楼层 |阅读模式

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

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

×
查了下,YEP_BattleEngineCore.js里这段代码有强制的设定,但几个参数不知道如何设置。是否有YEP战斗序列里类似的简单指令来控制这个操作,或者指导下这个怎么用。
  1. BattleManager.queueForceAction = function(user, skillId, target) {
  2.     if (target === undefined) {
  3.       var targetIndex = 0;
  4.     } else if (typeof target === 'number') {
  5.       var targetIndex = target;
  6.     } else {
  7.       var targetIndex = target.index();
  8.     }
  9.     var param = [
  10.       user.isEnemy() ? 0 : 1,
  11.       user.isActor() ? user.actorId() : user.index(),
  12.       skillId,
  13.       targetIndex
  14.     ];
  15.     var command = {
  16.       code: 339,
  17.       indent: 0,
  18.       parameters: param
  19.     }
  20.     $gameTemp.forceActionQueue(command);
  21.     this.clearResults();
  22.     if (this.isTickBased()) this._phase = 'action';
  23. };
复制代码
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

在本版发帖返回顶部