查看: 3576|回复: 2

[已经解决] 关于MV中this.isLearnedSkill(skillID)的用法求教

[复制链接]
梦石
0
星屑
723
在线时间
530 小时
注册时间
2010-6-9
回帖
668
发表于 2016-2-19 19:37:54 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
  <damage formula>
if (this.isLearnedSkill(3)) {
       value += 2500;
    }
  </damage formula>
我用了YEP_DamageCore的插件,想做出一个例子,即用1号技能(攻击)时,如果使用者学会了3号技能,则伤害增加2500。按上边的代码,似乎并不会判定(或触发)条件,导致不增加伤害,求正确用法。
梦石
0
星屑
723
在线时间
530 小时
注册时间
2010-6-9
回帖
668
 楼主| 发表于 2016-2-19 19:46:00 | 显示全部楼层
已经解决,用user.

点评

user是什么 求详细  发表于 2016-2-19 23:39
回复

使用道具 举报

梦石
0
星屑
723
在线时间
530 小时
注册时间
2010-6-9
回帖
668
 楼主| 发表于 2016-2-20 11:07:11 | 显示全部楼层
* 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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部