forked from hadorganization/geheimnisnacht
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wh_misc_decisions.txt
520 lines (511 loc) · 9.52 KB
/
wh_misc_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
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
#
targetted_decisions = {
send_son_to_university = {
filter = dynasty
ai_target_filter = dynasty
only_rulers = yes
from_potential = {
is_ruler = yes
NOR = {
trait = witch_hunter
religion = grail
religion = false_grail
is_tribal = yes
is_nomadic = yes
}
trait = creature_human
OR = {
religion_group = old_world_group
religion_group = ormazd_gods_group
religion = northern_gods
}
OR = {
location = {
region = world_old_world
}
location = {
region = world_greater_araby
}
}
}
potential = {
age = 16
is_landed = no
in_command = no
OR = {
father = {
character = FROM
}
mother = {
character = FROM
}
}
NOR = {
has_character_flag = wants_educ_university
trait = academic
trait = arabyan_scholar
# has_character_flag = wants_eng_university
# trait = engineer
}
OR = {
is_female = no
FROM = {
NOR = {
religion = ormazd
religion = kitabid
}
}
}
}
allow = {
custom_tooltip = {
text = IS_NOT_INCAPACITATED
is_incapacitated_trigger = no
}
from = {
custom_tooltip = {
text = IS_NOT_INCAPACITATED
is_incapacitated_trigger = no
}
}
host = {
character = FROM
}
OR = {
father = {
character = FROM
}
mother = {
character = FROM
}
}
}
effect = {
log = "work decision send_son_to_university for [Root.GetBestName]"
hidden_tooltip = {
character_event = {
id = DR_universities.31
}
if = {
limit = {
FROM = {
is_female = yes
}
}
set_character_flag = mother_return_university
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0
# modifier = {
# factor = 0.005 # Slow it down
# }
}
}
vassalize_new_elector = {
from_potential = {
ai = no # "ai_target_filter = all" is expensive, so ai instead uses MTTH event ElectiveLeagues.40
league_potential_trigger = yes
}
potential = {
NOT = {
character = FROM
}
league_potential_trigger = yes
}
allow = {
FROM = {
primary_title = {
has_law = succ_feudal_elective
is_titular = yes
}
# Sorry for the indent, players, but it gets the scopes correct for sharing scripted triggers
ROOT = {
custom_tooltip = {
text = LOWER_RANK_THAN_US
lower_real_tier_than = PREV
}
THIS_can_be_elector_of_PREV_trigger = yes
THIS_can_join_PREV_league_trigger = yes
THIS_and_FROM_are_adjacent_trigger = yes
NOT = {
has_opinion_modifier = {
who = FROM modifier = opinion_granted_independence
}
}
}
}
}
effect = {
log = "work decision vassalize_new_elector for [Root.GetBestName]"
add_THIS_to_FROM_existing_league_effect = yes
}
}
}
decisions = {
restore_eternal_empire = {
is_high_prio = yes
potential = {
age = 16
NOT = {
has_global_flag = ee_restored
}
religion = myrmidian
OR = {
culture_group = estalian_group
culture_group = tilean_group
}
}
allow = {
custom_tooltip = {
text = IS_NOT_INCAPACITATED
is_incapacitated_trigger = no
}
prestige = 1500
OR = {
has_landed_title = e_estalia
has_landed_title = e_tilea
}
has_landed_title = c_magritta
completely_controls = d_remas
completely_controls = d_luccini
completely_controls = d_bilbali
}
effect = {
log = "work decision restore_eternal_empire for [Root.GetBestName]"
wealth = -500
prestige = 500
activate_title = {
title = e_eternal_empire status = yes
}
hidden_tooltip = {
k_astarios = {
de_jure_liege = e_eternal_empire
}
k_cantonia = {
de_jure_liege = e_eternal_empire
}
k_castillona = {
de_jure_liege = e_eternal_empire
}
k_tigarre = {
de_jure_liege = e_eternal_empire
}
k_obregon = {
de_jure_liege = e_eternal_empire
}
k_calafina = {
de_jure_liege = e_eternal_empire
}
k_tobaro = {
de_jure_liege = e_eternal_empire
}
k_adriata = {
de_jure_liege = e_eternal_empire
}
k_miragliano = {
de_jure_liege = e_eternal_empire
}
k_trantio = {
de_jure_liege = e_eternal_empire
}
k_remas = {
de_jure_liege = e_eternal_empire
}
k_pavona = {
de_jure_liege = e_eternal_empire
}
k_luccini = {
de_jure_liege = e_eternal_empire
}
k_sartosa = {
de_jure_liege = e_eternal_empire
}
k_monte_castello = {
de_jure_liege = e_eternal_empire
}
k_verezzo = {
de_jure_liege = e_eternal_empire
}
if = {
limit = {
has_landed_title = e_estalia
}
e_estalia = {
any_direct_de_jure_vassal_title = {
de_jure_liege = e_eternal_empire
}
}
}
if = {
limit = {
has_landed_title = e_tilea
}
e_tilea = {
any_direct_de_jure_vassal_title = {
de_jure_liege = e_eternal_empire
}
}
}
}
primary_title = {
e_eternal_empire = {
grant_title = ROOT
copy_title_laws = PREV
copy_title_history = PREV
}
}
hidden_tooltip = {
e_eternal_empire = {
make_primary_title = yes
}
}
if = {
limit = {
OR = {
has_landed_title = e_estalia
e_estalia = {
has_holder = no
}
}
}
e_estalia = {
destroy_landed_title = THIS
}
activate_title = {
title = e_estalia status = no
}
}
if = {
limit = {
OR = {
has_landed_title = e_tilea
e_tilea = {
has_holder = no
}
}
}
e_tilea = {
destroy_landed_title = THIS
}
activate_title = {
title = e_tilea status = no
}
}
set_global_flag = ee_restored
narrative_event = {
id = DR_misc.1
tooltip = EVTTOOLTIPETERNALRESTORED
}
}
ai_will_do = {
factor = 1
}
}
# Parade of the Idols ( Atruhayid )
celebrate_atruhayid_festival = {
only_playable = yes
is_high_prio = yes
potential = {
is_feudal = yes
religion = atruhayid
nor = {
has_character_modifier = holding_atruhayid_feast
has_character_modifier = large_feast_timer
has_character_modifier = fabulous_feast
has_character_flag = do_not_disturb
liege = {
has_character_modifier = holding_atruhayid_feast
}
}
num_of_vassals = 1
}
allow = {
custom_tooltip = {
text = IS_NOT_INCAPACITATED
is_incapacitated_trigger = no
}
war = no
any_demesne_title = {
NOT = {
higher_tier_than = count
}
is_occupied = no
}
scaled_wealth = 0.2
month = 5
NOT = {
month = 9
}
prestige = 100
}
effect = {
log = "work decision celebrate_atruhayid_festival for [Root.GetBestName]"
scaled_wealth = -0.2
add_character_modifier = {
name = holding_atruhayid_feast
duration = 365
}
set_character_flag = recent_minor_decision
set_character_flag = do_not_disturb
hidden_tooltip = {
character_event = {
id = DR_misc.1500
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0.1
modifier = {
factor = 0
NOT = {
scaled_wealth = 2
}
}
modifier = {
factor = 0.5
trait = shy
}
modifier = {
factor = 0.5
NOT = {
diplomacy = 10
}
}
modifier = {
factor = 0
has_character_flag = recent_minor_decision
NOT = {
had_character_flag = {
flag = recent_minor_decision
days = 730
}
}
}
modifier = {
factor = 0
NOT = {
age = 30
}
}
}
}
# Borderlands Prince Leagues
# Only for human rulers inside the Borderlands region
create_elective_league = {
only_playable = yes
potential = {
ai = no # adjacency calculation is expensive, so ai instead uses MTTH event ElectiveLeagues.30
OR = {
real_tier = KING
real_tier = DUKE
real_tier = COUNT
}
league_potential_trigger = yes
}
allow = {
is_feudal = yes
# religion_allows_feudal_elective_trigger = yes
any_independent_ruler = {
THIS_and_PREV_same_rank_trigger = yes
THIS_can_join_PREV_league_trigger = yes
THIS_and_FROM_are_adjacent_trigger = yes
}
}
effect = {
log = "work decision create_elective_league for [Root.GetBestName]"
custom_tooltip = {
text = create_elective_league_effect
hidden_tooltip = {
character_event = {
id = DR_misc.1031
}
}
}
}
}
}
settlement_decisions = {
cleanse_skaven_presence = {
filter = owned
ai_target_filter = owned
is_high_prio = yes
only_playable = yes
potential = {
FROM = {
NOT = {
trait = creature_skaven
}
}
holder_scope = {
character = FROM
}
dejure_liege_title = {
holder_scope = {
character = FROM
}
}
location = {
NOT = {
region = world_underempire
}
}
OR = {
location = {
has_province_modifier = skaven_burrows
}
location = {
culture_group = skaven_group
}
}
}
allow = {
FROM = {
wealth = 40
}
NOT = {
location = {
has_province_modifier = hunting_skaven
}
}
OR = {
location = {
has_province_modifier = skaven_burrows
}
location = {
culture_group = skaven_group
}
}
}
effect = {
log = "work decision cleanse_skaven_presence for [Root.GetBestName]"
hidden_tooltip = {
FROM = {
character_event = {
id = DR_misc.1100
}
}
location = {
add_province_modifier = {
name = hunting_skaven
duration = 60
hidden = yes
}
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
}
}
}