加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
查了下,YEP_BattleEngineCore.js里这段代码有强制的设定,但几个参数不知道如何设置。是否有YEP战斗序列里类似的简单指令来控制这个操作,或者指导下这个怎么用。
BattleManager.queueForceAction = function(user, skillId, target) { if (target === undefined) { var targetIndex = 0; } else if (typeof target === 'number') { var targetIndex = target; } else { var targetIndex = target.index(); } var param = [ user.isEnemy() ? 0 : 1, user.isActor() ? user.actorId() : user.index(), skillId, targetIndex ]; var command = { code: 339, indent: 0, parameters: param } $gameTemp.forceActionQueue(command); this.clearResults(); if (this.isTickBased()) this._phase = 'action'; };
BattleManager.queueForceAction = function(user, skillId, target) {
if (target === undefined) {
var targetIndex = 0;
} else if (typeof target === 'number') {
var targetIndex = target;
} else {
var targetIndex = target.index();
}
var param = [
user.isEnemy() ? 0 : 1,
user.isActor() ? user.actorId() : user.index(),
skillId,
targetIndex
];
var command = {
code: 339,
indent: 0,
parameters: param
}
$gameTemp.forceActionQueue(command);
this.clearResults();
if (this.isTickBased()) this._phase = 'action';
};
|