标题: 关于MV中this.isLearnedSkill(skillID)的用法求教 [打印本页] 作者: 负零 时间: 2016-2-19 19:37 标题: 关于MV中this.isLearnedSkill(skillID)的用法求教 <damage formula>
if (this.isLearnedSkill(3)) {
value += 2500;
}
</damage formula>
我用了YEP_DamageCore的插件,想做出一个例子,即用1号技能(攻击)时,如果使用者学会了3号技能,则伤害增加2500。按上边的代码,似乎并不会判定(或触发)条件,导致不增加伤害,求正确用法。作者: 负零 时间: 2016-2-19 19:46
已经解决,用user.作者: 负零 时间: 2016-2-20 11:07
* Skill and Item Notetags:
* <damage formula>
* value = 500;
* value += 2500;
* </damage formula>
* This will overwrite the damage formula found at the top and use the
* strings in the middle as the formula instead. Keep in mind that using
* comments here will cancel out anything following after. New variables can
* be used, too, to make damage calculations a bit easier.
* * value - Refers to the amount that will become the base damage value.
* user - Refers to the actor/enemy using the skill/item.
* subject - Refers to the actor/enemy using the skill/item. #指角色/敌人使用的技能/项目
* target - Refers to the target actor/enemy on the receiving end of #目标
* the skill/item.