Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
213 commits
Select commit Hold shift + click to select a range
0a93fd9
技能OC改为根据当前配置的攻击流派来对应具体的值;增加初始闲置竞技场非空检测
WayneFerdon Aug 21, 2025
c220bcb
版本号更改为2.90.22.13
WayneFerdon Aug 21, 2025
d9665d3
调整其他技能的释放逻辑,修正其他技能选择目标时没有判断范围的问题
WayneFerdon Aug 21, 2025
fc95888
修正条件判断中iscd的值与Readme中示例不相符的问题
WayneFerdon Aug 21, 2025
eb005c4
修正iscd的判断
WayneFerdon Sep 5, 2025
0c59115
Update hvAutoAttack.user.js
WayneFerdon Sep 5, 2025
12ab3ca
调整iscd及条件检测相关逻辑
WayneFerdon Sep 5, 2025
83b5922
Update hvAutoAttack.user.js
WayneFerdon Sep 5, 2025
642b988
Update hvAutoAttack.user.js
WayneFerdon Sep 5, 2025
61c4ebb
Update hvAutoAttack.user.js
WayneFerdon Sep 5, 2025
6991b8f
Update hvAutoAttack.user.js
WayneFerdon Sep 5, 2025
0c1c4f6
释放条件新增可以按照option配置值
WayneFerdon Sep 5, 2025
fbce5ce
Update hvAutoAttack.user.js
WayneFerdon Sep 5, 2025
71b6763
fightingStyle改为自动动态获取
WayneFerdon Sep 5, 2025
e44337a
fix http/https wrong replace
WayneFerdon Sep 7, 2025
a55b9de
调整战斗中状态栏百分百数值的插入格式
WayneFerdon Oct 21, 2025
f398208
Update hvAutoAttack.user.js
WayneFerdon Oct 21, 2025
4d38713
改为默认仅在开启遭遇战时显示倒计时,增加不开启时显示倒计时的选项
WayneFerdon Oct 21, 2025
532275a
增加对旧版本encounter数据兼容和导入
WayneFerdon Oct 21, 2025
239d310
调整debuff释放逻辑
WayneFerdon Oct 22, 2025
10050f5
修正暂停时战斗结束,解除暂停时未正常退出战斗的问题
WayneFerdon Oct 22, 2025
ac51617
添加Ability数据未初始化时的非空检测和默认值
WayneFerdon Oct 23, 2025
30ef52e
Bump version to 2.90.22.23
WayneFerdon Oct 23, 2025
2f88ccb
修复gr无法自动开启的问题
WayneFerdon Oct 23, 2025
66a6650
添加进入压榨届的stamina阈值设置
WayneFerdon Oct 23, 2025
910f2cb
全体上debuff的目标选择增加选项按照位次(通过统一权重实现)而非权重选择(以保障尽可能少步骤放完)
WayneFerdon Oct 23, 2025
178803e
Update hvAutoAttack.user.js
WayneFerdon Oct 23, 2025
cdcb783
修正耐力检查条件判断
WayneFerdon Oct 24, 2025
7e6e3de
修正全体debuff选择初始目标设置了但未按照序号的问题
WayneFerdon Oct 24, 2025
b464900
Update hvAutoAttack.user.js
WayneFerdon Oct 24, 2025
ef653c9
Update hvAutoAttack.user.js
WayneFerdon Oct 24, 2025
7bbe641
调整释放全体buff寻找目标逻辑
WayneFerdon Oct 25, 2025
d2c7c94
Refactor condition for target range check
WayneFerdon Oct 25, 2025
5ca7e1a
修正自动新关卡或退出的判断函数名错误
WayneFerdon Oct 25, 2025
e8abff7
按照排序全体上debuff时按照顺序遍历而非实际权重
WayneFerdon Oct 25, 2025
d92b19b
优化卷轴释放逻辑
WayneFerdon Oct 27, 2025
827a7dc
修正使用技能和使用物品,query页面elem时,搜索技能>治疗(311)会搜索到物品>守护卷轴(13111)的问题
WayneFerdon Oct 27, 2025
f4fc0d6
调整gr次数记录的时机到检测stamina通过之后
WayneFerdon Oct 31, 2025
f622e25
Bump version to 2.90.22.33
WayneFerdon Oct 31, 2025
500d69f
没有装备武器时的技能释放检查
WayneFerdon Nov 1, 2025
14431c6
Update hvAutoAttack.user.js
WayneFerdon Nov 1, 2025
b63d008
修正gr没有初次挑战时,缺失token导致报错的问题(直接跳转页面点击按钮,例如异世界刷新赛季后的第一次会缺失token)
WayneFerdon Nov 1, 2025
222513b
增加新版本下hp条显示数值的兼容
WayneFerdon Nov 1, 2025
5246a04
增加sp小于等于1时开启ss的检查(此时无法开启)
WayneFerdon Nov 1, 2025
4a6a9d5
Update hvAutoAttack.user.js
WayneFerdon Nov 1, 2025
751e399
修正初次跳转gr没有修正次数的问题
WayneFerdon Nov 1, 2025
6b5e3f5
Update hvAutoAttack.user.js
WayneFerdon Nov 1, 2025
61bfa9b
修正竞技场没有token时的显示及队列获取;增加异世界新版本的装备修理检查(新版的自动修理功能未添加)
WayneFerdon Nov 1, 2025
682da33
增加异世界新版本下的自动装备修理和进入竞技场
WayneFerdon Nov 2, 2025
e4ceb4d
Update hvAutoAttack.user.js
WayneFerdon Nov 3, 2025
dc6bcc2
2.90.24 Adjust new version Isekai in-battle buffTurn acquire
WayneFerdon Nov 4, 2025
1babbb6
fix all buff turn acquire to adapt new version isekai
WayneFerdon Nov 4, 2025
4554745
适配新版本异世界战斗日志数据收集中的伤害获取
WayneFerdon Nov 5, 2025
cab64a7
Update damage matching regex for better accuracy
WayneFerdon Nov 5, 2025
7f2feb0
调整条件选项栏位置
WayneFerdon Nov 6, 2025
240a0af
修正显示权重相关复选框位置
WayneFerdon Nov 6, 2025
b3c0b72
2.90.28 补充新版本伤害日志信息获取
WayneFerdon Nov 6, 2025
2c88af0
调整战斗开启耐力设置UI
WayneFerdon Nov 6, 2025
1d1daab
2.90.29 修正耐力相关检测设置描述及提示
WayneFerdon Nov 6, 2025
345a0de
统一人物及怪物状态相关获取,战斗日志伤害条目读取增加非空检查
WayneFerdon Nov 6, 2025
a09b29c
Update hvAutoAttack.user.js
WayneFerdon Nov 6, 2025
2cb0ebc
添加条件中的怪物状态(buff持续时间、HP%、MP%、SP%),原有的最后的慈悲的限定条件将自动更新为对应的条件配置
WayneFerdon Nov 6, 2025
3d17497
更新2.90.31相关的readme
WayneFerdon Nov 6, 2025
3a629d9
Update README with installation notice and content
WayneFerdon Nov 6, 2025
5d98708
Update README.md
WayneFerdon Nov 6, 2025
72c279e
Update README_en.md
WayneFerdon Nov 6, 2025
327608a
Update README.md
WayneFerdon Nov 6, 2025
e04ac63
Update hvAutoAttack.user.js
WayneFerdon Nov 6, 2025
e4f9ce8
Update hvAutoAttack.user.js
WayneFerdon Nov 6, 2025
9c287ad
2.90.32 增加步进按钮及快捷键,点击后执行一次战斗操作(进入战斗、或战斗内操作)后暂停
WayneFerdon Nov 7, 2025
e2d4d02
Update hvAutoAttack.user.js
WayneFerdon Nov 7, 2025
019270d
Update hvAutoAttack.user.js
WayneFerdon Nov 7, 2025
81a81f2
2.90.33 修正先释放全体的debuff的条件判断错误
WayneFerdon Nov 8, 2025
92ca5f1
2.90.34 修正条件判断获取的目标,在空条件时未按照给定数组返回的问题
WayneFerdon Nov 8, 2025
a589e3f
2.90.35 代码优化及清理
WayneFerdon Nov 9, 2025
422b5e1
2.90.36 use fetch instead of iframe
WayneFerdon Nov 9, 2025
dd7c879
2.90.37 数据记录增加filter
WayneFerdon Nov 10, 2025
b18baa2
调整战斗权重显示设置UI
WayneFerdon Nov 12, 2025
471c5a3
2.90.38 增加使用其他技能前的非空检查
WayneFerdon Nov 12, 2025
576ff36
2.90.39 能量饮料hathperk记录改为按照userid,且跳过已解锁user的检查
WayneFerdon Nov 12, 2025
d78ffc8
timing for encounter changed to after battleready checked
WayneFerdon Nov 12, 2025
32ca9bc
2.90.40 调整开启战斗前异步检查流程,增加遭遇战前检查库存和装备设置
WayneFerdon Nov 12, 2025
0719542
Add logging for async operations
WayneFerdon Nov 12, 2025
00966f0
2.90.41 auto skill: fix optionSkills assignment
WayneFerdon Nov 13, 2025
90a6d84
2.90.42 skip encounter check in arena battle ready check while auto e…
WayneFerdon Nov 13, 2025
b1a48d1
修复可能因网络原因记录了竞技场done但实际未进入时,当日无法再自动进入该竞技场的问题
WayneFerdon Nov 15, 2025
afd50c9
2.90.43 增加自动开启战斗时优先使用alt站的选项;自动遭遇战、竞技场等前检查当前网络情况(fetch当前页面)以避免因网络原因导致…
WayneFerdon Nov 16, 2025
a0cd1e1
Update hvAutoAttack.user.js
WayneFerdon Nov 16, 2025
46aab36
Update hvAutoAttack.user.js
WayneFerdon Nov 16, 2025
9d6b7a4
Refactor battle navigation logic in hvAutoAttack
WayneFerdon Nov 16, 2025
1ecd67d
Update hvAutoAttack.user.js
WayneFerdon Nov 16, 2025
5a6c0b2
Bump version to 2.90.44
WayneFerdon Nov 16, 2025
9b8d22b
Update hvAutoAttack.user.js
WayneFerdon Nov 16, 2025
33480bb
2.90.45 优化遭遇战在当天有错失且次数已用完时的倒计时及eh站返回行为
WayneFerdon Nov 16, 2025
8a6fe15
Update hvAutoAttack.user.js
WayneFerdon Nov 16, 2025
c67a57f
2.90.46 修正数据记录对旧数据的兼容问题;增加非空检查:战斗中途更新脚本时可能因技能数据未能获取导致报错
WayneFerdon Nov 17, 2025
95a1ca6
Update hvAutoAttack.user.js
WayneFerdon Nov 17, 2025
5547c34
Update hvAutoAttack.user.js
WayneFerdon Nov 17, 2025
72c6a12
2.90.48
WayneFerdon Nov 17, 2025
8128d9b
2.90.49 修正为等待服务器返回进入了战斗再进行页面刷新
WayneFerdon Nov 17, 2025
49c1d15
2.90.50 增加idleArena debug信息
WayneFerdon Nov 17, 2025
d0f4cbe
Update hvAutoAttack.user.js
WayneFerdon Nov 17, 2025
32bfeed
修正alt跳转
WayneFerdon Nov 17, 2025
8bc13bf
2.90.51 gf的idleArena耐力cost更改为0(即只按照配置中的gf单独的耐力阈值判断是否进入);代码风格调整
WayneFerdon Nov 17, 2025
643a0bd
2.90.51 调整遭遇战进入战斗时间的记录时机,避免可能存在的未记录问题;增加日志信息
WayneFerdon Nov 17, 2025
9789aa3
修正遭遇战记录
WayneFerdon Nov 17, 2025
c2b9d8b
2.90.53 调整遭遇战进入判定及遭遇记录
WayneFerdon Nov 17, 2025
0ef5f65
Update hvAutoAttack.user.js
WayneFerdon Nov 17, 2025
70312f6
2.90.54 增加设置:压榨届可使用单独的库存检查
WayneFerdon Nov 17, 2025
8f6c951
2.90.55 增加压榨届额外耐久度检查
WayneFerdon Nov 17, 2025
8310353
2.90.56 调整ui及修正装备检查条件
WayneFerdon Nov 18, 2025
650b6c1
2.90.57 修正权重debuff匹配
WayneFerdon Nov 18, 2025
13bf40a
2.90.58 增加新的buff/debuff权重参数
WayneFerdon Nov 18, 2025
b03de62
Update hvAutoAttack.user.js
WayneFerdon Nov 18, 2025
2bb408c
2.90.59 修正ui
WayneFerdon Nov 19, 2025
ec9cbb9
2.90.60 添加优先等待遭遇战的时间设置
WayneFerdon Nov 19, 2025
76c8b74
Update hvAutoAttack.user.js
WayneFerdon Nov 20, 2025
a090fc5
Update hvAutoAttack.user.js
WayneFerdon Nov 20, 2025
4fba280
2.90.61 fix async ready condition
WayneFerdon Nov 21, 2025
a398f9e
2.90.62 apply riddle popup to adjust new version, rimove RiddleLimite…
WayneFerdon Nov 21, 2025
d18034a
2.90.63 apply riddle popup to adjust new version, remove RiddleLimite…
WayneFerdon Nov 21, 2025
193ac52
2.90.64 fix SkipWhileDefeat bugs
WayneFerdon Nov 21, 2025
61384ad
2.90.65 fix ui bug and optimize page reload
WayneFerdon Nov 21, 2025
719ba9e
2.90.66 Window load and reload
WayneFerdon Nov 22, 2025
70723be
Update hvAutoAttack.user.js
WayneFerdon Nov 22, 2025
c450590
Update hvAutoAttack.user.js
WayneFerdon Nov 22, 2025
e2b3601
Update hvAutoAttack.user.js
WayneFerdon Nov 22, 2025
c20cef9
2.90.67 window.close try-catch and debug log
WayneFerdon Nov 22, 2025
8da29b9
2.90.68 Ajax skip duplication fetch requst
WayneFerdon Nov 22, 2025
f040d33
2.90.69 fix encounter nullable check; skip ability update if failed f…
WayneFerdon Nov 22, 2025
883ced6
fix dodying #170
WayneFerdon Nov 22, 2025
cd16d5b
2.90.70 Try fixing iframe/popup to window.top relocation/close bugs
WayneFerdon Nov 22, 2025
d11a305
Update hvAutoAttack.user.js
WayneFerdon Nov 22, 2025
b834588
2.90.71 deprecating abilities' level and range
WayneFerdon Nov 22, 2025
9286d19
2.90.72 重新加载opener时增加try-catch,失败时显示具体日志和前后href,并再次使用opener原本的url进行重新加载
WayneFerdon Nov 22, 2025
9107e00
2.90.73 调整等待暂停结束方式,从递归改为循环;调整竞技场进入前的流程
WayneFerdon Nov 23, 2025
68d40ea
2.90.74 不启用riddlepopup时跳过window.close的流程,避免Firefox中不启用时也会受其不兼容影响;增加弹窗…
WayneFerdon Nov 23, 2025
88c1ba2
2.90.75 Optimization for unsafeWindow.battle loading;Check unsafeWind…
WayneFerdon Nov 23, 2025
941ce58
Update hvAutoAttack.user.js
WayneFerdon Nov 23, 2025
3190092
2.90.76
WayneFerdon Nov 27, 2025
68b9a5e
2.90.76 fix condition
WayneFerdon Nov 27, 2025
33f1170
Update hvAutoAttack.user.js
WayneFerdon Nov 27, 2025
fc7af9f
调整UI
WayneFerdon Nov 28, 2025
2721f51
2.90.77 buff/debuff改为剩余turns低于阈值时即可释放,而非无buff才释放
WayneFerdon Nov 28, 2025
df22359
2.90.78 buff/debuff 阈值小于0时不检查阈值
WayneFerdon Nov 28, 2025
69afeef
2.90.79 优化耐力读取及耐力条件检测;优化基础写入,写入前统一判断值是否有改变
WayneFerdon Nov 28, 2025
e61baf9
2.90.80 调整全体debuff的实现;优化所有涉及执行顺序的选项读取,并为其增加默认值(除了引导技能);其他UI及代码优化
WayneFerdon Dec 3, 2025
fc7d7e7
Update hvAutoAttack.user.js
WayneFerdon Dec 3, 2025
8058952
Update hvAutoAttack.user.js
WayneFerdon Dec 3, 2025
53c6abf
2.90.81 调整纠正引导技能最后的释放
WayneFerdon Dec 3, 2025
aa0e0c1
2.90.83 修正引导技能相关,并增加停止引导技能上buff的上限
WayneFerdon Dec 3, 2025
32f5ae8
2.90.84 修正引导技能
WayneFerdon Dec 4, 2025
aeed919
2.90.85 增加引导最后rebuff的开关
WayneFerdon Dec 4, 2025
e593ced
2.90.86 修正引导中的循环
WayneFerdon Dec 4, 2025
82258b8
Update hvAutoAttack.user.js
WayneFerdon Dec 4, 2025
aa5cf7a
2.90.87
WayneFerdon Dec 4, 2025
a062f09
2.90.88 修正变量/常量问题
WayneFerdon Dec 4, 2025
78f15ee
2.90.89 修正引导3 判断是否为卷轴buff时 的非空检查
WayneFerdon Dec 4, 2025
4467ed5
2.90.90 修正引导的阈值判断
WayneFerdon Dec 4, 2025
9776de0
2.90.91 修正引导2的buff和治疗技能区分
WayneFerdon Dec 4, 2025
1a29ec9
2.90.92 增加特殊先释放全体debuff时,可以将不同的debuff视作已覆盖(例如沉眠、沉默、致盲等高cd技能),以增加debuf…
WayneFerdon Dec 4, 2025
48f8409
更改为Dr、MN也视作可以被互斥覆盖而在释放全体debuff时排除
WayneFerdon Dec 4, 2025
3ea7e41
Update hvAutoAttack.user.js
WayneFerdon Dec 4, 2025
b77627e
Update hvAutoAttack.user.js
WayneFerdon Dec 4, 2025
fa5271d
2.90.93
WayneFerdon Dec 4, 2025
5450f83
2.90.94 修正debuff Exclusive的非空检查
WayneFerdon Dec 5, 2025
b6f0584
2.90.95 调整获取buff持续时间的返回值,将永久buff的返回值改为Infinity
WayneFerdon Dec 5, 2025
44fd85f
Revise README with updated information and examples
WayneFerdon Dec 5, 2025
d829f51
Update README_en.md
WayneFerdon Dec 5, 2025
f55b70d
2.90.96 调整遭遇战UI;修正及自动关闭弹窗时的判断流程,仅在opener中存在#riddlecounter,#battle_mai…
WayneFerdon Dec 5, 2025
85d01c6
2.90.97 增加容错,判断是否关闭弹出窗口时,因跨域无法获取opener.document导致的无法判断是否在战斗内
WayneFerdon Dec 5, 2025
71568e2
2.90.99 修正数据及掉落记录的__name(battleCode)
WayneFerdon Dec 6, 2025
4dd09c1
Update hvAutoAttack.user.js
WayneFerdon Dec 6, 2025
0ea95d2
2.90.100 修正数据及掉落检测的UI
WayneFerdon Dec 6, 2025
64345b0
2.90.101 调整为每次读取option前都进行检查
WayneFerdon Dec 6, 2025
f9db921
2.90.102 修正重复初始化设置按钮的问题
WayneFerdon Dec 6, 2025
307da8a
2.90.103 优化ajax异步、iframe、不同script之间的协同
WayneFerdon Dec 7, 2025
d185360
2.90.104 优化及修正ability获取
WayneFerdon Dec 7, 2025
1660d40
2.90.105 优化ajax;修正及调整范围和目标选取
WayneFerdon Dec 8, 2025
b8297ea
2.90.106
WayneFerdon Dec 8, 2025
8125321
2.90.107 修正库存检查中药水和长效药id对调了的问题
WayneFerdon Dec 10, 2025
b8aa569
2.90.108 移除不再有效的精力损失时的脚本行为;增加精力消耗倍率的估算
WayneFerdon Dec 11, 2025
64b32d1
Update stamina.lastCost handling for 'gr' case
WayneFerdon Dec 11, 2025
31e6734
Update hvAutoAttack.user.js
WayneFerdon Dec 11, 2025
aa3079a
暂时不启用精力消耗倍率来计算cost
WayneFerdon Dec 11, 2025
cb39070
Update hvAutoAttack.user.js
WayneFerdon Dec 11, 2025
9c43923
Update hvAutoAttack.user.js
WayneFerdon Dec 11, 2025
853c864
2.90.110
WayneFerdon Dec 11, 2025
ef8e65f
Update hvAutoAttack.user.js
WayneFerdon Dec 11, 2025
9aa3778
2.90.111 增加新版本答题自动提交+随机答案功能
WayneFerdon Dec 15, 2025
20a0450
Update hvAutoAttack.user.js
WayneFerdon Dec 15, 2025
70e00f9
Update hvAutoAttack.user.js
WayneFerdon Dec 15, 2025
db8a7ad
Update hvAutoAttack.user.js
WayneFerdon Dec 15, 2025
667b96c
Update UI elements and labels in hvAutoAttack script
WayneFerdon Dec 15, 2025
d9d6edb
2.90.112 读取条件时自动清除空格
WayneFerdon Dec 16, 2025
eabcf61
Update README_en.md
WayneFerdon Dec 19, 2025
987f651
Update README.md
WayneFerdon Dec 19, 2025
5c31a8f
2.90.113 条件公式改为使用转为逆波兰式并计算(原格式仍兼容)
WayneFerdon Dec 21, 2025
b7baa87
Revise README_en.md for clarity and updates(2.90.113+)
WayneFerdon Dec 21, 2025
ed3577c
Revise README.md for clarity and updates(2.90.113+)
WayneFerdon Dec 21, 2025
c0b0515
2.90.114 增加对fightStyle、attackStatus的判断变量
WayneFerdon Dec 21, 2025
663a948
Update README.md for 2.90.114
WayneFerdon Dec 21, 2025
17d3416
Update README_en.md for 2.90.114
WayneFerdon Dec 21, 2025
a5df611
2.90.115 修正条件判断
WayneFerdon Dec 21, 2025
7742754
2.90.116 修正治疗的默认顺序id错误的问题
WayneFerdon Dec 21, 2025
658505e
2.90.117 修正自动灵动架势的执行
WayneFerdon Dec 22, 2025
28d3a52
2.90.118 增加不使用自定义战斗顺序的选项
WayneFerdon Dec 22, 2025
be2d37d
2.90.119 增加低阶魔法技能使用条件,攻击模式为非物理时将同时根据该条件来释放低阶魔法技能(所有魔法技能均不满足条件时使用物理攻击)
WayneFerdon Dec 24, 2025
163d05e
2.90.120 添加次要攻击模式(及其顺序、条件)。执行攻击前,尝试按照顺序和对应的条件尝试找到次要模式并攻击,否则(没找到或所有都攻击…
WayneFerdon Dec 24, 2025
ae5fe7a
Update hvAutoAttack.user.js
WayneFerdon Dec 24, 2025
f810018
2.90.121 修正攻击模式配置读写
WayneFerdon Dec 25, 2025
5b88828
2.90.122 skillOTOS改为本地化存储,增加Spell的次数;修正RPN对'.'的支持
WayneFerdon Dec 25, 2025
b939279
2.90.123 增加公式读取中对含下划线'_'的键值的支持
WayneFerdon Dec 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 38 additions & 12 deletions HentaiVerse/hvAutoAttack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@
***

### 自定义判断条件

每一个拥有红色虚线边框的区域,都可以设置自定义判断条件。

现已支持自定义的条件公式,例如`hp > mp` 或 `2 * ( hp + mp ) > sp`,支持运算符: `+` `-` `*` `/` `%` `**` `&&` `||` `!` `>` `<` `>=`(`≥`) `<=`(`≤`) `==`(`=`,`===`) `!=`(`≠`,`~=`,`<>`),逻辑运算符返回`0`或`1` (表示false或true)

* 注意:如果这些区域留空(一个条件也没设置),那么就相当于真。

当鼠标在这些区域内移动时,右上角会显示一个盒子(当鼠标不在这些区域内,盒子消失)
Expand All @@ -63,32 +64,42 @@

* 下拉列表2/4: 比较值A/比较值B

* 下拉列表3: 只支持比较运算符(`1`:大于, `2`:小于, `3`: 大于等于, `4`: 小于等于, `5`:等于, `6`:不等于)
* 下拉列表3: 运算符

* ADD按钮: 生成一个值为 `比较值A 运算符 比较值B` 的输入框

* ADD按钮: 生成一个值为`比较值A,比较值,比较值B`的输入框
* 仍兼容旧版本 `比较值A,比较运算符,比较值B` 的条件,其中比较运算符:(`1`:大于, `2`:小于, `3`: 大于等于, `4`: 小于等于, `5`:等于, `6`:不等于)

#### 比较值

1. `hp`/`mp`/`sp`: hp/mp/sp的*百分比 (percent)*
2. `oc`: Overcharge, 250==>250%
3. `monsterAll`/`monsterAlive`/`bossAll`/`bossAlive`: 怪兽/Boss的总数目/存活数目
4. `roundNow`/`roundAll`/`roundLeft`: 当前回合数/总回合数/剩余回合数
5. `roundType`: 战役模式 (`ar`: The Arena, `rb`: Ring of Blood, `gr`: GrindFest, `iw`: Item World, `ba`: Random Encounter)
5. `isRoundType`、`ar`、`ba`、`iw`、`tw`、`gr`、`rb`: 当前是否是某战役模式,例如`_isRoundType_ar`或`_ar`均返回 `当前是否是The Arena`
6. `roundType`: 战役模式 (`ar`: The Arena, `rb`: Ring of Blood, `gr`: GrindFest, `iw`: Item World, `ba`: Random Encounter, `tw`: The Tower)

**注意**: 由于是字符串之间的比较,所以请加上引号,如"ar"/'ar'
**注意**: 由于是字符串之间的比较,所以用旧版本格式`比较值A,比较运算符,比较值B`时请加上引号,如"ar"/'ar'

6. `attackStatus`: 攻击模式 (`0`: Physical, `1`: Fire, `2`: Cold, `3`: Elec, `4`: Wind, `5`: Divine, `6`: Forbidden)
7. `isCd`: 技能/物品是否cd,格式`_isCd_id`
7. `attackStatus`: 攻击模式 (`0`: Physical, `1`: Fire, `2`: Cold, `3`: Elec, `4`: Wind, `5`: Divine, `6`: Forbidden)。 或使用 `_phys`, `_fire`, `_cold`, `_elec`, `_wind`, `_divi`, `_forb` 表示 `当前 attack mode 是否为 ...`,例如 `_phys` 等价于 `attackStatus == 0`
8. `fightingStyle`: 战斗风格 (`1`: 二天, `2`: 单手, `3`: 双手, `4`: 双持, `5`: 法杖)。 或使用 `_nt`, `_1h`, `_2h`, `_dw`, `_staff` 表示 `当前 fighting style 是否为 ...`,例如 `_nt` 等价于 `fightStyle == 1`
9. `isCd`: 技能/物品是否cd,格式`_isCd_id`

**示例1**: Protection的id为411,则`_isCd_411,5,0`表示不可施放,`_isCd_411,5,1`表示可以施放
**示例1**: Protection的id为411,则`!_isCd_411`表示不可施放,`_isCd_411`表示可以施放

**示例2**: ManaElixir的id为11295,则`_isCd_11295,5,0`表示不可使用,`_isCd_11295,5,1`表示可以使用
**示例2**: ManaElixir的id为11295,则`!_isCd_11295`表示不可使用,`_isCd_11295`表示可以使用

8. `buffTurn`: 人物Buff剩余时间,格式`_buffTurn_img`
10. `buffTurn`: 人物Buff剩余时间,格式`_buffTurn_img`

**示例**: Protection的img为protection,则`_buffTurn_protection,5,0`表示不存在Protection的buff,`_buffTurn_protection,3,10`表示Protection的buff至少剩余10回合
**示例**: Protection的img为protection,则`_buffTurn_protection == 0`表示不存在Protection的buff,`_buffTurn_protection >= 10`表示Protection的buff至少剩余10回合

9. 空白(blank): 自己输入 (the value you want to put in)
11. `targetHp`、`targetMp`、`targetSp`、`targetBuffTurn`: 目标怪物的HP%、SP%、MP%、buff剩余时间,`_targetBuffTurn_`后缀参照8.`buffTurn`(如:`_targetBuffTurn_bleed != 0`表示目标bleed的buff剩余回合不等于0)。target的目标怪物遵循以下规则
1. 默认情况的target均为权重优先级最高的目标
2. 武器技能(马炮、T1~T3等)、法术技能(中阶、高阶):按照 逐条条件判断>按权重逐个目标>满足任意一条条件内的所有子条目,则对该目标释放。例如下图最后的慈悲的条件:仅释放hp小于25%、拥有流血buff

![示例](https://github.com/user-attachments/assets/b4d0c57d-fdb1-464b-88d6-107643809339)

12. 空白(blank): 自己输入 (the value you want to put in)

#### 示例

Expand Down Expand Up @@ -162,6 +173,14 @@
| Infusion of Storms / windinfusion | Infusion of Divinity / holyinfusion | Infusion of Darkness / darkinfusion |
| Scroll of Swiftness / haste_scroll | - | - |
| Flower Vase / flowers | Bubble-Gum / gum | - |
| Sleep / sleep | Blind / blind | Slow / slow |
| Imperil / imperil | MagNet / magnet | Silence / silence |
| Drain / drainhp | Weaken / weaken | Confuse / confuse |
| Coalesced Mana / coalescemana | Stunned / stun / wpn_stun | Penetrated Armor / ap / wpn_ap |
| Bleeding Wound / bleed / wpn_bleed | Absorbing Ward / absorb | Fury of the Sisters / trio_furyofthesisters |
| Lamentations of the Future / trio_skuld | Screams of the Past / trio_urd | Wailings of the Present / trio_verdandi | Searing Skin / firedot | Freezing Limbs / coldslow |
| Turbulent Air / windmiss | Deep Burns / elecweak | Breached Defense / holybreach |
| Blunted Attack / darknerf | Burning Soul / soulfire | Ripened Soul / ripesoul |

***

Expand Down Expand Up @@ -382,3 +401,10 @@
灵感来自hoverplay,刚开始接触js,初步完成代码
功能有:答题警报、其他警报、快捷键、自动前进、自动使用宝石、自动回复、自动使用增益技能、自动打怪
很可惜,玩游戏不走心,一直搞不懂HVSTAT是怎么知道每个怪的血量的,直到[版本2.0](#20)







47 changes: 36 additions & 11 deletions HentaiVerse/hvAutoAttack/README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ Scripts get information through text, and if you have not yet modified the font,

Each area with a red dotted border can be set to a customize condition.

Customizable Formula is support now, such as `hp > mp` or `2 * ( hp + mp ) > sp`, supported operators: `+` `-` `*` `/` `%` `&&` `||` `!` `>` `<` `>=`(`≥`) `<=`(`≤`) `==`(`=`,`===`) `!=`(`≠`,`~=`,`<>`), logical operators returns 0 or 1 (as false or true)

* If these areas are left blank (a condition is not set), then it's equivalent to true.

When the mouse moves in these areas, a box is displayed in the upper right corner. (When the mouse out, the box disappears)
Expand All @@ -59,32 +61,42 @@ Four drop down lists and one button are visible in the box

* Drop-down List 2/4: comparison value A / comparison value B

* Drop-down List 3: only support comparison operator (`1`: >, `2`: <, `3`: ≥, `4`: ≤, `5`: =, `6`: ≠)
* Drop-down List 3: operator

* Button ADD: Generates an input box with a value of `A Operator B`

* Button ADD: Generates an input box with a value of `A,Comparison-Operator,B`
* Legacy version condition such as `A,Comparison-Operator,B` is still supported, Comparison-Operator: (`1`: >, `2`: <, `3`: ≥, `4`: ≤, `5`: =, `6`: ≠)

#### Comparison Value

1. `hp`/`mp`/`sp`: **percent** of hp/mp/sp, 0-100
2. `oc`: Overcharge, 0-250
3. `monsterAll`/`monsterAlive`/`bossAll`/`bossAlive`: amount of all monster/boss (alive)
4. `roundNow`/`roundAll`/`roundLeft`
5. `roundType`: Battle Type (`ar`: The Arena, `rb`: Ring of Blood, `gr`: GrindFest, `iw`: Item World, `ba`: Random Encounter)
5. `isRoundType`、`ar`、`ba`、`iw`、`tw`、`gr`、`rb`: is current round type as the target type, such as: both `_isRoundType_ar` and `_ar` returns `is currently in The Arena`
6. `roundType`: Battle Type (`ar`: The Arena, `rb`: Ring of Blood, `gr`: GrindFest, `iw`: Item World, `ba`: Random Encounter, `tw`: The Tower)

(**Note**: Because comparison between strings, please add quotation, such as `"ar"`/`'ar'`)
(**Note**: Because comparison between strings, please add quotation while using legacy version condition `A,Comparison-Operator,B` , such as `"ar"`/`'ar'`)

6. `attackStatus`: Attack Mode (`0`: Physical, `1`: Fire, `2`: Cold, `3`: Elec, `4`: Wind, `5`: Divine, `6`: Forbidden)
7. `isCd`: whether the skill/item is cooldowning, format: `_isCd_id`
7. `attackStatus`: Attack Mode (`0`: Physical, `1`: Fire, `2`: Cold, `3`: Elec, `4`: Wind, `5`: Divine, `6`: Forbidden). Or use `_phys`, `_fire`, `_cold`, `_elec`, `_wind`, `_divi`, `_forb` as `if current attack mode is ...`, such as `_phys` equals `attackStatus == 0`
8. `fightingStyle`: Fighting Style (`1`: Niten, `2`: 1H, `3`: 2H, `4`: DW, `5`: Staff). Or use `_nt`, `_1h`, `_2h`, `_dw`, `_staff` as `if current fighting style is ...`, such as `_nt` equals `fightStyle == 1`
9. `isCd`: whether the skill/item is cooldowning, format: `_isCd_id`

**example 1**: the id of Protection is 411 , `_isCd_411,5,0` means Protection can't be casted or `_isCd_411,5,1` means Protection can be casted
**example 1**: the id of Protection is 411 , `!_isCd_411` means Protection can't be casted or `_isCd_411` means Protection can be casted

**example 2**: the id of ManaElixir is 11295, `_isCd_11295,5,0` means ManaElixir can't be used or `_isCd_11295,5,1` means ManaElixir can be used
**example 2**: the id of ManaElixir is 11295, `!_isCd_11295` means ManaElixir can't be used or `_isCd_11295` means ManaElixir can be used

8. `buffTurn`: time the buff last in person, format`_buffTurn_img`
10. `buffTurn`: time the buff last in person, format`_buffTurn_img`

**example**: the image of Protection is protection, `_buffTurn_protection,5,0` means you don't have the buff of Protection or `_buffTurn_protection,3,10` means the the buff of Protection on you last at least 10 turns
**example**: the image of Protection is protection, `_buffTurn_protection == 0` means you don't have the buff of Protection or `_buffTurn_protection >= 10` means the buff of Protection on you last at least 10 turns

9. blank: the value you want to put in
11. `targetHp`、`targetMp`、`targetSp`、`targetBuffTurn`: HP%、SP%、MP%、buffRemainTime of target monster, suffix of `_targetBuffTurn_` is same as 8.`buffTurn`(such as:`_targetBuffTurn_bleed != 0` means remain turns of bleed buff on target monster is not equal to 0. Target that is calculating is chosen by following rules:
1. The highest priority monster by rank in default situations.
2. Weapon skills (OFC, T1~T3, etc.), Offensive Spell skills (Tire2, Tire3): by each condition > for each ranked target > find the target fit all sub-condition in the condition and cast to it. Such as the pic below: condition for Merciful Blow: only cast to targets which with hp below 25% and a bleed buff.

![example](https://github.com/user-attachments/assets/da181eac-e634-41ad-97a7-ff59a7b28b6d)

12. blank: the value you want to put in

#### Example

Expand Down Expand Up @@ -156,6 +168,14 @@ The following is a schematic diagram of the circuit diagram
| Infusion of Storms / windinfusion | Infusion of Divinity / holyinfusion | Infusion of Darkness / darkinfusion |
| Scroll of Swiftness / haste_scroll | - | - |
| Flower Vase / flowers | Bubble-Gum / gum | - |
| Sleep / sleep | Blind / blind | Slow / slow |
| Imperil / imperil | MagNet / magnet | Silence / silence |
| Drain / drainhp | Weaken / weaken | Confuse / confuse |
| Coalesced Mana / coalescemana | Stunned / stun / wpn_stun | Penetrated Armor / ap / wpn_ap |
| Bleeding Wound / bleed / wpn_bleed | Absorbing Ward / absorb | Fury of the Sisters / trio_furyofthesisters |
| Lamentations of the Future / trio_skuld | Screams of the Past / trio_urd | Wailings of the Present / trio_verdandi | Searing Skin / firedot | Freezing Limbs / coldslow |
| Turbulent Air / windmiss | Deep Burns / elecweak | Breached Defense / holybreach |
| Blunted Attack / darknerf | Burning Soul / soulfire | Ripened Soul / ripesoul |

***

Expand Down Expand Up @@ -188,3 +208,8 @@ In this example, the script will attack enemy 1 next.

* Old
1. see [README_Chinese#更新历史](https://github.com/dodying/UserJs/blob/master/HentaiVerse/hvAutoAttack/README.md#更新历史)





Loading