查看: 3008|回复: 0

[有事请教] 用YEP插件創造死後復活的狀態?

[复制链接]
梦石
0
星屑
630
在线时间
89 小时
注册时间
2016-6-21
回帖
19
发表于 2017-12-18 18:20:26 | 显示全部楼层 |阅读模式

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

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

×


RT,小弟自己看了YEP大的復活戒指影片後,依樣畫葫蘆地試圖做了一個類似的程式碼:

  1. <Custom Apply Effect>
  2. if (target.isActor()) {
  3.   var i = 111 ;
  4.   if (target.hasState(i)) {
  5.     target.discardState(i);
  6.     target.startAnimation(42);
  7.     var hp = Math.floor(target.mhp * 0.1);
  8.     target.gainHp(hp);
  9.     target.startDamagePopup();
  10.   }
  11. }
  12. </Custom Apply Effect>
复制代码


結果卻沒有成功......
請問哪邊有錯呢?能幫我指正一下嗎,感激不盡!
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

在本版发帖返回顶部