Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. common/on_actions/00_on_actions.txt +2340 -773
common/on_actions/00_on_actions.txt CHANGED
@@ -6,160 +6,29 @@ on_startup = {
6
6
  save_global_event_target_as = Emperor
7
7
  }
8
8
  if = {
9
- limit = {
10
- is_emperor_of_china = yes
11
- }
9
+ limit = { is_emperor_of_china = yes }
12
10
  save_global_event_target_as = EmperorOfChina
13
11
  }
14
12
  events = {
15
13
  muslim_school_events.20 #Pick School
16
- # flavor_fra.15000 #Make the French Revolution happen if starting in 1789
17
- }
18
- if = {
19
- limit = {
20
- has_dlc = "Cradle of Civilization"
21
- has_country_modifier = tur_janissary
22
- }
23
- remove_country_modifier = tur_janissary
24
- }
14
+ flavor_got.1 #Event for Gotland to select their mission tree
15
+ flavor_mng.42 #Event for the starting situation of the Ming
16
+ #flavor_fra.15000 #Make the French Revolution happen if starting in 1789
17
+ flavor_mos.1 #Event regarding the Tatar Yoke
18
+ flavor_fra.206 # Setup the general for missions
19
+ flavor_geo.1 # Disaster info
20
+ flavor_mam.111 # Mamluks-Syria relations
21
+ }
22
+ on_startup_effect = yes
23
+ on_startup_dlc_cleanup_effect = yes
25
24
  initialize_schools_effect = yes #This is only used here but is used for readability of on_action file.
26
-
27
- if = {
28
- limit = {
29
- NOT = { has_country_flag = new_flavour_bav_13_has_been_triggered }
30
- OR = {
31
- tag = UBV
32
- tag = LBV
33
- tag = ING
34
- }
35
- }
36
- set_country_flag = new_flavour_bav_13_has_been_triggered
37
- country_event = { id = new_flavour_bav.13 days = 90 } #better not to allow almost instant DOWs
38
- }
39
- if = {
40
- limit = {
41
- tag = FRA
42
- started_in = 1789.7.14
43
- NOT = { is_year = 1790 }
44
- NOT = { has_disaster = french_revolution }
45
- }
46
- add_disaster_progress = {
47
- value = 100
48
- disaster = french_revolution
49
- }
50
- }
51
25
  }
52
26
 
53
27
  # country
54
28
  on_religion_change = {
29
+ on_religion_change_effect = yes
55
30
  on_religion_change_estate_privileges_effect = yes
56
- ###removes catholic modifiers
57
- remove_country_modifier = counter_reformation
58
- remove_country_modifier = the_statue_in_restraint_of_appeals
59
- remove_country_modifier = revocation_of_restraint_of_appeals
60
- remove_country_modifier = bavarian_jesuits
61
- remove_country_modifier = the_societas_jesu
62
- remove_country_modifier = the_declaration_of_indulgence
63
- remove_country_modifier = de_heretico_comburendo
64
- remove_country_modifier = the_conventicle_act
65
- if = {
66
- limit = {
67
- has_reform = indian_sultanate_reform
68
- NOT = { religion_group = muslim }
69
- }
70
- remove_government_reform = indian_sultanate_reform
71
- }
72
-
73
- if = {
74
- limit = {
75
- has_reform = feudal_theocracy
76
- NOT = { religion_group = muslim }
77
- }
78
- remove_government_reform = feudal_theocracy
79
- }
80
-
81
- if = {
82
- limit = {
83
- government = native
84
- OR = {
85
- religion = nahuatl
86
- religion = mesoamerican_religion
87
- religion = inti
88
- }
89
- }
90
- change_government = monarchy
91
- add_government_reform = autocracy_reform
92
- }
93
-
94
-
95
- if = {
96
- limit = {
97
- has_heir = yes
98
- }
99
- set_heir_religion = ROOT
100
- }
101
- if = {
102
- limit = {
103
- has_regency = no
104
- }
105
- set_ruler_religion = ROOT
106
- }
107
- if = {
108
- limit = {
109
- has_dlc = "Rights of Man"
110
- has_consort = yes
111
- }
112
- set_consort_religion = ROOT
113
- }
114
- if = {
115
- limit = {
116
- NOT = { religion = orthodox }
117
- }
118
- every_known_country = {
119
- limit = {
120
- reverse_has_opinion_modifier = {
121
- who = ROOT
122
- modifier = closed_down_the_patriarchate
123
- }
124
- }
125
- reverse_remove_opinion = {
126
- who = ROOT
127
- modifier = closed_down_the_patriarchate
128
- }
129
- }
130
- }
131
- if = {
132
- limit = {
133
- religion = catholic
134
- has_ruler_flag = personal_catholic_sympathies
135
- }
136
- country_event = { id = protestantism_events.19 }
137
- }
138
- if = {
139
- limit = {
140
- religion = protestant
141
- }
142
- set_country_flag = converted_to_protestantism
143
- }
144
- if = {
145
- limit = { has_country_modifier = bav_religious_mandate_mod }
146
- remove_country_modifier = bav_religious_mandate_mod
147
- }
148
- add_country_modifier = {
149
- name = recently_changed_religion_dummy
150
- duration = 10
151
- hidden = yes
152
- }
153
- if = {
154
- limit = {
155
- NOT = { religion_group = muslim }
156
- any_owned_province = { has_province_modifier = sufi_shrine }
157
- }
158
- every_owned_province = {
159
- limit = { has_province_modifier = sufi_shrine }
160
- remove_province_modifier = sufi_shrine
161
- }
162
- }
31
+ judaism_on_religion_change_effect = yes
163
32
  events = {
164
33
  muslim_school_events.20 #Pick School
165
34
  propagate_religion_events.7 #Propagated Country is now Muslim
@@ -169,6 +38,7 @@ on_religion_change = {
169
38
  # country.
170
39
  on_secondary_religion_change = {
171
40
  # Done from code: add_prestige = -50 (Define: CHANGE_SECONDARY_PRESTIGE_HIT)
41
+ on_secondary_religion_change_estate_privileges_effect = yes
172
42
  every_owned_province = {
173
43
  limit = { has_province_modifier = tengri_monastic_order }
174
44
  remove_province_modifier = tengri_monastic_order
@@ -295,15 +165,11 @@ on_colonial_reintegration = {
295
165
  on_peace_actor = {
296
166
  events = {
297
167
  usa_dlc.36 # Evacuation Day
298
- native_americans.7 # Appoint Peace Chief
299
168
  }
300
169
  }
301
170
 
302
171
  # country
303
172
  on_peace_recipient = {
304
- events = {
305
- native_americans.7 # Appoint Peace Chief
306
- }
307
173
  }
308
174
 
309
175
  # country
@@ -311,6 +177,20 @@ on_peace_recipient = {
311
177
  on_war_won = {
312
178
  FROM = { country_event = { id = flavor_cri.6 } }
313
179
  ROOT = { country_event = { id = tributary_events.32 } }
180
+ if = {
181
+ limit = {
182
+ has_country_flag = can_gain_legendary_pirates_flag
183
+ NOT = { has_ruler_flag = historical_pirate }
184
+ has_government_attribute = is_pirate_republic_reform
185
+ FROM = { total_development = ROOT }
186
+ }
187
+ random = {
188
+ chance = 5
189
+ country_event = {
190
+ id = pirates.25
191
+ }
192
+ }
193
+ }
314
194
 
315
195
  if = {
316
196
  limit = {
@@ -371,6 +251,86 @@ on_war_won = {
371
251
  }
372
252
  }
373
253
  }
254
+
255
+ if = {
256
+ limit = {
257
+ primary_culture = melanesian
258
+ NOT = { has_country_modifier = warlord_mod }
259
+ }
260
+ FROM = {
261
+ country_event = {
262
+ id = polynesian.17
263
+ }
264
+ }
265
+ }
266
+ if = {
267
+ limit = {
268
+ ROOT = {
269
+ tag = SWE
270
+ has_country_modifier = swe_vasa_leads_the_rebellion
271
+ is_subject = no
272
+ }
273
+ FROM = { tag = DAN }
274
+ }
275
+ country_event = {
276
+ id = flavor_swe.111
277
+ }
278
+ }
279
+ if = {
280
+ limit = {
281
+ ROOT = {
282
+ tag = SWE
283
+ has_country_modifier = swe_any_vasa_leads_the_rebellion
284
+ is_subject = no
285
+ }
286
+ FROM = { tag = DAN }
287
+ }
288
+ country_event = {
289
+ id = flavor_swe.105
290
+ }
291
+ }
292
+ if = {
293
+ limit = {
294
+ ROOT = {
295
+ tag = SWE
296
+ has_country_flag = swe_declared_independence_war
297
+ is_subject = no
298
+ }
299
+ FROM = { tag = DAN }
300
+ }
301
+ country_event = {
302
+ id = flavor_swe.121
303
+ }
304
+ }
305
+ }
306
+
307
+ # country
308
+ # root = winning country, from = loser country
309
+ on_main_war_won = {
310
+ on_main_war_won_effect = yes
311
+ events = {
312
+ native_americans.7
313
+ flavor_kor.15
314
+ }
315
+ }
316
+
317
+ # country
318
+ # root = winning country, from = loser country
319
+ on_separate_war_won = {
320
+ if = {
321
+ limit = {
322
+ ROOT = {
323
+ has_mission = swe_devastate_the_christians
324
+ NOT = { mission_completed = swe_devastate_the_christians }
325
+ religion = norse_pagan_reformed
326
+ }
327
+ FROM = { religion_group = christian }
328
+ }
329
+ change_variable = {
330
+ which = swe_won_wars_against_christians
331
+ value = 1
332
+ }
333
+ }
374
334
  }
375
335
 
376
336
  # country
@@ -410,10 +370,21 @@ on_war_lost = {
410
370
  hidden = yes
411
371
  }
412
372
  }
373
+ on_main_war_lost = {
374
+ events = {
375
+ flavor_kor.15
376
+ flavor_tur.300 #Defeat of the Ottomans
377
+ }
378
+ }
379
+ on_separate_war_lost = {
380
+ }
381
+
413
382
 
414
383
  # country
415
384
  # root = winning country, from = loser country
416
385
  on_battle_won_country = {
386
+ on_battle_ended_effect = yes
387
+ on_battle_won_country_effect = yes
417
388
  if = {
418
389
  limit = {
419
390
  ROOT = {
@@ -425,17 +396,67 @@ on_battle_won_country = {
425
396
  }
426
397
  }
427
398
  ROOT = { set_country_flag = albanian_victory }
428
- }
399
+ }
400
+ count_won_battles_and_reward_at_end = {
401
+ counting_flag = teu_crusader_battle_counter
402
+ max_value = 20
403
+ effect = "
404
+ country_event = {
405
+ id = flavor_teu.12
406
+ }
407
+ "
408
+ }
409
+ count_won_battles_and_reward_at_end = {
410
+ counting_flag = has_rus_kill_counter
411
+ max_value = 40
412
+ effect = "set_country_flag = rus_finished_kill_mission"
413
+ }
414
+ if = {
415
+ limit = {
416
+ has_country_modifier = geo_bane_khagan
417
+ FROM = {
418
+ has_reform = steppe_horde
419
+ }
420
+ }
421
+ add_army_tradition = 0.5
422
+ }
423
+ if = {
424
+ limit = {
425
+ ROOT = {
426
+ has_country_modifier = turkoman_triumphant_conquest
427
+ }
428
+ FROM = {
429
+ tag = TIM
430
+ }
431
+ }
432
+ random_list = {
433
+ 20 = { ROOT = { add_manpower = 2 } }
434
+ 80 = { }
435
+ }
436
+ }
429
437
  }
430
438
 
431
439
  # country
432
440
  # root = loser country, from = winner country
433
441
  on_battle_lost_country = {
442
+ on_battle_ended_effect = yes
434
443
  battle_cult_spreading_effect = yes #Scripted effect for fetishist cult mechanics.
435
444
  random_events = {
436
445
  90 = 0
437
446
  10 = friendship_events.1 #Historical Friendship Broken
438
447
  }
448
+ if = {
449
+ limit = {
450
+ OR = {
451
+ is_or_was_tag = { tag = QAR }
452
+ is_or_was_tag = { tag = AKK }
453
+ }
454
+ FROM = {
455
+ tag = TUR
456
+ }
457
+ }
458
+ set_country_flag = turkoman_hasnt_lost_battle_to_ottomans
459
+ }
439
460
  }
440
461
 
441
462
  # province
@@ -471,6 +492,17 @@ on_battle_won_province = {
471
492
  }
472
493
  owner = { country_event = { id = center_of_revolution.1600 } }
473
494
  }
495
+ if = {
496
+ limit = {
497
+ FROM = { tag = REB }
498
+ owner = {
499
+ has_country_flag = estate_eunuchs_in_power
500
+ is_emperor_of_china = yes
501
+ has_dlc = "Mandate of Heaven"
502
+ }
503
+ }
504
+ owner = { add_mandate = -10 }
505
+ }
474
506
  random_events = {
475
507
  1000 = 0
476
508
  100 = war_of_the_roses.6 # WotR - Rebel Leaders Captured
@@ -479,6 +511,7 @@ on_battle_won_province = {
479
511
 
480
512
  #Unit Scope OnAction for Battle Won
481
513
  on_battle_won_unit = {
514
+ on_battle_won_unit_effect = yes
482
515
  if = {
483
516
  limit = {
484
517
  unit_owner = { ai = no } #Scopes to Unit Owner from Unit Scope
@@ -486,10 +519,89 @@ on_battle_won_unit = {
486
519
  }
487
520
  unit_owner = { set_country_flag = general_with_steam_name_won_battle }
488
521
  }
522
+ if = {
523
+ limit = {
524
+ general_with_name = "Damarwulan"
525
+ unit_owner = {
526
+ has_country_flag = maj_damarwulan
527
+ }
528
+ }
529
+ unit_owner = {
530
+ change_variable = {
531
+ which = DamarwulanWinVariable
532
+ value = 1
533
+ }
534
+ }
535
+ }
536
+ if = {
537
+ limit = {
538
+ general_with_name = "Damarwulan"
539
+ unit_owner = {
540
+ check_variable = {
541
+ which = DamarwulanWinVariable
542
+ value = 5
543
+ }
544
+ }
545
+ }
546
+ unit_owner = {
547
+ country_event = { id = majapahit.2 days = 2 }
548
+ }
549
+ }
550
+ if = {
551
+ limit = {
552
+ unit_owner = {
553
+ mission_completed = son_military_expertise
554
+ NOT = { mission_completed = son_win_battles }
555
+ }
556
+ }
557
+ unit_owner = {
558
+ change_variable = {
559
+ which = son_fight_counter
560
+ value = 1
561
+ }
562
+ }
563
+ if = {
564
+ limit = {
565
+ is_ruler_commanding_unit = yes
566
+ }
567
+ unit_owner = {
568
+ change_variable = {
569
+ which = son_fight_counter
570
+ value = 1
571
+ }
572
+ }
573
+ }
574
+ }
575
+ if = {
576
+ limit = {
577
+ unit_owner = {
578
+ has_government_attribute = winning_battles_increases_legitimacy
579
+ }
580
+ is_ruler_commanding_unit = yes
581
+ }
582
+ unit_owner = {
583
+ add_legitimacy = 0.5
584
+ add_devotion = 0.5
585
+ add_republican_tradition = 0.1
586
+ add_revolutionary_zeal_or_absolutism = { amount = 0.1 }
587
+ }
588
+ }
589
+ if = {
590
+ limit = {
591
+ general_with_name = "Jean Bureau"
592
+ }
593
+ unit_owner = {
594
+ change_variable = {
595
+ which = jean_bureau_battles_won
596
+ value = 1
597
+ }
598
+ }
599
+ }
489
600
  }
490
601
 
491
602
  # #Unit Scope OnAction for Battle Lost
492
603
  on_battle_lost_unit = {
604
+ on_battle_lost_unit_effect = yes
493
605
  if = {
494
606
  limit = {
495
607
  unit_owner = {
@@ -512,13 +624,25 @@ on_battle_lost_unit = {
512
624
  # province
513
625
  # root = location, from = country doing it
514
626
  on_added_to_trade_company ={
515
-
627
+ if = {
628
+ limit = {
629
+ owner = { has_country_flag = adding_provinces_to_trade_c_merc_prod_flag }
630
+ }
631
+ owner = { add_mercantilism = 1 }
632
+ add_base_production = 1
633
+ }
516
634
  }
517
635
 
518
636
  # province
519
637
  # root = location, from = country doing it
520
638
  on_removed_from_company ={
521
-
639
+ if = {
640
+ limit = {
641
+ owner = { has_country_flag = adding_provinces_to_trade_c_merc_prod_flag }
642
+ }
643
+ owner = { add_mercantilism = -1 }
644
+ add_base_production = -1
645
+ }
522
646
  }
523
647
 
524
648
  # province
@@ -596,9 +720,61 @@ on_siege_won_country = {
596
720
  }
597
721
  THU = { country_event = { id = flavor_sax.10 } } # Ask Emperor for Saxon Electorate
598
722
  }
723
+ if = {
724
+ limit = {
725
+ ROOT = {
726
+ religion = jewish
727
+ has_church_aspect = judaism_remember_passover_aspect
728
+ }
729
+ FROM = {
730
+ owner = {
731
+ war_with = ROOT
732
+ }
733
+ fort_level = 1
734
+ }
735
+ }
736
+ ROOT = {
737
+ add_church_power = 5
738
+ }
739
+ }
740
+ grant_manpower_from_besieging_fort = yes
741
+ if = {
742
+ limit = {
743
+ has_dlc = "Domination"
744
+ not = { tag = MAM }
745
+ exists = MAM
746
+ FROM = {
747
+ is_capital = yes
748
+ owner = { tag = MAM }
749
+ }
750
+ root = {
751
+ or = {
752
+ tag = TUR
753
+ and = {
754
+ is_subject = yes
755
+ is_subject_of = TUR
756
+ is_subject_other_than_tributary_trigger = yes
757
+ }
758
+ }
759
+ is_in_war = {
760
+ casus_belli = cb_ottoman_invasion
761
+ attacker_leader = TUR
762
+ defender_leader = MAM
763
+ }
764
+ }
765
+ }
766
+ TUR = {
767
+ country_event = { id = flavor_tur.240 } #Collapse of the Mamluks
768
+ }
769
+ }
599
770
  events = {
600
771
  tyw_events.14 # Fall of Prague in Religious War
601
772
  flavor_oir.5 # Oirats capture Beijing
773
+ flavor_lna.1 # Emerald Buddha
774
+ flavor_son.14 # Djenne surrenders to Songhai Trigger
775
+ flavor_teu.25 # Payback for the Hussite Wars
776
+ flavor_kor.16 # Tripitaka Koreana
777
+ flavor_tur.211 # Fall of Vienna
602
778
  }
603
779
  random_events = {
604
780
  10 = army_professionalism_events.1 #City Sacked
@@ -613,6 +789,12 @@ on_siege_lost_country = {
613
789
  curia.8
614
790
  papacy_events.5
615
791
  }
792
+ if = {
793
+ limit = {
794
+ FROM = { has_province_modifier = fin_viipurin_linna_modifier }
795
+ }
796
+ FROM = { remove_province_modifier = fin_viipurin_linna_modifier }
797
+ }
616
798
  }
617
799
 
618
800
  # province
@@ -639,9 +821,35 @@ on_siege_won_province = {
639
821
  }
640
822
  owner = { country_event = { id = center_of_revolution.1600 } }
641
823
  }
642
- }
643
-
644
- # province
824
+ if = {
825
+ limit = {
826
+ superregion = china_superregion
827
+ controller = {
828
+ has_government_attribute = has_unify_china_cb
829
+ OR = {
830
+ is_in_war = {
831
+ attacker_leader = this
832
+ casus_belli = cb_chinese_unification
833
+ }
834
+ is_in_war = {
835
+ defender_leader = this
836
+ casus_belli = cb_chinese_unification
837
+ }
838
+ }
839
+ NOT = { is_core = ROOT }
840
+ }
841
+ }
842
+ controller = {
843
+ add_territorial_core = ROOT
844
+ if = {
845
+ limit = { is_claim = ROOT}
846
+ remove_claim = ROOT
847
+ }
848
+ }
849
+ }
850
+ }
851
+
852
+ # province
645
853
  # root = location, from = winning country
646
854
  on_siege_lost_province = {
647
855
  events = {
@@ -658,43 +866,18 @@ on_siege_lost_province = {
658
866
  on_abandon_colony = {
659
867
  }
660
868
 
869
+ # province
870
+ # root = location, from = country that owns it
871
+ # Fired right after the great project is constructed
872
+ on_great_project_constructed = {
873
+ }
874
+
661
875
  # OBS: Consider that the following on_actions can be called for Personal Union juniors as well.
662
876
  # country
663
877
  on_new_monarch = {
878
+ on_new_monarch_effect = yes
664
879
  crimean_succession_effect = yes #Scripted effect
665
880
  slesvig_question_effect = yes #Scripted effect
666
- if = {
667
- limit = {
668
- has_consort_regency = no
669
- any_owned_province = {
670
- has_province_modifier = domain_of_spouses_family
671
- }
672
- }
673
- random_owned_province = {
674
- limit = { has_province_modifier = domain_of_spouses_family }
675
- remove_province_modifier = domain_of_spouses_family
676
- }
677
- }
678
- if = {
679
- limit = {
680
- has_consort_regency = no
681
- any_owned_province = {
682
- has_province_modifier = home_of_consort
683
- }
684
- }
685
- random_owned_province = {
686
- limit = { has_province_modifier = home_of_consort }
687
- remove_province_modifier = home_of_consort
688
- }
689
- }
690
- if = {
691
- limit = {
692
- NOT = { has_dlc = "Mandate of Heaven" }
693
- has_country_modifier = the_mandate_of_heaven
694
- NOT = { legitimacy = 80 }
695
- }
696
- country_event = { id = china_events.32 } # History of last ruler
697
- }
698
881
  # ambrosian_republic_effect = yes
699
882
  succession_culture_religion_effect = yes
700
883
  sheik_ul_islam_effect = yes
@@ -729,7 +912,12 @@ on_new_monarch = {
729
912
  flavor_tim.1 #Death of Shah Rukh
730
913
  muslim_school_events.20 #No Religious School
731
914
  flavor_daimyo.4 #Shiba Yoshikado
732
- flavor_fra.9000 # Fran莽ois Villon
915
+ flavor_fra.9000 # Fran锟給is Villon
916
+ flavor_sca.2 # Education Focus of the new Ruler
917
+ flavor_rus.128 # Peter the Great
918
+ flavor_rus.131 # Streltsy Payment
919
+ flavor_gbr.102 # Religious Stance of the King
920
+ MEE_Byzantine_Events.42 # Demetrios claims the throne
733
921
  }
734
922
  random_events = {
735
923
  1000 = 0
@@ -760,40 +948,18 @@ on_new_consort = {
760
948
  limit = { has_country_modifier = sought_after_bachelor }
761
949
  remove_country_modifier = sought_after_bachelor
762
950
  }
951
+ random_events = {
952
+ 1000 = 0
953
+ 25 = polynesian.16 #fijian marriage
954
+ }
763
955
  }
764
956
 
765
957
  # country
766
958
  on_monarch_death = {
767
- if = {
768
- limit = {
769
- tag = ANS
770
- BRA = {
771
- has_country_flag = albrecht_achilles_flag
772
- }
773
- }
774
- BRA = {
775
- clr_country_flag = albrecht_achilles_flag #Just to be sure
776
- kill_heir = yes #If Albrecht Achilles dies in Ansbach he will also be dead in Brandenburg, will appear as normal death of heir to BRA.
777
- }
778
- }
779
- if = {
780
- limit = { has_country_modifier = sought_after_bachelor }
781
- remove_country_modifier = sought_after_bachelor
782
- }
783
- if = {
784
- limit = {
785
- tag = SAX
786
- has_country_flag = sax_thuringen_split_to_happen
787
- OR = {
788
- NOT = { dynasty = "von Wettin" }
789
- NOT = { senior_union_with = THU }
790
- has_regency = yes
791
- }
792
- }
793
- clr_country_flag = sax_thuringen_split_to_happen
794
- }
959
+ on_monarch_death_effect = yes
795
960
  burgundian_inheritance_start_effect = yes
796
961
  ladislaus_postumus_king_died_effect = yes
962
+ joan_de_trastamara_king_died_effect = yes
797
963
  events = {
798
964
  flavor_wal.1 # Vlad the Impaler. So that he doesn't try to usurp his father.
799
965
  flavor_nav.4 # Navarra succession event
@@ -802,6 +968,10 @@ on_monarch_death = {
802
968
  flavor_pap.19 # death of borgia pope
803
969
  flavor_tus.22 # Medici Pope
804
970
  flavor_tus.24 # death of the Medici Pope
971
+ majapahit.8 # Majapahit pretenders
972
+ flavor_mal.11 # Mali pretenders
973
+ flavor_mal.47 # Pilgrimage ends prematurely
974
+ government_events.3 # Election of a new Ruler
805
975
  }
806
976
  }
807
977
 
@@ -842,11 +1012,16 @@ on_regent = {
842
1012
  }
843
1013
  }
844
1014
 
1015
+ # country
1016
+ on_extend_regency = {
1017
+ }
1018
+
845
1019
  # country
846
1020
  on_new_term_election = {
847
1021
  events = {
848
1022
  700 # Election event
849
1023
  elections.720 # Dutch Republic
1024
+ elections.800 # Lottery election
850
1025
  pirates.1
851
1026
  }
852
1027
  }
@@ -859,7 +1034,7 @@ on_death_election = {
859
1034
  }
860
1035
  if = {
861
1036
  limit = {
862
- has_reform = pirate_republic_reform
1037
+ has_government_attribute = is_pirate_republic_reform
863
1038
  }
864
1039
  set_country_flag = pirate_death_election
865
1040
  country_event = { id = pirates.1 }
@@ -895,50 +1070,29 @@ on_bankruptcy = {
895
1070
  on_diplomatic_annex = {
896
1071
  events = {
897
1072
  610
1073
+ appanages_event.1
898
1074
  }
899
- }
900
-
901
- # country
902
- on_heir_death = {
903
- if = {
904
- limit = { has_country_flag = heir_dip_education }
905
- clr_country_flag = heir_dip_education
906
- }
907
- if = {
908
- limit = { has_country_flag = heir_mil_education }
909
- clr_country_flag = heir_mil_education
910
- }
911
- if = {
912
- limit = { has_country_flag = heir_adm_education }
913
- clr_country_flag = heir_adm_education
914
- }
915
- if = {
916
- limit = { has_ruler_flag = well_advised_tutored_heir }
917
- clr_ruler_flag = well_advised_tutored_heir
918
- }
919
- if = {
920
- limit = { has_ruler_flag = heir_went_on_grand_tour }
921
- clr_ruler_flag = heir_went_on_grand_tour
922
- }
923
- if = {
924
- limit = { has_country_flag = albrecht_achilles_flag }
925
- clr_country_flag = albrecht_achilles_flag #Death of original Albrecht Achilles
926
- }
927
- if = {
928
- limit = { has_ruler_flag = sancaga_cikma }
929
- clr_ruler_flag = sancaga_cikma
930
- every_owned_province = {
1075
+ FRA = {
1076
+ if = {
931
1077
  limit = {
932
- has_province_modifier = heir_in_training
1078
+ has_estate_privilege = estate_nobles_french_strong_duchies
1079
+ NOT = {
1080
+ any_subject_country = {
1081
+ capital_scope = { region = france_region }
1082
+ culture_group = french
1083
+ }
1084
+ }
933
1085
  }
934
- remove_province_modifier = heir_in_training
1086
+ remove_estate_privilege = estate_nobles_french_strong_duchies
935
1087
  }
936
1088
  }
937
- if = {
938
- limit = { has_ruler_flag = returned_from_sancaga_sikma_province }
939
- clr_ruler_flag = returned_from_sancaga_sikma_province
940
- }
1089
+ }
1090
+
1091
+ # country
1092
+ on_heir_death = {
1093
+ on_heir_disinherited_or_death_effect = yes
941
1094
  ladislaus_postumus_heir_died_effect = yes
1095
+ joan_de_trastamara_heir_died_effect = yes
942
1096
  }
943
1097
 
944
1098
  # country
@@ -1027,6 +1181,24 @@ on_queen_death = {
1027
1181
 
1028
1182
  # country
1029
1183
  on_new_heir = {
1184
+ if = {
1185
+ limit = { has_any_heir_cult_active = yes }
1186
+ remove_heir_cult = yes
1187
+ }
1188
+ if = {
1189
+ limit = {
1190
+ has_country_flag = enabled_cult_for_heirs
1191
+ }
1192
+ country_event = {
1193
+ id = fetishist_flavor.600
1194
+ }
1195
+ }
1196
+ if = {
1197
+ limit = {
1198
+ has_country_flag = had_bmv
1199
+ }
1200
+ clr_country_flag = had_bmv
1201
+ }
1030
1202
  }
1031
1203
 
1032
1204
  # country
@@ -1039,6 +1211,7 @@ on_weak_heir_claim = {
1039
1211
  # country : no heir in theocracy
1040
1212
  on_heir_needed_theocracy = {
1041
1213
  events = {
1214
+ flavor_sca.2
1042
1215
  theocracy.1
1043
1216
  }
1044
1217
  }
@@ -1048,6 +1221,12 @@ on_successive_emperor = {
1048
1221
  emperor = {
1049
1222
  save_global_event_target_as = Emperor
1050
1223
  }
1224
+ if = {
1225
+ limit = {
1226
+ has_government_attribute = has_ruler_election
1227
+ }
1228
+ set_country_flag = has_internal_election_first
1229
+ }
1051
1230
  events = {
1052
1231
  900
1053
1232
  }
@@ -1078,6 +1257,10 @@ on_emperor_elected = {
1078
1257
  emperor = {
1079
1258
  save_global_event_target_as = Emperor
1080
1259
  }
1260
+ if = {
1261
+ limit = { has_country_flag = got_promised_holstein_to_the_empire }
1262
+ clr_country_flag = got_promised_holstein_to_the_empire
1263
+ }
1081
1264
  FROM = {
1082
1265
  if = {
1083
1266
  limit = { has_country_modifier = diet_occupied }
@@ -1200,66 +1383,7 @@ on_hre_religion_white_peace = {
1200
1383
 
1201
1384
  # When a non-native changes government type
1202
1385
  on_government_change = {
1203
- clr_country_flag = pirate_mutineer_council
1204
- clr_country_flag = caretaker_revolutionary_government
1205
- if = {
1206
- limit = {
1207
- NOT = { government = monarchy }
1208
- any_owned_province = {
1209
- has_province_modifier = domain_of_spouses_family
1210
- }
1211
- }
1212
- random_owned_province = {
1213
- limit = { has_province_modifier = domain_of_spouses_family }
1214
- remove_province_modifier = domain_of_spouses_family
1215
- }
1216
- }
1217
- if = {
1218
- limit = {
1219
- NOT = { government = monarchy }
1220
- any_owned_province = {
1221
- has_province_modifier = home_of_consort
1222
- }
1223
- }
1224
- random_owned_province = {
1225
- limit = { has_province_modifier = home_of_consort }
1226
- remove_province_modifier = home_of_consort
1227
- }
1228
- }
1229
- if = {
1230
- limit = {
1231
- OR = {
1232
- tag = ENG
1233
- tag = GBR
1234
- }
1235
- any_owned_province = {
1236
- has_province_modifier = rotten_borough
1237
- }
1238
- }
1239
- every_owned_province = {
1240
- limit = {
1241
- has_province_modifier = rotten_borough
1242
- }
1243
- remove_province_modifier = rotten_borough
1244
- }
1245
- }
1246
- if = {
1247
- limit = { has_country_modifier = the_reign_of_terror }
1248
- remove_country_modifier = the_reign_of_terror
1249
- }
1250
- if = {
1251
- limit = {
1252
- has_global_flag = great_peasants_war_flag
1253
- is_part_of_hre = yes
1254
- has_reform = peasants_republic
1255
- }
1256
- 1 = {
1257
- change_variable = {
1258
- which = GPW_counting_variable
1259
- value = -3
1260
- }
1261
- }
1262
- }
1386
+ on_government_change_effect = yes
1263
1387
  }
1264
1388
 
1265
1389
  # When a native changes government after filling all their advancement groups.
@@ -1296,6 +1420,10 @@ on_annexed = {
1296
1420
  remove_country_modifier = primas_germaniae
1297
1421
  set_global_flag = no_primas_germaniae
1298
1422
  }
1423
+ if = {
1424
+ limit = { tag = FIN }
1425
+ every_country = { limit = { has_country_modifier = rus_grand_duke_of_finland } remove_country_modifier = rus_grand_duke_of_finland }
1426
+ }
1299
1427
  }
1300
1428
  }
1301
1429
 
@@ -1318,6 +1446,17 @@ on_mandate_of_heaven_gained = {
1318
1446
  change_technology_group = chinese
1319
1447
  change_unit_type = chinese
1320
1448
  }
1449
+ if = {
1450
+ limit = {
1451
+ has_dlc = "Domination"
1452
+ NOT = { primary_culture = mongol }
1453
+ NOT = { primary_culture = chahar }
1454
+ NOT = { primary_culture = khalkha }
1455
+ NOT = { primary_culture = oirats }
1456
+ has_domination_eoc_missions_available = yes
1457
+ }
1458
+ swap_non_generic_missions = yes
1459
+ }
1321
1460
  if = {
1322
1461
  limit = {
1323
1462
  OR = {
@@ -1404,12 +1543,19 @@ on_mandate_of_heaven_lost = {
1404
1543
  name = lost_mandate_of_heaven
1405
1544
  duration = 7300 # 20 years
1406
1545
  }
1546
+ if = {
1547
+ limit = { has_dlc = "Mandate of Heaven" }
1548
+ swap_non_generic_missions = yes
1549
+ }
1407
1550
  add_stability = -2
1408
1551
  china_superregion = {
1409
1552
  limit = {
1410
1553
  is_permanent_claim = ROOT
1411
1554
  }
1412
- remove_claim = ROOT
1555
+ if = {
1556
+ limit = { is_claim = ROOT}
1557
+ remove_claim = ROOT
1558
+ }
1413
1559
  }
1414
1560
  if = {
1415
1561
  limit = {
@@ -1417,6 +1563,10 @@ on_mandate_of_heaven_lost = {
1417
1563
  }
1418
1564
  remove_country_modifier = new_mandate_holder
1419
1565
  }
1566
+ if = {
1567
+ limit = { has_country_modifier = jap_era_tranquil_sun_modifier }
1568
+ remove_country_modifier = jap_era_tranquil_sun_modifier
1569
+ }
1420
1570
  }
1421
1571
 
1422
1572
  on_embrace_revolution = {
@@ -1432,7 +1582,7 @@ on_embrace_revolution = {
1432
1582
  }
1433
1583
  if = {
1434
1584
  limit = { NOT = { government = republic } }
1435
- change_government_to_republic = yes
1585
+ change_government = republic
1436
1586
  }
1437
1587
  if = {
1438
1588
  limit = {
@@ -1441,6 +1591,11 @@ on_embrace_revolution = {
1441
1591
  }
1442
1592
  set_revolution_target = ROOT
1443
1593
  add_government_reform = revolutionary_republic_reform
1594
+ if = {
1595
+ limit = { tag = FRA has_dlc = "Domination" }
1596
+ swap_non_generic_missions = yes
1597
+ country_event = { id = ideagroups.1 } #Swap Ideas
1598
+ }
1444
1599
  if = {
1445
1600
  limit = {
1446
1601
  any_country = {
@@ -1465,6 +1620,13 @@ on_embrace_revolution = {
1465
1620
  kill_ruler = yes
1466
1621
  set_country_flag = revolutionary_republic_flag
1467
1622
  set_country_flag = had_revolution
1623
+
1624
+ if = {
1625
+ limit = {
1626
+ tag = FRA
1627
+ }
1628
+ swap_non_generic_missions = yes
1629
+ }
1468
1630
  }
1469
1631
 
1470
1632
  # THIS = Revolutionary country being beaten, FROM = Country enforcing the peace treaty
@@ -1490,14 +1652,174 @@ on_dismantle_revolution = {
1490
1652
 
1491
1653
  # province
1492
1654
  on_adm_development = {
1655
+ on_adm_development_effect = yes
1656
+ on_development_effect = yes
1657
+ if = {
1658
+ limit = { owner = { has_country_flag = enable_supplemental_development_flag } }
1659
+ random_list = {
1660
+ 20 = { add_base_tax = 1 }
1661
+ 80 = { }
1662
+ }
1663
+ }
1664
+ if = {
1665
+ limit = {
1666
+ owner = { has_country_modifier = lit_increased_dev_modifier }
1667
+ }
1668
+ add_base_tax = 1
1669
+ }
1670
+ if = {
1671
+ limit = { has_state_edict = chinese_industrialization }
1672
+ random_list = {
1673
+ 10 = { add_base_tax = 1 }
1674
+ 10 = { add_prosperity = 1 }
1675
+ 10 = { add_province_modifier = { name = qng_center_of_industrialization_modifier duration = 3650 } }
1676
+ 70 = { }
1677
+ }
1678
+ }
1679
+ if = {
1680
+ limit = { owner = { has_country_modifier = JAP_cadastral_surveys has_dlc = "Domination" } }
1681
+ owner = {
1682
+ change_estate_land_share = {
1683
+ estate = all
1684
+ share = -0.2
1685
+ }
1686
+ }
1687
+ }
1688
+
1689
+ if = {
1690
+ limit = { owner = { has_country_modifier = jap_20_years_devving_tax_yields_twice_bonus_1_burgher_loyalt_modifier } }
1691
+ add_base_tax = 1
1692
+ owner = {
1693
+ add_estate_loyalty = {
1694
+ estate = estate_burghers
1695
+ loyalty = 1
1696
+ }
1697
+ }
1698
+ }
1699
+
1700
+ if = {
1701
+ limit = {
1702
+ owner = { has_country_modifier = pru_victory_lower_saxony_modifier }
1703
+ OR = {
1704
+ culture = saxon
1705
+ culture = lower_saxon
1706
+ }
1707
+ }
1708
+ add_nationalism = -3
1709
+ add_local_autonomy = -5
1710
+ add_prosperity = 1
1711
+ }
1712
+ if = {
1713
+ limit = {
1714
+ religion = ROOT
1715
+ owner = {
1716
+ has_country_flag = geo_orthodox_dev
1717
+ }
1718
+ }
1719
+ random_list = {
1720
+ 10 = { add_base_tax = 1 }
1721
+ 90 = { }
1722
+ }
1723
+ }
1724
+ if = {
1725
+ limit = {
1726
+ OR = {
1727
+ trade_goods = cloth
1728
+ trade_goods = silk
1729
+ }
1730
+ owner = { has_country_modifier = turkoman_expanding_industry }
1731
+ }
1732
+ random_list = {
1733
+ 20 = { add_base_tax = 1 }
1734
+ 80 = { }
1735
+ }
1736
+ }
1493
1737
  }
1494
1738
 
1495
1739
  # province
1496
1740
  on_dip_development = {
1741
+ on_dip_development_effect = yes
1742
+ on_development_effect = yes
1743
+ if = {
1744
+ limit = {
1745
+ owner = { has_country_modifier = pru_victory_lower_saxony_modifier }
1746
+ OR = {
1747
+ culture = saxon
1748
+ culture = lower_saxon
1749
+ }
1750
+ }
1751
+ add_nationalism = -3
1752
+ add_local_autonomy = -5
1753
+ add_prosperity = 1
1754
+ }
1755
+ if = {
1756
+ limit = {
1757
+ religion = ROOT
1758
+ owner = {
1759
+ has_country_flag = geo_orthodox_dev
1760
+ }
1761
+ }
1762
+ random_list = {
1763
+ 10 = { add_base_production = 1 }
1764
+ 90 = { }
1765
+ }
1766
+ }
1767
+ if = {
1768
+ limit = {
1769
+ OR = {
1770
+ trade_goods = cloth
1771
+ trade_goods = silk
1772
+ }
1773
+ owner = { has_country_modifier = turkoman_expanding_industry }
1774
+ }
1775
+ random_list = {
1776
+ 20 = { add_base_production = 1 }
1777
+ 80 = { }
1778
+ }
1779
+ }
1497
1780
  }
1498
1781
 
1499
1782
  # province
1500
1783
  on_mil_development = {
1784
+ on_mil_development_effect = yes
1785
+ on_development_effect = yes
1786
+ if = {
1787
+ limit = {
1788
+ owner = { has_country_modifier = pru_victory_lower_saxony_modifier }
1789
+ OR = {
1790
+ culture = saxon
1791
+ culture = lower_saxon
1792
+ }
1793
+ }
1794
+ add_nationalism = -3
1795
+ add_local_autonomy = -5
1796
+ add_prosperity = 1
1797
+ }
1798
+ if = {
1799
+ limit = {
1800
+ religion = ROOT
1801
+ owner = {
1802
+ has_country_flag = geo_orthodox_dev
1803
+ }
1804
+ }
1805
+ random_list = {
1806
+ 10 = { add_base_manpower = 1 }
1807
+ 90 = { }
1808
+ }
1809
+ }
1810
+ if = {
1811
+ limit = {
1812
+ OR = {
1813
+ trade_goods = cloth
1814
+ trade_goods = silk
1815
+ }
1816
+ owner = { has_country_modifier = turkoman_expanding_industry }
1817
+ }
1818
+ random_list = {
1819
+ 20 = { add_base_manpower = 1 }
1820
+ 80 = { }
1821
+ }
1822
+ }
1501
1823
  }
1502
1824
 
1503
1825
  on_overextension_pulse = {
@@ -1513,6 +1835,13 @@ on_overextension_pulse = {
1513
1835
  100 = overextension.9
1514
1836
  100 = overextension.10
1515
1837
  }
1838
+ #Decadence specific
1839
+ random = {
1840
+ chance = 10
1841
+ country_event = {
1842
+ id = flavor_tur.301
1843
+ }
1844
+ }
1516
1845
  }
1517
1846
 
1518
1847
 
@@ -1545,116 +1874,28 @@ on_siberian_pulse = {
1545
1874
 
1546
1875
 
1547
1876
  # country random events
1877
+ on_monthly_pulse = {
1878
+ }
1879
+ on_yearly_pulse = {
1880
+ events = {
1881
+ flavor_mos.3 #Yearly Tatar Yoke Tribute
1882
+ }
1883
+ }
1884
+ on_yearly_pulse_2 = {
1885
+ }
1886
+ on_yearly_pulse_3 = {
1887
+ }
1888
+ on_yearly_pulse_4 = {
1889
+ }
1890
+ on_yearly_pulse_5 = {
1891
+ }
1892
+
1548
1893
  on_bi_yearly_pulse = {
1549
1894
  events = {
1550
1895
  center_of_revolution.2950
1551
1896
  center_of_revolution.3000
1552
1897
  }
1553
1898
  random_events = {
1554
- # randomevents.txt
1555
- 100 = 3051
1556
- 100 = 5008
1557
- 100 = 5014
1558
- 100 = 5015
1559
- 100 = 5017
1560
- 100 = 5018
1561
- 100 = 5019
1562
- 100 = 5020
1563
- 100 = 5021
1564
- 100 = 5022
1565
- 100 = 5023
1566
- 100 = 5024
1567
- 100 = 5025
1568
- 100 = 5027
1569
- 100 = 5032
1570
- 100 = 5040
1571
- 100 = 5045
1572
- 100 = 5050
1573
- 100 = 5051
1574
- 100 = 5052
1575
- 100 = 5053
1576
- 10 = 5054
1577
- 100 = 5055
1578
- 100 = 5056
1579
- 100 = 5058
1580
- 100 = 5059
1581
- 100 = 5060
1582
- 100 = 5061
1583
- 100 = 5064
1584
- 100 = 5065
1585
- 100 = 5066
1586
- 100 = 5068
1587
- 100 = 5070
1588
- 100 = 5071
1589
- 100 = 5072
1590
- 100 = 5074
1591
- 100 = 5075
1592
- 100 = 5076
1593
- 100 = 5077
1594
- 100 = 5082
1595
- 100 = 5083
1596
- 100 = 5084
1597
- 100 = 5085
1598
- 100 = 5086
1599
- 100 = 5088
1600
- 100 = 5089
1601
- 100 = 5090
1602
- 100 = 5091
1603
- 100 = 5092
1604
- 100 = 5093
1605
- 100 = 5094
1606
- 100 = 5095
1607
- 10 = 5096
1608
- 100 = 5097
1609
- 100 = 5098
1610
- 100 = 5099
1611
- 100 = 6000
1612
- 100 = 6001
1613
- 100 = 6003
1614
- 100 = 6004
1615
- 100 = 6005
1616
- 100 = 6006
1617
- 100 = 6012
1618
- 100 = 6013
1619
- 100 = 6015
1620
- 100 = 710
1621
- 100 = 711
1622
- 100 = 712
1623
- 100 = 713
1624
- 100 = 714
1625
- 100 = 715
1626
- 100 = 716
1627
- 100 = 717
1628
- 100 = 718
1629
- 100 = 719
1630
- 100 = 720
1631
- 100 = 722
1632
- 100 = 723
1633
- 100 = 724
1634
- 100 = 725
1635
- 100 = 726
1636
- 100 = 727
1637
- 100 = 728
1638
- 100 = 729
1639
-
1640
- 100 = random_event.1
1641
- 300 = random_event.2
1642
- 100 = random_event.3
1643
- 100 = random_event.4
1644
- 100 = random_event.5
1645
- 100 = random_event.6
1646
- 100 = random_event.7
1647
- 100 = random_event.8
1648
- 150 = random_event.9
1649
- 100 = random_event.10
1650
- 100 = random_event.11
1651
- 100 = random_event.12
1652
- 100 = random_event.13
1653
- 100 = random_event.14
1654
- 100 = random_event.15
1655
- 100 = random_event.16
1656
-
1657
- 100 = random_event.26
1658
1899
 
1659
1900
  #Culture and Religion Events
1660
1901
  125 = culture_religion_events.1
@@ -1680,67 +1921,6 @@ on_bi_yearly_pulse = {
1680
1921
  125 = culture_religion_events.22
1681
1922
  125 = culture_religion_events.23
1682
1923
 
1683
- #Mamluk Events
1684
-
1685
- 175 = mamluk_events.1
1686
- 175 = mamluk_events.2
1687
- 175 = mamluk_events.3
1688
- 235 = mamluk_events.4
1689
- 185 = mamluk_events.5
1690
- 175 = mamluk_events.6
1691
- 250 = mamluk_events.7
1692
- 185 = mamluk_events.10
1693
- 185 = mamluk_events.11
1694
- 235 = mamluk_events.12
1695
-
1696
- #Colonization of Siberia
1697
- 125 = siberian_events.2
1698
- 125 = siberian_events.3
1699
- 125 = siberian_events.4
1700
- 125 = siberian_events.5
1701
- 125 = siberian_events.6
1702
-
1703
- #Russian Principalities
1704
-
1705
- 100 = russian_principality_events.1
1706
- 125 = russian_principality_events.2
1707
- 125 = russian_principality_events.3
1708
- 125 = russian_principality_events.4
1709
- 125 = russian_principality_events.6
1710
- 125 = russian_principality_events.5
1711
- 125 = russian_principality_events.7
1712
- 100 = russian_principality_events.8
1713
- 75 = russian_principality_events.9
1714
- 125 = russian_principality_events.10
1715
-
1716
- #Tsardoms
1717
-
1718
- 125 = russian_tsardom_events.1
1719
- 125 = russian_tsardom_events.2
1720
- 125 = russian_tsardom_events.3
1721
- 100 = russian_tsardom_events.4
1722
- 125 = russian_tsardom_events.5
1723
- 100 = russian_tsardom_events.6
1724
- 100 = russian_tsardom_events.7
1725
- 100 = russian_tsardom_events.8
1726
- 125 = russian_tsardom_events.9
1727
- 125 = russian_tsardom_events.10
1728
- 100 = russian_tsardom_events.11
1729
-
1730
- #Streltsy Events
1731
- 125 = streltsy_events.1
1732
- 125 = streltsy_events.3
1733
- 125 = streltsy_events.4
1734
- 125 = streltsy_events.5
1735
- 100 = streltsy_events.6
1736
-
1737
- #Orthodox Metropolitans
1738
- 125 = patriarch_events.1
1739
- 125 = patriarch_events.2
1740
- 125 = patriarch_events.3
1741
- 75 = patriarch_events.4
1742
- 75 = patriarch_events.5
1743
-
1744
1924
  # Old Centralisation/Decentralisation
1745
1925
  100 = 806
1746
1926
 
@@ -1764,14 +1944,6 @@ on_bi_yearly_pulse = {
1764
1944
  100 = trade.11
1765
1945
  100 = trade.12
1766
1946
 
1767
- # Catholic Events
1768
- 100 = catholic_flavor.4
1769
- 100 = catholic_flavor.5
1770
- 100 = catholic_flavor.6
1771
- 100 = catholic_flavor.7
1772
- 100 = catholic_flavor.8
1773
- 100 = catholic_flavor.9
1774
- 100 = catholic_flavor.10
1775
1947
 
1776
1948
  # Tradegoods events
1777
1949
  100 = 6418
@@ -1829,19 +2001,6 @@ on_bi_yearly_pulse = {
1829
2001
  100 = corruption_event.19
1830
2002
  100 = corruption_event.20
1831
2003
 
1832
- # Trade League Events
1833
- 100 = trade_league.1
1834
- 100 = trade_league.2
1835
- 100 = trade_league.3
1836
- 100 = trade_league.4
1837
- 100 = trade_league.7
1838
- 100 = trade_league.8
1839
- 100 = trade_league.9
1840
- 100 = trade_league.10
1841
- 100 = trade_league.11
1842
- 100 = trade_league.12
1843
- 100 = trade_league.13
1844
- 100 = trade_league.14
1845
2004
 
1846
2005
  # Institution Events
1847
2006
  #Feudalism Spread Events:
@@ -1910,6 +2069,20 @@ on_bi_yearly_pulse = {
1910
2069
  50 = personality_events.57
1911
2070
  50 = personality_events.58
1912
2071
 
2072
+ # Trade League Events
2073
+ 100 = trade_league.1
2074
+ 100 = trade_league.2
2075
+ 100 = trade_league.3
2076
+ 100 = trade_league.4
2077
+ 100 = trade_league.7
2078
+ 100 = trade_league.8
2079
+ 100 = trade_league.9
2080
+ 100 = trade_league.10
2081
+ 100 = trade_league.11
2082
+ 100 = trade_league.12
2083
+ 100 = trade_league.13
2084
+ 100 = trade_league.14
2085
+
1913
2086
  #Industrial Revolution
1914
2087
 
1915
2088
  200 = industrialization_events.7
@@ -1974,9 +2147,14 @@ on_bi_yearly_pulse_3 = {
1974
2147
 
1975
2148
  events = {
1976
2149
  muslim_school_events.20 #Pick School
2150
+ promoting_art_events.2 #Art finished!
1977
2151
  }
1978
2152
  random_events = {
1979
- 100 = new_court_flavour_events.21 #religious resignation
2153
+ 100 = promoting_art_events.3
2154
+ 100 = promoting_art_events.4
2155
+ 100 = promoting_art_events.5
2156
+ 100 = promoting_art_events.6
2157
+ 50 = promoting_art_events.7
1980
2158
  100 = new_court_flavour_events.25 #blood is thicker than water
1981
2159
  200 = 0
1982
2160
  }
@@ -2046,30 +2224,6 @@ on_bi_yearly_pulse_4 = {
2046
2224
  100 = 5063
2047
2225
  100 = 6014
2048
2226
 
2049
- # Anglican Events
2050
- 100 = anglican_events.1
2051
- 100 = anglican_events.2
2052
- 100 = anglican_events.3
2053
- 100 = anglican_events.4
2054
- 100 = anglican_events.5
2055
- 100 = anglican_events.6
2056
- 100 = anglican_events.7
2057
- 100 = anglican_events.8
2058
- 100 = anglican_events.9
2059
- 100 = anglican_events.10
2060
- 100 = anglican_events.11
2061
- 100 = anglican_events.12
2062
- 100 = anglican_events.13
2063
- 150 = anglican_events.15
2064
-
2065
- # Hussite Events
2066
- 100 = hussite.1
2067
- 100 = hussite.2
2068
- 100 = hussite.3
2069
- 100 = hussite.4
2070
- 100 = hussite.5
2071
- 100 = hussite.6
2072
- 100 = hussite.7
2073
2227
 
2074
2228
  # Innovativeness
2075
2229
  100 = innovativeness_events.1
@@ -2138,14 +2292,13 @@ on_bi_yearly_pulse_4 = {
2138
2292
  100 = mercs.2
2139
2293
  100 = mercs.3
2140
2294
  100 = mercs.4
2141
- 100 = mercs.7
2142
- 100 = mercs.7
2295
+ #100 = mercs.7
2143
2296
  100 = mercs.8
2144
2297
  100 = mercs.10
2145
2298
  100 = mercs.11
2146
2299
 
2147
2300
  # Espionage
2148
- 100 = espionage_events.1
2301
+ #100 = espionage_events.1
2149
2302
  100 = espionage_events.4
2150
2303
  100 = espionage_events.8
2151
2304
  80 = espionage_events.9
@@ -2171,48 +2324,182 @@ on_bi_yearly_pulse_4 = {
2171
2324
 
2172
2325
  # Agenda from the Estates
2173
2326
  1000 = estate_privileges_and_agendas_events.4
2327
+ 1000 = estate_privileges_and_agendas_events.5
2174
2328
 
2175
2329
  2000 = 0
2176
2330
  }
2177
2331
  }
2178
2332
 
2179
- # country random events
2180
- on_thri_yearly_pulse = {
2181
- random_events = {
2182
- # Republics
2183
- 100 = republics.4
2184
- 100 = republics.5
2185
- 100 = republics.6
2186
- 100 = republics.7
2187
- 100 = republics.8
2188
- 100 = republics.9
2189
- 100 = republics.10
2190
- 100 = republics.11
2191
- 100 = republics.12
2192
- 100 = republics.13
2193
- 100 = republics.14
2194
- 100 = republics.15
2195
- 100 = republics.16
2196
- 100 = republics.17
2197
- 100 = republics.18
2198
- 100 = republics.19
2199
- 100 = republics.20
2200
- 100 = republics.21
2201
- 100 = republics.22
2202
- 100 = republics.23
2203
- 100 = republics.24
2204
- 100 = republics.25
2205
- 100 = republics.26
2206
- 100 = republics.27
2207
- 100 = republics.28
2208
- 100 = republics.29
2209
- 100 = republics.30
2210
- 100 = republics.31
2211
- 100 = republics.32
2212
- 100 = republics.33
2213
- 100 = republics.34
2214
- 100 = republics.35
2215
- 100 = republics.36
2333
+ on_bi_yearly_pulse_5 = {
2334
+ random_events = { #all these were shifted from on_bi_yearly_pulse_1
2335
+ # Anglican Events
2336
+ 100 = anglican_events.1
2337
+ 100 = anglican_events.2
2338
+ 100 = anglican_events.3
2339
+ 100 = anglican_events.4
2340
+ 100 = anglican_events.5
2341
+ 100 = anglican_events.6
2342
+ 100 = anglican_events.7
2343
+ 100 = anglican_events.8
2344
+ 100 = anglican_events.9
2345
+ 100 = anglican_events.10
2346
+ 100 = anglican_events.11
2347
+ 100 = anglican_events.12
2348
+ 100 = anglican_events.13
2349
+ 150 = anglican_events.15
2350
+
2351
+ # Hussite Events
2352
+ 100 = hussite.1
2353
+ 100 = hussite.2
2354
+ 100 = hussite.3
2355
+ 100 = hussite.4
2356
+ 100 = hussite.5
2357
+ 100 = hussite.6
2358
+ 100 = hussite.7
2359
+
2360
+
2361
+ #Mamluk Events
2362
+
2363
+ 175 = mamluk_events.1
2364
+ 175 = mamluk_events.2
2365
+ 175 = mamluk_events.3
2366
+ 235 = mamluk_events.4
2367
+ 185 = mamluk_events.5
2368
+ 175 = mamluk_events.6
2369
+ 250 = mamluk_events.7
2370
+ 185 = mamluk_events.10
2371
+ 185 = mamluk_events.11
2372
+ 235 = mamluk_events.12
2373
+
2374
+ #Colonization of Siberia
2375
+ 125 = siberian_events.2
2376
+ 125 = siberian_events.3
2377
+ 125 = siberian_events.4
2378
+ 125 = siberian_events.5
2379
+ 125 = siberian_events.6
2380
+
2381
+ #Russian Principalities
2382
+
2383
+ 100 = russian_principality_events.1
2384
+ 125 = russian_principality_events.2
2385
+ 125 = russian_principality_events.3
2386
+ 125 = russian_principality_events.4
2387
+ 125 = russian_principality_events.6
2388
+ 125 = russian_principality_events.5
2389
+ 125 = russian_principality_events.7
2390
+ 100 = russian_principality_events.8
2391
+ 75 = russian_principality_events.9
2392
+ 125 = russian_principality_events.10
2393
+
2394
+ #Tsardoms
2395
+
2396
+ 125 = russian_tsardom_events.1
2397
+ 125 = russian_tsardom_events.2
2398
+ 125 = russian_tsardom_events.3
2399
+ 100 = russian_tsardom_events.4
2400
+ 125 = russian_tsardom_events.5
2401
+ 100 = russian_tsardom_events.6
2402
+ 100 = russian_tsardom_events.7
2403
+ 100 = russian_tsardom_events.8
2404
+ 125 = russian_tsardom_events.9
2405
+ 125 = russian_tsardom_events.10
2406
+ 100 = russian_tsardom_events.11
2407
+
2408
+ #Streltsy Events
2409
+ 125 = streltsy_events.1
2410
+ 125 = streltsy_events.3
2411
+ 125 = streltsy_events.4
2412
+ 125 = streltsy_events.5
2413
+ 100 = streltsy_events.6
2414
+
2415
+ #Orthodox Metropolitans
2416
+ 125 = patriarch_events.1
2417
+ 125 = patriarch_events.2
2418
+ 125 = patriarch_events.3
2419
+ 75 = patriarch_events.4
2420
+ 75 = patriarch_events.5
2421
+
2422
+ # Catholic Events
2423
+ 100 = catholic_flavor.4
2424
+ 100 = catholic_flavor.5
2425
+ 100 = catholic_flavor.6
2426
+ 100 = catholic_flavor.7
2427
+ 100 = catholic_flavor.8
2428
+ 100 = catholic_flavor.9
2429
+ 100 = catholic_flavor.10
2430
+
2431
+ # Japanese Daimyos
2432
+ 15 = flavor_jap.10
2433
+ 50 = flavor_jap.28
2434
+ 100 = flavor_jap.40
2435
+ 100 = flavor_jap.42
2436
+ 100 = flavor_jap.43
2437
+ 100 = flavor_jap.45
2438
+ 100 = flavor_jap.49
2439
+ 100 = flavor_jap.51
2440
+ 100 = flavor_jap.52
2441
+ 100 = flavor_jap.53
2442
+ 100 = flavor_jap.54
2443
+ 100 = flavor_jap.55
2444
+
2445
+
2446
+
2447
+ # China
2448
+ 75 = meritocracy_events.1
2449
+ 75 = meritocracy_events.2
2450
+ 75 = meritocracy_events.3
2451
+ 75 = meritocracy_events.4
2452
+ 75 = meritocracy_events.5
2453
+ 50 = china_events.11
2454
+ 25 = china_events.12
2455
+ 25 = china_events.24
2456
+
2457
+ 2000 = 0
2458
+ }
2459
+ }
2460
+
2461
+
2462
+
2463
+ # country random events
2464
+ on_thri_yearly_pulse = {
2465
+ #events = {
2466
+ # flavor_dan.100
2467
+ #}
2468
+ random_events = {
2469
+ # Republics
2470
+ 100 = republics.4
2471
+ 100 = republics.5
2472
+ 100 = republics.6
2473
+ 100 = republics.7
2474
+ 100 = republics.8
2475
+ 100 = republics.9
2476
+ 100 = republics.10
2477
+ 100 = republics.11
2478
+ 100 = republics.12
2479
+ 100 = republics.13
2480
+ 100 = republics.14
2481
+ 100 = republics.15
2482
+ 100 = republics.16
2483
+ 100 = republics.17
2484
+ 100 = republics.18
2485
+ 100 = republics.19
2486
+ 100 = republics.20
2487
+ 100 = republics.21
2488
+ 100 = republics.22
2489
+ 100 = republics.23
2490
+ 100 = republics.24
2491
+ 100 = republics.25
2492
+ 100 = republics.26
2493
+ 100 = republics.27
2494
+ 100 = republics.28
2495
+ 100 = republics.29
2496
+ 100 = republics.30
2497
+ 100 = republics.31
2498
+ 100 = republics.32
2499
+ 100 = republics.33
2500
+ 100 = republics.34
2501
+ 100 = republics.35
2502
+ 100 = republics.36
2216
2503
  100 = republics.37
2217
2504
  100 = republics.38
2218
2505
  100 = republics.39
@@ -2273,32 +2560,8 @@ on_thri_yearly_pulse = {
2273
2560
  100 = devotion_events.218
2274
2561
  100 = devotion_events.219
2275
2562
 
2276
- # Japanese Daimyos
2277
- 15 = flavor_jap.10
2278
- 50 = flavor_jap.28
2279
- 100 = flavor_jap.40
2280
- 100 = flavor_jap.42
2281
- 100 = flavor_jap.43
2282
- 100 = flavor_jap.45
2283
- 100 = flavor_jap.49
2284
- 100 = flavor_jap.51
2285
- 100 = flavor_jap.52
2286
- 100 = flavor_jap.53
2287
- 100 = flavor_jap.54
2288
- 100 = flavor_jap.55
2289
-
2290
2563
 
2291
2564
 
2292
- # China
2293
- 75 = meritocracy_events.1
2294
- 75 = meritocracy_events.2
2295
- 75 = meritocracy_events.3
2296
- 75 = meritocracy_events.4
2297
- 75 = meritocracy_events.5
2298
- 50 = china_events.11
2299
- 25 = china_events.12
2300
- 25 = china_events.24
2301
-
2302
2565
  #Center of Revolution - post-spawn (higher weighting than others as they are only relevant briefly)
2303
2566
  200 = center_of_revolution.1
2304
2567
  150 = center_of_revolution.2
@@ -2455,6 +2718,14 @@ on_four_year_pulse = {
2455
2718
  100 = colonial_nation.130
2456
2719
  100 = colonial_nation.132
2457
2720
  100 = colonial_nation.134
2721
+ 100 = colonial_nation.182
2722
+ 100 = colonial_nation.183
2723
+ 100 = colonial_nation.184
2724
+ 100 = colonial_nation.185
2725
+ 100 = colonial_nation.186
2726
+ 100 = colonial_nation.187
2727
+ 100 = colonial_nation.188
2728
+ 100 = colonial_nation.189
2458
2729
  10 = colonial_nation.140
2459
2730
  10 = colonial_nation.142
2460
2731
  10 = colonial_nation.144
@@ -2638,77 +2909,223 @@ on_four_year_pulse = {
2638
2909
  100 = china_events.44
2639
2910
 
2640
2911
  10 = tortoise.1 # Galapagos Island Tortoises
2912
+
2913
+ 100 = flavor_pue.5
2914
+
2915
+ #Totemism Events
2916
+ 100 = totemism_flavor.1
2917
+ 100 = totemism_flavor.7
2918
+ 100 = totemism_flavor.8
2919
+ 100 = totemism_flavor.10
2920
+ 100 = totemism_flavor.11
2921
+ 100 = totemism_flavor.13
2922
+ 100 = totemism_flavor.14
2923
+ 100 = totemism_flavor.15
2924
+ 100 = totemism_flavor.16
2925
+ 100 = totemism_flavor.17
2926
+ 100 = totemism_flavor.18
2927
+
2928
+ #Volcano Events
2929
+ 75 = volcano_events.2
2641
2930
 
2642
2931
  1000 = 0
2643
2932
  }
2644
2933
  }
2645
2934
 
2646
2935
  on_four_year_pulse_2 = {
2936
+ random_events = {
2937
+ # English Reformation events
2938
+ 200 = flavor_gbr.103
2939
+ 200 = flavor_gbr.104
2940
+ 200 = flavor_gbr.105
2941
+ 200 = flavor_gbr.106
2942
+ 200 = flavor_gbr.107
2943
+ 200 = flavor_gbr.108
2944
+ 200 = flavor_gbr.109
2945
+ 200 = flavor_gbr.110
2946
+ 200 = flavor_gbr.111
2947
+ 200 = 0
2948
+ }
2647
2949
  }
2648
2950
 
2649
2951
  on_four_year_pulse_3 = {
2952
+ random_events = {
2953
+ 100 = decadence.1
2954
+ 100 = decadence.2
2955
+ 100 = decadence.3
2956
+ 100 = decadence.4
2957
+ 100 = decadence.5
2958
+ 100 = decadence.6
2959
+ 100 = decadence.7
2960
+ 100 = decadence.8
2961
+ 100 = decadence.9
2962
+ 100 = decadence.10
2963
+ 200 = 0
2964
+ }
2650
2965
  }
2651
2966
 
2652
2967
  on_four_year_pulse_4 = {
2653
- }
2654
-
2655
- on_five_year_pulse = {
2656
2968
  random_events = {
2657
-
2658
- # Innovativeness Events
2659
-
2660
- 100 = innovativeness_events.1
2661
-
2662
- # Aristocracy 13 (8g 5b)
2663
- 100 = ideagroups.100
2664
- 100 = ideagroups.101
2665
- 100 = ideagroups.102
2666
- 100 = ideagroups.103
2667
- 100 = ideagroups.104
2668
- 100 = ideagroups.105
2669
- 100 = ideagroups.106
2670
- 100 = ideagroups.107
2671
- 100 = ideagroups.108
2672
- 100 = ideagroups.109
2673
- 100 = ideagroups.110
2674
- 100 = ideagroups.111
2675
- 100 = ideagroups.112
2676
-
2677
-
2678
- # Plutocracy 19 (12g 7b)
2679
- 100 = ideagroups.200
2680
- 100 = ideagroups.201
2681
- 100 = ideagroups.202
2682
- 100 = ideagroups.203
2683
- 100 = ideagroups.204
2684
- 100 = ideagroups.205
2685
- 100 = ideagroups.206
2686
- 100 = ideagroups.207
2687
- 100 = ideagroups.208
2688
- 100 = ideagroups.209
2689
- 100 = ideagroups.210
2690
- 100 = ideagroups.211
2691
- 100 = ideagroups.212
2692
- 100 = ideagroups.213
2693
- 100 = ideagroups.214
2694
- 100 = ideagroups.215
2695
- 100 = ideagroups.216
2696
- 100 = ideagroups.217
2697
- 100 = ideagroups.218
2698
-
2699
- # Innovativenes 11 (7g 4b)
2700
- 100 = ideagroups.300
2701
- 100 = ideagroups.301
2702
- 100 = ideagroups.302
2703
- 100 = ideagroups.303
2704
- 100 = ideagroups.304
2705
- 100 = ideagroups.305
2706
- 100 = ideagroups.306
2707
- 100 = ideagroups.307
2708
- 100 = ideagroups.308
2709
- 100 = ideagroups.309
2710
- 100 = ideagroups.310
2711
-
2969
+ # randomevents.txt
2970
+ 100 = 3051
2971
+ 100 = 5008
2972
+ 100 = 5014
2973
+ 100 = 5015
2974
+ 100 = 5017
2975
+ 100 = 5018
2976
+ 100 = 5019
2977
+ 100 = 5020
2978
+ 100 = 5021
2979
+ 100 = 5022
2980
+ 100 = 5023
2981
+ 100 = 5024
2982
+ 100 = 5025
2983
+ 100 = 5027
2984
+ 100 = 5032
2985
+ 100 = 5040
2986
+ 100 = 5045
2987
+ 100 = 5050
2988
+ 100 = 5051
2989
+ 100 = 5052
2990
+ 100 = 5053
2991
+ 10 = 5054
2992
+ 100 = 5055
2993
+ 100 = 5056
2994
+ 100 = 5058
2995
+ 100 = 5059
2996
+ 100 = 5060
2997
+ 100 = 5061
2998
+ 100 = 5064
2999
+ 100 = 5065
3000
+ 100 = 5066
3001
+ 100 = 5068
3002
+ 100 = 5070
3003
+ 100 = 5071
3004
+ 100 = 5072
3005
+ 100 = 5074
3006
+ 100 = 5075
3007
+ 100 = 5076
3008
+ 100 = 5077
3009
+ 100 = 5082
3010
+ 100 = 5083
3011
+ 100 = 5084
3012
+ 100 = 5085
3013
+ 100 = 5086
3014
+ 100 = 5088
3015
+ 100 = 5089
3016
+ 100 = 5090
3017
+ 100 = 5091
3018
+ 100 = 5092
3019
+ 100 = 5093
3020
+ 100 = 5094
3021
+ 100 = 5095
3022
+ 10 = 5096
3023
+ 100 = 5097
3024
+ 100 = 5098
3025
+ 100 = 5099
3026
+ 100 = 6000
3027
+ 100 = 6001
3028
+ 100 = 6003
3029
+ 100 = 6004
3030
+ 100 = 6005
3031
+ 100 = 6006
3032
+ 100 = 6012
3033
+ 100 = 6013
3034
+ 100 = 6015
3035
+ 100 = 710
3036
+ 100 = 711
3037
+ 100 = 712
3038
+ 100 = 713
3039
+ 100 = 714
3040
+ 100 = 715
3041
+ 100 = 716
3042
+ 100 = 717
3043
+ 100 = 718
3044
+ 100 = 719
3045
+ 100 = 720
3046
+ 100 = 722
3047
+ 100 = 723
3048
+ 100 = 724
3049
+ 100 = 725
3050
+ 100 = 726
3051
+ 100 = 727
3052
+ 100 = 728
3053
+ 100 = 729
3054
+ #100 = random_event.1
3055
+ 300 = random_event.2
3056
+ 100 = random_event.3
3057
+ 100 = random_event.4
3058
+ 100 = random_event.5
3059
+ 100 = random_event.6
3060
+ 100 = random_event.7
3061
+ 100 = random_event.8
3062
+ 150 = random_event.9
3063
+ 100 = random_event.10
3064
+ 100 = random_event.11
3065
+ 100 = random_event.12
3066
+ 100 = random_event.13
3067
+ 100 = random_event.14
3068
+ 100 = random_event.15
3069
+ 100 = random_event.16
3070
+
3071
+ 100 = random_event.26
3072
+ 1 = random_event.27
3073
+ }
3074
+ }
3075
+
3076
+ on_five_year_pulse = {
3077
+ random_events = {
3078
+
3079
+ # Aristocracy 13 (8g 5b)
3080
+ 100 = ideagroups.100
3081
+ 100 = ideagroups.101
3082
+ 100 = ideagroups.102
3083
+ 100 = ideagroups.103
3084
+ 100 = ideagroups.104
3085
+ 100 = ideagroups.105
3086
+ 100 = ideagroups.106
3087
+ 100 = ideagroups.107
3088
+ 100 = ideagroups.108
3089
+ 100 = ideagroups.109
3090
+ 100 = ideagroups.110
3091
+ 100 = ideagroups.111
3092
+ 100 = ideagroups.112
3093
+
3094
+
3095
+ # Plutocracy 19 (12g 7b)
3096
+ 100 = ideagroups.200
3097
+ 100 = ideagroups.201
3098
+ 100 = ideagroups.202
3099
+ 100 = ideagroups.203
3100
+ 100 = ideagroups.204
3101
+ 100 = ideagroups.205
3102
+ 100 = ideagroups.206
3103
+ 100 = ideagroups.207
3104
+ 100 = ideagroups.208
3105
+ 100 = ideagroups.209
3106
+ 100 = ideagroups.210
3107
+ 100 = ideagroups.211
3108
+ 100 = ideagroups.212
3109
+ 100 = ideagroups.213
3110
+ 100 = ideagroups.214
3111
+ 100 = ideagroups.215
3112
+ 100 = ideagroups.216
3113
+ 100 = ideagroups.217
3114
+ 100 = ideagroups.218
3115
+
3116
+ # Innovativenes 11 (7g 4b)
3117
+ 100 = ideagroups.300
3118
+ 100 = ideagroups.301
3119
+ 100 = ideagroups.302
3120
+ 100 = ideagroups.303
3121
+ 100 = ideagroups.304
3122
+ 100 = ideagroups.305
3123
+ 100 = ideagroups.306
3124
+ 100 = ideagroups.307
3125
+ 100 = ideagroups.308
3126
+ 100 = ideagroups.309
3127
+ 100 = ideagroups.310
3128
+
2712
3129
  # Religious 18 (11g 7b)
2713
3130
  100 = ideagroups.400
2714
3131
  100 = ideagroups.401
@@ -2893,18 +3310,15 @@ on_five_year_pulse = {
2893
3310
  100 = ideagroups.1509
2894
3311
  100 = ideagroups.1510
2895
3312
 
2896
- # Administrative 3 (1g 2b)
3313
+ # Administrative 8 (5g 3b)
2897
3314
  100 = ideagroups.1600
2898
3315
  100 = ideagroups.1601
2899
3316
  100 = ideagroups.1602
2900
- 100 = ideagroups.1603
2901
- 100 = ideagroups.1604
2902
3317
  100 = ideagroups.1605
2903
3318
  100 = ideagroups.1606
2904
3319
  100 = ideagroups.1607
2905
3320
  100 = ideagroups.1608
2906
3321
  100 = ideagroups.1609
2907
- 100 = ideagroups.1610
2908
3322
 
2909
3323
  # Naval 11 (7g 4b)
2910
3324
  100 = ideagroups.1700
@@ -2945,6 +3359,76 @@ on_five_year_pulse = {
2945
3359
  100 = ideagroups.1909
2946
3360
  100 = ideagroups.1910
2947
3361
 
3362
+ # Horde Ideas 10 (8g 2b)
3363
+ 100 = ideagroups.1922
3364
+ 100 = ideagroups.1923
3365
+ 100 = ideagroups.1924
3366
+ 100 = ideagroups.1925
3367
+ 100 = ideagroups.1926
3368
+ 100 = ideagroups.1927
3369
+ 100 = ideagroups.1928
3370
+ 100 = ideagroups.1929
3371
+ 100 = ideagroups.1930
3372
+ 100 = ideagroups.1931
3373
+
3374
+ #Theocracy Ideas 11 (9g 2b)
3375
+ 100 = ideagroups.1911
3376
+ 100 = ideagroups.1912
3377
+ 100 = ideagroups.1913
3378
+ 100 = ideagroups.1914
3379
+ 100 = ideagroups.1915
3380
+ 100 = ideagroups.1916
3381
+ 100 = ideagroups.1917
3382
+ 100 = ideagroups.1918
3383
+ 100 = ideagroups.1919
3384
+ 100 = ideagroups.1920
3385
+ 100 = ideagroups.1921
3386
+
3387
+ # Indigenous 10 (6g 4b)
3388
+ 100 = ideagroups.1932
3389
+ 100 = ideagroups.1933
3390
+ 100 = ideagroups.1934
3391
+ 100 = ideagroups.1935
3392
+ 100 = ideagroups.1936
3393
+ 100 = ideagroups.1937
3394
+ 100 = ideagroups.1938
3395
+ 100 = ideagroups.1939
3396
+ 100 = ideagroups.1940
3397
+ 100 = ideagroups.1941
3398
+
3399
+ # Infrastructure 10 (5g 5b)
3400
+ 100 = ideagroups.2000
3401
+ 100 = ideagroups.2001
3402
+ 100 = ideagroups.2002
3403
+ 100 = ideagroups.2003
3404
+ 100 = ideagroups.2004
3405
+ 100 = ideagroups.2005
3406
+ 100 = ideagroups.2006
3407
+ 100 = ideagroups.2007
3408
+ 100 = ideagroups.2008
3409
+ 100 = ideagroups.2009
3410
+
3411
+ #Court Events 8 (6g 2b)
3412
+ 100 = ideagroups.2010
3413
+ 100 = ideagroups.2011
3414
+ 100 = ideagroups.2012
3415
+ 100 = ideagroups.2013
3416
+ 100 = ideagroups.2014
3417
+ 100 = ideagroups.2015
3418
+ 100 = ideagroups.2016
3419
+ 100 = ideagroups.2017
3420
+
3421
+ #Mercenary Ideas 9 (6g 3b)
3422
+ 100 = ideagroups.2020
3423
+ 100 = ideagroups.2021
3424
+ 100 = ideagroups.1603
3425
+ 100 = ideagroups.1604
3426
+ 100 = ideagroups.1610
3427
+ 100 = ideagroups.2025
3428
+ 100 = ideagroups.2026
3429
+ 100 = ideagroups.2027
3430
+ 100 = ideagroups.2028
3431
+
2948
3432
  1000 = 0
2949
3433
  }
2950
3434
 
@@ -3092,6 +3576,20 @@ on_five_year_pulse_2 = {
3092
3576
  100 = rajputs_estate_events.9
3093
3577
  100 = rajputs_estate_events.10
3094
3578
  100 = rajputs_estate_events.11
3579
+ # Janissaries
3580
+ 100 = janissaries_estate_events.1
3581
+ 100 = janissaries_estate_events.2
3582
+ 100 = janissaries_estate_events.3
3583
+ 100 = janissaries_estate_events.4
3584
+ 100 = janissaries_estate_events.5
3585
+ 100 = janissaries_estate_events.6
3586
+ 100 = janissaries_estate_events.7
3587
+ 400 = janissaries_estate_events.8 # Disloyal
3588
+ 400 = janissaries_estate_events.9 # Demands
3589
+ 100 = janissaries_estate_events.10
3590
+ 100 = janissaries_estate_events.11
3591
+ 100 = janissaries_estate_events.12
3592
+ 100 = janissaries_estate_events.13
3095
3593
  # Random
3096
3594
  5 = flavor_fra.9500
3097
3595
  1000 = 0
@@ -3100,6 +3598,13 @@ on_five_year_pulse_2 = {
3100
3598
 
3101
3599
  on_five_year_pulse_3 = {
3102
3600
  random_events = {
3601
+ 100 = estate_regency_events.2
3602
+ 100 = estate_regency_events.3
3603
+ 100 = estate_regency_events.4
3604
+ 100 = estate_regency_events.5
3605
+ 100 = estate_regency_events.6
3606
+ 100 = estate_regency_events.7
3607
+ 100 = estate_regency_events.9
3103
3608
  100 = propagate_religion_events.1
3104
3609
  100 = propagate_religion_events.2
3105
3610
  100 = propagate_religion_events.3
@@ -3151,9 +3656,26 @@ on_five_year_pulse_4 = {
3151
3656
  }
3152
3657
  clr_country_flag = advisor_events_mil
3153
3658
  }
3659
+ #Clearing of Jewish events flags
3660
+ if = {
3661
+ limit = {
3662
+ had_country_flag = {
3663
+ flag = shalosh_regalim
3664
+ days = 365
3665
+ }
3666
+ }
3667
+ clr_country_flag = shalosh_regalim
3668
+ }
3669
+ random_events = {
3670
+ 200 = 0
3671
+ 100 = kalmar_union_events.7
3672
+ 100 = kalmar_union_events.8
3673
+ 100 = kalmar_union_events.9
3674
+ }
3154
3675
  }
3155
3676
 
3156
3677
  # El Dorado
3678
+ # FROM = country doing the exploring, ROOT = province discovered
3157
3679
  on_explore_coast = {
3158
3680
  random_events = {
3159
3681
  10 = exploration_events.1
@@ -3592,11 +4114,129 @@ on_lose_great_power_status = {
3592
4114
 
3593
4115
  # province
3594
4116
  on_province_religion_converted = {
3595
- on_province_religion_converted_estate_privileges_effect = yes
4117
+ on_province_religion_changed_effect = yes
4118
+ on_province_religion_converted_effect = yes
4119
+ if = {
4120
+ limit = {
4121
+ owner = {
4122
+ has_government_attribute = more_25_tax_in_true_faith_provinces
4123
+ }
4124
+ religion_group = owner
4125
+ NOT = { has_province_modifier = ottoman_siyasah_tax_reform_tax }
4126
+ }
4127
+ add_province_modifier = {
4128
+ name = ottoman_siyasah_tax_reform_tax
4129
+ duration = -1
4130
+ }
4131
+ }
4132
+ if = {
4133
+ limit = {
4134
+ OR = {
4135
+ NOT = {
4136
+ owner = { has_government_attribute = more_25_tax_in_true_faith_provinces }
4137
+ }
4138
+ NOT = { religion_group = owner }
4139
+ }
4140
+ has_province_modifier = ottoman_siyasah_tax_reform_tax
4141
+ }
4142
+ remove_province_modifier = ottoman_siyasah_tax_reform_tax
4143
+ }
4144
+ if = {
4145
+ limit = {
4146
+ owner = {
4147
+ has_government_attribute = more_15_manpower_in_heathen_provinces
4148
+ }
4149
+ NOT ={ religion_group = owner }
4150
+ NOT = { has_province_modifier = ottoman_siyasah_tax_reform_manpower }
4151
+ }
4152
+ add_province_modifier = {
4153
+ name = ottoman_siyasah_tax_reform_manpower
4154
+ duration = -1
4155
+ }
4156
+ }
4157
+ if = {
4158
+ limit = {
4159
+ OR = {
4160
+ NOT = {
4161
+ owner = { has_government_attribute = more_15_manpower_in_heathen_provinces }
4162
+ }
4163
+ religion_group = owner
4164
+ }
4165
+ has_province_modifier = ottoman_siyasah_tax_reform_manpower
4166
+ }
4167
+ remove_province_modifier = ottoman_siyasah_tax_reform_manpower
4168
+ }
3596
4169
  }
3597
4170
 
3598
- # province
4171
+ on_province_religion_changed = {
4172
+ on_province_religion_changed_effect = yes
4173
+ if = {
4174
+ limit = {
4175
+ owner = {
4176
+ has_government_attribute = more_25_tax_in_true_faith_provinces
4177
+ }
4178
+ religion_group = owner
4179
+ NOT = { has_province_modifier = ottoman_siyasah_tax_reform_tax }
4180
+ }
4181
+ add_province_modifier = {
4182
+ name = ottoman_siyasah_tax_reform_tax
4183
+ duration = -1
4184
+ }
4185
+ }
4186
+ if = {
4187
+ limit = {
4188
+ OR = {
4189
+ NOT = {
4190
+ owner = { has_government_attribute = more_25_tax_in_true_faith_provinces }
4191
+ }
4192
+ NOT = { religion_group = owner }
4193
+ }
4194
+ has_province_modifier = ottoman_siyasah_tax_reform_tax
4195
+ }
4196
+ remove_province_modifier = ottoman_siyasah_tax_reform_tax
4197
+ }
4198
+ if = {
4199
+ limit = {
4200
+ owner = {
4201
+ has_government_attribute = more_15_manpower_in_heathen_provinces
4202
+ }
4203
+ NOT ={ religion_group = owner }
4204
+ NOT = { has_province_modifier = ottoman_siyasah_tax_reform_manpower }
4205
+ }
4206
+ add_province_modifier = {
4207
+ name = ottoman_siyasah_tax_reform_manpower
4208
+ duration = -1
4209
+ }
4210
+ }
4211
+ if = {
4212
+ limit = {
4213
+ OR = {
4214
+ NOT = {
4215
+ owner = { has_government_attribute = more_15_manpower_in_heathen_provinces }
4216
+ }
4217
+ religion_group = owner
4218
+ }
4219
+ has_province_modifier = ottoman_siyasah_tax_reform_manpower
4220
+ }
4221
+ remove_province_modifier = ottoman_siyasah_tax_reform_manpower
4222
+ }
4223
+ }
4224
+
4225
+ # province, manually conversion
3599
4226
  on_province_culture_converted = {
4227
+ on_province_culture_converted_estate_privilges_effect = yes
4228
+ judaism_on_province_culture_converted_effect = yes
4229
+ imperial_modifiers_on_province_change_culture_or_change_owner_effect = yes
4230
+ on_province_culture_change_effect = yes
4231
+ on_province_culture_converted_effect = yes
4232
+ }
4233
+
4234
+ # province, general conversion through effects
4235
+ on_province_culture_changed = {
4236
+ on_province_culture_converted_estate_privilges_effect = yes
4237
+ judaism_on_province_culture_converted_effect = yes
4238
+ imperial_modifiers_on_province_change_culture_or_change_owner_effect = yes
4239
+ on_province_culture_change_effect = yes
3600
4240
  }
3601
4241
 
3602
4242
  # THIS = Province, FROM = Country who Propogated
@@ -3628,159 +4268,289 @@ on_convert_by_trade_policy = {
3628
4268
  }
3629
4269
  }
3630
4270
  }
4271
+
4272
+ if = {
4273
+ limit = {
4274
+ FROM = {
4275
+ has_country_flag = YEM_propagation_gives_navy_tradition
4276
+ }
4277
+ }
4278
+ FROM = {
4279
+ add_navy_tradition = 1
4280
+ }
4281
+ }
3631
4282
  }
3632
4283
 
3633
4284
  # province
3634
4285
  # FROM = old owner
3635
4286
  on_province_owner_change = {
3636
4287
  events = {
3637
- japan.1
4288
+ japan.1 #Fall of the current Shogun
4289
+ flavor_tur.207 #Victory over the Knights
3638
4290
  }
3639
-
4291
+ on_province_owner_change_government_effect = yes
4292
+
3640
4293
  if = {
3641
4294
  limit = {
3642
- OR = {
3643
- has_province_modifier = wine_bonus_prod
3644
- has_province_modifier = grain_bonus_prod
3645
- }
3646
- FROM = { has_reform = monastic_breweries_reform }
3647
- NOT = { owner = { has_reform = monastic_breweries_reform } }
4295
+ owned_by = SRU
4296
+ exists = ARA
4297
+ }
4298
+ ARA = {
4299
+ set_country_flag = ARA_defeat_saruhan
3648
4300
  }
3649
- remove_province_modifier = wine_bonus_prod
3650
- remove_province_modifier = grain_bonus_prod
3651
4301
  }
3652
-
3653
4302
  if = {
3654
4303
  limit = {
3655
- NOT = {
3656
- OR = {
3657
- has_province_modifier = wine_bonus_prod
3658
- has_province_modifier = grain_bonus_prod
3659
- }
3660
- }
3661
- owner = { has_reform = monastic_breweries_reform }
3662
- NOT = { FROM = { has_reform = monastic_breweries_reform } }
4304
+ NOT = { owner = { religion_group = muslim } }
4305
+ has_province_modifier = sufi_shrine
3663
4306
  }
3664
- hidden_effect = {
3665
- if = {
3666
- limit = {
3667
- trade_goods = wine
3668
- }
3669
- add_province_modifier = {
3670
- name = wine_bonus_prod
3671
- duration = -1
3672
- hidden = yes
3673
- }
3674
- }
3675
- if = {
3676
- limit = {
3677
- trade_goods = grain
3678
- }
3679
- add_province_modifier = {
3680
- name = grain_bonus_prod
3681
- duration = -1
3682
- hidden = yes
4307
+ remove_province_modifier = sufi_shrine
4308
+ }
4309
+ on_province_owner_change_estate_privileges_effect = yes
4310
+ imperial_modifiers_on_province_change_culture_or_change_owner_effect = yes
4311
+
4312
+ if = {
4313
+ limit = {
4314
+ region = indo_china_region
4315
+ has_building = farm_estate
4316
+ trade_goods = grain
4317
+ owner = {
4318
+ has_mission = mnd_khm_irrigation
4319
+ NOT = {
4320
+ OR = {
4321
+ has_estate = estate_vaisyas
4322
+ has_estate = estate_burghers
4323
+ }
3683
4324
  }
3684
4325
  }
3685
4326
  }
4327
+ add_province_modifier = {
4328
+ name = grain_production_improved
4329
+ duration = 7300
4330
+ }
3686
4331
  }
3687
4332
 
3688
4333
  if = {
3689
4334
  limit = {
3690
- owned_by = SRU
3691
- exists = ARA
4335
+ trade_goods = gold
4336
+ NOT = { has_province_modifier = estate_burghers_control_over_gold_mine }
4337
+ owner = {
4338
+ has_estate_privilege = estate_burghers_control_over_the_mint
4339
+ }
3692
4340
  }
3693
- ARA = {
3694
- set_country_flag = ARA_defeat_saruhan
4341
+ add_province_modifier = {
4342
+ name = estate_burghers_control_over_gold_mine
4343
+ duration = -1
3695
4344
  }
3696
4345
  }
4346
+
3697
4347
  if = {
3698
4348
  limit = {
3699
- NOT = { owner = { religion_group = muslim } }
3700
- has_province_modifier = sufi_shrine
4349
+ province_id = 379
4350
+ owner = {
4351
+ NOT = { religion = jewish }
4352
+ }
3701
4353
  }
3702
- remove_province_modifier = sufi_shrine
4354
+ remove_country_modifier = third_temple_country_modifier
3703
4355
  }
3704
- on_province_owner_change_estate_privileges_effect = yes
4356
+ if = {
4357
+ limit = {
4358
+ owner = {
4359
+ has_country_modifier = son_fetishism_as_secondary_religion
4360
+ }
4361
+ religion = shamanism
4362
+ NOT = { has_province_modifier = son_fetishism_as_secondary_religion_province }
4363
+ }
4364
+ add_province_modifier = {
4365
+ name = son_fetishism_as_secondary_religion_province
4366
+ duration = -1
4367
+ desc = son_fetishism_as_secondary_religion_province_desc
4368
+ }
4369
+ }
4370
+ else_if = {
4371
+ limit = {
4372
+ OR = {
4373
+ owner = {
4374
+ NOT = { has_country_modifier = son_fetishism_as_secondary_religion }
4375
+ }
4376
+ NOT = { religion = shamanism }
4377
+ }
4378
+ has_province_modifier = son_fetishism_as_secondary_religion_province
4379
+ }
4380
+ remove_province_modifier = son_fetishism_as_secondary_religion_province
4381
+ }
4382
+ if = {
4383
+ limit = {
4384
+ owner = { NOT = { has_reform = jap_gokaido_reform } }
4385
+ }
4386
+ remove_province_modifier = jap_gokaido_modifier
4387
+ }
4388
+ if = {
4389
+ limit = {
4390
+ owner = {
4391
+ has_government_attribute = more_15_manpower_in_heathen_provinces
4392
+ }
4393
+ NOT ={ religion_group = owner }
4394
+ NOT = { has_province_modifier = ottoman_siyasah_tax_reform_manpower }
4395
+ }
4396
+ add_province_modifier = {
4397
+ name = ottoman_siyasah_tax_reform_manpower
4398
+ duration = -1
4399
+ }
4400
+ }
4401
+ if = {
4402
+ limit = {
4403
+ owner = {
4404
+ has_government_attribute = more_15_manpower_in_heathen_provinces
4405
+ }
4406
+ NOT ={ religion_group = owner }
4407
+ NOT = { has_province_modifier = ottoman_siyasah_tax_reform_manpower }
4408
+ }
4409
+ add_province_modifier = {
4410
+ name = ottoman_siyasah_tax_reform_manpower
4411
+ duration = -1
4412
+ }
4413
+ }
4414
+ }
4415
+
4416
+ # country
4417
+ on_parliament_debate_reset = {
4418
+ on_parliament_debate_reset_effect = yes
4419
+ }
4420
+
4421
+ #province
4422
+ on_parliament_seat_given = {
4423
+ on_parliament_seat_given_effect = yes
4424
+ }
4425
+
4426
+ #province
4427
+ on_parliament_seat_lost = {
4428
+ on_parliament_seat_lost_effect = yes
3705
4429
  }
3706
4430
 
3707
4431
  # country
3708
4432
  on_parliament_debate_failed = {
4433
+ on_parliament_debate_failed_effect = yes
3709
4434
  }
3710
4435
 
3711
4436
  # country
3712
4437
  on_parliament_debate_succeeded = {
4438
+ on_parliament_debate_succeeded_effect = yes
4439
+ increase_issue_passed_counter = yes
3713
4440
  }
3714
4441
 
3715
4442
  # country
3716
4443
  on_harmonized_pagan = {
4444
+ on_harmonized_effect = yes
4445
+ on_harmonized_religion_estate_privileges_effect = yes
3717
4446
  events = {
3718
4447
  confucian_events.1
3719
4448
  }
3720
4449
  }
3721
4450
  on_harmonized_christian = {
4451
+ on_harmonized_effect = yes
4452
+ on_harmonized_religion_estate_privileges_effect = yes
3722
4453
  events = {
3723
4454
  confucian_events.2
3724
4455
  }
3725
4456
  }
3726
4457
  on_harmonized_muslim = {
4458
+ on_harmonized_effect = yes
4459
+ on_harmonized_religion_estate_privileges_effect = yes
3727
4460
  events = {
3728
4461
  confucian_events.3
3729
4462
  }
3730
4463
  }
3731
4464
  on_harmonized_jewish_group = {
4465
+ on_harmonized_effect = yes
4466
+ on_harmonized_religion_estate_privileges_effect = yes
3732
4467
  events = {
3733
4468
  confucian_events.5
3734
4469
  }
3735
4470
  }
3736
4471
  on_harmonized_zoroastrian_group = {
4472
+ on_harmonized_effect = yes
4473
+ on_harmonized_religion_estate_privileges_effect = yes
3737
4474
  events = {
3738
4475
  confucian_events.6
3739
4476
  }
3740
4477
  }
3741
4478
  on_harmonized_dharmic = {
4479
+ on_harmonized_effect = yes
4480
+ on_harmonized_religion_estate_privileges_effect = yes
3742
4481
  events = {
3743
4482
  confucian_events.4
3744
4483
  }
3745
4484
  }
3746
4485
  on_harmonized_mahayana = {
4486
+ on_harmonized_effect = yes
4487
+ on_harmonized_religion_estate_privileges_effect = yes
3747
4488
  events = {
3748
4489
  confucian_events.9
3749
4490
  }
3750
4491
  }
3751
4492
  on_harmonized_buddhism = { #Theravada
4493
+ on_harmonized_effect = yes
4494
+ on_harmonized_religion_estate_privileges_effect = yes
3752
4495
  events = {
3753
4496
  confucian_events.8
3754
4497
  }
3755
4498
  }
3756
4499
  on_harmonized_shinto = {
4500
+ on_harmonized_effect = yes
4501
+ on_harmonized_religion_estate_privileges_effect = yes
3757
4502
  events = {
3758
4503
  confucian_events.7
3759
4504
  }
3760
4505
  }
3761
4506
  on_harmonized_vajrayana = {
4507
+ on_harmonized_effect = yes
4508
+ on_harmonized_religion_estate_privileges_effect = yes
3762
4509
  events = {
3763
4510
  confucian_events.10
3764
4511
  }
3765
4512
  }
3766
4513
 
3767
- # country
3768
- on_russian_sudebnik = {
3769
-
3770
- }
3771
-
3772
- # country
3773
- on_russian_oprichnina = {
3774
-
3775
- }
3776
-
3777
- # country
3778
- on_russian_streltsy = {
3779
-
3780
- }
3781
-
3782
4514
  # province
3783
4515
  on_consecrate_patriarch = {
4516
+ if = {
4517
+ limit = {
4518
+ owner = { has_country_flag = has_improved_consecration }
4519
+ }
4520
+ every_province_in_state = {
4521
+ limit = { has_state_patriach = yes }
4522
+ add_province_modifier = {
4523
+ name = consecrated_ground
4524
+ duration = -1
4525
+ hidden = yes
4526
+ }
4527
+ }
4528
+ }
4529
+ if = {
4530
+ limit = {
4531
+ owner = { has_country_flag = BYZ_extra_patriarch_authority }
4532
+ NOT = { has_province_flag = BYZ_consecrated_here_bonus }
4533
+ }
4534
+ owner = {
4535
+ add_patriarch_authority = 0.025
4536
+ }
4537
+ every_province_in_state = {
4538
+ limit = { has_state_patriach = yes }
4539
+ set_province_flag = BYZ_consecrated_here_bonus
4540
+ }
4541
+ }
4542
+ if = {
4543
+ limit = {
4544
+ owner = { has_country_flag = geo_metropolitan_flag }
4545
+ }
4546
+ every_province_in_state = {
4547
+ add_province_modifier = {
4548
+ name = geo_consecrated_ground
4549
+ duration = -1
4550
+ hidden = yes
4551
+ }
4552
+ }
4553
+ }
3784
4554
  }
3785
4555
 
3786
4556
  # country. from = overlord
@@ -3793,15 +4563,55 @@ on_refuse_tribute = {
3793
4563
 
3794
4564
  # country
3795
4565
  on_leader_recruited = {
4566
+ if = {
4567
+ limit = {
4568
+ has_estate_privilege = estate_nobles_command_of_the_military
4569
+ }
4570
+ add_estate_influence_modifier = {
4571
+ estate = estate_nobles
4572
+ influence = 5
4573
+ duration = 3650
4574
+ desc = EST_VAL_NOBLE_LEADER
4575
+ }
4576
+ }
4577
+ if = {
4578
+ limit = { has_government_attribute = theocratic_monarchy_mechanic }
4579
+ change_statists_vs_orangists = 0.01
4580
+ }
3796
4581
  }
3797
4582
 
3798
4583
  # country
3799
4584
  on_general_recruited = {
3800
- add_army_professionalism = 0.01
4585
+ on_general_recruited_effect = yes
4586
+ if = {
4587
+ limit = {
4588
+ has_reform = sparapet_office
4589
+ }
4590
+ add_army_tradition = 0.25
4591
+ }
3801
4592
  }
3802
4593
 
3803
4594
  # country
3804
4595
  on_admiral_recruited = {
4596
+ if = {
4597
+ limit = { has_country_flag = admirals_give_army_professionalism }
4598
+ add_army_professionalism = 0.005
4599
+ }
4600
+ if = {
4601
+ limit = {
4602
+ OR = {
4603
+ has_country_modifier = pol_global_maritime_empire_modifier
4604
+ has_country_modifier = pol_global_maritime_empire_2_modifier
4605
+ }
4606
+ }
4607
+ add_navy_tradition = 1
4608
+ }
4609
+ if = {
4610
+ limit = {
4611
+ has_country_flag = improve_nav_prof_flag
4612
+ }
4613
+ add_navy_tradition = 1
4614
+ }
3805
4615
  }
3806
4616
 
3807
4617
  # country
@@ -3810,6 +4620,15 @@ on_conquistador_recruited = {
3810
4620
 
3811
4621
  # country
3812
4622
  on_explorer_recruited = {
4623
+ if = {
4624
+ limit = {
4625
+ OR = {
4626
+ has_country_modifier = pol_global_maritime_empire_modifier
4627
+ has_country_modifier = pol_global_maritime_empire_2_modifier
4628
+ }
4629
+ }
4630
+ add_navy_tradition = 1
4631
+ }
3813
4632
  }
3814
4633
 
3815
4634
  # THIS = Province, FROM = Country
@@ -3817,15 +4636,39 @@ on_regiment_recruited = {
3817
4636
 
3818
4637
  }
3819
4638
 
3820
- # THIS = Province, FROM = Country
4639
+ # THIS = Province, FROM = Country, ROOT = Merc Unit
3821
4640
  on_mercenary_recruited = {
3822
- FROM = {
3823
- add_army_professionalism = -0.05
3824
- }
4641
+ on_mercenary_recruited_effect = yes
3825
4642
  }
3826
-
3827
4643
  # THIS = One province in the state
3828
4644
  on_add_pasha = {
4645
+ hidden_effect = {
4646
+ owner = {
4647
+ save_event_target_as = province_owner
4648
+ }
4649
+ }
4650
+ if = {
4651
+ limit = {
4652
+ event_target:province_owner = {
4653
+ has_country_flag = tur_improved_pashas
4654
+ }
4655
+ }
4656
+ area = {
4657
+ limit = { owned_by = event_target:province_owner NOT = { culture_group = event_target:province_owner } }
4658
+ add_province_modifier = { name = tur_competent_pashas duration = -1 }
4659
+ }
4660
+ }
4661
+ if = {
4662
+ limit = {
4663
+ event_target:province_owner = {
4664
+ has_government_attribute = pasha_extra_bonuses
4665
+ }
4666
+ }
4667
+ area = {
4668
+ limit = { owned_by = event_target:province_owner NOT = { culture_group = event_target:province_owner } }
4669
+ add_province_modifier = { name = the_provincial_system duration = -1 }
4670
+ }
4671
+ }
3829
4672
  }
3830
4673
 
3831
4674
  # THIS = One province in the state
@@ -3834,12 +4677,19 @@ on_remove_pasha = {
3834
4677
  owner = {
3835
4678
  save_event_target_as = province_owner
3836
4679
  }
3837
- remove_province_modifier = pasha_removed_modifier
3838
4680
  }
3839
4681
 
3840
4682
  area = {
3841
4683
  limit = { owned_by = event_target:province_owner }
3842
4684
  add_or_extend_province_modifier_effect = { MODIFIER = pasha_removed_modifier DURATION = 3650 }
4685
+ if = {
4686
+ limit = { has_province_modifier = tur_competent_pashas }
4687
+ remove_province_modifier = tur_competent_pashas
4688
+ }
4689
+ if = {
4690
+ limit = { has_province_modifier = the_provincial_system }
4691
+ remove_province_modifier = the_provincial_system
4692
+ }
3843
4693
  }
3844
4694
  }
3845
4695
 
@@ -3847,9 +4697,107 @@ on_remove_pasha = {
3847
4697
  on_janissaries_raised = {
3848
4698
  }
3849
4699
 
4700
+ on_cawa_raised = {
4701
+ }
4702
+
4703
+ on_carolean_raised = {
4704
+ }
4705
+
4706
+ on_hussars_raised = {
4707
+ }
4708
+
3850
4709
  on_revolutionary_guard_raised = {
3851
4710
  }
3852
4711
 
4712
+ on_banner_raised = {
4713
+ owner = {
4714
+ if = {
4715
+ limit = { has_country_flag = refund_partial_corruption_on_banner_recruited_flag }
4716
+ add_corruption = -0.04
4717
+ }
4718
+ }
4719
+ }
4720
+
4721
+ on_cossack_raised = {
4722
+ }
4723
+
4724
+ on_marine_raised = {
4725
+ }
4726
+
4727
+ on_rajput_raised = {
4728
+ }
4729
+
4730
+ on_streltsy_raised = {
4731
+ }
4732
+
4733
+ on_tercio_raised = {
4734
+ }
4735
+
4736
+ on_musketeer_raised = {
4737
+ }
4738
+
4739
+ on_samurai_raised = {
4740
+ }
4741
+
4742
+ on_qizilbash_raised = {
4743
+ }
4744
+
4745
+ on_mamluks_raised = {
4746
+ }
4747
+
4748
+ on_geobukseon_raised = {
4749
+ }
4750
+
4751
+ on_man_of_war_raised = {
4752
+ }
4753
+
4754
+ on_galleon_raised = {
4755
+ }
4756
+
4757
+ on_galleass_raised = {
4758
+ }
4759
+
4760
+ on_caravel_raised = {
4761
+ }
4762
+
4763
+ on_voc_indiamen_raised = {
4764
+ }
4765
+
4766
+ on_hre_reform_passed = {
4767
+ }
4768
+
4769
+ on_mandate_reform_passed = {
4770
+ if = {
4771
+ limit = { has_country_flag = mng_shengshi_reward_flag }
4772
+ add_estate_loyalty = {
4773
+ estate = estate_eunuchs
4774
+ loyalty = 10
4775
+ }
4776
+ add_estate_loyalty = {
4777
+ estate = estate_nobles
4778
+ loyalty = 10
4779
+ }
4780
+ add_estate_loyalty = {
4781
+ estate = estate_burghers
4782
+ loyalty = 10
4783
+ }
4784
+ add_estate_loyalty = {
4785
+ estate = estate_church
4786
+ loyalty = 10
4787
+ }
4788
+ add_estate_loyalty = {
4789
+ estate = estate_nomadic_tribes
4790
+ loyalty = 10
4791
+ }
4792
+ }
4793
+ if = {
4794
+ limit = { has_country_flag = qng_passing_decree_reduces_autonomy_everywhere_by_5_flag }
4795
+ every_owned_province = {
4796
+ add_local_autonomy = -10
4797
+ }
4798
+ }
4799
+ }
4800
+
3853
4801
  on_reform_enacted = {
3854
4802
  }
3855
4803
 
@@ -3860,15 +4808,56 @@ on_trade_company_investment = {
3860
4808
  }
3861
4809
 
3862
4810
  on_center_of_trade_upgrade = {
3863
-
4811
+ if = {
4812
+ limit = { owner = { has_country_flag = enable_upgrading_centers_of_trade_dev } }
4813
+ add_base_production = 1
4814
+ }
4815
+ if = {
4816
+ limit = { owner = { has_country_modifier = geo_centers_of_trade } }
4817
+ add_base_production = 1
4818
+ }
3864
4819
  }
3865
4820
 
3866
4821
  on_center_of_trade_downgrade = {
3867
-
4822
+ if = {
4823
+ limit = { owner = { has_country_flag = enable_upgrading_centers_of_trade_dev } }
4824
+ add_base_production = -1
4825
+ }
4826
+ if = {
4827
+ limit = { owner = { has_country_modifier = geo_centers_of_trade } }
4828
+ add_base_production = -1
4829
+ }
3868
4830
  }
3869
4831
 
3870
4832
  on_culture_promoted = {
4833
+ on_culture_promoted_estate_privileges_effect = yes
4834
+ judaism_on_culture_country_effect = yes
4835
+ imperial_modifiers_on_culture_country_effect = yes
4836
+
4837
+ if = {
4838
+ limit = { has_country_flag = reduce_ae_from_prom_cultures_flag }
4839
+ every_country = {
4840
+ add_aggressive_expansion = {
4841
+ who = ROOT
4842
+ value = -3
4843
+ apply_calc = no
4844
+ }
4845
+ }
4846
+ }
4847
+ }
3871
4848
 
4849
+ on_culture_demoted = {
4850
+ on_culture_demoted_estate_privileges_effect = yes
4851
+ judaism_on_culture_country_effect = yes
4852
+ imperial_modifiers_on_culture_country_effect = yes
4853
+ on_culture_demoted_effect = yes
4854
+ on_culture_demoted_effect_remove_all_free_slots = yes
4855
+ }
4856
+
4857
+ on_primary_culture_changed = {
4858
+ on_primary_culture_changed_privileges_effect = yes
4859
+ judaism_on_culture_country_effect = yes
4860
+ imperial_modifiers_on_primary_culture_change_effect = yes
3872
4861
  }
3873
4862
 
3874
4863
  # FROM = Previous Country, ROOT = Province
@@ -3893,18 +4882,17 @@ on_company_chartered = {
3893
4882
 
3894
4883
  # ROOT = Overlord, FROM = Minor
3895
4884
  on_dependency_gained = {
3896
- events = {
3897
- dutch_republic.31 # States General falls under a PU
3898
- }
4885
+ on_dependency_gained_effect = yes
3899
4886
  }
3900
4887
 
3901
4888
  # ROOT = Overlord, FROM = Minor
3902
4889
  on_dependency_lost = {
3903
-
4890
+ on_dependency_lost_effect = yes
3904
4891
  }
3905
4892
 
3906
4893
  # ROOT = New vassal, FROM = Overlord
3907
4894
  on_create_vassal = {
4895
+ on_religion_change_estate_privileges_effect = yes
3908
4896
  if = {
3909
4897
  limit = {
3910
4898
  has_dlc = "Emperor"
@@ -3925,6 +4913,10 @@ on_create_vassal = {
3925
4913
  add_government_reform = papacy_reform
3926
4914
  adopt_reform_progress = FROM
3927
4915
  }
4916
+ if = {
4917
+ limit = { NOT = { is_year = 1445 } }
4918
+ set_country_flag = released_in_1444
4919
+ }
3928
4920
  }
3929
4921
 
3930
4922
  # ROOT = Country establishing it
@@ -3936,7 +4928,13 @@ on_holy_order_established = {
3936
4928
  # When a minority is expelled to a colony
3937
4929
  # THIS = Colony, ROOT = Colony, FROM = Home province
3938
4930
  on_minority_expelled = {
3939
-
4931
+ FROM = {
4932
+ remove_province_modifier = religious_zeal_at_conv
4933
+ add_permanent_province_modifier = {
4934
+ name = expelled_minority_home
4935
+ duration = 7300
4936
+ }
4937
+ }
3940
4938
  }
3941
4939
 
3942
4940
  # THIS = Raiding country, FROM = Sea province
@@ -3950,6 +4948,25 @@ on_raid_coast = {
3950
4948
  influence = 1
3951
4949
  }
3952
4950
  }
4951
+ if = {
4952
+ limit = {
4953
+ has_government_attribute = raiding_increases_pp
4954
+ }
4955
+ add_power_projection = {
4956
+ type = high_sea_power_projection
4957
+ amount = 1
4958
+ }
4959
+ }
4960
+ if = {
4961
+ limit = {
4962
+ has_mission = dan_raid_the_north_sea
4963
+ NOT = { mission_completed = dan_raid_the_north_sea }
4964
+ }
4965
+ change_variable = {
4966
+ which = num_of_raided_coasts
4967
+ value = 1
4968
+ }
4969
+ }
3953
4970
  }
3954
4971
 
3955
4972
  # ROOT = Tag that captured the flagship, FROM = Tag that lost the flagship
@@ -3964,6 +4981,12 @@ on_flagship_captured = {
3964
4981
  FROM = {
3965
4982
  country_event = { id = flagship_events.1 }
3966
4983
  }
4984
+ FROM = {
4985
+ if = {
4986
+ limit = { has_country_modifier = hsa_pride_eagle_of_the_fleet_modifier }
4987
+ remove_country_modifier = hsa_pride_eagle_of_the_fleet_modifier
4988
+ }
4989
+ }
3967
4990
  }
3968
4991
 
3969
4992
  # ROOT = Tag that destroyed the flagship, FROM = Tag that lost the flagship
@@ -3977,6 +5000,12 @@ on_flagship_destroyed = {
3977
5000
  FROM = {
3978
5001
  country_event = { id = flagship_events.3 }
3979
5002
  }
5003
+ FROM = {
5004
+ if = {
5005
+ limit = { has_country_modifier = hsa_pride_eagle_of_the_fleet_modifier }
5006
+ remove_country_modifier = hsa_pride_eagle_of_the_fleet_modifier
5007
+ }
5008
+ }
3980
5009
  }
3981
5010
 
3982
5011
  # this = Released country, FROM = Releasing country
@@ -4006,45 +5035,25 @@ on_country_released = {
4006
5035
  change_religion = FROM
4007
5036
  }
4008
5037
  }
5038
+ if = {
5039
+ limit = { NOT = { is_year = 1445 } }
5040
+ set_country_flag = released_in_1444
5041
+ }
4009
5042
  }
4010
5043
 
4011
5044
  # ROOT = province, FROM = country
4012
5045
  on_trade_good_changed = {
4013
5046
  on_trade_good_changed_estate_privileges_effect = yes
4014
- if = {
4015
- limit = {
4016
- OR = {
4017
- has_province_modifier = wine_bonus_prod
4018
- has_province_modifier = grain_bonus_prod
4019
- }
4020
- FROM = { has_reform = monastic_breweries_reform }
4021
- NOT = { owner = { has_reform = monastic_breweries_reform } }
4022
- }
4023
- remove_province_modifier = wine_bonus_prod
4024
- remove_province_modifier = grain_bonus_prod
4025
- }
4026
- hidden_effect = {
4027
- if = {
4028
- limit = {
4029
- trade_goods = wine
4030
- }
4031
- remove_province_modifier = grain_bonus_prod
4032
- add_province_modifier = {
4033
- name = wine_bonus_prod
4034
- duration = -1
4035
- hidden = yes
4036
- }
4037
- }
5047
+ on_trade_good_changed_government_effect = yes
5048
+ ROOT = {
4038
5049
  if = {
4039
- limit = {
4040
- trade_goods = grain
4041
- }
4042
- remove_province_modifier = wine_bonus_prod
4043
- add_province_modifier = {
4044
- name = grain_bonus_prod
4045
- duration = -1
4046
- hidden = yes
5050
+ limit = {
5051
+ trade_goods = coal
5052
+ FROM = { economic_ideas = 3 }
5053
+ has_manufactory_trigger = yes
5054
+ base_production = 2
4047
5055
  }
5056
+ add_base_production = -1
4048
5057
  }
4049
5058
  }
4050
5059
  }
@@ -4052,6 +5061,14 @@ on_trade_good_changed = {
4052
5061
  # this = country
4053
5062
  on_loan_repaid = {
4054
5063
  on_loan_repaid_estate_privileges_effect = yes
5064
+ if = {
5065
+ limit = {
5066
+ THIS = {
5067
+ economic_ideas = 4
5068
+ }
5069
+ }
5070
+ THIS = { add_inflation = -0.05 }
5071
+ }
4055
5072
  }
4056
5073
 
4057
5074
  # this = country
@@ -4061,6 +5078,9 @@ on_rebels_break_country = {
4061
5078
  duration = 10
4062
5079
  hidden = yes
4063
5080
  }
5081
+ events = {
5082
+ flavor_per.64 #No more Zoroastrian
5083
+ }
4064
5084
  }
4065
5085
 
4066
5086
  # this = country
@@ -4100,31 +5120,31 @@ on_pre_mil_advisor_fired = {
4100
5120
 
4101
5121
  # this = country
4102
5122
  on_post_adm_advisor_fired = {
4103
-
5123
+ on_advisor_removed_effct = { type = adm }
4104
5124
  }
4105
5125
 
4106
5126
  # this = country
4107
5127
  on_post_dip_advisor_fired = {
4108
-
5128
+ on_advisor_removed_effct = { type = dip }
4109
5129
  }
4110
5130
 
4111
5131
  # this = country
4112
5132
  on_post_mil_advisor_fired = {
4113
-
5133
+ on_advisor_removed_effct = { type = mil }
4114
5134
  }
4115
5135
 
4116
5136
  # this = new client state, from = parent country
4117
5137
  on_create_client_state = {
4118
- if = {
4119
- limit = {
4120
- has_dlc = "Emperor"
4121
- FROM = {
4122
- is_revolutionary = yes
5138
+ if = {
5139
+ limit = {
5140
+ FROM = { mission_completed = fra_grande_armee }
5141
+ }
5142
+ FROM = {
5143
+ add_power_projection = {
5144
+ type = mission_rewards_power_projection
5145
+ amount = 10
4123
5146
  }
4124
- government = republic
4125
5147
  }
4126
- add_government_reform = junior_revolutionary_republic_reform
4127
- set_country_flag = had_revolution
4128
5148
  }
4129
5149
  }
4130
5150
 
@@ -4139,6 +5159,19 @@ on_change_revolution_target = {
4139
5159
  # this = curia controller (enactor of the bull)
4140
5160
  on_golden_bull_enacted = {
4141
5161
  set_country_flag = enacted_golden_bull
5162
+ if = {
5163
+ limit = {
5164
+ FRA = { has_country_flag = fu_gain_25_random_pp_and_10_pi_per_bull_flag }
5165
+ }
5166
+ FRA = {
5167
+ random_list = {
5168
+ 10 = { add_adm_power = 25 }
5169
+ 10 = { add_dip_power = 25 }
5170
+ 10 = { add_mil_power = 25 }
5171
+ }
5172
+ add_papal_influence = 10
5173
+ }
5174
+ }
4142
5175
  }
4143
5176
 
4144
5177
 
@@ -4146,6 +5179,49 @@ on_golden_bull_enacted = {
4146
5179
  # FROM = The previous owner.
4147
5180
  on_conquest = {
4148
5181
  remove_named_unrest = estate_land_seized
5182
+ clr_province_flag = has_estate_unrest_flag
5183
+ if = {
5184
+ limit = {
5185
+ is_part_of_hre = no
5186
+ owner = {
5187
+ has_country_flag = pru_dom_hre_flag
5188
+ alliance_with = emperor
5189
+ }
5190
+ }
5191
+ owner = {
5192
+ add_trust = {
5193
+ who = emperor
5194
+ value = 3
5195
+ mutual = yes
5196
+ }
5197
+ }
5198
+ }
5199
+ else_if = {
5200
+ limit = {
5201
+ is_part_of_hre = no
5202
+ owner = {
5203
+ has_country_flag = pru_dom_hre_flag
5204
+ NOT = { alliance_with = emperor }
5205
+ is_emperor = no
5206
+ }
5207
+ }
5208
+ owner = {
5209
+ add_power_projection = {
5210
+ type = mission_rewards_power_projection
5211
+ amount = 1
5212
+ }
5213
+ }
5214
+ }
5215
+ else_if = {
5216
+ limit = {
5217
+ is_part_of_hre = no
5218
+ owner = { is_emperor = yes }
5219
+ development = 25
5220
+ }
5221
+ emperor = {
5222
+ add_imperial_influence = 1
5223
+ }
5224
+ }
4149
5225
  }
4150
5226
 
4151
5227
  on_country_creation = {
@@ -4168,4 +5244,495 @@ on_country_creation = {
4168
5244
  change_government = theocracy
4169
5245
  add_government_reform = papacy_reform
4170
5246
  }
5247
+ }
5248
+
5249
+ on_federation_leader_change = {
5250
+ if = {
5251
+ limit = { tag = FROM }
5252
+ disband_federation = THIS
5253
+ }
5254
+ else = {
5255
+ # New strongest member becomes the new federation leader
5256
+ set_federation_leader = THIS
5257
+ }
5258
+ }
5259
+
5260
+ #FROM = country pillaged, ROOT = country doing the pillaging
5261
+ on_pillaged_capital = {
5262
+ slave_raid_pillage_capital_effect = yes
5263
+ }
5264
+
5265
+ #FROM = country dev was transferred from, ROOT = country doing the transferring. It is triggered by normal concentrate too though FROM isn't set in that case
5266
+ on_transfer_development = {
5267
+ }
5268
+ #FROM = overlord, ROOT - colony
5269
+ on_colonial_type_change = {
5270
+ clr_country_flag = encourage_cash_crops_flag
5271
+ }
5272
+
5273
+ on_estate_led_regency = {
5274
+ if = {
5275
+ limit = {
5276
+ has_government_attribute = improved_nobles_regency
5277
+ OR = {
5278
+ has_estate = estate_nobles
5279
+ AND = {
5280
+ NOT = { has_estate = estate_nobles }
5281
+ OR = {
5282
+ has_estate = estate_maratha
5283
+ has_estate = estate_rajput
5284
+ }
5285
+ }
5286
+ }
5287
+ }
5288
+ add_ruler_modifier = {
5289
+ name = empowered_regency_modifier
5290
+ duration = -1
5291
+ }
5292
+ change_adm = 1
5293
+ change_dip = 1
5294
+ change_mil = 1
5295
+ }
5296
+ if = {
5297
+ limit = {
5298
+ has_country_flag = jap_regency_ga_flag
5299
+ has_estate_led_regency = { estate = estate_nobles }
5300
+ }
5301
+ add_ruler_modifier = {
5302
+ name = golden_era_bushi_modifier
5303
+ duration = -1
5304
+ }
5305
+ }
5306
+ }
5307
+
5308
+ on_estate_led_regency_surpassed = {
5309
+ if = {
5310
+ limit = {
5311
+ is_lesser_in_union = no
5312
+ num_of_powerful_estates = 1
5313
+ has_estate_led_regency = {
5314
+ estate = any
5315
+ }
5316
+ NOT = {
5317
+ estate_led_regency_influence = 70
5318
+ }
5319
+ OR = {
5320
+ AND = {
5321
+ has_estate_led_regency = {
5322
+ estate = estate_burghers
5323
+ }
5324
+ NOT = {
5325
+ has_estate_loyalty_modifier = {
5326
+ estate = estate_church
5327
+ modifier = REFUSED_REGENCY
5328
+ }
5329
+ }
5330
+ NOT = {
5331
+ has_estate_loyalty_modifier = {
5332
+ estate = estate_nobles
5333
+ modifier = REFUSED_REGENCY
5334
+ }
5335
+ }
5336
+ }
5337
+ AND = {
5338
+ has_estate_led_regency = {
5339
+ estate = estate_church
5340
+ }
5341
+ NOT = {
5342
+ has_estate_loyalty_modifier = {
5343
+ estate = estate_burghers
5344
+ modifier = REFUSED_REGENCY
5345
+ }
5346
+ }
5347
+ NOT = {
5348
+ has_estate_loyalty_modifier = {
5349
+ estate = estate_nobles
5350
+ modifier = REFUSED_REGENCY
5351
+ }
5352
+ }
5353
+ }
5354
+ AND = {
5355
+ has_estate_led_regency = {
5356
+ estate = estate_nobles
5357
+ }
5358
+ NOT = {
5359
+ has_estate_loyalty_modifier = {
5360
+ estate = estate_burghers
5361
+ modifier = REFUSED_REGENCY
5362
+ }
5363
+ }
5364
+ NOT = {
5365
+ has_estate_loyalty_modifier = {
5366
+ estate = estate_church
5367
+ modifier = REFUSED_REGENCY
5368
+ }
5369
+ }
5370
+ }
5371
+ }
5372
+ }
5373
+ country_event = { id = estate_regency_events.1 }
5374
+ }
5375
+ }
5376
+
5377
+ on_extended_regency = {
5378
+ random_events = {
5379
+ 100 = extended_regency_events.4
5380
+ 100 = extended_regency_events.5
5381
+ 100 = extended_regency_events.6
5382
+
5383
+ 300 = 0
5384
+ }
5385
+ }
5386
+
5387
+ on_estate_removed = {
5388
+ if = {
5389
+ limit = {
5390
+ has_country_modifier = dhimmi_building_restrictions
5391
+ NOT = {
5392
+ has_estate = estate_dhimmi
5393
+ }
5394
+ }
5395
+ remove_country_modifier = dhimmi_building_restrictions
5396
+ }
5397
+ if = {
5398
+ limit = {
5399
+ has_country_modifier = swe_debt_with_the_clergy
5400
+ NOT = { has_estate = estate_church }
5401
+ }
5402
+ remove_country_modifier = swe_debt_with_the_clergy
5403
+ }
5404
+ if = {
5405
+ limit = {
5406
+ has_country_modifier = swe_debt_with_the_burghers
5407
+ NOT = { has_estate = estate_burghers }
5408
+ }
5409
+ remove_country_modifier = swe_debt_with_the_burghers
5410
+ }
5411
+ if = {
5412
+ limit = {
5413
+ has_country_modifier = swe_debt_with_the_nobles
5414
+ NOT = { has_estate = estate_nobles }
5415
+ }
5416
+ remove_country_modifier = swe_debt_with_the_nobles
5417
+ }
5418
+ }
5419
+
5420
+ ##scope = colony province, FROM = owner country or province if there's a minority expulsion source, fires when the colony is created
5421
+ on_colony_established = {
5422
+ }
5423
+
5424
+ #scope = new country, FROM = parent country
5425
+ on_colonial_nation_established = {
5426
+ }
5427
+
5428
+ ##scope = colony province, FROM = owner country or province if there's a minority expulsion source
5429
+ on_colonist_boosting_colony = {
5430
+ on_colonist_boosting_colony_effect = yes
5431
+ }
5432
+
5433
+ #ROOT = converted country, FROM = country which force converts ROOT, on_action gets called on Force religion peace and Enforce Religion subject interaction
5434
+ on_force_conversion = {
5435
+ on_force_conversion_effect = yes
5436
+ }
5437
+
5438
+ on_institution_embracement = {
5439
+ if = {
5440
+ limit = {
5441
+ has_government_attribute = monarch_power_on_institutions
5442
+ }
5443
+ add_adm_power = 100
5444
+ add_dip_power = 100
5445
+ add_mil_power = 100
5446
+ }
5447
+ }
5448
+ on_national_focus_change = {}
5449
+
5450
+ on_capital_moved = {
5451
+ on_capital_moved_effect = yes
5452
+ }
5453
+
5454
+ #ROOT = province that was expanded in, FROM = country that did it
5455
+ on_expanded_infrastructure = {
5456
+ }
5457
+
5458
+ #ROOT = province that was centralized in
5459
+ on_centralized_state = {
5460
+ if = {
5461
+ limit = {
5462
+ owner = { has_government_attribute = centralize_state_no_reform_cost }
5463
+ }
5464
+ owner = {
5465
+ add_adm_power = 50
5466
+ change_government_reform_progress = 50
5467
+ }
5468
+ }
5469
+ else_if = {
5470
+ limit = {
5471
+ owner = { has_government_attribute = centralize_state_half_refund }
5472
+ }
5473
+ owner = {
5474
+ add_adm_power = 25
5475
+ change_government_reform_progress = 25
5476
+ }
5477
+ }
5478
+ if = {
5479
+ limit = {
5480
+ owner = { has_government_attribute = centralize_state_development }
5481
+ }
5482
+ area = {
5483
+ limit = {
5484
+ owned_by = ROOT
5485
+ }
5486
+ random_list = {
5487
+ 1 = { add_base_tax = 1 }
5488
+ 1 = { add_base_production = 1 }
5489
+ 1 = { add_base_manpower = 1 }
5490
+ }
5491
+ }
5492
+ }
5493
+ }
5494
+
5495
+ #ROOT = country
5496
+ monarch_on_shipwreck = {
5497
+ }
5498
+ heir_on_shipwreck = {
5499
+ }
5500
+ consort_on_shipwreck = {
5501
+ }
5502
+
5503
+ #ROOT = country
5504
+ on_defender_of_faith_loss = {
5505
+ on_defender_of_faith_loss_effect = yes
5506
+ }
5507
+ on_defender_of_faith_claim = {
5508
+ on_defender_of_faith_claim_effect = yes
5509
+ }
5510
+ on_hre_dismantled = {
5511
+ country_event = {
5512
+ id = hre_event.15
5513
+ }
5514
+ if = {
5515
+ limit = { has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag }
5516
+ clr_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
5517
+ set_country_flag = fra_fufujoni_flag
5518
+ swap_non_generic_missions = yes
5519
+ }
5520
+ }
5521
+ on_new_age = {
5522
+ events = {
5523
+ flavor_rus.44 #Update the Russian mission tree
5524
+ flavor_gbr.122 #Assign Religious Chaos to England
5525
+ }
5526
+ set_age_passed_global_flag = yes
5527
+ remove_all_age_timed_modifiers = yes
5528
+ if = {
5529
+ limit = {
5530
+ OR = {
5531
+ has_country_modifier = rise_of_the_ottomans
5532
+ has_country_modifier = zenith_of_the_ottomans
5533
+ has_country_modifier = twilight_of_the_ottomans
5534
+ has_country_modifier = decline_of_the_ottomans
5535
+ }
5536
+ }
5537
+ remove_country_modifier = rise_of_the_ottomans
5538
+ remove_country_modifier = zenith_of_the_ottomans
5539
+ remove_country_modifier = twilight_of_the_ottomans
5540
+ remove_country_modifier = decline_of_the_ottomans
5541
+ }
5542
+ if = {
5543
+ limit = {
5544
+ has_government_mechanic = ottoman_decadence_mechanic
5545
+ current_age = age_of_discovery
5546
+ }
5547
+ add_country_modifier = {
5548
+ name = rise_of_the_ottomans
5549
+ duration = -1
5550
+ desc = until_end_of_age_desc
5551
+ }
5552
+ }
5553
+ if = {
5554
+ limit = {
5555
+ has_government_mechanic = ottoman_decadence_mechanic
5556
+ current_age = age_of_reformation
5557
+ }
5558
+ add_country_modifier = {
5559
+ name = zenith_of_the_ottomans
5560
+ duration = -1
5561
+ desc = until_end_of_age_desc
5562
+ }
5563
+ }
5564
+ if = {
5565
+ limit = {
5566
+ has_government_mechanic = ottoman_decadence_mechanic
5567
+ current_age = age_of_absolutism
5568
+ }
5569
+ add_country_modifier = {
5570
+ name = twilight_of_the_ottomans
5571
+ duration = -1
5572
+ desc = until_end_of_age_desc
5573
+ }
5574
+ }
5575
+ if = {
5576
+ limit = {
5577
+ has_government_mechanic = ottoman_decadence_mechanic
5578
+ current_age = age_of_revolutions
5579
+ }
5580
+ add_country_modifier = {
5581
+ name = decline_of_the_ottomans
5582
+ duration = -1
5583
+ desc = until_end_of_age_desc
5584
+ }
5585
+ }
5586
+ }
5587
+
5588
+ #ROOT = province
5589
+ on_adm_exploited = {
5590
+ if = {
5591
+ limit = { owner = { has_government_attribute = may_not_reduce_tax_on_exploitation } }
5592
+ random = {
5593
+ chance = 50
5594
+ add_base_tax = 1
5595
+ }
5596
+ }
5597
+ if = {
5598
+ limit = { owner = { has_government_attribute = may_not_reduce_tax_on_own_exploitation culture_group = ROOT } }
5599
+ random = {
5600
+ chance = 25
5601
+ add_base_tax = 1
5602
+ }
5603
+ }
5604
+ if = {
5605
+ limit = { owner = { has_government_attribute = may_not_reduce_tax_on_foreign_exploitation NOT = { culture_group = ROOT } } }
5606
+ random = {
5607
+ chance = 50
5608
+ add_base_tax = 1
5609
+ }
5610
+ }
5611
+ }
5612
+ on_dip_exploited = {
5613
+ }
5614
+ on_mil_exploited = {
5615
+ }
5616
+ on_raze = {
5617
+ add_permanent_province_modifier = {
5618
+ name = province_razed
5619
+ duration = 7300
5620
+ }
5621
+ }
5622
+ on_concentrate_development = {
5623
+ if = {
5624
+ limit = {
5625
+ owner = { has_country_modifier = fra_french_isles_modifier }
5626
+ }
5627
+ add_nationalism = -5
5628
+ }
5629
+ }
5630
+
5631
+ on_slacken_start = {
5632
+ add_country_modifier = {
5633
+ name = slackening_modifier
5634
+ duration = -1
5635
+ }
5636
+ }
5637
+ on_slacken_stop = {
5638
+ remove_country_modifier = slackening_modifier
5639
+ }
5640
+
5641
+ on_colony_finished = { #ROOT - Province
5642
+ on_colony_finished_effect = yes
5643
+ }
5644
+
5645
+ on_advisor_hired = { #ROOT - Country
5646
+
5647
+ }
5648
+
5649
+ on_adm_advisor_hired = { #ROOT - Country, executed after on_advisor_hired!
5650
+
5651
+ }
5652
+
5653
+ on_dip_advisor_hired = { #ROOT - Country, executed after on_advisor_hired!
5654
+
5655
+ }
5656
+
5657
+ on_mil_advisor_hired = { #ROOT - Country, executed after on_advisor_hired!
5658
+
5659
+ }
5660
+
5661
+ on_core = { #ROOT - Province, #FROM - Country that gets the core
5662
+
5663
+ }
5664
+
5665
+ on_tech_taken = { #ROOT - Country
5666
+
5667
+ }
5668
+
5669
+ on_adm_tech_taken = { #ROOT - Country, executed after on_tech_taken!
5670
+
5671
+ }
5672
+
5673
+ on_dip_tech_taken = { #ROOT - Country, executed after on_tech_taken!
5674
+
5675
+ }
5676
+
5677
+ on_mil_tech_taken = { #ROOT - Country, executed after on_tech_taken!
5678
+
5679
+ }
5680
+
5681
+ on_barrage = { #ROOT - barraging country, FROM - barraged province
5682
+
5683
+ }
5684
+
5685
+ on_naval_barrage = { #ROOT - barraging country, FROM - barraged province
5686
+
5687
+ }
5688
+
5689
+ on_scorch_earth = { #ROOT - scorching country, FROM - scorched province
5690
+
5691
+ }
5692
+
5693
+ on_war_ended = { #ROOT - Winer FROM - Loser
5694
+
5695
+ }
5696
+
5697
+ on_alliance_broken = { #ROOT - Original alliance creator, FROM - Alliance accepter
5698
+ on_alliance_broken_effect = yes
5699
+ if = {
5700
+ limit = { has_country_modifier = grain_trade_imports_modifier }
5701
+ remove_country_modifier = grain_trade_imports_modifier
5702
+ }
5703
+ FROM = {
5704
+ if = {
5705
+ limit = { has_country_modifier = grain_trade_imports_modifier }
5706
+ remove_country_modifier = grain_trade_imports_modifier
5707
+ }
5708
+ }
5709
+ if = {
5710
+ limit = { has_country_flag = enable_galleass }
5711
+ clr_country_flag = enable_galleass
5712
+ }
5713
+ FROM = {
5714
+ if = {
5715
+ limit = { has_country_flag = enable_galleass }
5716
+ clr_country_flag = enable_galleass
5717
+ }
5718
+ }
5719
+ }
5720
+
5721
+ on_royal_marriage_broken = { #ROOT - Original marriage creator, FROM - Marriage accepter
5722
+
5723
+ }
5724
+
5725
+ on_alliance_created = { #ROOT - Alliance sender, FROM - Alliance accepter
5726
+
5727
+ }
5728
+
5729
+ on_royal_marriage = { #ROOT - Marraige sender, FROM - marriage accepter
5730
+
5731
+ }
5732
+
5733
+ on_heir_disinherited = {
5734
+ on_heir_disinherited_or_death_effect = yes
5735
+ }
5736
+ on_overrun = { #ROOT - winner, FROM - loser, on stackwipe
5737
+
4171
5738
  }