-
Notifications
You must be signed in to change notification settings - Fork 13
/
mas-config.example.toml
337 lines (246 loc) · 7.23 KB
/
mas-config.example.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
# Mod主仓库
# https://github.com/eigeen/more-auto-shoutouts
#
# Q&A文档
# https://git.eigeen.com/eigeen/more-auto-shoutouts-docs
# 全局触发器冷却时间
# 冷却时间内,同一个触发器的消息将会被忽略
# 默认1秒用于防抖
#
# 触发器支持单独设置冷却时间覆盖全局设置,具体查看触发器设置
trigger_cd = 1
# ========== 太刀白刃 ==========
[[trigger]]
# 当有多个事件时,事件调用模式
# sequential_all: 顺序执行全部
# sequential_one: 顺序执行下一个
# random: 随机选取执行
action_mode = "sequential_all"
# 触发冷却时间
# 该项设置后,会覆盖全局设置`trigger_cd`
cooldown = 1
# 可选设置,主要是方便调试和统计,不写也可以
name = "太刀白刃"
# 触发条件设置(有且仅有一个)
[trigger.trigger_on.longsword_level_changed]
new = 1
old = 0
# 触发检查条件设置
# 多个条件同时满足才会执行
# [[trigger.check]]
# weapon_type.value = 3
# 触发事件设置
[[trigger.action]]
cmd = "SendChatMessage"
# 彩色文本为游戏内支持,彩色文本参考Q&A文档
param = "*白刃"
# ========== 太刀黄刃 ==========
[[trigger]]
action_mode = "sequential_all"
name = "太刀黄刃"
[trigger.trigger_on.longsword_level_changed]
new = 2
old = 1
[[trigger.action]]
cmd = "SendChatMessage"
param = "*黄刃"
# ========== 太刀红刃 ==========
[[trigger]]
action_mode = "sequential_all"
name = "太刀红刃"
[trigger.trigger_on.longsword_level_changed]
new = 3
old = 2
[[trigger.action]]
cmd = "SendChatMessage"
param = "*红刃"
# ========== 太刀进入任务 ==========
[[trigger]]
action_mode = "sequential_all"
name = "太刀进入任务"
[trigger.trigger_on.quest_state]
value = 2
[[trigger.check]]
weapon_type.value = 3
[[trigger.action]]
cmd = "SendChatMessage"
param = "*太刀加入游戏"
# ========== 太刀登龙成功 ==========
[[trigger]]
action_mode = "sequential_all"
name = "太刀登龙成功"
[trigger.trigger_on.fsm]
new = { target = 3, id = 92 }
[[trigger.check]]
weapon_type.value = 3
# 伤害收集&检查条件
# 当你在Action中需要使用{{damage}}时,
# 即使不需要判断伤害,也必须要使用trigger.check.damage
# 否则上下文获取不到伤害值,无法正常打印伤害
[[trigger.check]]
[trigger.check.damage]
damage = { gt = 0 }
fsm = { target = 3, id = 92 }
timeout = 1000
[[trigger.action]]
cmd = "SendChatMessage"
param = "太刀侠登龙造成伤害{{damage}},全体武器行注目礼"
# ========== 太刀登龙失败 ==========
[[trigger]]
action_mode = "sequential_all"
name = "太刀登龙失败"
[trigger.trigger_on.fsm]
new = { target = 3, id = 92 }
[[trigger.check]]
weapon_type.value = 3
[[trigger.check]]
[trigger.check.damage]
damage = { le = 0 }
fsm = { target = 3, id = 92 }
timeout = 1000
[[trigger.action]]
cmd = "SendChatMessage"
param = "悲报,太刀侠空登了,全体武器纳刀三秒致敬"
# ========== 太刀居合动作 ==========
[[trigger]]
action_mode = "random"
name = "太刀居合动作"
[trigger.trigger_on.fsm]
new = { target = 3, id = 102 }
[[trigger.check]]
weapon_type.value = 3
[[trigger.action]]
cmd = "SendChatMessage"
param = "*居合随机1"
[[trigger.action]]
cmd = "SendChatMessage"
param = "*居合随机2"
# ========== 大剑强击真三蓄 ==========
[[trigger]]
action_mode = "sequential_all"
name = "大剑强击真三蓄"
[trigger.trigger_on.fsm]
new = { target = 3, id = 137 }
[[trigger.check]]
weapon_type.value = 0
[[trigger.check]]
[trigger.check.damage]
damage = { gt = 0 }
fsm = { target = 3, id = 137 }
timeout = 1000
[[trigger.action]]
cmd = "SendChatMessage"
param = "*强击真三蓄!造成了{{damage}}伤害"
# ========== 虫棍进入任务 ==========
[[trigger]]
action_mode = "sequential_all"
name = "虫棍进入任务"
[trigger.trigger_on.quest_state]
value = 2
[[trigger.check]]
weapon_type.value = 10
[[trigger.action]]
cmd = "SendChatMessage"
param = "*虫棍1"
# ========== 虫棍红灯 ==========
[[trigger]]
action_mode = "random"
name = "虫棍红灯"
[trigger.trigger_on.insect_glaive_light]
red = { new = { gt = 0 }, old = { le = 0 } }
[[trigger.action]]
cmd = "SendChatMessage"
param = "*红灯"
# ========== 虫棍白灯 ==========
[[trigger]]
action_mode = "random"
name = "虫棍白灯"
[trigger.trigger_on.insect_glaive_light]
white = { new = { gt = 0 }, old = { le = 0 } }
[[trigger.action]]
cmd = "SendChatMessage"
param = "*白灯"
# ========== 虫棍黄灯 ==========
[[trigger]]
action_mode = "random"
name = "虫棍黄灯"
[trigger.trigger_on.insect_glaive_light]
yellow = { new = { gt = 0 }, old = { le = 0 } }
[[trigger.action]]
cmd = "SendChatMessage"
param = "*黄灯"
# ========== 虫棍三灯 ==========
[[trigger]]
action_mode = "random"
name = "虫棍三灯"
[trigger.trigger_on.insect_glaive_light]
red = { new = { gt = 0 } }
white = { new = { gt = 0 } }
yellow = { new = { gt = 0 } }
[[trigger.action]]
cmd = "SendChatMessage"
param = "*三灯"
# ========== 猎虫强化动作 ==========
[[trigger]]
action_mode = "random"
name = "猎虫强化动作"
[trigger.trigger_on.fsm]
new = { target = 3, id = 133 }
[[trigger.check]]
weapon_type.value = 10
[[trigger.action]]
cmd = "SendChatMessage"
param = "*猎虫强化"
# ========== 盾斧瓶子充满 ==========
[[trigger]]
action_mode = "random"
name = "盾斧瓶子充满"
[trigger.trigger_on.charge_blade]
phials = { new = "full" }
[[trigger.action]]
cmd = "SendChatMessage"
param = "*瓶子充满"
# ========== 盾斧电锯启用 ==========
[[trigger]]
action_mode = "random"
name = "盾斧电锯启用"
[trigger.trigger_on.charge_blade]
power_axe_timer = { new = "enabled" }
[[trigger.action]]
cmd = "SendChatMessage"
param = "*开电锯"
# ========== 盾斧红盾启用 ==========
[[trigger]]
action_mode = "random"
name = "盾斧红盾启用"
[trigger.trigger_on.charge_blade]
shield_charge_timer = { new = { gt = 0 }, old = { le = 0 } }
[[trigger.action]]
cmd = "SendChatMessage"
param = "*开红盾"
# ========== 使用道具 ==========
[[trigger]]
action_mode = "sequential_all"
name = "使用怪力药丸"
[trigger.trigger_on.use_item]
item_id = 23
[[trigger.action]]
cmd = "SendChatMessage"
param = "<STYL MOJI_RED_DEFAULT><SIZE 35>怪力药丸</SIZE></STYL> 攻击+20"
[[trigger]]
action_mode = "sequential_all"
name = "使用忍耐药丸"
[trigger.trigger_on.use_item]
item_id = 27
[[trigger.action]]
cmd = "SendChatMessage"
param = "<STYL MOJI_YELLOW_DEFAULT><SIZE 35>忍耐药丸</SIZE></STYL> 防御+30%+耐冲3+风压无效"
# ========== 使用衣装 ==========
[[trigger]]
action_mode = "sequential_all"
name = "使用回避衣装"
[trigger.trigger_on.use_item]
item_id = 131
[[trigger.action]]
cmd = "SendChatMessage"
param = "*使用回避衣装"