1.51 KB, 下载次数: 271
sckz8741 发表于 2019-7-31 22:17
我想請問這個插件會有辦法可以設置成該腳色擁有某個名為神佑的技能後,
該被動技能的觸發概率為20%,而這個20 ...
var Doka_Game_BattlerBase_die = Game_BattlerBase.prototype.die; Game_BattlerBase.prototype.die = function () { if (this.isActor()) { var actor = this; this.skills().forEach(function (skill) { skill.id == 161/*技能Id*/ ? (Math.random() <= 0.2 ? actor.addState(47/*自动复活状态*/) : 0) : 0; }); } if (this.AutoReviveState() > 0) { this._hp = 0; if (String(Doka_AutoRevive.parameters.ReserveState) == "true" ? false : true) this.clearStates(); if (String(Doka_AutoRevive.parameters.ReserveBuff) == "true" ? false : true) this.clearBuffs(); } else { Doka_Game_BattlerBase_die.call(this); } };
多卡多卡 发表于 2019-7-31 22:55
把Game_BattlerBase.prototype.die那部分改成这样:
var Doka_Game_BattlerBase_die = Game_BattlerBase.p ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |