何度もありがとうございます

コード: 全て選択
Window_Base.prototype.drawACGauge = function(actor, x, y, width) {
if (FTKR.AltTB.dispACGauge && !FTKR.AltTB.acDrawType && actor.maxActionCount() > 0) {
var color1 = this.acGaugeColor1();
var color2 = this.acGaugeColor2();
var mac = actor.maxActionCount();
var tspan = width / mac;
this.drawGauge(x, y, width, actor.acRate(), color1, color2);
for (var i = 1; i < mac; i++) {
var tmark = i;
var gaugeY = y + this.lineHeight() - 8;
this.contents.fillRect(x + tspan * tmark, gaugeY, 1, 6, this.textColor(15));
}
}
};
Window_Base.prototype.drawAPGauge = function(x, y, width) {
if (FTKR.AltTB.dispAPGauge && FTKR.AltTB.apDrawType !== 2) {
var color1 = this.apGaugeColor1();
var color2 = this.apGaugeColor2();
var map = $gameParty.maxActionPoint();
var tspan = width / map;
this.drawGauge(x, y, width, $gameParty.apRate(), color1, color2);
for (var i = 1; i < map; i++) {
var tmark = i;
var gaugeY = y + this.lineHeight() - 8;
this.contents.fillRect(x + tspan * tmark, gaugeY, 1, 6, this.textColor(15));
}
}
};
ご連絡ありがとうございます。wrap さんが書きました:FTKR_AlternatingTurnBattle(v1.4.1)ですが、プラグインコマンドで増加させたAPで行動した際、Cannot read property 'setAttack' of undefinedエラーが発生します。
アクター・職業の特徴で追加した行動回数追加だと問題なく行動できました。