forked from hadorganization/geheimnisnacht
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mnm_devil_worshipers_decisions.txt
463 lines (459 loc) · 8.94 KB
/
mnm_devil_worshipers_decisions.txt
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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
###########################################
#
# Devil worshiper decisions for Monks and Mystics
#
###########################################
targeted_decisions = {
#Power: Summon familiar
devil_worshipers_summon_familiar = {
is_in_society = yes
filter = self
ai_target_filter = self
potential = {
# disabled for now
always = no
prisoner = no
NOT = {
trait = incapable
}
character = FROM
has_dlc = "Mystics"
society_rank >= 2
is_devil_worshiper_trigger = yes
}
allow = {
custom_tooltip = {
text = devil_worshipers_summon_familiar_cd_tooltip
NOT = {
has_character_modifier = summon_familiar_cooldown
}
}
has_society_currency_major_trigger = yes
}
effect = {
log = "work decision devil_worshipers_summon_familiar for [Root.GetBestName]"
increase_visibility_effect = yes
hidden_effect = {
add_character_modifier = {
name = summon_familiar_cooldown
years = 5
hidden = yes
}
character_event = {
id = MNM.7815
}
}
detract_society_currency_major_effect = yes
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
modifier = {
factor = 0
OR = {
has_character_modifier = wolf_familiar
has_character_modifier = cat_familiar
has_character_modifier = owl_familiar
has_character_modifier = raven_familiar
}
}
}
}
#Power: Tainted touch
the_devil_worshipers_tainted_touch = {
is_in_society = yes
ai_target_filter = realm
from_potential = {
prisoner = no
NOT = {
trait = incapable
}
OR = {
has_society_currency_major_trigger = yes
ai = no
}
OR = {
war = yes
num_of_rivals = 1
ai = no
}
society_member_of = cult_of_nurgle
society_rank > 1
#NOT = { character = FROM }
}
potential = {
NOT = {
character = FROM
}
OR = {
NOR = {
character_disease_trigger = yes
has_character_flag = developing_illness
has_character_flag = disease_not_serious
}
FROM = {
ai = no
}
}
OR = {
NOT = {
has_character_modifier = curse_cooldown_timer
}
FROM = {
ai = no
}
}
OR = {
AND = {
FROM = {
ai = no
}
is_within_diplo_range = FROM
}
AND = {
FROM = {
ai = yes
}
same_realm = FROM
}
}
#Makes sure the AI does good choices
OR = {
FROM = {
ai = no
}
is_foe = FROM
war_with = FROM
holds_favor_on = FROM
any_spouse = {
#Unfaithful spouse
character = FROM
any_lover = {
NOT = {
character = FROM
}
}
}
any_lover = {
any_spouse = {
character = FROM
}
} #Lover of spouse
any_lover = {
any_lover = {
character = FROM
}
} #Lover of lover
}
}
allow = {
FROM = {
has_society_currency_major_trigger = yes
}
OR = {
same_realm = FROM
is_foe = FROM
same_society_as = FROM
war_with = FROM
}
custom_tooltip = {
text = the_devil_worshipers_tainted_touch_allow_2_tt
hidden_tooltip = {
NOT = {
has_character_modifier = curse_cooldown_timer
}
}
}
custom_tooltip = {
text = the_devil_worshipers_tainted_touch_allow_tt
NOR = {
character_disease_trigger = yes
has_character_flag = developing_illness
has_character_flag = disease_not_serious
}
}
}
effect = {
log = "work decision the_devil_worshipers_tainted_touch for [Root.GetBestName]"
FROM = {
increase_visibility_effect = yes
}
hidden_tooltip = {
add_character_modifier = {
name = curse_cooldown_timer
hidden = yes
years = 10
}
}
custom_tooltip = {
text = the_devil_worshipers_tainted_touch_tooltip
if = {
limit = {
has_dlc = "Reapers"
}
character_event = {
id = DR_cults.7819 days = 3
}
}
if = {
limit = {
NOT = {
has_dlc = "Reapers"
}
}
character_event = {
id = DR_cults.7819 days = 14 random = 14
}
}
}
FROM = {
save_event_target_as = curser
detract_society_currency_major_effect = yes
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
}
}
# #Power: dark divorce
# devil_worshipers_dark_divorce = {
# is_in_society = yes
# filter = spouse
# ai_target_filter = spouse
# from_potential = {
# is_devil_worshiper_trigger = yes
# society_rank > 2
# is_married = yes
# prisoner = no
# NOT = { trait = incapable }
# }
# potential = {
# ai = yes
# any_spouse = { character = FROM }
# NOT = { has_character_flag = being_dark_divorced }
# is_within_diplo_range = FROM
# #Reasons allowing dark divorce for ai
# OR = {
# FROM = { ai = no }
# NOT = {
# reverse_opinion = {
# who = FROM
# value = 0
# }
# }
# is_rival = FROM
# has_character_modifier = adulterer
# has_character_modifier = adulteress
# has_character_modifier = incestuous_adulterer
# has_character_modifier = incestuous_adulteress
# AND = {
# FROM = { is_ruler = yes }
# is_female = yes
# OR = {
# age = 45
# NOT = { fertility = 0.3 }
# }
# FROM = { current_heir = { dynasty = FROM } }
# }
# trait = lunatic
# trait = possessed
# trait = cruel
# trait = kinslayer
# trait = cannibal_trait
# AND = {
# trait = wroth
# trait = drunkard
# }
# AND = {
# trait = zealous
# is_devil_worshiper_trigger = no
# }
# }
# #Stopping the ai from making stupid choices
# OR = {
# FROM = { ai = no }
# NOR = {
# is_friend = FROM
# is_lover = FROM
# is_pregnant = yes
# }
# }
# }
# allow = {
# FROM = {
# NOT = { has_character_modifier = recently_did_dark_divorce }
# has_society_currency_minor_trigger = yes
# }
# }
# effect = {
# FROM = { increase_visibility_effect = yes }
# set_character_flag = being_dark_divorced
# FROM = {
# add_character_modifier = {
# name = recently_did_dark_divorce
# years = 2
# }
# }
# hidden_effect = {
# character_event = { id = MNM.7800 days = 1 }
# }
# }
# revoke_allowed = {
# always = no
# }
# ai_will_do = {
# factor = 1
# modifier = {
# factor = 0.0001 # slow down
# }
# modifier = {
# factor = 0.5
# FROM = { is_benevolent_trigger = yes }
# }
# modifier = {
# factor = 100
# FROM = { is_evil_trigger = yes }
# }
# modifier = {
# is_heir = yes
# factor = 0.01
# }
# }
# }
}
title_decisions = {
devil_worshiper_desecrate_temple_decision = {
only_playable = yes
ai_target_filter = realm_owned
from_potential = {
prisoner = no
NOT = {
trait = incapable
}
has_dlc = "Mystics"
has_quest = quest_devil_worshipers_desecrate_temple
NOT = {
has_character_flag = desecration_in_progress
}
is_devil_worshiper_trigger = yes
}
potential = {
OR = {
tier = BARON
tier = COUNT
}
OR = {
is_quest_target_of = FROM
location = {
capital_holding = {
is_quest_target_of = FROM
}
}
}
FROM = {
NOT = {
has_character_flag = desecration_in_progress
}
}
}
allow = {
FROM = {
has_quest = quest_devil_worshipers_desecrate_temple
}
OR = {
is_quest_target_of = FROM
location = {
capital_holding = {
is_quest_target_of = FROM
}
}
}
}
effect = {
log = "work decision devil_worshiper_desecrate_temple_decision for [Root.GetBestName]"
FROM = {
increase_visibility_effect = yes
custom_tooltip = {
text = devil_worshiper_desecrate_temple_decision_tt
}
set_character_flag = desecration_in_progress
ROOT = {
if = {
limit = {
owner = {
character = FROM
}
}
add_holding_modifier = {
name = desecrated_temple
years = 5
}
FROM = {
sound_effect = devil_worshippers_desecrate_temple
clr_quest = quest_devil_worshipers_desecrate_temple
add_society_currency_medium_effect = yes
break = yes
}
}
}
hidden_effect = {
character_event = {
id = MNM.7112 days = 7
}
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0.5
}
}
}
society_decisions = {
#Power: Invite disciple of devil
devil_worshipers_invite_disciple_of_devil = {
only_playable = yes
potential = {
has_dlc = "Mystics"
society_rank >= 3
is_devil_worshiper_trigger = yes
NOT = {
has_character_flag = disciple_arriving
}
}
allow = {
has_society_currency_minor_trigger = yes
is_inaccessible_trigger = no
}
effect = {
log = "work decision devil_worshipers_invite_disciple_of_devil for [Root.GetBestName]"
#increase_visibility_effect = yes
set_character_flag = disciple_arriving
detract_society_currency_minor_effect = yes
custom_tooltip = {
text = devil_worshipers_invite_disciple_of_devil_tt
character_event = {
id = MNM.7822 days = 7
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0
# factor = 0.001
# modifier = {
# factor = 0.1
# any_courtier = { is_devil_worshiper_trigger = yes } #Less likely to invite if there is already someone else at court
# }
}
}
}