2ちゃんねる ■掲示板に戻る■ 全部 1- 最新50    

■ このスレッドは過去ログ倉庫に格納されています

RPGツクールMV総合 18作目

713 :名前は開発中のものです。:2016/07/25(月) 02:53:53.34 ID:0x1Jqfd4.net
>>711
こんな感じはいかが?

var _Game_Action_apply = Game_Action.prototype.apply;
Game_Action.prototype.apply = function(target) {
 _Game_Action_apply.call(this, target);
 if ($gameTroop._troopId === 1 && target.result().isHit() &&
  this._item.isSkill() && this._item.itemId() === 10 &&
  target instanceof Game_Enemy && target.index() === 0) {
   console.log("敵Aはスパークを受けた");
 }
};

総レス数 1002
253 KB
新着レスの表示

掲示板に戻る 全部 前100 次100 最新50
read.cgi ver.24052200