したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | |
レス数が1スレッドの最大レス数(1000件)を超えています。残念ながら投稿することができません。

RPGツクールMVスレ7

85名無しさん:2016/03/08(火) 18:42:38 ID:wd0dAZw6
>>72
っ 即興でプラグイン作ってみた

// スキル、武器、防具のメモ欄に <AntiCounter> というタグを入れると物理攻撃であってもカウンター攻撃を抑止するようになる
Game_Action.prototype.antiCounter = function() {
return !!this.item().note.match(/<AntiCounter>/i) || !!this.subject().equips().filter(function (e) { return e && e.note.match(/<AntiCounter>/i) })
}
Game_Action.prototype.itemCnt = function(target) {
if (this.isPhysical() && target.canMove() && this.antiCounter()) {
return target.cnt;
} else {
return 0;
}
};




掲示板管理者へ連絡 無料レンタル掲示板