Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. common/triggered_modifiers/00_triggered_modifiers.txt +145 -38
common/triggered_modifiers/00_triggered_modifiers.txt CHANGED
@@ -3,7 +3,6 @@
3
3
  #
4
4
  # Effects are fully scriptable here.
5
5
 
6
-
7
6
  ###########################################
8
7
  # Discovery of the East Indian trade route.
9
8
  ###########################################
@@ -27,14 +26,11 @@ east_indian_trade_route = {
27
26
  has_discovered = 1460 # Cape of Good Hope
28
27
  num_of_ports = 4
29
28
  has_idea = quest_for_the_new_world
30
- any_active_trade_node = {
31
- has_merchant = ROOT
32
- OR = {
33
- province_id = 1361 # Straits of Johor
34
- province_id = 1343 # Ganges Delta
35
- province_id = 504 # Sind
36
- province_id = 1340 # Comorin Cape
37
- }
29
+ OR = {
30
+ 1361 = { has_merchant = ROOT } #Straits of Johor
31
+ 1343 = { has_merchant = ROOT } #Ganges Delta
32
+ 504 = { has_merchant = ROOT } #Sind
33
+ 1340 = { has_merchant = ROOT } #Comorin Cape
38
34
  }
39
35
  }
40
36
 
@@ -293,25 +289,6 @@ custodian_of_the_two_holy_mosques = {
293
289
  ######################################
294
290
  # Catholic control of Rome.
295
291
  ######################################
296
- catholic_rome = {
297
- potential = {
298
- normal_or_historical_nations = yes
299
- has_discovered = 118 # Roma
300
- religion = catholic
301
- NOT = { tag = PAP }
302
- }
303
-
304
- trigger = {
305
- NOT = { overlord_of = PAP }
306
- owns_or_vassal_of = 118 # Roma
307
- NOT = { tag = ITA }
308
- NOT = { tag = ROM }
309
- }
310
-
311
- papal_influence = -10
312
- diplomatic_reputation = -1
313
- #icon = 9
314
- }
315
292
 
316
293
  papal_subjugation = {
317
294
  potential = {
@@ -324,6 +301,35 @@ papal_subjugation = {
324
301
  trigger = {
325
302
  overlord_of = PAP
326
303
  NOT = { tag = ITA }
304
+ NOT = { tag = HLR }
305
+ if = {
306
+ limit = {
307
+ is_emperor = yes
308
+ has_dlc = "Emperor"
309
+ }
310
+ OR = {
311
+ PAP = {
312
+ NOT = { is_part_of_hre = yes } #Needs to be written like that for localization purpose
313
+ }
314
+ NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
315
+ }
316
+ }
317
+ else_if = {
318
+ limit = {
319
+ is_emperor = yes
320
+ NOT = { has_dlc = "Emperor" }
321
+ }
322
+ OR = {
323
+ PAP = {
324
+ NOT = { is_part_of_hre = yes } #Needs to be written like that for localization purpose
325
+ }
326
+ NOT = { hre_reform_passed = privilegia_de_non_appelando }
327
+ }
328
+ }
329
+ custom_trigger_tooltip = {
330
+ tooltip = no_dip_malus_reward_tt
331
+ NOT = { has_country_flag = general_flag_for_FU_Rome_flag }
332
+ }
327
333
  }
328
334
 
329
335
  diplomatic_reputation = -2
@@ -368,20 +374,20 @@ rapid_collapse_of_society = {
368
374
  ######################################
369
375
  submission_to_emperor = {
370
376
  potential = {
377
+ # AI will avoid joining HRE when this modifier is potential:
378
+
371
379
  has_global_flag = italians_leave_hre
372
380
  NOT = { has_country_flag = reined_in_for_shadow_kingdom }
373
- is_part_of_hre = yes
381
+ is_emperor = no
382
+ NOT = { is_year = 1550 }
374
383
  culture_group = latin
375
384
  }
376
385
 
377
386
  trigger = {
378
- is_emperor = no
387
+ is_part_of_hre = yes
379
388
  NOT = { tag = ITA }
380
- capital_scope = {
381
- is_part_of_hre = yes
382
- }
383
- NOT = { is_year = 1550 }
384
389
  NOT = { emperor = { alliance_with = ROOT } }
390
+ NOT = { is_year = 1550 } # Duplicating so it shows in tooltip
385
391
  }
386
392
 
387
393
  global_unrest = 3
@@ -400,8 +406,11 @@ counter_revolution = {
400
406
  is_revolutionary = no
401
407
  any_country = {
402
408
  is_revolution_target = yes
403
- capital_scope = {
404
- continent = ROOT
409
+ OR = {
410
+ capital_scope = {
411
+ continent = ROOT
412
+ }
413
+ is_neighbor_of = ROOT
405
414
  }
406
415
  }
407
416
  }
@@ -582,6 +591,30 @@ the_mandate_of_heaven_lost = {
582
591
  global_unrest = 10
583
592
  }
584
593
 
594
+ ai_wants_chinese_capitals = {
595
+ potential = {
596
+ ai = yes
597
+ OR = {
598
+ owns = 1816
599
+ owns = 1821
600
+ owns = 667
601
+ }
602
+ has_dlc = "Mandate of Heaven"
603
+ capital_scope = {
604
+ superregion = china_superregion
605
+ }
606
+ }
607
+ trigger = {
608
+ owns = 1816
609
+ owns = 1821
610
+ owns = 667
611
+ }
612
+
613
+ ai_weight = {
614
+ factor = 100 # Makes AI try to conquer the cities
615
+ }
616
+ }
617
+
585
618
  lost_control_of_beijing = {
586
619
  potential = {
587
620
  has_reform = celestial_empire
@@ -595,6 +628,10 @@ lost_control_of_beijing = {
595
628
  }
596
629
  }
597
630
 
631
+ ai_weight = {
632
+ factor = -1000 # Do what you can to avoid this modifier
633
+ }
634
+
598
635
  imperial_mandate = -0.05
599
636
  }
600
637
 
@@ -611,6 +648,10 @@ lost_control_of_nanjing = {
611
648
  }
612
649
  }
613
650
 
651
+ ai_weight = {
652
+ factor = -1000 # Do what you can to avoid this modifier
653
+ }
654
+
614
655
  imperial_mandate = -0.05
615
656
  }
616
657
 
@@ -627,6 +668,10 @@ lost_control_of_canton = {
627
668
  }
628
669
  }
629
670
 
671
+ ai_weight = {
672
+ factor = -1000 # Do what you can to avoid this modifier
673
+ }
674
+
630
675
  imperial_mandate = -0.05
631
676
  }
632
677
 
@@ -768,7 +813,7 @@ great_peasants_war_triggered_modifier = {
768
813
  }
769
814
  trigger = {
770
815
  is_part_of_hre = yes
771
- NOT = { has_reform = peasants_republic }
816
+ NOT = { has_government_attribute = is_peasants_republic }
772
817
  }
773
818
  global_unrest = 6
774
819
  }
@@ -785,7 +830,7 @@ great_peasants_war_concessions_triggered_modifier = {
785
830
  }
786
831
  trigger = {
787
832
  is_part_of_hre = yes
788
- NOT = { has_reform = peasants_republic }
833
+ NOT = { has_government_attribute = is_peasants_republic }
789
834
  }
790
835
  global_tax_modifier = -0.05
791
836
  }
@@ -864,4 +909,66 @@ defense_of_the_empire_modifier = {
864
909
  }
865
910
  }
866
911
  war_taxes_cost_modifier = -1.0
912
+ }
913
+
914
+ ######################################
915
+ # Judaism Defensive Aspect
916
+ ######################################
917
+
918
+ judaism_yom_kippur_aspect_war_modifier = {
919
+ potential = {
920
+ religion = jewish
921
+ has_church_aspect = judaism_yom_kippur_aspect
922
+ }
923
+ trigger = {
924
+ is_at_war = yes
925
+ }
926
+ manpower_recovery_speed = 0.20
927
+ church_power_modifier = 0.25
928
+ }
929
+
930
+ judaism_yom_kippur_aspect_defensive_war_modifier = {
931
+ potential = {
932
+ religion = jewish
933
+ has_church_aspect = judaism_yom_kippur_aspect
934
+ }
935
+ trigger = {
936
+ is_at_war = yes
937
+ is_in_war = {
938
+ defenders = ROOT
939
+ }
940
+ }
941
+ manpower_recovery_speed = 0.20
942
+ church_power_modifier = 0.25
943
+ }
944
+
945
+ ######################################
946
+ # Government Reform Specific
947
+ ######################################
948
+
949
+ ahmudan_system_attacker = {
950
+ potential = {
951
+ has_government_attribute = ahmudan_system
952
+ }
953
+
954
+ trigger = {
955
+ is_at_war = yes
956
+ }
957
+ global_regiment_cost = -0.1
958
+ manpower_recovery_speed = 0.2
959
+ }
960
+
961
+ ahmudan_system_defender = {
962
+ potential = {
963
+ has_government_attribute = ahmudan_system
964
+ }
965
+
966
+ trigger = {
967
+ is_in_war = {
968
+ defenders = ROOT
969
+ }
970
+ }
971
+ land_morale = 0.075
972
+ defensiveness = 0.15
973
+ manpower_recovery_speed = 0.1
867
974
  }