From 39db483d643a47e4280872ef69203050f0d38dc2 Mon Sep 17 00:00:00 2001 From: SMY2004-min Date: Sat, 26 Oct 2024 22:07:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E9=98=9F=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...24\250\345\207\273\347\240\264.sample.yml" | 415 ----------------- ...0\237-\346\234\261\351\270\242.sample.yml" | 417 ++++++++++++++++++ ...0\237-\346\264\276\346\264\276.sample.yml" | 243 +++++++--- ...5\215\351\230\237-\347\256\200.sample.yml" | 143 ++++-- 4 files changed, 695 insertions(+), 523 deletions(-) delete mode 100644 "config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\234\261\351\270\242-\351\200\232\347\224\250\345\207\273\347\240\264.sample.yml" create mode 100644 "config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\234\261\351\270\242.sample.yml" diff --git "a/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\234\261\351\270\242-\351\200\232\347\224\250\345\207\273\347\240\264.sample.yml" "b/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\234\261\351\270\242-\351\200\232\347\224\250\345\207\273\347\240\264.sample.yml" deleted file mode 100644 index f7c6bed1..00000000 --- "a/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\234\261\351\270\242-\351\200\232\347\224\250\345\207\273\347\240\264.sample.yml" +++ /dev/null @@ -1,415 +0,0 @@ -description: | - 专属配队-朱鸢 - 配队列表:朱鸢-击破-妮可 - 备注: 角色顺序不可替换 - 版本号: 1.3 - 作者: 笙梦昱 - 特别感谢: 巡夜子 starlight - -#基础配置 -check_dodge_interval: 0.01 -check_agent_interval: [0.4, 0.6] -check_special_attack_interval: [0.4, 0.6] -check_ultimate_interval: [0.4, 0.6] -check_chain_interval: 0.3 -check_quick_interval: 0.2 - -#战场模板-击破 -t-q: &q - - states: "[前台-青衣]" - sub_handlers: - - states: "[青衣-电压]{75, 101}" - operations: - - op_name: "设置状态" - state: "自定义-动作不打断" - value: 1 - - op_name: "按键-普通攻击" - way: "按下" - press: 2.5 - post_delay: 1 - - op_name: "清除状态" - state: "自定义-动作不打断" - - op_name: "清除状态" - state: "自定义-青衣-普攻次数" - - - states: "[自定义-青衣-普攻次数]{40, 999}" - operations: - - operation_template: "通用-闪避-前" - - op_name: "清除状态" - state: "自定义-青衣-普攻次数" - - - states: "[按键可用-特殊攻击]" - operations: - - op_name: "按键-特殊攻击" - post_delay: 1 - - op_name: "清除状态" - state: "自定义-青衣-普攻次数" - - - states: "[青衣-电压]{0, 74}" - operations: - - op_name: "按键-普通攻击" - post_delay: 0.05 - repeat: 7 - - op_name: "设置状态" - state: "自定义-青衣-普攻次数" - add: 3 - - - states: "[前台-安比]" - sub_handlers: - - states: "[按键可用-特殊攻击]" - operations: - - operation_template: "通用-闪避-前" - - op_name: "按键-特殊攻击" - post_delay: 0.7 - - states: "" - operations: - - op_name: "按键-普通攻击" - post_delay: 0.1 - - states: "" - sub_handlers: - - state_template: "站场模板-全角色" -#速切模板-妮可 -t-n: &n - - states: "[按键可用-特殊攻击]" - operations: - - op_name: "按键-特殊攻击-按下" - post_delay: 0.1 -#站场模板-朱鸢 -t-zy: &zy - # 子弹不满的情况再打E - - states: "[按键可用-特殊攻击] & ![自定义-朱鸢-特殊攻击] & ![朱鸢-子弹数, 0, 999]{7, 10} & ![自定义-失衡期, 0, 3]" - sub_handlers: - - states: "[自定义-朱鸢-下发普攻前滑]" - operations: - - op_name: "按键-普通攻击" - post_delay: 0.8 - - op_name: "按键-特殊攻击" - post_delay: 1.2 - - op_name: "设置状态" - data: ["自定义-朱鸢-特殊攻击"] - - states: "" - operations: - - op_name: "按键-特殊攻击" - pre_delay: 0.8 - post_delay: 1.2 - - op_name: "设置状态" - data: ["自定义-朱鸢-特殊攻击"] - - - states: "[自定义-朱鸢-特殊攻击]" - operations: - - op_name: "按键-普通攻击" - post_delay: 0.5 - - op_name: "按键-普通攻击" - way: "按下" - press: 1 - - operation_template: "朱鸢-蓄力3A" - # 特殊攻击后 先长按清空弹匣 - - states: "[自定义-朱鸢-特殊攻击] & [前台-朱鸢]" - operations: - - op_name: "按键-普通攻击" - post_delay: 0.5 - - op_name: "按键-普通攻击" - way: "按下" - press: 1 - - op_name: "按键-普通攻击" - way: "按下" - press: 0.5 - repeat: 3 - - op_name: "等待秒数" - seconds: 0.5 - # 5发子弹就能打一次3A - - states: "[朱鸢-子弹数, 0, 999]{5, 10}" - operations: - - operation_template: "朱鸢-闪前A" - - op_name: "按键-普通攻击" - pre_delay: 0.3 - way: "按下" - press: 0.5 - - operation_template: "朱鸢-蓄力3A" - - - states: "[自定义-朱鸢-下发普攻前滑]" - operations: - # 先闪A打断当前动作 - - operation_template: "朱鸢-后4A" - - op_name: "设置状态" - data: [ "自定义-朱鸢-下发普攻前滑" ] - - - states: "[前台-朱鸢,0, 0.5]" - operations: - # 先闪A打断当前动作 - - operation_template: "朱鸢-闪前A" - - op_name: "等待秒数" - data: [ "0.6" ] - - operation_template: "朱鸢-5A" - - op_name: "设置状态" - data: [ "自定义-朱鸢-下发普攻前滑" ] - - - states: "[自定义-血量扣减]" - operations: - - op_name: "按键-闪避" - post_delay: 0.5 - - op_name: "按键-普通攻击" - post_delay: 0.5 - - op_name: "清除状态" - data: [ "自定义-血量扣减" ] - -#通用模板-锁定敌人 -t-sd: &sd - - states: "![自定义-锁定敌人, 0, 5]" - operations: - - op_name: "设置状态" - state: "自定义-锁定敌人" - - op_name: "按键-锁定敌人" - way: '按下' - press: 0.02 - -#连携模板-上一个 -t-up: &up - - op_name: "等待秒数" - seconds: 0.1 - - op_name: "按键-连携技-左" - post_delay: 0.2 - repeat: 2 - - op_name: "设置状态" - data: ["自定义-失衡期"] - - op_name: "按键-特殊攻击" - post_delay: 1.4 - -#连携模板-下一个 -t-down: &down - - op_name: "等待秒数" - seconds: 0.1 - - op_name: "按键-连携技-右" - post_delay: 0.2 - repeat: 2 - - op_name: "设置状态" - data: ["自定义-失衡期"] - - op_name: "按键-特殊攻击" - post_delay: 1.4 - -#连携模板-取消 -t-cancel: &cancel - - op_name: "等待秒数" - seconds: 0.1 - - op_name : "按键-连携技-取消" - way: "按下" - press: 0.02 - post_delay: 0.01 - repeat: 2 - - op_name: "设置状态" - data: ["自定义-失衡期"] - -scenes: - - triggers: ["闪避识别-黄光", "闪避识别-红光", "闪避识别-声音"] - priority: 90 - handlers: - - states: "[前台-击破] & [闪避识别-黄光] & ![按键-切换角色-上一个,0,10]" #10s内未触发过切人则触发朱鸢极限支援 - operations: - - op_name: "按键-切换角色-上一个" - post_delay: 0.05 - - op_name: "按键-普通攻击" - post_delay: 0.05 - repeat: 8 - - op_name: "按键-普通攻击" - post_delay: 0.1 - repeat: 12 - - op_name: "设置状态" - state: "自定义-临时站场" - - states: "[前台-击破] & [闪避识别-黄光] & [按键-切换角色-上一个,0,10]" #10s内触发过切人则触发妮可格挡 - operations: - - op_name: "按键-切换角色-下一个" - post_delay: 0.05 - - op_name: "按键-普通攻击" - post_delay: 0.05 - repeat: 8 - - op_name: "按键-普通攻击" - post_delay: 0.1 - repeat: 12 - - op_name: "等待秒数" - seconds: 1 - - op_name: "按键-特殊攻击" - post_delay: 0.5 - - states: "[前台-击破] & ([闪避识别-黄光] | [闪避识别-红光] | [闪避识别-声音] )" #击破前台闪避反击 - operations: - - op_name: "按键-移动-前" - way: "按下" - post_delay: 0.08 - - op_name: "按键-闪避" - way: "按下" - press: 0.01 - post_delay: 0.15 - repeat: 2 - - op_name: "按键-普通攻击" - way: "按下" - press: 0.6 - post_delay: 0.025 - - op_name: "按键-移动-前" - way: "松开" - post_delay: 0.1 - - states: "[前台-朱鸢] & [闪避识别-黄光] & ![自定义-失衡期, 0, 12]" #朱鸢在前台且不在失衡期间会切击破触发格挡反击 - operations: - - op_name: "按键-切换角色-下一个" - post_delay: 0.05 - - op_name: "按键-普通攻击" - post_delay: 0.05 - repeat: 8 - - op_name: "按键-普通攻击" - post_delay: 0.1 - repeat: 12 - - states: "[前台-朱鸢] & ([闪避识别-黄光] | [闪避识别-红光] | [闪避识别-声音] )" #朱鸢前台时只用闪避反击 - operations: - - op_name: "按键-移动-前" - way: "按下" - post_delay: 0.01 - - op_name: "按键-闪避" - way: "按下" - press: 0.01 - post_delay: 0.15 - repeat: 2 - - op_name: "按键-普通攻击" - way: "按下" - press: 0.6 - post_delay: 0.025 - - op_name: "按键-移动-前" - way: "松开" - post_delay: 0.1 - - states: "[前台-妮可] & [闪避识别-黄光]" #妮可在前台切击破格挡 - operations: - - op_name: "按键-切换角色-上一个" - post_delay: 0.05 - - op_name: "按键-普通攻击" - post_delay: 0.05 - repeat: 8 - - op_name: "按键-普通攻击" - post_delay: 0.1 - repeat: 12 - - states: "[前台-妮可] & ([闪避识别-黄光] | [闪避识别-红光] | [闪避识别-声音] ) & [自定义-妮可格挡,0,2]" #妮可前台闪避反击 - operations: - - op_name: "按键-移动-前" - way: "按下" - post_delay: 0.05 - - op_name: "按键-闪避" - way: "按下" - press: 0.01 - post_delay: 0.15 - repeat: 2 - - op_name: "按键-普通攻击" - way: "按下" - press: 0.6 - post_delay: 0.025 - - op_name: "按键-移动-前" - way: "松开" - post_delay: 0.1 - - triggers: ["按键可用-连携技"] - priority: 99 - interval: 0.2 - handlers: - - states: "[按键可用-连携技]" - sub_handlers: - - states: "(![连携技-1-朱鸢] & ![连携技-1-击破] & ![连携技-1-妮可]) & (![连携技-2-朱鸢] & ![连携技-2-击破] & ![连携技-2-妮可])" - operations: *up - - states: "(![连携技-1-朱鸢] & ![连携技-1-击破] & ![连携技-1-妮可]) & [连携技-2-妮可]" - operations: *up - - states: "(![连携技-1-朱鸢] & ![连携技-1-击破] & ![连携技-1-妮可]) & [连携技-2-朱鸢]" - operations: *up - - states: "(![连携技-1-朱鸢] & ![连携技-1-击破] & ![连携技-1-妮可])" - operations: *cancel - - states: "([连携技-1-妮可] & [连携技-2-击破]) | [连携技-1-朱鸢]" - operations: *up - - states: "[连携技-2-朱鸢] | [连携技-1-击破] | [连携技-1-妮可]" - operations: *down - - - triggers: ["按键可用-快速支援"] - priority: 98 - handlers: - - states: "[按键可用-快速支援,0,0.2]" #快速支援触发时只有前台是妮可才会触发快速支援 - sub_handlers: - - states: "[前台-妮可]" - operations: - - op_name: "按键-移动-前" - way: "松开" - - op_name: "按键-快速支援" - post_delay: 0.2 - - op_name: "按键-闪避" - post_delay: 0.3 - - - triggers: ["前台-妮可"] - priority: 1 - interval: 1 - handlers: - - states: "[前台-妮可]" - sub_handlers: *n - - - triggers: ["前台-击破"] - priority: 3 - interval: 0.11 - handlers: - - states: "[前台-击破]" - sub_handlers: *q - - - triggers: ["自定义-失衡期"] - priority: 4 - interval: 0.2 - handlers: - - states: "[自定义-失衡期, 0, 12]" #检测到失衡期间时切朱鸢输出 - sub_handlers: - - states: "![前台-朱鸢] & ![按键可用-快速支援]" - operations: - - op_name: "按键-移动-前" - way: "松开" - - op_name: "按键-切换角色-下一个" - post_delay: 0.1 - - - triggers: ["前台-朱鸢"] - priority: 4 - interval: 0.2 - handlers: - - states: "[前台-朱鸢]" - sub_handlers: *zy - - triggers: ["按键可用-终结技"] - priority: 10 - interval: 1 - handlers: - - states: "[前台-朱鸢] & [按键可用-终结技] & ![自定义-失衡期, 0, 4] & ![自定义-临时站场,0, 4] & ![朱鸢-子弹数, 0, 999]{5, 10}" - operations: - - op_name: "按键-终结技" - post_delay: 0.2 - repeat: 2 - - - triggers: [ "前台-血量扣减" ] - priority: 10 - interval: 1 - handlers: - - states: "[前台-血量扣减]{1, 100} & ![自定义-动作不打断, 0, 999]" - operations: - - op_name: "设置状态" - state: "自定义-血量扣减" - - - triggers: [] - priority: 2 - interval: 0.2 - handlers: - - states: "![自定义-失衡期, 0, 12]" - sub_handlers: *sd - #失衡期间过后切击破击破 - - states: "![前台-击破]" - sub_handlers: - - states: "[前台-朱鸢] & ![自定义-失衡期, 0, 12] & [后台-1-击破]" - operations: - - op_name: "按键-移动-前" - way: "松开" - - op_name: "等待秒数" - post_delay: 0.1 - - op_name: "按键-切换角色-下一个" - post_delay: 0.1 - - states: "[前台-朱鸢] & ![自定义-失衡期, 0, 12] & ![后台-1-击破]" - sub_handlers: *zy - # 错误处理 - - states: "[前台-妮可]" - operations: - - op_name: "按键-移动-前" - way: "松开" - - op_name: "按键-普通攻击" - post_delay: 0.1 - - op_name: "按键-切换角色-上一个" - post_delay: 0.1 diff --git "a/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\234\261\351\270\242.sample.yml" "b/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\234\261\351\270\242.sample.yml" new file mode 100644 index 00000000..297bd5c1 --- /dev/null +++ "b/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\234\261\351\270\242.sample.yml" @@ -0,0 +1,417 @@ +description: | + 专属配队-朱鸢 + 配队列表:击破-妮可-朱鸢 + 备注:角色顺序没问题就行 你再问就要攻击你啦 除 青衣 以外的其他击破没有做任何的优化 + 版本号: 1.0 + 作者: 笙梦昱 + 协作: 巡夜子 starlight + +#基础配置 +check_dodge_interval: 0.01 +check_agent_interval: [0.4, 0.6] +check_special_attack_interval: [0.4, 0.6] +check_ultimate_interval: [0.4, 0.6] +check_chain_interval: 0.3 +check_quick_interval: 0.2 + +#速切模板-辅助 +t-sup: &sup + - states: "[按键可用-特殊攻击]" + operations: + - op_name: "按键-特殊攻击" + post_delay: 0.05 + repeat: 20 + - states: "" + operations: + - op_name: "按键-闪避" + post_delay: 0.05 + repeat: 5 + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 10 + +#站场模板-青衣 +t-q: &q + - states: "[前台-青衣]" + sub_handlers: + - states: "[青衣-电压]{75, 101}" + operations: + - op_name: "设置状态" + state: "自定义-动作不打断" + value: 1 + - op_name: "按键-普通攻击" + way: "按下" + press: 2.5 + post_delay: 1 + - op_name: "清除状态" + state: "自定义-动作不打断" + - op_name: "清除状态" + state: "自定义-青衣-普攻次数" + + - states: "[自定义-青衣-普攻次数]{40, 999}" + operations: + - operation_template: "通用-闪避-前" + - op_name: "清除状态" + state: "自定义-青衣-普攻次数" + + - states: "[前台-能量]{80,120} & ![自定义-动作不打断,0, 3]" + operations: + - op_name: "按键-特殊攻击" + post_delay: 1 + - op_name: "清除状态" + state: "自定义-青衣-普攻次数" + + - states: "[青衣-电压]{0, 74}" + operations: + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 7 + - op_name: "设置状态" + state: "自定义-青衣-普攻次数" + add: 3 + + - states: "[前台-安比]" + sub_handlers: + - states: "[按键可用-特殊攻击]" + operations: + - operation_template: "通用-闪避-前" + - op_name: "按键-特殊攻击" + post_delay: 0.7 + - states: "" + operations: + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 7 + - states: "" + sub_handlers: + - state_template: "站场模板-全角色" +#站场朱鸢 +t-zy: &zy + - states: "[按键可用-终结技] & ![朱鸢-子弹数]{6, 10} & ![自定义-动作间隔,0,0.7] & ![按键-切换角色-下一个,0,2] & ![按键-切换角色-上一个,0,2]" + operations: + - op_name: "按键-终结技" + post_delay: 0.05 + repeat: 35 + - op_name: "设置状态" + state: "自定义-动作间隔" + + - states: "[按键可用-特殊攻击] & ![朱鸢-子弹数]{0, 5} & ![自定义-动作间隔,0,0.7] & ![自定义-失衡期,0,1]" #6~9颗子弹先a后特殊技 + operations: + - op_name: "按键-移动-左" + way: "按下" + - op_name: "等待秒数" + seconds: 0.1 + - op_name: "按键-普通攻击" + way: "按下" + press: 2.8 + repeat: 1 + - op_name: "按键-移动-左" + way: "松开" + - op_name: "等待秒数" + seconds: 0.6 + - op_name: "按键-移动-前" + way: "按下" + - op_name: "按键-特殊攻击" + post_delay: 0.05 + repeat: 20 + - op_name: "按键-移动-前" + way: "松开" + - op_name: "设置状态" + state: "自定义-动作间隔" + + - states: "[按键可用-特殊攻击] & ![朱鸢-子弹数]{0, 2} & ![朱鸢-子弹数]{6, 10} & ![自定义-动作间隔,0,0.7] & ![自定义-失衡期,0,1]" #3-5颗子弹先特殊技在a + operations: + - op_name: "按键-移动-前" + way: "按下" + - op_name: "按键-特殊攻击" + post_delay: 0.05 + repeat: 20 + - op_name: "按键-移动-前" + way: "松开" + - op_name: "按键-移动-左" + way: "按下" + - op_name: "按键-普通攻击" + way: "按下" + press: 2.8 + repeat: 1 + - op_name: "按键-移动-左" + way: "松开" + - op_name: "设置状态" + state: "自定义-动作间隔" + + - states: "![朱鸢-子弹数]{0, 5} & ![自定义-朱鸢重击,0,2] & ![自定义-动作间隔,0,0.7] & ![自定义-失衡期,0,1]" + operations: + - op_name: "按键-移动-右" + way: "按下" + - op_name: "等待秒数" + seconds: 0.1 + - op_name: "按键-普通攻击" + way: "按下" + press: 2.8 + repeat: 1 + - op_name: "按键-移动-右" + way: "松开" + - op_name: "设置状态" + state: "自定义-朱鸢重击" + + - states: "[按键可用-特殊攻击] & ![自定义-动作间隔,0,0.7]" + operations: + - op_name: "按键-移动-右" + way: "按下" + - op_name: "按键-特殊攻击" + post_delay: 0.05 + repeat: 20 + - op_name: "按键-移动-右" + way: "松开" + + - states: "" + operations: + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 20 + +#连携模板-上一个 +t-up: &up + - op_name: "按键-移动-前" + way: "松开" + post_delay: 0.01 + - op_name: "按键-连携技-左" + post_delay: 0.01 + - op_name: "按键-普通攻击" + post_delay: 0.01 + - op_name: "设置状态" + state: "自定义-失衡期" + +#连携模板-下一个 +t-down: &down + - op_name: "按键-移动-前" + way: "松开" + post_delay: 0.01 + - op_name: "按键-连携技-右" + post_delay: 0.01 + - op_name: "按键-普通攻击" + post_delay: 0.01 + - op_name: "设置状态" + state: "自定义-失衡期" + +#连携模板-取消 +t-cancel: &cancel + - op_name: "按键-连携技-取消" + way: "按下" + press: 0.02 + post_delay: 0.01 + repeat: 2 + - op_name: "设置状态" + state: "自定义-失衡期" + +scenes: + - triggers: ["闪避识别-黄光", "闪避识别-红光", "闪避识别-声音"] + priority: 90 + handlers: + - states: "[前台-青衣] & [闪避识别-黄光] & ![自定义-上格挡,0,10]" #10s内未触发过切人则触发朱鸢补子弹 + operations: + - op_name: "按键-切换角色-上一个" + post_delay: 0.025 + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 12 + - op_name: "按键-普通攻击" + post_delay: 0.1 + repeat: 12 + - op_name: "设置状态" + state: "自定义-上格挡" + - states: "[前台-青衣] & [闪避识别-黄光] & ![自定义-下格挡,0,10]" #10s内触发过切人则触发支援格挡 + operations: + - op_name: "按键-切换角色-下一个" + post_delay: 0.05 + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 8 + - op_name: "按键-普通攻击" + post_delay: 0.1 + repeat: 12 + - op_name: "等待秒数" + seconds: 0.5 + - op_name: "按键-特殊攻击" + post_delay: 0.5 + - op_name: "设置状态" + state: "自定义-下格挡" + - states: "[前台-青衣] & ([闪避识别-黄光] | [闪避识别-红光] | [闪避识别-声音] )" #青衣前台闪避反击 + operations: + - op_name: "按键-移动-前" + way: "按下" + post_delay: 0.01 + - operation_template: "通用-闪避-前" + way: "按下" + press: 0.01 + post_delay: 0.01 + - op_name: "按键-普通攻击" + post_delay: 0.025 + repeat: 20 + - op_name: "按键-移动-前" + way: "松开" + post_delay: 0.01 + - states: "[前台-支援] & [闪避识别-黄光]" #支援在前台切青衣触发格挡反击 + operations: + - op_name: "按键-切换角色-上一个" + post_delay: 0.025 + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 12 + - op_name: "按键-普通攻击" + press: 0.3 + post_delay: 0.05 + repeat: 3 + - states: "[前台-朱鸢] & [闪避识别-黄光] & ![自定义-失衡期, 0, 12]" #朱鸢在前台且不在失衡期间会切击破触发格挡反击 + operations: + - op_name: "按键-切换角色-下一个" + post_delay: 0.025 + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 12 + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 3 + - states: "![前台-青衣] & ([闪避识别-黄光] | [闪避识别-红光] | [闪避识别-声音] )" #前台不是青衣闪避反击 + operations: + - op_name: "按键-移动-前" + way: "按下" + post_delay: 0.01 + - op_name: "按键-闪避" + press: 0.01 + post_delay: 0.15 + repeat: 2 + - op_name: "按键-普通攻击" + press: 0.3 + post_delay: 0.025 + repeat: 2 + - op_name: "按键-闪避" + press: 0.01 + post_delay: 0.15 + repeat: 1 + - op_name: "按键-移动-前" + way: "松开" + post_delay: 0.1 + + - triggers: ["按键可用-连携技"] + priority: 99 + interval: 0.2 + handlers: + - states: "[连携技-1-邦布] & [连携技-2-邦布]" + operations: *up + - states: "([连携技-1-邦布] & [连携技-2-支援]) | ([连携技-1-邦布] & [连携技-2-朱鸢])" + operations: *up + - states: "[连携技-1-邦布]" + operations: *cancel + - states: "[连携技-1-击破]" + operations: *down + - states: "[连携技-2-击破]" + operations: *up + - states: "[连携技-2-朱鸢]" + operations: *down + - states: "[连携技-1-妮可]" + operations: *up + - states: "[连携技-2-妮可]" + operations: *down + + - triggers: ["按键可用-快速支援"] + priority: 98 + handlers: + - states: "[按键可用-快速支援,0,0.2]" + sub_handlers: + - states: "" + operations: + - op_name: "按键-移动-前" + way: "松开" + - op_name: "按键-快速支援" + post_delay: 0.01 + - op_name: "按键-闪避" + post_delay: 0.15 + - op_name: "按键-普通攻击" + post_delay: 0.05 + - op_name: "按键-特殊攻击" + post_delay: 0.05 + + - triggers: [ "前台-血量扣减" ] + priority: 97 + interval: 1 + handlers: + - states: "[前台-血量扣减]{1, 100}" #扣血会尝试切凯撒/闪避反击来规避持续性伤害 默认主C站场 + sub_handlers: + - states: "[后台-2-凯撒] & [后台-2-能量]{45,120}" + operations: + - op_name: "按键-切换角色-上一个" + - op_name: "按键-特殊攻击" + press: 0.05 + post_delay: 0.1 + repeat: 2 + - states: "![后台-2-凯撒] & ![自定义-动作不打断,0,4]" + operations: + - op_name: "按键-闪避" + press: 0.01 + post_delay: 0.15 + repeat: 2 + - op_name: "按键-普通攻击" + press: 0.3 + post_delay: 0.025 + repeat: 2 + - op_name: "按键-闪避" + press: 0.01 + post_delay: 0.15 + repeat: 1 + + - triggers: ["前台-支援"] + priority: 1 + interval: 1 + handlers: + - states: "[前台-支援]" + sub_handlers: *sup + + - triggers: ["前台-朱鸢"] + priority: 3 + interval: 1 + handlers: + - states: "[前台-朱鸢]" + sub_handlers: *zy + + - triggers: ["前台-青衣"] + priority: 4 + interval: 0.02 + handlers: + - states: "[前台-青衣]" + sub_handlers: *q + + - triggers: [] + priority: 2 + interval: 0.2 + handlers: + - state_template: "通用模板-锁定敌人" + # 强制青衣战场 + - states: "![自定义-失衡期, 0, 12]" + sub_handlers: + - states: "[前台-朱鸢] & [后台-1-击破]" + operations: + - op_name: "按键-移动-前" + way: "松开" + - op_name: "等待秒数" + post_delay: 0.1 + - op_name: "按键-切换角色-下一个" + post_delay: 0.1 + # 错误处理 + - states: "[前台-妮可]" + operations: + - op_name: "按键-移动-前" + way: "松开" + - op_name: "按键-普通攻击" + post_delay: 0.1 + - op_name: "按键-切换角色-上一个" + post_delay: 0.1 + # 朱鸢站场 + - states: "[自定义-失衡期, 0, 12]" + sub_handlers: + - states: "![前台-朱鸢] & ![按键可用-快速支援]" + operations: + - op_name: "按键-移动-前" + way: "松开" + - op_name: "按键-切换角色-下一个" + post_delay: 0.1 diff --git "a/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\264\276\346\264\276.sample.yml" "b/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\264\276\346\264\276.sample.yml" index b7d2f515..a70ce0f8 100644 --- "a/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\264\276\346\264\276.sample.yml" +++ "b/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\346\264\276\346\264\276.sample.yml" @@ -1,8 +1,8 @@ description: | 专属配队-派派 - 配队列表:支援-派派-凯撒 - 备注: 角色位置顺序不可替换 - 版本号: 1.0 + 配队列表:支援-派派-凯撒 柏妮思-派派-露西 + 备注: 角色顺序没问题就行 你再问就要攻击你啦 + 版本号: 1.1 作者: 笙梦昱 协作: 巡夜子 starlight @@ -22,7 +22,21 @@ t-sup: &sup #战场模板-派派 t-pp: &pp - - states: "[按键可用-特殊攻击] & ![自定义-动作不打断]" + #派派切人 + - states: "(![自定义-柏妮思燃点,0, 15] & ![按键可用-快速支援,0, 10] & [后台-2-柏妮思])" + operations: + - op_name: "按键-特殊攻击" + post_delay: 0.2 + - op_name: "等待秒数" + seconds: 0.2 + - op_name: "按键-切换角色-下一个" + post_delay: 0.025 + - op_name: "清除状态" + state: "自定义-柏妮思燃点" + - op_name: "设置状态" + state: "自定义-派派切人" + #转就完事 + - states: "[按键可用-特殊攻击] & ![自定义-动作不打断]" operations: - op_name: "设置状态" state: "自定义-动作不打断" @@ -39,7 +53,7 @@ t-pp: &pp - op_name: "清除状态" state: "自定义-动作不打断" #派派2a - - states: "[前台-能量,0,60] & ![自定义-动作不打断]" + - states: "[前台-能量,0,60] & ![自定义-动作不打断]" operations: - op_name: "设置状态" state: "自定义-动作不打断" @@ -55,43 +69,88 @@ t-pp: &pp post_delay: 0.4 - op_name: "清除状态" state: "自定义-动作不打断" + #速切模板-凯撒 t-ks: &ks - states: "[前台-凯撒]" sub_handlers: - states: "[前台-凯撒] & [按键可用-特殊攻击]" operations: + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 2 - op_name: "按键-特殊攻击" post_delay: 0.2 - - op_name: "等待秒数" - seconds: 0.2 - - op_name: "按键-切换角色-下一个" - post_delay: 0.025 + - states: "" operations: - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 20 +#速切模板-柏妮思 +t-bns: &bns + - states: "[前台-柏妮思]" + sub_handlers: + - states: "[柏妮思-燃点]{21,100} & [前台-能量,0,60]" + operations: + - op_name: "按键-普通攻击" + post_delay: 0.2 + - op_name: "按键-普通攻击" + way: "按下" + post_delay: 0.5 + - op_name: "按键-特殊攻击" + post_delay: 0.05 + repeat: 6 + - op_name: "按键-特殊攻击" + way: "按下" + post_delay: 1.5 + - op_name: "设置状态" + state: "自定义-柏妮思燃点" + + - states: "[按键可用-特殊攻击]" + operations: + - op_name: "按键-特殊攻击" post_delay: 0.1 - - op_name: "按键-切换角色-下一个" - post_delay: 0.025 + repeat: 2 + - op_name: "按键-特殊攻击" + way: "按下" + post_delay: 2.5 + - op_name: "设置状态" + state: "自定义-柏妮思燃点" + - states: "[柏妮思-燃点]{80,100}" + operations: + - op_name: "按键-普通攻击" + post_delay: 0.2 + - op_name: "按键-普通攻击" + way: "按下" + post_delay: 0.5 + - op_name: "设置状态" + state: "自定义-柏妮思燃点" + - states: "[前台-能量,0,20]" + operations: + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 20 #连携模板-上一个 t-up: &up + - op_name: "按键-移动-前" + way: "松开" + post_delay: 0.01 - op_name: "按键-连携技-左" - post_delay: 0.2 - repeat: 2 - - op_name: "按键-特殊攻击" - post_delay: 0.2 - repeat: 7 + post_delay: 0.01 + - op_name: "按键-普通攻击" + post_delay: 0.01 #连携模板-下一个 t-down: &down + - op_name: "按键-移动-前" + way: "松开" + post_delay: 0.01 - op_name: "按键-连携技-右" - post_delay: 0.2 - repeat: 2 + post_delay: 0.01 - op_name: "按键-特殊攻击" - post_delay: 0.2 - repeat: 7 - + post_delay: 0.01 #连携模板-取消 t-cancel: &cancel - op_name: "按键-连携技-取消" @@ -104,13 +163,20 @@ scenes: - triggers: ["闪避识别-黄光", "闪避识别-红光", "闪避识别-声音"] priority: 90 handlers: - - states: "[前台-派派] & [闪避识别-黄光] & ![自定义-下格挡,0,10]" #10s内未触发过切人则触发凯撒格挡 这里一般会切凯撒后直接释放特殊技 + - states: "[前台-派派] & [闪避识别-黄光] & ![自定义-下格挡,0,10]" #10s内未触发过切人则触发凯撒/露西格挡 operations: + - op_name: "按键-移动-前" + way: "松开" + post_delay: 0.01 + - op_name: "按键-闪避" + way: "按下" + press: 0.01 + post_delay: 0.01 - op_name: "按键-切换角色-下一个" - post_delay: 0.05 + post_delay: 0.025 - op_name: "按键-普通攻击" post_delay: 0.05 - repeat: 8 + repeat: 12 - op_name: "按键-普通攻击" post_delay: 0.1 repeat: 12 @@ -118,6 +184,13 @@ scenes: state: "自定义-下格挡" - states: "[前台-派派] & [闪避识别-黄光] & ![自定义-上格挡,0,10]" #10s内触发过切人则触发支援格挡 这里一般会切支援后直接释放特殊技 operations: + - op_name: "按键-移动-前" + way: "松开" + post_delay: 0.01 + - op_name: "按键-闪避" + way: "按下" + press: 0.01 + post_delay: 0.01 - op_name: "按键-切换角色-上一个" post_delay: 0.05 - op_name: "按键-普通攻击" @@ -149,7 +222,7 @@ scenes: - op_name: "按键-移动-前" way: "松开" post_delay: 0.1 - - states: "([前台-支援] & [闪避识别-黄光]) | ([前台-凯撒] & [闪避识别-黄光])" #支援/凯撒在前台切派派触发格挡反击 + - states: "([前台-支援] & [闪避识别-黄光]) | ([前台-柏妮思] & [闪避识别-黄光])" #支援/凯撒在前台切派派触发格挡反击 operations: - op_name: "按键-切换角色-下一个" post_delay: 0.025 @@ -160,7 +233,7 @@ scenes: press: 0.3 post_delay: 0.05 repeat: 3 - - states: "[前台-凯撒] & [闪避识别-黄光]" #凯撒在前台切派派格挡 + - states: "([前台-凯撒] & [闪避识别-黄光]) | ([前台-露西] & [闪避识别-黄光])" #凯撒/露西在前台切派派格挡 operations: - op_name: "按键-切换角色-上一个" post_delay: 0.025 @@ -195,39 +268,42 @@ scenes: priority: 99 interval: 0.2 handlers: - - states: "(![连携技-1-派派] & ![连携技-1-露西] & ![连携技-1-凯撒])" - operations: *up - - states: "[连携技-1-凯撒]" - operations: *up - - states: "[连携技-2-凯撒]" - operations: *down - - states: "[连携技-1-支援]" - operations: *up - - states: "[连携技-2-支援]" - operations: *down - - states: "[连携技-1-异常]" + - states: "[连携技-1-邦布]" operations: *up - - states: "[连携技-2-异常]" + - states: "" operations: *down - triggers: ["按键可用-快速支援"] priority: 98 handlers: - - states: "[按键可用-快速支援,0,0.2]" - operations: - - op_name: "按键-移动-前" - way: "松开" - - op_name: "按键-快速支援" - post_delay: 0.2 - - op_name: "按键-闪避" - post_delay: 0.3 + - states: "[按键可用-快速支援,0,0.5]" + sub_handlers: + - states: "" + operations: + - op_name: "按键-移动-前" + way: "松开" + - op_name: "按键-快速支援" + post_delay: 0.01 + - op_name: "按键-闪避" + post_delay: 0.15 + - op_name: "按键-普通攻击" + post_delay: 0.05 + - op_name: "按键-特殊攻击" + post_delay: 0.05 - triggers: [ "前台-血量扣减" ] priority: 97 interval: 1 handlers: - - states: "[前台-血量扣减]{1, 100}" #扣血会尝试切凯撒/闪避反击来规避持续性伤害 + - states: "[前台-血量扣减]{1, 100}" #扣血会尝试切凯撒/闪避反击来规避持续性伤害 默认主C站场 sub_handlers: + - states: "[后台-2-凯撒] & [后台-2-能量]{45,120}" + operations: + - op_name: "按键-切换角色-上一个" + - op_name: "按键-特殊攻击" + press: 0.05 + post_delay: 0.1 + repeat: 2 - states: "[后台-1-凯撒] & [后台-1-能量]{45,120}" operations: - op_name: "按键-切换角色-下一个" @@ -235,7 +311,7 @@ scenes: press: 0.05 post_delay: 0.1 repeat: 2 - - states: "![后台-1-凯撒]" + - states: "" operations: - op_name: "按键-移动-前" way: "按下" @@ -256,19 +332,26 @@ scenes: way: "松开" post_delay: 0.1 - - triggers: ["前台-凯撒"] - priority: 1 - interval: 1 - handlers: - - states: "[前台-凯撒]" - sub_handlers: *ks - - - triggers: ["前台-支援"] - priority: 1 + - triggers: ["按键可用-终结技"] + priority: 10 interval: 1 handlers: - - states: "[前台-支援]" - sub_handlers: *sup + - states: "[前台-派派] & ![按键-切换角色-下一个,0,2] & ![按键-切换角色-上一个,0,3]" + sub_handlers: + - states: "[后台-2-柏妮思]" + operations: + - op_name: "按键-切换角色-上一个" + post_delay: 0.1 + - op_name: "按键-终结技" + post_delay: 0.2 + repeat: 2 + - op_name: "清除状态" + state: "自定义-柏妮思燃点" + - states: "![后台-2-柏妮思]" + operations: + - op_name: "按键-终结技" + post_delay: 0.2 + repeat: 2 - triggers: ["前台-派派"] priority: 4 @@ -277,26 +360,42 @@ scenes: - states: "[前台-派派]" sub_handlers: *pp - - triggers: ["按键可用-终结技"] - priority: 10 + - triggers: ["前台-支援"] + priority: 3 interval: 1 handlers: - - states: "[前台-派派] & [按键可用-终结技] & ![按键-切换角色-下一个,0,2] & ![自定义-动作不打断]" - operations: - - op_name: "按键-终结技" - post_delay: 0.2 - repeat: 2 + - states: "[前台-支援]" + sub_handlers: *sup + + - triggers: ["前台-柏妮思"] + priority: 2 + interval: 1 + handlers: + - states: "[前台-柏妮思]" + sub_handlers: *bns + - triggers: ["前台-凯撒"] + priority: 1 + interval: 1 + handlers: + - states: "[前台-凯撒]" + sub_handlers: *ks - triggers: [] - priority: 2 + priority: 1 interval: 0.2 handlers: - - state_template: "通用模板-锁定敌人" + - states: "![自定义-锁定敌人, 0, 2]" + operations: + - op_name: "设置状态" + state: "自定义-锁定敌人" + - op_name: "按键-锁定敌人" + way: '按下' + press: 0.02 #强制派派战场 - - states: "![前台-派派]" + - states: "![前台-派派] & ![自定义-派派切人,0, 6]" sub_handlers: - - states: "[前台-凯撒] & ![按键-切换角色-上一个,0,0.3]" + - states: "([前台-凯撒] & ![按键-切换角色-上一个,0,0.3]) | ([前台-露西] & ![按键-切换角色-上一个,0,0.3])" operations: - op_name: "按键-特殊攻击" post_delay: 0.025 @@ -307,7 +406,7 @@ scenes: post_delay: 0.05 - op_name: "等待秒数" seconds: 0.15 - - states: "[前台-支援] & ![按键-切换角色-下一个,0,0.3]" + - states: "([前台-支援] & ![按键-切换角色-下一个,0,0.3]) | ([前台-柏妮思] & ![按键-切换角色-下一个,0,0.3])" operations: - op_name: "按键-特殊攻击" post_delay: 0.025 @@ -318,4 +417,4 @@ scenes: - op_name: "按键-切换角色-下一个" post_delay: 0.05 - op_name: "等待秒数" - seconds: 0.15 + seconds: 0.15 \ No newline at end of file diff --git "a/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\347\256\200.sample.yml" "b/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\347\256\200.sample.yml" index 2120c580..2407f5dc 100644 --- "a/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\347\256\200.sample.yml" +++ "b/config/auto_battle/\344\270\223\345\261\236\351\205\215\351\230\237-\347\256\200.sample.yml" @@ -1,7 +1,7 @@ description: | 专属配队-简 - 配队列表:支援/凯撒-简-赛斯 - 备注: 角色位置不可替换 + 配队列表:支援/凯撒-简-凯撒/赛斯 柏妮思-简-凯撒/赛斯 + 备注: 角色顺序没问题就行 你再问就要攻击你啦 版本号: 0.4 作者: 笙梦昱 协作: 巡夜子 starlight @@ -37,7 +37,21 @@ t-sup: &sup - state_template: "站场模板-全角色" #战场模板-简 -t-j: &j #当前狂热心流不足50%且萨霍夫可使用则使用萨霍夫 +t-j: &j + #简切人 + - states: "(![自定义-柏妮思燃点,0, 15] & ![按键可用-快速支援,0, 10] & [后台-2-柏妮思])" + operations: + - op_name: "按键-特殊攻击" + post_delay: 0.2 + - op_name: "等待秒数" + seconds: 0.2 + - op_name: "按键-切换角色-下一个" + post_delay: 0.025 + - op_name: "清除状态" + state: "自定义-柏妮思燃点" + - op_name: "设置状态" + state: "自定义-简切人" + #当前狂热心流不足50%且萨霍夫可使用则使用萨霍夫 - states: "![简-狂热心流]{60, 101} & [简-萨霍夫跳]" operations: - op_name: "按键-闪避" @@ -89,24 +103,70 @@ t-ss: &ss operations: - op_name: "按键-普通攻击" +#速切模板-柏妮思 +t-bns: &bns + - states: "[前台-柏妮思]" + sub_handlers: + - states: "[柏妮思-燃点]{21,100} & [前台-能量,0,60]" + operations: + - op_name: "按键-普通攻击" + post_delay: 0.2 + - op_name: "按键-普通攻击" + way: "按下" + post_delay: 0.5 + - op_name: "按键-特殊攻击" + post_delay: 0.05 + repeat: 6 + - op_name: "按键-特殊攻击" + way: "按下" + post_delay: 1.5 + - op_name: "设置状态" + state: "自定义-柏妮思燃点" + + - states: "[按键可用-特殊攻击]" + operations: + - op_name: "按键-特殊攻击" + post_delay: 0.1 + repeat: 2 + - op_name: "按键-特殊攻击" + way: "按下" + post_delay: 2.5 + - op_name: "设置状态" + state: "自定义-柏妮思燃点" + + - states: "[柏妮思-燃点]{80,100}" + operations: + - op_name: "按键-普通攻击" + post_delay: 0.2 + - op_name: "按键-普通攻击" + way: "按下" + post_delay: 0.5 + - op_name: "设置状态" + state: "自定义-柏妮思燃点" + - states: "[前台-能量,0,20]" + operations: + - op_name: "按键-普通攻击" + post_delay: 0.05 + repeat: 20 #连携模板-上一个 t-up: &up + - op_name: "按键-移动-前" + way: "松开" + post_delay: 0.01 - op_name: "按键-连携技-左" - post_delay: 0.2 - repeat: 2 - - op_name: "按键-特殊攻击" - post_delay: 0.2 - repeat: 7 + post_delay: 0.01 + - op_name: "按键-普通攻击" + post_delay: 0.01 #连携模板-下一个 t-down: &down + - op_name: "按键-移动-前" + way: "松开" + post_delay: 0.01 - op_name: "按键-连携技-右" - post_delay: 0.2 - repeat: 2 + post_delay: 0.01 - op_name: "按键-特殊攻击" - post_delay: 0.2 - repeat: 7 - + post_delay: 0.01 #连携模板-取消 t-cancel: &cancel - op_name: "按键-连携技-取消" @@ -209,18 +269,8 @@ scenes: interval: 0.2 handlers: - states: "[连携技-1-邦布]" - operations: *cancel - - states: "[连携技-1-凯撒]" - operations: *up - - states: "[连携技-2-凯撒]" - operations: *down - - states: "[连携技-1-支援]" - operations: *up - - states: "[连携技-2-支援]" - operations: *down - - states: "[连携技-1-异常]" operations: *up - - states: "[连携技-2-异常]" + - states: "" operations: *down - triggers: ["按键可用-快速支援"] @@ -236,10 +286,6 @@ scenes: post_delay: 0.2 - op_name: "按键-闪避" post_delay: 0.3 - - states: "[前台-简]" - operations: - - op_name: "按键-闪避" - post_delay: 0.1 - triggers: [ "前台-血量扣减" ] priority: 97 @@ -254,7 +300,14 @@ scenes: press: 0.05 post_delay: 0.1 repeat: 2 - - states: "![后台-2-凯撒]" + - states: "[后台-1-凯撒] & [后台-1-能量]{45,120}" + operations: + - op_name: "按键-切换角色-下一个" + - op_name: "按键-特殊攻击" + press: 0.05 + post_delay: 0.1 + repeat: 2 + - states: "" operations: - op_name: "按键-移动-前" way: "按下" @@ -282,6 +335,13 @@ scenes: - states: "[前台-凯撒]" sub_handlers: *sup + - triggers: ["前台-柏妮思"] + priority: 2 + interval: 1 + handlers: + - states: "[前台-柏妮思]" + sub_handlers: *bns + - triggers: ["前台-支援"] priority: 1 interval: 1 @@ -307,11 +367,22 @@ scenes: priority: 10 interval: 1 handlers: - - states: "[前台-简] & [按键可用-终结技] & ![按键-切换角色-下一个,0,2]" - operations: - - op_name: "按键-终结技" - post_delay: 0.2 - repeat: 2 + - states: "[前台-简] & ![按键-切换角色-下一个,0,2] & ![按键-切换角色-上一个,0,3]" + sub_handlers: + - states: "[后台-2-柏妮思]" + operations: + - op_name: "按键-切换角色-上一个" + post_delay: 0.1 + - op_name: "按键-终结技" + post_delay: 0.05 + repeat: 8 + - op_name: "清除状态" + state: "自定义-柏妮思燃点" + - states: "![后台-2-柏妮思]" + operations: + - op_name: "按键-终结技" + post_delay: 0.05 + repeat: 8 - triggers: [] priority: 2 @@ -319,7 +390,7 @@ scenes: handlers: - state_template: "通用模板-锁定敌人" #强制简战场 - - states: "![前台-简]" + - states: "![前台-简] & ![自定义-简切人,0, 6]" sub_handlers: - states: "[前台-赛斯] & ![按键-切换角色-上一个,0,0.3]" operations: @@ -332,7 +403,7 @@ scenes: post_delay: 0.05 - op_name: "等待秒数" seconds: 0.15 - - states: "([前台-支援] & ![按键-切换角色-下一个,0,0.3]) | ([前台-凯撒] & ![按键-切换角色-下一个,0,0.3])" + - states: "([前台-支援] & ![按键-切换角色-下一个,0,0.3]) | ([前台-凯撒] & ![按键-切换角色-下一个,0,0.3]) | ([前台-柏妮思] & ![按键-切换角色-下一个,0,0.3])" operations: - op_name: "按键-特殊攻击" post_delay: 0.025