forked from hadorganization/geheimnisnacht
-
Notifications
You must be signed in to change notification settings - Fork 0
/
realm_decisions.txt
1794 lines (1780 loc) · 32.7 KB
/
realm_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
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
decisions = {
hold_a_epic_tournament = {
is_high_prio = yes
potential = {
is_ruler = yes
demesne_size = 1
higher_tier_than = BARON
religion = grail
is_theocracy = no
nor = {
has_character_flag = no_kingship
has_character_flag = inherit_war
has_character_flag = danys_eastern_quest
}
}
allow = {
war = no
NOT = {
any_liege = {
war = yes
}
}
prisoner = no
NOT = {
trait = in_hiding
}
is_adult = yes
treasury = 75
NOT = {
trait = incapable
}
custom_tooltip = {
text = hold_a_epic_tournamentREALMTOURNEY
hidden_tooltip = {
#Cannot hold tourney if....
NOT = {
any_liege = {
has_character_modifier = holding_epic_tournament
}
} #Any liege is holding one
NOT = {
#Any grand tournaments are in progress
top_liege = {
any_realm_lord = {
NOT = {
tier = BARON
}
has_character_modifier = holding_epic_tournament
OR = {
has_character_flag = grand_tourny
has_character_flag = king_tourny
}
}
}
}
NOT = {
#Any duke within same kingdom is holding a regional one
any_liege = {
tier = KING
any_vassal = {
NOT = {
tier = BARON
}
has_character_modifier = holding_epic_tournament
has_character_flag = normal_tourny
}
}
}
OR = {
#If sworn directly to emperor and any duke who is also sworn directly is a regional holding one
higher_tier_than = DUKE
any_liege = {
tier = KING
}
NOT = {
any_liege = {
tier = EMPEROR
any_vassal = {
NOT = {
tier = BARON
}
has_character_modifier = holding_epic_tournament
has_character_flag = normal_tourny
}
}
}
}
# OR = { #Holder is count tier and another nearby count is holding one
# NOT = { tier = COUNT }
# NOT = {
# any_demesne_province = {
# OR = {
# any_neighbor_province = {
# OR = {
# any_province_lord = {
# tier = COUNT
# has_character_modifier = holding_epic_tournament
# }
# duchy = {
# holder_scope = {
# tier = DUKE
# any_vassal = {
# tier = COUNT
# has_character_modifier = holding_epic_tournament
# }
# }
# }
# }
# }
# duchy = {
# holder_scope = {
# tier = DUKE
# any_vassal = {
# tier = COUNT
# has_character_modifier = holding_epic_tournament
# }
# }
# }
# }
# }
# }
# }
}
}
custom_tooltip = {
text = hold_a_epic_tournamentCOOLDOWN
hidden_tooltip = {
OR = {
NOT = {
has_character_flag = epic_tournament
}
had_character_flag = {
flag = epic_tournament days = 3650
}
}
}
}
custom_tooltip = {
text = hold_a_epic_tournamentATTENDING
hidden_tooltip = {
NOT = {
has_character_flag = attending_tournament
}
}
}
custom_tooltip = {
text = is_not_busy_trigger_tooltip
hidden_tooltip = {
NOT = {
has_character_flag = do_not_disturb
}
}
}
}
effect = {
log = "work decision hold_a_epic_tournament for [Root.GetBestName]"
clr_character_flag = epic_tournament
set_character_flag = epic_tournament
set_character_flag = tourny_in_progress
set_character_flag = do_not_disturb
clr_character_flag = tournament_has_ended
add_character_modifier = {
name = "holding_epic_tournament"
duration = 400
}
character_event = {
id = tourney.1 tooltip = "tournament_invite"
}
hidden_tooltip = {
character_event = {
id = 70001 days = 30
} # Tournament start
}
}
ai_will_do = {
factor = 1
modifier = {
factor = 0.02
}
modifier = {
#save up for higher tourney
factor = 0
OR = {
trait = ambitious
trait = proud
trait = charitable
}
OR = {
AND = {
yearly_income = 75
NOT = {
treasury = 150
}
}
AND = {
OR = {
tier = EMPEROR
yearly_income = 150
}
NOT = {
treasury = 300
}
}
}
}
#AI unlikley to do
modifier = {
factor = 0.2
OR = {
trait = shy
trait = greedy
trait = temperate
trait = stressed
trait = depressed
trait = slothful
}
}
#AI likely to do
modifier = {
factor = 5
OR = {
trait = gregarious
trait = charitable
trait = gluttonous
trait = hedonist
trait = duelist
}
}
}
}
# buy_indulgence_for_sins = {
# only_playable = yes
# potential = {
# is_playable = yes
# religion_group = old_world_group
# age = 16
# demesne_size = 1
# NOT = { has_character_flag = ask_for_indulgence }
# }
# allow = {
# scaled_wealth = 1.0
# wealth = 25
# is_heretic = no
# }
# effect = {
# set_character_flag = ask_for_indulgence
# rightful_religious_head_scope = {
# character_event = { id = 39250 days = 5 random = 12 tooltip = "indulgence_ask" }
# }
# }
# ai_will_do = {
# factor = 1
# modifier = {
# factor = 0
# OR = {
# NOT = { scaled_wealth = 10.0 }
# piety = 0
# }
# }
# }
# }
# issue_declaration_of_repentance = {
# only_playable = yes
# potential = {
# is_playable = yes
# religion_group = old_world_group
# age = 16
# demesne_size = 1
# NOT = { has_character_flag = ask_for_repentance }
# rightful_religious_head_scope = {
# ROOT = {
# excommunicated_for = PREV
# }
# }
# }
# allow = {
# scaled_wealth = 2.0
# is_heretic = no
# }
# effect = {
# set_character_flag = ask_for_repentance
# rightful_religious_head_scope = {
# character_event = { id = 39252 days = 5 random = 12 tooltip = "repentance_ask" }
# }
# }
# ai_will_do = {
# factor = 1
# modifier = {
# factor = 0
# NOT = {
# scaled_wealth = 10.0
# }
# }
# }
# }
demand_liege_title = {
only_playable = yes
is_high_prio = yes
potential = {
ai = no
is_playable = yes
has_ambition = obj_gain_any_title
liege = {
NOT = {
character = ROOT
}
}
is_adult = yes
prisoner = no
NOT = {
trait = incapable
}
}
allow = {
prestige = 60
liege = {
has_regent = no
NOT = {
has_opinion_modifier = {
who = ROOT modifier = requested_land
}
}
demesne_size = 3
any_demesne_title = {
can_be_given_away = yes
tier = COUNT
NOT = {
location = {
is_capital = yes
}
}
}
}
}
effect = {
log = "work decision demand_liege_title for [Root.GetBestName]"
prestige = -60
liege = {
opinion = {
who = ROOT
years = 2
modifier = requested_land
}
random_demesne_title = {
limit = {
can_be_given_away = yes
tier = COUNT
NOT = {
location = {
is_capital = yes
}
}
}
save_event_target_as = vassal_wanted_title
}
}
custom_tooltip = {
text = demand_liege_title_tooltip
hidden_tooltip = {
liege = {
letter_event = {
id = 63041 days = 4
}
}
} # "vassal_request_events.txt"
}
}
ai_will_do = {
factor = 0 # The AI is limited to the similar event 63040
}
}
sadaqah_saddka = {
only_playable = yes
potential = {
is_playable = yes
ai = no
OR = {
religion = ormazd
religion = kitabid
}
is_adult = yes
demesne_size = 1
NOT = {
has_character_flag = voluntary_charity
}
rightful_religious_head_scope = {
nor = {
character = ROOT
has_opinion_modifier = {
who = ROOT modifier = opinion_sadaqah
}
}
}
}
allow = {
scaled_wealth = 1.0
is_heretic = no
}
effect = {
log = "work decision sadaqah_saddka for [Root.GetBestName]"
set_character_flag = voluntary_charity
scaled_wealth = -0.25
piety = 25
rightful_religious_head_scope = {
character_event = {
id = 31000 days = 5 random = 12 tooltip = "sadaqah_voluntary_charity"
}
}
}
ai_will_do = {
factor = 1
modifier = {
factor = 0
ai = yes
OR = {
NOT = {
scaled_wealth = 10.0
}
piety = 0
}
}
}
}
hold_a_furusiyya = {
only_independent = yes
is_high_prio = yes
potential = {
is_playable = yes
independent = yes
NOR = {
has_character_flag = epic_tournament_furusiyya
has_character_modifier = epic_tournament_furusiyya
}
religion_group = ormazd_gods_group
OR = {
gender_equality_trigger = yes
NOT = {
is_female = yes
}
}
OR = {
tier = king
tier = emperor
}
location = {
owner = {
character = ROOT
}
}
}
allow = {
war = no
in_command = no
prisoner = no
NOT = {
is_inaccessible_trigger = yes
}
age = 16
prestige = 500
wealth = 200
custom_tooltip = {
text = is_not_busy_trigger_tooltip
hidden_tooltip = {
NOT = {
has_character_flag = do_not_disturb
}
}
}
}
effect = {
log = "work decision hold_a_furusiyya for [Root.GetBestName]"
set_character_flag = do_not_disturb
add_character_modifier = {
name = epic_tournament_furusiyya
years = 100
hidden = yes
}
clr_character_flag = tournament_has_ended_furusiyya
hidden_tooltip = {
character_event = {
id = 88999 days = 300
}
} # Safety catch flag clearing
wealth = -200
prestige = 100
decadence = -5
character_event = {
id = 88283 tooltip = "furusiyya_invite"
}
}
ai_will_do = {
factor = 1
modifier = {
factor = 0
NOT = {
OR = {
wealth = 1000
scaled_wealth = 3.0
}
}
}
}
}
petition_doge_for_tp = {
only_playable = yes
is_high_prio = yes
potential = {
is_playable = yes
is_merchant_republic = no
is_patrician = yes
liege = {
is_merchant_republic = yes
}
NOT = {
has_character_flag = petition_doge_for_tp_taken
}
OR = {
liege = {
any_vassal = {
is_patrician = yes
num_of_trade_post_diff = {
character = ROOT
value = 10
}
}
}
AND = {
NOT = {
num_of_trade_posts = 1
}
liege = {
any_vassal = {
is_patrician = yes
num_of_trade_posts = 10
}
}
}
}
}
allow = {
liege = {
opinion = {
who = ROOT
value = 25
}
}
}
effect = {
log = "work decision petition_doge_for_tp for [Root.GetBestName]"
set_character_flag = petition_doge_for_tp_taken
liege = {
letter_event = {
id = REP.500 days = 5 tooltip = EVTTOOLTIP_REP_500
}
}
}
ai_will_do = {
factor = 1
}
}
usurp_tp = {
only_playable = yes
is_high_prio = yes
potential = {
is_playable = yes
is_merchant_republic = yes
is_patrician = yes
NOT = {
has_character_flag = usurp_tp_taken
}
OR = {
any_vassal = {
is_patrician = yes
num_of_trade_post_diff = {
character = ROOT
value = 10
}
}
AND = {
NOT = {
num_of_trade_posts = 1
}
any_vassal = {
is_patrician = yes
num_of_trade_posts = 10
}
}
}
}
allow = {
custom_tooltip = {
text = IS_NOT_INCAPACITATED
is_incapacitated_trigger = no
}
is_merchant_republic = yes
}
effect = {
log = "work decision usurp_tp for [Root.GetBestName]"
set_character_flag = usurp_tp_taken
if = {
limit = {
num_of_trade_posts = 1
any_vassal = {
is_patrician = yes
num_of_trade_post_diff = {
character = ROOT
value = 10
}
}
}
random_vassal = {
limit = {
is_patrician = yes
num_of_trade_post_diff = {
character = ROOT
value = 10
}
}
set_character_flag = target_patrician_doge
letter_event = {
id = REP.510 days = 5 tooltip = EVTTOOLTIP_REP_510
}
}
}
if = {
limit = {
NOT = {
num_of_trade_posts = 1
}
any_vassal = {
is_patrician = yes
num_of_trade_posts = 10
}
}
random_vassal = {
limit = {
is_patrician = yes
num_of_trade_posts = 10
}
set_character_flag = target_patrician_doge
letter_event = {
id = REP.510 days = 5 tooltip = EVTTOOLTIP_REP_510
}
}
}
}
ai_will_do = {
factor = 1
}
}
form_new_kingdom = {
only_independent = yes
is_high_prio = yes
potential = {
NOT = {
religion_group = greenskin_gods_group
}
is_playable = yes
tier = DUKE
NOT = {
tier = KING
}
has_dlc = "Charlemagne"
holy_order = no
NOT = {
has_game_rule = {
name = dynamic_realms
value = off
}
}
OR = {
ai = no
AND = {
trait = proud
prestige = 5000
}
AND = {
trait = ambitious
prestige = 5000
}
AND = {
realm_size = 70
any_demesne_title = {
count = 4
tier = DUKE
}
}
prestige = 15000
}
}
allow = {
is_adult = yes
prisoner = no
NOT = {
trait = incapable
}
independent = yes
prestige = 1000
OR = {
realm_size = 35
custom_tooltip = {
text = form_new_kingdom_requirement_tooltip
hidden_tooltip = {
any_demesne_title = {
count = 3
tier = DUKE
}
}
}
}
wealth = 300
}
effect = {
log = "work decision form_new_kingdom for [Root.GetBestName]"
primary_title = {
create_title = {
tier = KING
landless = no
temporary = no
custom_created = yes
culture = ROOT
holder = ROOT
base_title = THIS
copy_title_laws = yes
}
hidden_tooltip = {
empire = {
ROOT = {
primary_title = {
de_jure_liege = PREVPREV
}
}
}
ROOT = {
primary_title = {
holder_scope = {
any_title_under = {
limit = {
tier = DUKE
kingdom = {
has_holder = no
}
}
de_jure_liege = PREVPREV
}
any_title_under = {
limit = {
tier = COUNT
location = {
duchy = {
kingdom = {
has_holder = no
}
NOT = {
de_jure_liege_or_above = PREVPREVPREVPREV
}
ROOT = {
completely_controls = PREV
}
}
}
}
location = {
duchy = {
de_jure_liege = PREVPREVPREVPREV
}
}
}
}
}
}
}
}
wealth = -300
custom_tooltip = {
text = form_new_kingdom_tooltip
}
chronicle = {
entry = CHRONICLE_FOUNDED_NEW_KINGDOM_OR_EMPIRE
portrait = [Root.GetID]
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
}
}
form_new_empire = {
only_independent = yes
is_high_prio = yes
potential = {
NOT = {
religion_group = greenskin_gods_group
}
is_playable = yes
tier = KING
is_nomadic = no
has_dlc = "Charlemagne"
holy_order = no
NOT = {
tier = EMPEROR
}
OR = {
ai = no
AND = {
trait = proud
prestige = 40000
}
AND = {
trait = ambitious
prestige = 40000
}
prestige = 120000
}
NOT = {
has_game_rule = {
name = dynamic_realms
value = off
}
}
}
allow = {
is_adult = yes
prisoner = no
NOT = {
trait = incapable
}
independent = yes
prestige = 8000
OR = {
realm_size = 180
custom_tooltip = {
text = form_new_empire_requirement_tooltip
hidden_tooltip = {
any_demesne_title = {
count = 3
tier = KING
}
}
}
}
wealth = 1000
}
effect = {
log = "work decision form_new_empire for [Root.GetBestName]"
primary_title = {
create_title = {
tier = EMPEROR
landless = no
temporary = no
custom_created = yes
culture = ROOT
holder = ROOT
base_title = THIS
copy_title_laws = yes
}
hidden_tooltip = {
ROOT = {
primary_title = {
holder_scope = {
any_title_under = {
limit = {
tier = KING
empire = {
has_holder = no
}
}
de_jure_liege = PREVPREV
}
any_title_under = {
limit = {
tier = DUKE
location = {
kingdom = {
empire = {
has_holder = no
}
NOT = {
de_jure_liege_or_above = PREVPREVPREVPREV
}
ROOT = {
completely_controls = PREV
}
}
}
}
location = {
kingdom = {
de_jure_liege = PREVPREVPREVPREV
}
}
}
}
}
}
}
}
wealth = -1000
custom_tooltip = {
text = form_new_empire_tooltip
}
chronicle = {
entry = CHRONICLE_FOUNDED_NEW_KINGDOM_OR_EMPIRE
portrait = [Root.GetID]
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
}
}
# Hold Wargames - for nomads
hold_nomad_wargames = {
only_playable = yes
potential = {
is_playable = yes
is_nomadic = yes
nor = {
has_character_modifier = holding_nomad_wargames
has_character_modifier = held_nomad_wargames
religion_group = greenskin_gods_group
religion = asrai_cadai
trait = creature_beastman
} #Nor Beastmen
}
allow = {
custom_tooltip = {
text = IS_NOT_INCAPACITATED
is_incapacitated_trigger = no
}
is_adult = yes
prisoner = no
nor = {
trait = incapable
is_inaccessible_trigger = yes
religion_group = greenskin_gods_group
religion = asrai_cadai
trait = creature_beastman
} #Nor Beastmen
war = no
any_demesne_title = {
NOT = {
higher_tier_than = count
}
is_occupied = no
}
wealth = 20
prestige = 100
custom_tooltip = {
text = is_not_busy_trigger_tooltip
hidden_tooltip = {
NOT = {
has_character_flag = do_not_disturb
}
}
}
}
effect = {
log = "work decision hold_nomad_wargames for [Root.GetBestName]"
wealth = -30
add_character_modifier = {
name = holding_nomad_wargames
duration = -1
}
set_character_flag = recent_minor_decision
set_character_flag = do_not_disturb
hidden_tooltip = {
character_event = {
id = HL.7000
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0.1
modifier = {
factor = 0
NOT = {
wealth = 200
}
}
modifier = {
factor = 2
current_heir = {
dynasty = ROOT