设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 223|回复: 2
打印 上一主题 下一主题

[有事请教] 关于yep反击插件的使用请教

[复制链接]

Lv2.观梦者

梦石
0
星屑
680
在线时间
118 小时
注册时间
2023-4-30
帖子
25
跳转到指定楼层
1
发表于 2024-1-8 16:01:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
<Custom Counter Skills>
if (user.classId === 1 || user.classId === 2 || user.classId === 3 || user.classId === 4) {
  skills.push(11);
} else if (user.classId === 5 || user.classId === 6 || user.classId === 7) {
  skills.push(64);
} else if (user.classId === 8 || user.classId === 9 || user.classId === 10) {
  skills.push(102);
} else if (user.classId === 11 || user.classId === 12 || user.classId === 13) {
  skills.push(135);
} else if (user.classId === 14 || user.classId === 15 || user.classId === 16) {
  skills.push(168);
} else if (user.classId === 17 || user.classId === 18 || user.classId === 19) {
  skills.push(215);
}
</Custom Counter Skills> 有没有大佬用过yep的反击插件,为啥用他给的自定义反击技能代码却不生效,有知道的大佬嘛,
上面是我写的想实现的效果,下面是它的插件备注,是我哪里用错了嘛,求大佬解答
For those with JavaScript proficiency, you can use the following Lunatic
Mode notetags to give a dynamic set of skills granted for counter usage.

Actor, Class, Enemy, Weapon, Armor, and State Notetags:

  <Custom Counter Skills>
   if (user.name() === 'Harold') {
     skills.push(50, 51, 52);
   } else if (user.name() === 'Therese') {
     skills.push(53, 54, 55);
   } else if (user.name() === 'Marsha') {
     skills.push(56, 57, 58);
   } else if (user.name() === 'Lucius') {
     skills.push(59, 60, 61);
   }
  </Custom Counter Skills>
  The 'skills' variable is an array that will contain all the counter skills
  that will be added to the list of potential skills the battler can counter
  actions with provided that their requirements are met.

Lv3.寻梦者

梦石
0
星屑
3876
在线时间
992 小时
注册时间
2016-12-6
帖子
370
2
发表于 2024-1-8 17:18:34 | 只看该作者
看你写的格式本身是没什么问题,你有试过范例备注对你的工程有效果吗?
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
680
在线时间
118 小时
注册时间
2023-4-30
帖子
25
3
 楼主| 发表于 2024-1-9 10:33:28 | 只看该作者
shiroin 发表于 2024-1-8 17:18
看你写的格式本身是没什么问题,你有试过范例备注对你的工程有效果吗?

已经解决了,俩问题,第一个是代码写错了,class那个地方少了个下划线,应该是user._classId这样。然后第二个问题是反击插件的代码本身有问题,大佬帮忙修改了源码中的一个参数就好了。最后谢谢大佬解答了
回复 支持 反对

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-4 14:25

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表