Diff to HTML by rtfpessoa

Files changed (15) hide show
  1. common/achievements.txt +41 -23
  2. common/advisortypes/00_advisortypes.txt +8 -0
  3. common/ages/00_default.txt +1 -0
  4. common/custom_gui/mission_previews.txt +378 -60
  5. common/disasters/georgian_crisis.txt +1 -0
  6. common/estate_agendas/10_qizilbash_agendas.txt +60 -5
  7. common/event_modifiers/00_event_modifiers.txt +1 -1
  8. common/government_reforms/01_government_reforms_monarchies.txt +7 -1
  9. common/great_projects/01_monuments.txt +30 -20
  10. common/on_actions/00_on_actions.txt +1 -0
  11. common/scripted_effects/00_scripted_effects.txt +11 -1
  12. common/scripted_effects/01_scripted_effects_for_estates.txt +11 -0
  13. common/scripted_effects/02_scripted_effects_mission_rewards.txt +910 -42
  14. common/scripted_triggers/00_scripted_triggers.txt +66 -36
  15. common/scripted_triggers/02_scripted_triggers_missions.txt +485 -36
common/achievements.txt CHANGED
@@ -2852,7 +2852,10 @@ achievement_shahanshah = {
2852
2852
 
2853
2853
  happened = {
2854
2854
  has_switched_nation = no
2855
- tag = PER
2855
+ or = {
2856
+ tag = ERS
2857
+ tag = PER
2858
+ }
2856
2859
  }
2857
2860
  }
2858
2861
 
@@ -3775,7 +3778,10 @@ achievement_this_is_persia = {
3775
3778
  OR = {
3776
3779
  culture_group = iranian
3777
3780
  primary_culture = azerbaijani
3778
- tag = PER
3781
+ or = {
3782
+ tag = ERS
3783
+ tag = PER
3784
+ }
3779
3785
  }
3780
3786
  }
3781
3787
 
@@ -3794,7 +3800,10 @@ achievement_this_is_persia = {
3794
3800
  }
3795
3801
 
3796
3802
  happened = {
3797
- tag = PER
3803
+ or = {
3804
+ tag = ERS
3805
+ tag = PER
3806
+ }
3798
3807
  has_switched_nation = no
3799
3808
  anatolia_region = {
3800
3809
  type = all
@@ -8030,7 +8039,7 @@ achievement_around_the_world_in_eighty_years = {
8030
8039
  provinces_to_highlight = {
8031
8040
  OR = {
8032
8041
  province_id = 965 #New York
8033
- province_id = 869 #San Francisco
8042
+ province_id = 4637 #San Francisco
8034
8043
  province_id = 2315 #Suez
8035
8044
  province_id = 529 #Bombay
8036
8045
  province_id = 561 #Calcutta
@@ -8042,7 +8051,7 @@ achievement_around_the_world_in_eighty_years = {
8042
8051
  happened = {
8043
8052
  NOT = { is_date = 1524.11.11 }
8044
8053
  owns = 965 #New York
8045
- owns = 869 #San Francisco
8054
+ owns = 4637 #San Francisco
8046
8055
  owns = 2315 #Suez
8047
8056
  owns = 529 #Bombay
8048
8057
  owns = 561 #Calcutta
@@ -11575,21 +11584,7 @@ achievement_mehmet_ambition = {
11575
11584
  id = 348
11576
11585
  localization = NEW_ACHIEVEMENT_98
11577
11586
  provinces_to_highlight = {
11578
- OR = {
11579
- region = italy_region
11580
- region = france_region
11581
- region = iberia_region
11582
- region = mashriq_region
11583
- region = balkan_region
11584
- region = anatolia_region
11585
- province_id = 343 # Fez
11586
- province_id = 341 # Tunis
11587
- province_id = 361 # Cairo
11588
- province_id = 236 # London
11589
- province_id = 245 # Yorkshire
11590
- province_id = 96 # Zeeland
11591
- province_id = 134 # Vienna
11592
- }
11587
+ BYZ_roman_empire_decision_trigger = yes
11593
11588
  owner = {
11594
11589
  NOT = { tag = ROOT }
11595
11590
  OR = {
@@ -11925,6 +11920,9 @@ achievement_reapers = {
11925
11920
  achievement_king_of_kings = {
11926
11921
  id = 356
11927
11922
  localization = NEW_ACHIEVEMENT_106
11923
+ visible = {
11924
+ has_dlc = "King of Kings"
11925
+ }
11928
11926
  possible = {
11929
11927
  normal_or_historical_nations = yes
11930
11928
  normal_province_values = yes
@@ -12129,6 +12127,9 @@ achievement_mets_hayk = {
12129
12127
  achievement_desert_power = {
12130
12128
  id = 359
12131
12129
  localization = NEW_ACHIEVEMENT_109
12130
+ visible = {
12131
+ has_dlc = "King of Kings"
12132
+ }
12132
12133
  possible = {
12133
12134
  normal_or_historical_nations = yes
12134
12135
  normal_province_values = yes
@@ -12156,6 +12157,9 @@ achievement_desert_power = {
12156
12157
  achievement_breadbasket_of_the_world = {
12157
12158
  id = 360
12158
12159
  localization = NEW_ACHIEVEMENT_110
12160
+ visible = {
12161
+ has_dlc = "King of Kings"
12162
+ }
12159
12163
  possible = {
12160
12164
  normal_or_historical_nations = yes
12161
12165
  normal_province_values = yes
@@ -12255,6 +12259,15 @@ achievement_the_last_crusade = {
12255
12259
  achievement_legacy_saint_george = {
12256
12260
  id = 363
12257
12261
  localization = NEW_ACHIEVEMENT_113
12262
+ visible = {
12263
+ or = {
12264
+ and = {
12265
+ was_never_end_game_tag_trigger = yes
12266
+ primary_culture = georgian
12267
+ }
12268
+ tag = GEO
12269
+ }
12270
+ }
12258
12271
  provinces_to_highlight = {
12259
12272
  area = wales_area
12260
12273
  NOT = { country_or_non_sovereign_subject_holds = ROOT }
@@ -12281,8 +12294,10 @@ achievement_legacy_saint_george = {
12281
12294
 
12282
12295
  achievement_zoroaustrians = {
12283
12296
  id = 364
12284
- localization = NEW_ACHIEVEMENT_114
12285
-
12297
+ localization = NEW_ACHIEVEMENT_114
12298
+ visible = {
12299
+ has_dlc = "King of Kings"
12300
+ }
12286
12301
  possible = {
12287
12302
  normal_or_historical_nations = yes
12288
12303
  normal_province_values = yes
@@ -12292,7 +12307,10 @@ achievement_zoroaustrians = {
12292
12307
  tag = HAB
12293
12308
  }
12294
12309
  happened = {
12295
- tag = PER
12310
+ or = {
12311
+ tag = ERS
12312
+ tag = PER
12313
+ }
12296
12314
  mission_completed = per_a_new_eranshahr
12297
12315
  mission_completed = per_an_asha_empire
12298
12316
  }
common/advisortypes/00_advisortypes.txt CHANGED
@@ -948,6 +948,14 @@ statesman = {
948
948
  trade_efficiency = 0.02
949
949
  }
950
950
  }
951
+ skill_scaled_modifier = {
952
+ trigger = {
953
+ owner = { has_government_attribute = enables_statesman_autonomy_reduction }
954
+ }
955
+ modifier = {
956
+ global_autonomy = -0.01
957
+ }
958
+ }
951
959
 
952
960
  chance = {
953
961
  factor = 1
common/ages/00_default.txt CHANGED
@@ -433,6 +433,7 @@ age_of_reformation = {
433
433
  has_country_flag = enable_persian_age_ability_flag
434
434
  }
435
435
  tag = PER
436
+ tag = ERS
436
437
  }
437
438
  }
438
439
  modifier = {
common/custom_gui/mission_previews.txt CHANGED
@@ -1,142 +1,460 @@
1
+ #First batch (aka. the first top row you see)
1
2
  custom_button = {
2
- name = select_current_branch_missions
3
+ name = select_current_branch_batch_1_missions
3
4
  potential = {
4
5
  ai = no #make sure the AI gets an event or something similar where they can choose their branch the moment these buttons get unlocked for the player
5
6
  has_branching_missions = yes
6
7
  has_preview_mission_flag = yes
8
+ can_preview_batch = { batch = 1 }
7
9
  }
8
- trigger = { has_selected_a_branch = yes }
9
- effect = { select_current_branch = yes }
10
- tooltip = select_current_branch_missions_title
10
+ trigger = { has_selected_a_branch = { batch = 1 } }
11
+ effect = { select_current_branch = { batch = 1 } }
12
+ tooltip = select_current_branch_batch_1_missions_title
11
13
  }
12
14
 
13
15
  custom_button = {
14
- name = preview_branch_missions_1
16
+ name = preview_branch_batch_1_missions_1
15
17
  potential = {
16
18
  ai = no
17
19
  has_branching_missions = yes
18
20
  has_preview_mission_flag = yes
19
- NOT = { currently_selected_branch = { value = 1 } }
21
+ can_preview_batch = { batch = 1 }
22
+ NOT = { currently_selected_branch = { value = 1 batch = 1 } }
20
23
  }
21
- trigger = { can_select_branch = { value = 1 } }
22
- effect = { preview_mission_branch = { branch = 1 } }
23
- tooltip = preview_branch_missions_1_title
24
+ trigger = { can_select_branch = { value = 1 batch = 1 } }
25
+ effect = { preview_mission_branch = { branch = 1 batch = 1 } }
26
+ tooltip = preview_branch_batch_1_missions_1_title
24
27
  }
25
28
  custom_button = {
26
- name = preview_branch_missions_1_highlighted
29
+ name = preview_branch_batch_1_missions_1_highlighted
27
30
  potential = {
28
31
  ai = no
29
32
  has_branching_missions = yes
30
33
  has_preview_mission_flag = yes
31
- currently_selected_branch = { value = 1 }
34
+ can_preview_batch = { batch = 1 }
35
+ currently_selected_branch = { value = 1 batch = 1 }
32
36
  }
33
- trigger = { can_select_branch = { value = 1 } }
34
- effect = { preview_mission_branch = { branch = 1 } }
35
- tooltip = preview_branch_missions_1_title
37
+ trigger = { can_select_branch = { value = 1 batch = 1 } }
38
+ effect = { preview_mission_branch = { branch = 1 batch = 1 } }
39
+ tooltip = preview_branch_batch_1_missions_1_title
36
40
  }
37
41
 
38
42
  custom_button = {
39
- name = preview_branch_missions_2
43
+ name = preview_branch_batch_1_missions_2
40
44
  potential = {
41
45
  ai = no
42
46
  has_branching_missions = yes
43
47
  has_preview_mission_flag = yes
44
- NOT = { currently_selected_branch = { value = 2 } }
48
+ can_preview_batch = { batch = 1 }
49
+ NOT = { currently_selected_branch = { value = 2 batch = 1 } }
45
50
  }
46
- trigger = { can_select_branch = { value = 2 } }
47
- effect = { preview_mission_branch = { branch = 2 } }
48
- tooltip = preview_branch_missions_2_title
51
+ trigger = { can_select_branch = { value = 2 batch = 1 } }
52
+ effect = { preview_mission_branch = { branch = 2 batch = 1 } }
53
+ tooltip = preview_branch_batch_1_missions_2_title
49
54
  }
50
55
  custom_button = {
51
- name = preview_branch_missions_2_highlighted
56
+ name = preview_branch_batch_1_missions_2_highlighted
52
57
  potential = {
53
58
  ai = no
54
59
  has_branching_missions = yes
55
60
  has_preview_mission_flag = yes
56
- currently_selected_branch = { value = 2 }
61
+ can_preview_batch = { batch = 1 }
62
+ currently_selected_branch = { value = 2 batch = 1 }
57
63
  }
58
- trigger = { can_select_branch = { value = 2 } }
59
- effect = { preview_mission_branch = { branch = 2 } }
60
- tooltip = preview_branch_missions_2_title
64
+ trigger = { can_select_branch = { value = 2 batch = 1 } }
65
+ effect = { preview_mission_branch = { branch = 2 batch = 1 } }
66
+ tooltip = preview_branch_batch_1_missions_2_title
61
67
  }
62
68
 
63
69
  custom_button = {
64
- name = preview_branch_missions_3
70
+ name = preview_branch_batch_1_missions_3
65
71
  potential = {
66
72
  ai = no
67
73
  has_branching_missions = yes
68
74
  has_preview_mission_flag = yes
69
- num_of_mission_branches = { value = 3 }
70
- NOT = { currently_selected_branch = { value = 3 } }
75
+ can_preview_batch = { batch = 1 }
76
+ num_of_mission_branches = { value = 3 batch = 1 }
77
+ NOT = { currently_selected_branch = { value = 3 batch = 1 } }
71
78
  }
72
- trigger = { can_select_branch = { value = 3 } }
73
- effect = { preview_mission_branch = { branch = 3 } }
74
- tooltip = preview_branch_missions_3_title
79
+ trigger = { can_select_branch = { value = 3 batch = 1 } }
80
+ effect = { preview_mission_branch = { branch = 3 batch = 1 } }
81
+ tooltip = preview_branch_batch_1_missions_3_title
75
82
  }
76
83
  custom_button = {
77
- name = preview_branch_missions_3_highlighted
84
+ name = preview_branch_batch_1_missions_3_highlighted
78
85
  potential = {
79
86
  ai = no
80
87
  has_branching_missions = yes
81
88
  has_preview_mission_flag = yes
82
- num_of_mission_branches = { value = 3 }
83
- currently_selected_branch = { value = 3 }
89
+ can_preview_batch = { batch = 1 }
90
+ num_of_mission_branches = { value = 3 batch = 1 }
91
+ currently_selected_branch = { value = 3 batch = 1 }
84
92
  }
85
- trigger = { can_select_branch = { value = 3 } }
86
- effect = { preview_mission_branch = { branch = 3 } }
87
- tooltip = preview_branch_missions_3_title
93
+ trigger = { can_select_branch = { value = 3 batch = 1 } }
94
+ effect = { preview_mission_branch = { branch = 3 batch = 1 } }
95
+ tooltip = preview_branch_batch_1_missions_3_title
88
96
  }
89
97
 
90
98
  custom_button = {
91
- name = preview_branch_missions_4
99
+ name = preview_branch_batch_1_missions_4
92
100
  potential = {
93
101
  ai = no
94
102
  has_branching_missions = yes
95
103
  has_preview_mission_flag = yes
96
- num_of_mission_branches = { value = 4 }
97
- NOT = { currently_selected_branch = { value = 4 } }
104
+ can_preview_batch = { batch = 1 }
105
+ num_of_mission_branches = { value = 4 batch = 1 }
106
+ NOT = { currently_selected_branch = { value = 4 batch = 1 } }
98
107
  }
99
- trigger = { can_select_branch = { value = 4 } }
100
- effect = { preview_mission_branch = { branch = 4 } }
101
- tooltip = preview_branch_missions_4_title
108
+ trigger = { can_select_branch = { value = 4 batch = 1 } }
109
+ effect = { preview_mission_branch = { branch = 4 batch = 1 } }
110
+ tooltip = preview_branch_batch_1_missions_4_title
102
111
  }
103
112
  custom_button = {
104
- name = preview_branch_missions_4_highlighted
113
+ name = preview_branch_batch_1_missions_4_highlighted
105
114
  potential = {
106
115
  ai = no
107
116
  has_branching_missions = yes
108
117
  has_preview_mission_flag = yes
109
- num_of_mission_branches = { value = 4 }
110
- currently_selected_branch = { value = 4 }
118
+ can_preview_batch = { batch = 1 }
119
+ num_of_mission_branches = { value = 4 batch = 1 }
120
+ currently_selected_branch = { value = 4 batch = 1 }
111
121
  }
112
- trigger = { can_select_branch = { value = 4 } }
113
- effect = { preview_mission_branch = { branch = 4 } }
114
- tooltip = preview_branch_missions_4_title
122
+ trigger = { can_select_branch = { value = 4 batch = 1 } }
123
+ effect = { preview_mission_branch = { branch = 4 batch = 1 } }
124
+ tooltip = preview_branch_batch_1_missions_4_title
115
125
  }
116
126
 
117
127
  custom_button = {
118
- name = preview_branch_missions_5
128
+ name = preview_branch_batch_1_missions_5
119
129
  potential = {
120
130
  ai = no
121
131
  has_branching_missions = yes
122
132
  has_preview_mission_flag = yes
123
- num_of_mission_branches = { value = 5 }
124
- NOT = { currently_selected_branch = { value = 5 } }
133
+ can_preview_batch = { batch = 1 }
134
+ num_of_mission_branches = { value = 5 batch = 1 }
135
+ NOT = { currently_selected_branch = { value = 5 batch = 1 } }
125
136
  }
126
- trigger = { can_select_branch = { value = 5 } }
127
- effect = { preview_mission_branch = { branch = 5 } }
128
- tooltip = preview_branch_missions_5_title
137
+ trigger = { can_select_branch = { value = 5 batch = 1 } }
138
+ effect = { preview_mission_branch = { branch = 5 batch = 1 } }
139
+ tooltip = preview_branch_batch_1_missions_5_title
129
140
  }
130
141
  custom_button = {
131
- name = preview_branch_missions_5_highlighted
142
+ name = preview_branch_batch_1_missions_5_highlighted
132
143
  potential = {
133
144
  ai = no
134
145
  has_branching_missions = yes
135
146
  has_preview_mission_flag = yes
136
- num_of_mission_branches = { value = 5 }
137
- currently_selected_branch = { value = 5 }
147
+ can_preview_batch = { batch = 1 }
148
+ num_of_mission_branches = { value = 5 batch = 1 }
149
+ currently_selected_branch = { value = 5 batch = 1 }
138
150
  }
139
- trigger = { can_select_branch = { value = 5 } }
140
- effect = { preview_mission_branch = { branch = 5 } }
141
- tooltip = preview_branch_missions_5_title
151
+ trigger = { can_select_branch = { value = 5 batch = 1 } }
152
+ effect = { preview_mission_branch = { branch = 5 batch = 1 } }
153
+ tooltip = preview_branch_batch_1_missions_5_title
154
+ }
155
+
156
+ #Second batch
157
+ custom_button = {
158
+ name = select_current_branch_batch_2_missions
159
+ potential = {
160
+ ai = no
161
+ has_branching_missions = yes
162
+ has_preview_mission_flag = yes
163
+ can_preview_batch = { batch = 2 }
164
+ }
165
+ trigger = { has_selected_a_branch = { batch = 2 } }
166
+ effect = { select_current_branch = { batch = 2 } }
167
+ tooltip = select_current_branch_batch_2_missions_title
168
+ }
169
+
170
+ custom_button = {
171
+ name = preview_branch_batch_2_missions_1
172
+ potential = {
173
+ ai = no
174
+ has_branching_missions = yes
175
+ has_preview_mission_flag = yes
176
+ can_preview_batch = { batch = 2 }
177
+ NOT = { currently_selected_branch = { value = 1 batch = 2 } }
178
+ }
179
+ trigger = { can_select_branch = { value = 1 batch = 2 } }
180
+ effect = { preview_mission_branch = { branch = 1 batch = 2 } }
181
+ tooltip = preview_branch_batch_2_missions_1_title
182
+ }
183
+ custom_button = {
184
+ name = preview_branch_batch_2_missions_1_highlighted
185
+ potential = {
186
+ ai = no
187
+ has_branching_missions = yes
188
+ has_preview_mission_flag = yes
189
+ can_preview_batch = { batch = 2 }
190
+ currently_selected_branch = { value = 1 batch = 2 }
191
+ }
192
+ trigger = { can_select_branch = { value = 1 batch = 2 } }
193
+ effect = { preview_mission_branch = { branch = 1 batch = 2 } }
194
+ tooltip = preview_branch_batch_2_missions_1_title
195
+ }
196
+
197
+ custom_button = {
198
+ name = preview_branch_batch_2_missions_2
199
+ potential = {
200
+ ai = no
201
+ has_branching_missions = yes
202
+ has_preview_mission_flag = yes
203
+ can_preview_batch = { batch = 2 }
204
+ NOT = { currently_selected_branch = { value = 2 batch = 2 } }
205
+ }
206
+ trigger = { can_select_branch = { value = 2 batch = 2 } }
207
+ effect = { preview_mission_branch = { branch = 2 batch = 2 } }
208
+ tooltip = preview_branch_batch_2_missions_2_title
209
+ }
210
+ custom_button = {
211
+ name = preview_branch_batch_2_missions_2_highlighted
212
+ potential = {
213
+ ai = no
214
+ has_branching_missions = yes
215
+ has_preview_mission_flag = yes
216
+ can_preview_batch = { batch = 2 }
217
+ currently_selected_branch = { value = 2 batch = 2 }
218
+ }
219
+ trigger = { can_select_branch = { value = 2 batch = 2 } }
220
+ effect = { preview_mission_branch = { branch = 2 batch = 2 } }
221
+ tooltip = preview_branch_batch_2_missions_2_title
222
+ }
223
+
224
+ custom_button = {
225
+ name = preview_branch_batch_2_missions_3
226
+ potential = {
227
+ ai = no
228
+ has_branching_missions = yes
229
+ has_preview_mission_flag = yes
230
+ can_preview_batch = { batch = 2 }
231
+ num_of_mission_branches = { value = 3 batch = 2 }
232
+ NOT = { currently_selected_branch = { value = 3 batch = 2 } }
233
+ }
234
+ trigger = { can_select_branch = { value = 3 batch = 2 } }
235
+ effect = { preview_mission_branch = { branch = 3 batch = 2 } }
236
+ tooltip = preview_branch_batch_2_missions_3_title
237
+ }
238
+ custom_button = {
239
+ name = preview_branch_batch_2_missions_3_highlighted
240
+ potential = {
241
+ ai = no
242
+ has_branching_missions = yes
243
+ has_preview_mission_flag = yes
244
+ can_preview_batch = { batch = 2 }
245
+ num_of_mission_branches = { value = 3 batch = 2 }
246
+ currently_selected_branch = { value = 3 batch = 2 }
247
+ }
248
+ trigger = { can_select_branch = { value = 3 batch = 2 } }
249
+ effect = { preview_mission_branch = { branch = 3 batch = 2 } }
250
+ tooltip = preview_branch_batch_2_missions_3_title
251
+ }
252
+
253
+ custom_button = {
254
+ name = preview_branch_batch_2_missions_4
255
+ potential = {
256
+ ai = no
257
+ has_branching_missions = yes
258
+ has_preview_mission_flag = yes
259
+ num_of_mission_branches = { value = 4 batch = 2 }
260
+ NOT = { currently_selected_branch = { value = 4 batch = 2 } }
261
+ }
262
+ trigger = { can_select_branch = { value = 4 batch = 2 } }
263
+ effect = { preview_mission_branch = { branch = 4 batch = 2 } }
264
+ tooltip = preview_branch_batch_2_missions_4_title
265
+ }
266
+ custom_button = {
267
+ name = preview_branch_batch_2_missions_4_highlighted
268
+ potential = {
269
+ ai = no
270
+ has_branching_missions = yes
271
+ has_preview_mission_flag = yes
272
+ num_of_mission_branches = { value = 4 batch = 2 }
273
+ currently_selected_branch = { value = 4 batch = 2 }
274
+ }
275
+ trigger = { can_select_branch = { value = 4 batch = 2 } }
276
+ effect = { preview_mission_branch = { branch = 4 batch = 2 } }
277
+ tooltip = preview_branch_batch_2_missions_4_title
278
+ }
279
+
280
+ custom_button = {
281
+ name = preview_branch_batch_2_missions_5
282
+ potential = {
283
+ ai = no
284
+ has_branching_missions = yes
285
+ has_preview_mission_flag = yes
286
+ num_of_mission_branches = { value = 5 batch = 2 }
287
+ NOT = { currently_selected_branch = { value = 5 batch = 2 } }
288
+ }
289
+ trigger = { can_select_branch = { value = 5 batch = 2 } }
290
+ effect = { preview_mission_branch = { branch = 5 batch = 2 } }
291
+ tooltip = preview_branch_batch_2_missions_5_title
292
+ }
293
+ custom_button = {
294
+ name = preview_branch_batch_2_missions_5_highlighted
295
+ potential = {
296
+ ai = no
297
+ has_branching_missions = yes
298
+ has_preview_mission_flag = yes
299
+ num_of_mission_branches = { value = 5 batch = 2 }
300
+ currently_selected_branch = { value = 5 batch = 2 }
301
+ }
302
+ trigger = { can_select_branch = { value = 5 batch = 2 } }
303
+ effect = { preview_mission_branch = { branch = 5 batch = 2 } }
304
+ tooltip = preview_branch_batch_2_missions_5_title
305
+ }
306
+
307
+ #Third batch
308
+ custom_button = {
309
+ name = select_current_branch_batch_3_missions
310
+ potential = {
311
+ ai = no
312
+ has_branching_missions = yes
313
+ has_preview_mission_flag = yes
314
+ can_preview_batch = { batch = 3 }
315
+ }
316
+ trigger = { has_selected_a_branch = { batch = 3 } }
317
+ effect = { select_current_branch = { batch = 3 } }
318
+ tooltip = select_current_branch_batch_3_missions_title
319
+ }
320
+
321
+ custom_button = {
322
+ name = preview_branch_batch_3_missions_1
323
+ potential = {
324
+ ai = no
325
+ has_branching_missions = yes
326
+ has_preview_mission_flag = yes
327
+ can_preview_batch = { batch = 3 }
328
+ NOT = { currently_selected_branch = { value = 1 batch = 3 } }
329
+ }
330
+ trigger = { can_select_branch = { value = 1 batch = 3 } }
331
+ effect = { preview_mission_branch = { branch = 1 batch = 3 } }
332
+ tooltip = preview_branch_batch_3_missions_1_title
333
+ }
334
+ custom_button = {
335
+ name = preview_branch_batch_3_missions_1_highlighted
336
+ potential = {
337
+ ai = no
338
+ has_branching_missions = yes
339
+ has_preview_mission_flag = yes
340
+ can_preview_batch = { batch = 3 }
341
+ currently_selected_branch = { value = 1 batch = 3 }
342
+ }
343
+ trigger = { can_select_branch = { value = 1 batch = 3 } }
344
+ effect = { preview_mission_branch = { branch = 1 batch = 3 } }
345
+ tooltip = preview_branch_batch_3_missions_1_title
346
+ }
347
+
348
+ custom_button = {
349
+ name = preview_branch_batch_3_missions_2
350
+ potential = {
351
+ ai = no
352
+ has_branching_missions = yes
353
+ has_preview_mission_flag = yes
354
+ can_preview_batch = { batch = 3 }
355
+ NOT = { currently_selected_branch = { value = 2 batch = 3 } }
356
+ }
357
+ trigger = { can_select_branch = { value = 2 batch = 3 } }
358
+ effect = { preview_mission_branch = { branch = 2 batch = 3 } }
359
+ tooltip = preview_branch_batch_3_missions_2_title
360
+ }
361
+ custom_button = {
362
+ name = preview_branch_batch_3_missions_2_highlighted
363
+ potential = {
364
+ ai = no
365
+ has_branching_missions = yes
366
+ has_preview_mission_flag = yes
367
+ can_preview_batch = { batch = 3 }
368
+ currently_selected_branch = { value = 2 batch = 3 }
369
+ }
370
+ trigger = { can_select_branch = { value = 2 batch = 3 } }
371
+ effect = { preview_mission_branch = { branch = 2 batch = 3 } }
372
+ tooltip = preview_branch_batch_3_missions_2_title
373
+ }
374
+
375
+ custom_button = {
376
+ name = preview_branch_batch_3_missions_3
377
+ potential = {
378
+ ai = no
379
+ has_branching_missions = yes
380
+ has_preview_mission_flag = yes
381
+ can_preview_batch = { batch = 3 }
382
+ num_of_mission_branches = { value = 3 batch = 3 }
383
+ NOT = { currently_selected_branch = { value = 3 batch = 3 } }
384
+ }
385
+ trigger = { can_select_branch = { value = 3 batch = 3 } }
386
+ effect = { preview_mission_branch = { branch = 3 batch = 3 } }
387
+ tooltip = preview_branch_batch_3_missions_3_title
388
+ }
389
+ custom_button = {
390
+ name = preview_branch_batch_3_missions_3_highlighted
391
+ potential = {
392
+ ai = no
393
+ has_branching_missions = yes
394
+ has_preview_mission_flag = yes
395
+ can_preview_batch = { batch = 3 }
396
+ num_of_mission_branches = { value = 3 batch = 3 }
397
+ currently_selected_branch = { value = 3 batch = 3 }
398
+ }
399
+ trigger = { can_select_branch = { value = 3 batch = 3 } }
400
+ effect = { preview_mission_branch = { branch = 3 batch = 3 } }
401
+ tooltip = preview_branch_batch_3_missions_3_title
402
+ }
403
+
404
+ custom_button = {
405
+ name = preview_branch_batch_3_missions_4
406
+ potential = {
407
+ ai = no
408
+ has_branching_missions = yes
409
+ has_preview_mission_flag = yes
410
+ can_preview_batch = { batch = 3 }
411
+ num_of_mission_branches = { value = 4 batch = 3 }
412
+ NOT = { currently_selected_branch = { value = 4 batch = 3 } }
413
+ }
414
+ trigger = { can_select_branch = { value = 4 batch = 3 } }
415
+ effect = { preview_mission_branch = { branch = 4 batch = 3 } }
416
+ tooltip = preview_branch_batch_3_missions_4_title
417
+ }
418
+ custom_button = {
419
+ name = preview_branch_batch_3_missions_4_highlighted
420
+ potential = {
421
+ ai = no
422
+ has_branching_missions = yes
423
+ has_preview_mission_flag = yes
424
+ can_preview_batch = { batch = 3 }
425
+ num_of_mission_branches = { value = 4 batch = 3 }
426
+ currently_selected_branch = { value = 4 batch = 3 }
427
+ }
428
+ trigger = { can_select_branch = { value = 4 batch = 3 } }
429
+ effect = { preview_mission_branch = { branch = 4 batch = 3 } }
430
+ tooltip = preview_branch_batch_3_missions_4_title
431
+ }
432
+
433
+ custom_button = {
434
+ name = preview_branch_batch_3_missions_5
435
+ potential = {
436
+ ai = no
437
+ has_branching_missions = yes
438
+ has_preview_mission_flag = yes
439
+ can_preview_batch = { batch = 3 }
440
+ num_of_mission_branches = { value = 5 batch = 3 }
441
+ NOT = { currently_selected_branch = { value = 5 batch = 3 } }
442
+ }
443
+ trigger = { can_select_branch = { value = 5 batch = 3 } }
444
+ effect = { preview_mission_branch = { branch = 5 batch = 3 } }
445
+ tooltip = preview_branch_batch_3_missions_5_title
446
+ }
447
+ custom_button = {
448
+ name = preview_branch_batch_3_missions_5_highlighted
449
+ potential = {
450
+ ai = no
451
+ has_branching_missions = yes
452
+ has_preview_mission_flag = yes
453
+ can_preview_batch = { batch = 3 }
454
+ num_of_mission_branches = { value = 5 batch = 3 }
455
+ currently_selected_branch = { value = 5 batch = 3 }
456
+ }
457
+ trigger = { can_select_branch = { value = 5 batch = 3 } }
458
+ effect = { preview_mission_branch = { branch = 5 batch = 3 } }
459
+ tooltip = preview_branch_batch_3_missions_5_title
142
460
  }
common/disasters/georgian_crisis.txt CHANGED
@@ -13,6 +13,7 @@ georgian_crisis = {
13
13
  mission_completed = geo_preventing_collapse
14
14
  }
15
15
  NOT = { has_country_flag = geo_crisis_completed }
16
+ is_subject = no
16
17
  }
17
18
 
18
19
 
common/estate_agendas/10_qizilbash_agendas.txt CHANGED
@@ -1875,9 +1875,38 @@ estate_qizilbash_defeat_large_army = {
1875
1875
  }
1876
1876
  }
1877
1877
  else = {
1878
- check_variable = {
1879
- which = land_units_killed
1880
- value = 40000
1878
+ if = {
1879
+ limit = {
1880
+ current_age = age_of_revolutions
1881
+ }
1882
+ check_variable = {
1883
+ which = land_units_killed
1884
+ value = 30000
1885
+ }
1886
+ }
1887
+ else_if = {
1888
+ limit = {
1889
+ current_age = age_of_absolutism
1890
+ }
1891
+ check_variable = {
1892
+ which = land_units_killed
1893
+ value = 22500
1894
+ }
1895
+ }
1896
+ else_if = {
1897
+ limit = {
1898
+ current_age = age_of_reformation
1899
+ }
1900
+ check_variable = {
1901
+ which = land_units_killed
1902
+ value = 15000
1903
+ }
1904
+ }
1905
+ else = {
1906
+ check_variable = {
1907
+ which = land_units_killed
1908
+ value = 7500
1909
+ }
1881
1910
  }
1882
1911
  }
1883
1912
  }
@@ -1893,8 +1922,34 @@ estate_qizilbash_defeat_large_army = {
1893
1922
  estate = estate_qizilbash
1894
1923
  loyalty = 10
1895
1924
  }
1896
- add_army_tradition_or_mil_power = {
1897
- amount = 20
1925
+ if = {
1926
+ limit = {
1927
+ current_age = age_of_revolutions
1928
+ }
1929
+ add_army_tradition_or_mil_power = {
1930
+ amount = 20
1931
+ }
1932
+ }
1933
+ else_if = {
1934
+ limit = {
1935
+ current_age = age_of_absolutism
1936
+ }
1937
+ add_army_tradition_or_mil_power = {
1938
+ amount = 15
1939
+ }
1940
+ }
1941
+ else_if = {
1942
+ limit = {
1943
+ current_age = age_of_reformation
1944
+ }
1945
+ add_army_tradition_or_mil_power = {
1946
+ amount = 15
1947
+ }
1948
+ }
1949
+ else = {
1950
+ add_army_tradition_or_mil_power = {
1951
+ amount = 10
1952
+ }
1898
1953
  }
1899
1954
  }
1900
1955
  failing_effect = {
common/event_modifiers/00_event_modifiers.txt CHANGED
@@ -14047,7 +14047,7 @@ grand_vizier_master_of_mint = {
14047
14047
  grand_vizier_inquisitor = {
14048
14048
  yearly_corruption = -0.05
14049
14049
  country_admin_power = 1
14050
- warscore_from_battles_modifier = -0.05
14050
+ warscore_from_battles_modifier = 0.05
14051
14051
  }
14052
14052
  grand_vizier_statesman = {
14053
14053
  yearly_corruption = -0.05
common/government_reforms/01_government_reforms_monarchies.txt CHANGED
@@ -4910,7 +4910,13 @@ pronoiar_monarchy_reform = {
4910
4910
  icon = "pronoiar_monarchy_reform"
4911
4911
  allow_normal_conversion = yes
4912
4912
  potential = {
4913
- is_playing_custom_nation = yes
4913
+ or = {
4914
+ AND = {
4915
+ is_playing_custom_nation = yes
4916
+ has_reform = pronoiar_monarchy_reform
4917
+ }
4918
+ have_had_reform = pronoiar_monarchy_reform
4919
+ }
4914
4920
  }
4915
4921
  valid_for_nation_designer = yes
4916
4922
  nation_designer_cost = 100
common/great_projects/01_monuments.txt CHANGED
@@ -15838,6 +15838,16 @@ white_house = {
15838
15838
  OR = {
15839
15839
  is_former_colonial_nation = yes
15840
15840
  tag = USA
15841
+ AND = {
15842
+ NOT = { government = native }
15843
+ is_subject = no
15844
+ capital_scope = {
15845
+ OR = {
15846
+ continent = north_america
15847
+ continent = south_america
15848
+ }
15849
+ }
15850
+ }
15841
15851
  }
15842
15852
  }
15843
15853
  }
@@ -15853,6 +15863,15 @@ white_house = {
15853
15863
  OR = {
15854
15864
  is_former_colonial_nation = yes
15855
15865
  tag = USA
15866
+ AND = {
15867
+ is_subject = no
15868
+ capital_scope = {
15869
+ OR = {
15870
+ continent = north_america
15871
+ continent = south_america
15872
+ }
15873
+ }
15874
+ }
15856
15875
  }
15857
15876
  }
15858
15877
  }
@@ -15862,6 +15881,15 @@ white_house = {
15862
15881
  OR = {
15863
15882
  is_former_colonial_nation = yes
15864
15883
  tag = USA
15884
+ AND = {
15885
+ is_subject = no
15886
+ capital_scope = {
15887
+ OR = {
15888
+ continent = north_america
15889
+ continent = south_america
15890
+ }
15891
+ }
15892
+ }
15865
15893
  }
15866
15894
  }
15867
15895
  }
@@ -19106,28 +19134,10 @@ narikala_fortress = {
19106
19134
  on_destroyed = {
19107
19135
  }
19108
19136
  can_use_modifiers_trigger = {
19109
- AND = {
19110
- custom_trigger_tooltip = {
19111
- tooltip = is_georgian_culture_tt
19112
- OR = {
19113
- culture = georgian_new
19114
- culture = georgian
19115
- }
19116
- }
19117
- province_is_or_accepts_culture = yes
19118
- }
19137
+
19119
19138
  }
19120
19139
  can_upgrade_trigger = {
19121
- AND = {
19122
- custom_trigger_tooltip = {
19123
- tooltip = is_georgian_culture_tt
19124
- OR = {
19125
- culture = georgian_new
19126
- culture = georgian
19127
- }
19128
- }
19129
- province_is_or_accepts_culture = yes
19130
- }
19140
+
19131
19141
  }
19132
19142
  keep_trigger = {
19133
19143
 
common/on_actions/00_on_actions.txt CHANGED
@@ -1526,6 +1526,7 @@ on_mandate_of_heaven_gained = {
1526
1526
  NOT = { primary_culture = chahar }
1527
1527
  NOT = { primary_culture = khalkha }
1528
1528
  NOT = { primary_culture = oirats }
1529
+ has_domination_eoc_missions_available = yes
1529
1530
  }
1530
1531
  swap_non_generic_missions = yes
1531
1532
  }
common/scripted_effects/00_scripted_effects.txt CHANGED
@@ -4092,6 +4092,7 @@ add_accepted_culture_or_dip_power = {
4092
4092
  }
4093
4093
  [[free]
4094
4094
  custom_tooltip = CULTURE_WILL_NOT_TAKE_SLOT_UNTIL_DEMOTED_TT
4095
+ custom_tooltip = ADD_ACCEPTED_CULTURE_TT
4095
4096
  hidden_effect = {
4096
4097
  add_country_modifier = {
4097
4098
  name = free_slot_for_$culture$
@@ -4101,7 +4102,7 @@ add_accepted_culture_or_dip_power = {
4101
4102
  }
4102
4103
  ]
4103
4104
  [[dip_reward]
4104
- custom_tooltip = ADD_ACCEPTED_CULTURE_TT # "If the §YCulture§! is already an §YAccepted Culture§!, or if there are not enough §YSlots§!, gain §G100§! Diplomatic Power instead."
4105
+ custom_tooltip = ADD_ACCEPTED_CULTURE_SLOT_LIMITATION_TT # "If the §YCulture§! is already an §YAccepted Culture§!, or if there are not enough §YSlots§!, gain §G100§! Diplomatic Power instead."
4105
4106
  ]
4106
4107
  hidden_effect = {
4107
4108
  if = {
@@ -5326,6 +5327,9 @@ update_entire_culture = {
5326
5327
  }
5327
5328
  }
5328
5329
  set_global_flag = updated_$culture$_flag
5330
+ [[clear_previous_accepted_culture]
5331
+ remove_accepted_culture = $culture$
5332
+ ]
5329
5333
  }
5330
5334
  }
5331
5335
 
@@ -5356,6 +5360,9 @@ update_entire_culture_foreign = {
5356
5360
  }
5357
5361
  set_consort_culture = $culture$_new
5358
5362
  }
5363
+ [[clear_previous_accepted_culture]
5364
+ remove_accepted_culture = $culture$
5365
+ ]
5359
5366
  }
5360
5367
  set_global_flag = updated_$culture$_flag
5361
5368
  }
@@ -5492,6 +5499,9 @@ update_entire_culture_group = {
5492
5499
  }
5493
5500
  set_consort_culture = $culture$_new
5494
5501
  }
5502
+ [[clear_previous_accepted_culture]
5503
+ remove_accepted_culture = $culture$
5504
+ ]
5495
5505
  }
5496
5506
  set_global_flag = updated_$culture$_flag
5497
5507
  }
common/scripted_effects/01_scripted_effects_for_estates.txt CHANGED
@@ -2251,6 +2251,17 @@ on_province_tax_building_built_estate_privileges_effect = {
2251
2251
  duration = -1
2252
2252
  }
2253
2253
  }
2254
+ if = {
2255
+ limit = {
2256
+ owner = { has_estate_privilege = estate_brahmins_development_of_temples }
2257
+ religion_group = dharmic
2258
+ has_tax_building_trigger = yes
2259
+ }
2260
+ add_province_modifier = {
2261
+ name = estate_brahmins_development_of_temples_mod
2262
+ duration = -1
2263
+ }
2264
+ }
2254
2265
  if = {
2255
2266
  limit = {
2256
2267
  owner = {
common/scripted_effects/02_scripted_effects_mission_rewards.txt CHANGED
@@ -1446,6 +1446,26 @@ country_event_with_option_insight = {
1446
1446
  ######################################
1447
1447
  # Branching Missions Preview Effects #
1448
1448
  ######################################
1449
+ enable_branching_mission_review_of_batch = {
1450
+ if = {
1451
+ limit = { not = { has_country_flag = has_batch_1_active } }
1452
+ set_country_flag = has_batch_1_active
1453
+ set_country_flag = can_choose_$key$_1_branching_missions
1454
+ }
1455
+ else_if = {
1456
+ limit = { not = { has_country_flag = has_batch_2_active } }
1457
+ set_country_flag = has_batch_2_active
1458
+ set_country_flag = can_choose_$key$_2_branching_missions
1459
+ }
1460
+ else_if = {
1461
+ limit = { not = { has_country_flag = has_batch_3_active } }
1462
+ set_country_flag = has_batch_3_active
1463
+ set_country_flag = can_choose_$key$_3_branching_missions
1464
+ }
1465
+ else = {
1466
+ log = "Too many mission batches active at the same time. Make sure that any given moment only 3 batches are active to preview"
1467
+ }
1468
+ }
1449
1469
  enable_branching_mission_review = {
1450
1470
  if = {
1451
1471
  limit = { ai = yes }
@@ -1454,7 +1474,7 @@ enable_branching_mission_review = {
1454
1474
  else = {
1455
1475
  custom_tooltip = BYZ_unlock_branches_decision
1456
1476
  hidden_effect = {
1457
- set_country_flag = can_choose_$key$_branching_missions
1477
+ enable_branching_mission_review_of_batch = { key = $key$ }
1458
1478
  change_variable = {
1459
1479
  which = can_preview_missions_var
1460
1480
  value = 1
@@ -1462,7 +1482,176 @@ enable_branching_mission_review = {
1462
1482
  }
1463
1483
  }
1464
1484
  }
1485
+ enable_branching_mission_review_without_ai = {
1486
+ custom_tooltip = BYZ_unlock_branches_decision
1487
+ hidden_effect = {
1488
+ enable_branching_mission_review_of_batch = { key = $key$ }
1489
+ change_variable = {
1490
+ which = can_preview_missions_var
1491
+ value = 1
1492
+ }
1493
+ }
1494
+ }
1465
1495
 
1496
+ select_current_missions_MAL = {} #Empty on purpose, preview system only implemented for the sake of completion
1497
+ select_current_missions_SON = {
1498
+ if = {
1499
+ limit = { has_country_flag = son_islamic_focus }
1500
+ hidden_effect = { clr_country_flag = son_tolerance_focus }
1501
+ add_estate_loyalty = {
1502
+ estate = estate_church
1503
+ loyalty = 10
1504
+ }
1505
+ add_estate_loyalty = {
1506
+ estate = estate_nobles
1507
+ loyalty = -10
1508
+ }
1509
+ add_estate_loyalty = {
1510
+ estate = estate_dhimmi
1511
+ loyalty = -10
1512
+ }
1513
+ }
1514
+ if = {
1515
+ limit = { has_country_flag = son_tolerance_focus }
1516
+ hidden_effect = { clr_country_flag = son_islamic_focus }
1517
+ add_estate_loyalty = {
1518
+ estate = estate_church
1519
+ loyalty = -10
1520
+ }
1521
+ add_estate_loyalty = {
1522
+ estate = estate_nobles
1523
+ loyalty = 10
1524
+ }
1525
+ add_estate_loyalty = {
1526
+ estate = estate_dhimmi
1527
+ loyalty = 10
1528
+ }
1529
+ }
1530
+ }
1531
+ select_current_missions_KON = {} #Empty on purpose, preview system only implemented for the sake of completion
1532
+ select_scandinavian_religion_mission_effect = {
1533
+ if = {
1534
+ limit = { has_country_flag = sca_unlock_catholic_missions }
1535
+ if = {
1536
+ limit = { NOT = { religion = catholic } }
1537
+ add_stability = -2
1538
+ custom_tooltip = flavor_sca.1.a.tt
1539
+ if = {
1540
+ limit = {
1541
+ NOT = { religion = coptic }
1542
+ NOT = { religion = orthodox }
1543
+ }
1544
+ hidden_effect = {
1545
+ every_known_country = {
1546
+ limit = {
1547
+ religion = ROOT
1548
+ }
1549
+ add_opinion = {
1550
+ who = ROOT
1551
+ modifier = swe_abandoned_the_reformation
1552
+ }
1553
+ }
1554
+ }
1555
+ }
1556
+ else = {
1557
+ hidden_effect = {
1558
+ every_known_country = {
1559
+ limit = {
1560
+ religion = ROOT
1561
+ }
1562
+ add_opinion = {
1563
+ who = ROOT
1564
+ modifier = swe_betrayed_our_faith
1565
+ }
1566
+ }
1567
+ }
1568
+ }
1569
+ change_religion = catholic
1570
+ capital_scope = {
1571
+ change_religion = catholic
1572
+ }
1573
+ random_owned_province = {
1574
+ limit = {
1575
+ region = scandinavia_region
1576
+ NOT = { religion = catholic }
1577
+ }
1578
+ change_religion = catholic
1579
+ }
1580
+ }
1581
+ }
1582
+ if = {
1583
+ limit = { has_country_flag = sca_unlock_protestant_missions }
1584
+ if = {
1585
+ limit = { religion = catholic }
1586
+ add_stability = -2
1587
+ custom_tooltip = flavor_sca.1.a.tt
1588
+ hidden_effect = {
1589
+ every_known_country = {
1590
+ limit = {
1591
+ religion = ROOT
1592
+ }
1593
+ add_opinion = {
1594
+ who = ROOT
1595
+ modifier = swe_betrayed_the_holy_see
1596
+ }
1597
+ }
1598
+ }
1599
+ change_religion = protestant
1600
+ capital_scope = {
1601
+ change_religion = protestant
1602
+ }
1603
+ random_owned_province = {
1604
+ limit = {
1605
+ region = scandinavia_region
1606
+ religion = catholic
1607
+ }
1608
+ change_religion = protestant
1609
+ }
1610
+ }
1611
+ else = {
1612
+ capital_scope = {
1613
+ change_religion = ROOT
1614
+ }
1615
+ random_owned_province = {
1616
+ limit = {
1617
+ region = scandinavia_region
1618
+ NOT = { religion = ROOT }
1619
+ }
1620
+ change_religion = ROOT
1621
+ }
1622
+ }
1623
+ }
1624
+ if = {
1625
+ limit = { has_country_flag = sca_unlock_humanist_missions }
1626
+ custom_tooltip = flavor_sca.1.d.tt
1627
+ hidden_effect = {
1628
+ every_known_country = {
1629
+ limit = {
1630
+ religion_group = christian
1631
+ NOT = { religion = orthodox }
1632
+ NOT = { religion = coptic }
1633
+ }
1634
+ add_opinion = {
1635
+ who = ROOT
1636
+ modifier = swe_is_not_for_us
1637
+ }
1638
+ }
1639
+ }
1640
+ }
1641
+ if = {
1642
+ limit = { has_country_flag = sca_unlock_norse_missions }
1643
+ add_army_tradition = 5
1644
+ }
1645
+ }
1646
+ select_current_missions_SWE = {
1647
+ select_scandinavian_religion_mission_effect = yes
1648
+ }
1649
+ select_current_missions_DAN = {
1650
+ select_scandinavian_religion_mission_effect = yes
1651
+ }
1652
+ select_current_missions_NOR = {
1653
+ select_scandinavian_religion_mission_effect = yes
1654
+ }
1466
1655
  select_current_missions_TEU = {
1467
1656
  if = {
1468
1657
  limit = { has_country_flag = teu_prussian_path }
@@ -1749,7 +1938,324 @@ select_current_missions_LIV = {
1749
1938
  }
1750
1939
  }
1751
1940
  }
1752
- select_current_missions_BYZ = {} #Empty
1941
+ select_current_missions_POL = {} #Empty on purpose, preview system only implemented for the sake of completion
1942
+ select_current_missions_TUR = {
1943
+ if = {
1944
+ limit = { has_country_flag = tur_chose_legalism }
1945
+ hidden_effect = {
1946
+ clr_country_flag = tur_chose_mysticism
1947
+ clr_country_flag = tur_non_muslim_path_flag
1948
+ }
1949
+ add_country_modifier = {
1950
+ name = tur_embraced_legalism_modifier
1951
+ duration = 18250
1952
+ }
1953
+ }
1954
+ if = {
1955
+ limit = { has_country_flag = tur_chose_mysticism }
1956
+ hidden_effect = {
1957
+ clr_country_flag = tur_chose_legalism
1958
+ clr_country_flag = tur_non_muslim_path_flag
1959
+ }
1960
+ add_country_modifier = {
1961
+ name = tur_embraced_mysticism_modifier
1962
+ duration = 18250
1963
+ }
1964
+ }
1965
+ if = {
1966
+ limit = { has_country_flag = tur_non_muslim_path_flag }
1967
+ hidden_effect = {
1968
+ clr_country_flag = tur_chose_legalism
1969
+ clr_country_flag = tur_chose_mysticism
1970
+ }
1971
+ add_country_modifier = {
1972
+ name = tur_end_of_the_caliphate_modifier
1973
+ duration = 18250
1974
+ }
1975
+ }
1976
+ }
1977
+ select_current_missions_MNG = {
1978
+ if = {
1979
+ limit = { has_country_flag = mng_dynamic_1 }
1980
+ clr_country_flag = mng_dynamic_2
1981
+ add_country_modifier = {
1982
+ name = haijin_policy_modifier
1983
+ duration = -1
1984
+ desc = until_we_complete_the_appropriate_missions_desc
1985
+ }
1986
+ }
1987
+ if = {
1988
+ limit = { has_country_flag = mng_dynamic_2 }
1989
+ clr_country_flag = mng_dynamic_1
1990
+ add_country_modifier = {
1991
+ name = haijin_policy_modifier
1992
+ duration = -1
1993
+ desc = until_we_complete_the_appropriate_missions_desc
1994
+ }
1995
+ }
1996
+ }
1997
+ select_current_missions_QNG = {
1998
+ if = {
1999
+ limit = { has_country_flag = qng_open_ports_flag }
2000
+ clr_country_flag = qng_close_ports_flag
2001
+ if = {
2002
+ limit = { has_reform = mercantilistic_approach_reform }
2003
+ add_government_reform = free_trade_reform
2004
+ }
2005
+ add_country_modifier = {
2006
+ name = qng_free_trade_modifier
2007
+ duration = 9125
2008
+ }
2009
+ }
2010
+ if = {
2011
+ limit = { has_country_flag = qng_close_ports_flag }
2012
+ clr_country_flag = qng_open_ports_flag
2013
+ if = {
2014
+ limit = { has_reform = free_trade_reform }
2015
+ add_government_reform = mercantilistic_approach_reform
2016
+ }
2017
+ add_country_modifier = {
2018
+ name = qng_mercantilism_modifier
2019
+ duration = -1
2020
+ }
2021
+ }
2022
+ }
2023
+ select_current_missions_GBR = {
2024
+ if = {
2025
+ limit = { has_country_flag = eng_took_gbr_branch }
2026
+ clr_country_flag = eng_took_ave_branch
2027
+ add_country_modifier = {
2028
+ name = gbr_isolation_policy
2029
+ duration = 9125
2030
+ }
2031
+ }
2032
+ if = {
2033
+ limit = { has_country_flag = eng_took_ave_branch }
2034
+ clr_country_flag = eng_took_gbr_branch
2035
+ if = {
2036
+ limit = {
2037
+ FRA = {
2038
+ is_subject = no
2039
+ }
2040
+ }
2041
+ add_casus_belli = {
2042
+ target = FRA
2043
+ type = cb_hundred_years_union
2044
+ months = 360
2045
+ }
2046
+ }
2047
+ ile_de_france_area = {
2048
+ limit = {
2049
+ NOT = { is_core = ROOT }
2050
+ NOT = { is_permanent_claim = ROOT }
2051
+ }
2052
+ add_permanent_claim = ROOT
2053
+ }
2054
+ champagne_area = {
2055
+ limit = {
2056
+ NOT = { is_core = ROOT }
2057
+ NOT = { is_permanent_claim = ROOT }
2058
+ }
2059
+ add_permanent_claim = ROOT
2060
+ }
2061
+ }
2062
+ }
2063
+ select_current_missions_FRA = {
2064
+ if = {
2065
+ limit = { has_country_flag = fra_chose_to_piss_off_pope_flag }
2066
+ add_country_modifier = {
2067
+ name = fra_italian_wars_modifier
2068
+ duration = 7300
2069
+ }
2070
+ piedmont_area = {
2071
+ limit = {
2072
+ NOT = { owned_by = ROOT }
2073
+ NOT = { is_core = ROOT }
2074
+ }
2075
+ add_permanent_claim = ROOT
2076
+ }
2077
+ liguria_area = {
2078
+ limit = {
2079
+ NOT = { owned_by = ROOT }
2080
+ NOT = { is_core = ROOT }
2081
+ }
2082
+ add_permanent_claim = ROOT
2083
+ }
2084
+ lombardy_area = {
2085
+ limit = {
2086
+ NOT = { owned_by = ROOT }
2087
+ NOT = { is_core = ROOT }
2088
+ }
2089
+ add_permanent_claim = ROOT
2090
+ }
2091
+ if = {
2092
+ limit = {
2093
+ NAP = { is_subject = no exists = yes }
2094
+ }
2095
+ add_casus_belli = {
2096
+ target = NAP
2097
+ type = cb_vassalize_mission
2098
+ months = 180
2099
+ }
2100
+ }
2101
+ else = {
2102
+ naples_area = {
2103
+ limit = {
2104
+ NOT = { owned_by = ROOT }
2105
+ NOT = { is_core = ROOT }
2106
+ is_empty = no
2107
+ }
2108
+ add_permanent_claim = ROOT
2109
+ }
2110
+ calabria_area = {
2111
+ limit = {
2112
+ NOT = { owned_by = ROOT }
2113
+ NOT = { is_core = ROOT }
2114
+ is_empty = no
2115
+ }
2116
+ add_permanent_claim = ROOT
2117
+ }
2118
+ apulia_area = {
2119
+ limit = {
2120
+ NOT = { owned_by = ROOT }
2121
+ NOT = { is_core = ROOT }
2122
+ is_empty = no
2123
+ }
2124
+ add_permanent_claim = ROOT
2125
+ }
2126
+ }
2127
+ }
2128
+ if = {
2129
+ limit = { has_country_flag = fra_papal_lap_dop_flag }
2130
+ add_country_modifier = {
2131
+ name = fra_resurgence_of_crusader_fervor_modifier
2132
+ duration = 9125
2133
+ }
2134
+ palestine_area = {
2135
+ limit = {
2136
+ NOT = { owned_by = ROOT }
2137
+ NOT = { is_core = ROOT }
2138
+ }
2139
+ add_permanent_claim = ROOT
2140
+ }
2141
+ }
2142
+ }
2143
+ select_current_missions_FRA_HRE = {
2144
+ if = { #Special case when the HRE is already dissolved
2145
+ limit = {
2146
+ not = { hre_size = 1 }
2147
+ }
2148
+ add_country_modifier = {
2149
+ name = fra_triumph_over_austria_modifier
2150
+ duration = -1
2151
+ }
2152
+ add_dip_power = 200
2153
+ clr_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
2154
+ set_country_flag = fra_fufujoni_flag
2155
+ swap_non_generic_missions = yes
2156
+ }
2157
+ else = {
2158
+ if = {
2159
+ limit = { has_country_flag = fra_fufujoni_flag }
2160
+ clr_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
2161
+ add_country_modifier = {
2162
+ name = fra_war_east_modifier
2163
+ duration = 5475
2164
+ }
2165
+ if = {
2166
+ limit = { hre_size = 1 }
2167
+ custom_tooltip = fra_enable_war_on_the_empire_cb_tt
2168
+ hidden_effect = { set_country_flag = fra_enable_war_on_the_empire_cb_flag }
2169
+ }
2170
+ }
2171
+ if = {
2172
+ limit = {
2173
+ or = {
2174
+ has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
2175
+ is_emperor = yes
2176
+ }
2177
+ }
2178
+ clr_country_flag = fra_fufujoni_flag
2179
+ add_country_modifier = {
2180
+ name = fra_charlemagne_legacy_modifier
2181
+ duration = 7300
2182
+ }
2183
+ every_elector = {
2184
+ limit = {
2185
+ has_opinion = {
2186
+ who = ROOT
2187
+ value = 0
2188
+ }
2189
+ }
2190
+ add_opinion = {
2191
+ who = ROOT
2192
+ modifier = fra_charlemagne_legacy_opinion_modifier
2193
+ }
2194
+ }
2195
+ add_power_projection = {
2196
+ type = mission_rewards_power_projection
2197
+ amount = 25
2198
+ }
2199
+ if = {
2200
+ limit = {
2201
+ not = { has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag }
2202
+ is_emperor = yes
2203
+ }
2204
+ set_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
2205
+ custom_tooltip = fra_charlemagne_legacy_tt
2206
+ swap_non_generic_missions = yes #Another special for the moment France becomes Emperor before selecing any of the branching missions
2207
+ }
2208
+ }
2209
+ }
2210
+ }
2211
+ select_current_missions_JAP = {
2212
+ if = {
2213
+ limit = { has_country_flag = jap_mushashi_5_books_flag }
2214
+ clr_country_flag = jap_domineering_naval_focus_flag
2215
+ add_army_tradition = 10
2216
+ add_country_modifier = {
2217
+ name = jap_mushashi_5_books_modifier
2218
+ duration = -1
2219
+ }
2220
+ }
2221
+ if = {
2222
+ limit = { has_country_flag = jap_domineering_naval_focus_flag }
2223
+ clr_country_flag = jap_mushashi_5_books_flag
2224
+ add_navy_tradition = 20
2225
+ add_country_modifier = {
2226
+ name = jap_domineering_naval_focus_modifier
2227
+ duration = -1
2228
+ }
2229
+ }
2230
+ }
2231
+ select_current_missions_JAP_RELI = {
2232
+ if = {
2233
+ limit = { has_country_flag = christianity_defeated_flag }
2234
+ clr_country_flag = a_kirishitan_realm
2235
+ if = {
2236
+ limit = { has_country_flag = significant_christian_presence_flag }
2237
+ set_estate_privilege = estate_church_japanese_christian_communities_privilege
2238
+ }
2239
+ else = {
2240
+ add_country_modifier = {
2241
+ name = jap_shinto_warriors_modifier
2242
+ duration = -1
2243
+ }
2244
+ }
2245
+ }
2246
+ if = {
2247
+ limit = { has_country_flag = a_kirishitan_realm }
2248
+ clr_country_flag = christianity_defeated_flag
2249
+ override_country_name = KRJ
2250
+ set_country_flag = is_KRJ_flag
2251
+ set_country_flag = has_overriden_name_flag
2252
+ add_country_modifier = {
2253
+ name = jap_protectors_east_catholicism
2254
+ duration = 10950
2255
+ }
2256
+ }
2257
+ }
2258
+ select_current_missions_BYZ = {} #Empty, nothing should happen
1753
2259
  select_current_missions_PER = {
1754
2260
  if = {
1755
2261
  limit = {
@@ -1774,7 +2280,9 @@ select_current_missions_PER = {
1774
2280
 
1775
2281
  select_current_missions = {
1776
2282
  hidden_effect = {
1777
- clr_country_flag = can_choose_$key$_branching_missions
2283
+ clr_country_flag = can_choose_$key$_1_branching_missions
2284
+ clr_country_flag = can_choose_$key$_2_branching_missions
2285
+ clr_country_flag = can_choose_$key$_3_branching_missions
1778
2286
  change_variable = {
1779
2287
  which = can_preview_missions_var
1780
2288
  value = -1
@@ -1784,57 +2292,163 @@ select_current_missions = {
1784
2292
  }
1785
2293
  select_current_branch = {
1786
2294
  custom_tooltip = BYZ_end_preview
1787
- if = {
1788
- limit = { can_preview_mission_of_key = { key = TEU } }
1789
- select_current_missions = { key = TEU }
1790
- }
1791
- if = {
1792
- limit = { can_preview_mission_of_key = { key = TEU_PRU } }
1793
- select_current_missions = { key = TEU_PRU }
1794
- }
1795
- if = {
1796
- limit = { can_preview_mission_of_key = { key = LIV } }
1797
- select_current_missions = { key = LIV }
1798
- }
1799
- if = {
1800
- limit = { can_preview_mission_of_key = { key = BYZ } }
1801
- select_current_missions = { key = BYZ }
1802
- }
1803
- if = {
1804
- limit = { can_preview_mission_of_key = { key = PER } }
1805
- select_current_missions = { key = PER }
1806
- }
2295
+ hidden_effect = { clr_country_flag = has_batch_$batch$_active }
2296
+ #Origins
2297
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = MAL batch = $batch$ } } select_current_missions = { key = MAL } }
2298
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = SON batch = $batch$ } } select_current_missions = { key = SON } }
2299
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = KON batch = $batch$ } } select_current_missions = { key = KON } }
2300
+ #Lions of the North
2301
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ } } select_current_missions = { key = SWE } }
2302
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ } } select_current_missions = { key = DAN } }
2303
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ } } select_current_missions = { key = NOR } }
2304
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = TEU batch = $batch$ } } select_current_missions = { key = TEU } }
2305
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ } } select_current_missions = { key = TEU_PRU } }
2306
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = LIV batch = $batch$ } } select_current_missions = { key = LIV } }
2307
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = POL batch = $batch$ } } select_current_missions = { key = POL } }
2308
+ #Domination
2309
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ } } select_current_missions = { key = TUR } }
2310
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = MNG batch = $batch$ } } select_current_missions = { key = MNG } }
2311
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = QNG batch = $batch$ } } select_current_missions = { key = QNG } }
2312
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = JAP batch = $batch$ } } select_current_missions = { key = JAP } }
2313
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = JAP_RELI batch = $batch$ } } select_current_missions = { key = JAP_RELI } }
2314
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = FRA batch = $batch$ } } select_current_missions = { key = FRA } }
2315
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = FRA_HRE batch = $batch$ } } select_current_missions = { key = FRA_HRE } }
2316
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = GBR batch = $batch$ } } select_current_missions = { key = GBR } }
2317
+ #King of Kings
2318
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = BYZ batch = $batch$ } } select_current_missions = { key = BYZ } }
2319
+ if = { limit = { can_preview_mission_of_key_and_batch = { key = PER batch = $batch$ } } select_current_missions = { key = PER } }
1807
2320
  }
1808
2321
 
1809
2322
  clear_all_branching_flags = {
2323
+ #Origins
2324
+ #MAL
2325
+ if = {
2326
+ limit = { can_preview_mission_of_key_and_batch = { key = MAL batch = $batch$ } }
2327
+ clr_country_flag = mal_decide_for_conversion
2328
+ clr_country_flag = mal_decide_for_tolerance
2329
+ }
2330
+ #SON
2331
+ if = {
2332
+ limit = { can_preview_mission_of_key_and_batch = { key = SON batch = $batch$ } }
2333
+ clr_country_flag = son_islamic_focus
2334
+ clr_country_flag = son_tolerance_focus
2335
+ }
2336
+ #KON
2337
+ if = {
2338
+ limit = { can_preview_mission_of_key_and_batch = { key = KON batch = $batch$ } }
2339
+ clr_country_flag = kon_picked_fetishism
2340
+ clr_country_flag = kon_picked_side_with_europeans
2341
+ }
2342
+ #Lions of the North
2343
+ #SWE
2344
+ if = {
2345
+ limit = { can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ } }
2346
+ clr_country_flag = sca_unlock_catholic_missions
2347
+ clr_country_flag = sca_unlock_protestant_missions
2348
+ clr_country_flag = sca_unlock_norse_missions
2349
+ clr_country_flag = sca_unlock_humanist_missions
2350
+ }
2351
+ #DAN
2352
+ if = {
2353
+ limit = { can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ } }
2354
+ clr_country_flag = sca_unlock_catholic_missions
2355
+ clr_country_flag = sca_unlock_protestant_missions
2356
+ clr_country_flag = sca_unlock_norse_missions
2357
+ clr_country_flag = sca_unlock_humanist_missions
2358
+ }
2359
+ #NOR
2360
+ if = {
2361
+ limit = { can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ } }
2362
+ clr_country_flag = sca_unlock_catholic_missions
2363
+ clr_country_flag = sca_unlock_protestant_missions
2364
+ clr_country_flag = sca_unlock_norse_missions
2365
+ clr_country_flag = sca_unlock_humanist_missions
2366
+ }
1810
2367
  #TEU
1811
2368
  if = {
1812
- limit = { can_preview_mission_of_key = { key = TEU } }
2369
+ limit = { can_preview_mission_of_key_and_batch = { key = TEU batch = $batch$ } }
1813
2370
  clr_country_flag = teu_prussian_path
1814
2371
  clr_country_flag = teu_crusader_path
1815
2372
  }
1816
2373
  #TEU-PRU
1817
2374
  if = {
1818
- limit = { can_preview_mission_of_key = { key = TEU_PRU } }
2375
+ limit = { can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ } }
1819
2376
  clr_country_flag = teu_conquest_hre_path
1820
2377
  clr_country_flag = teu_diplomacy_hre_path
1821
2378
  clr_country_flag = teu_kingdom_prussia_path
1822
2379
  }
1823
2380
  #LIV
1824
2381
  if = {
1825
- limit = { can_preview_mission_of_key = { key = LIV } }
2382
+ limit = { can_preview_mission_of_key_and_batch = { key = LIV batch = $batch$ } }
1826
2383
  clr_country_flag = liv_livonian_path
1827
2384
  clr_country_flag = liv_crusader_path
1828
2385
  }
2386
+ #POL
2387
+ if = {
2388
+ limit = { can_preview_mission_of_key_and_batch = { key = POL batch = $batch$ } }
2389
+ clr_country_flag = pol_chose_pu_flag
2390
+ clr_country_flag = pol_denied_pu_flag
2391
+ }
2392
+ #Domination
2393
+ #TUR
2394
+ if = {
2395
+ limit = { can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ } }
2396
+ clr_country_flag = tur_chose_legalism
2397
+ clr_country_flag = tur_chose_mysticism
2398
+ clr_country_flag = tur_non_muslim_path_flag
2399
+ }
2400
+ #MNG
2401
+ if = {
2402
+ limit = { can_preview_mission_of_key_and_batch = { key = MNG batch = $batch$ } }
2403
+ clr_country_flag = mng_dynamic_1
2404
+ clr_country_flag = mng_dynamic_2
2405
+ }
2406
+ #QNG
2407
+ if = {
2408
+ limit = { can_preview_mission_of_key_and_batch = { key = QNG batch = $batch$ } }
2409
+ clr_country_flag = qng_open_ports_flag
2410
+ clr_country_flag = qng_close_ports_flag
2411
+ }
2412
+ #JAP
2413
+ if = {
2414
+ limit = { can_preview_mission_of_key_and_batch = { key = JAP batch = $batch$ } }
2415
+ clr_country_flag = jap_mushashi_5_books_flag
2416
+ clr_country_flag = jap_domineering_naval_focus_flag
2417
+ }
2418
+ #JAP_RELI
2419
+ if = {
2420
+ limit = { can_preview_mission_of_key_and_batch = { key = JAP_RELI batch = $batch$ } }
2421
+ clr_country_flag = christianity_defeated_flag
2422
+ clr_country_flag = a_kirishitan_realm
2423
+ }
2424
+ #FRA
2425
+ if = {
2426
+ limit = { can_preview_mission_of_key_and_batch = { key = FRA batch = $batch$ } }
2427
+ clr_country_flag = fra_chose_to_piss_off_pope_flag
2428
+ clr_country_flag = fra_papal_lap_dop_flag
2429
+ }
2430
+ #FRA_HRE
2431
+ if = {
2432
+ limit = { can_preview_mission_of_key_and_batch = { key = FRA_HRE batch = $batch$ } }
2433
+ clr_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
2434
+ clr_country_flag = fra_fufujoni_flag
2435
+ }
2436
+ #GBR
2437
+ if = {
2438
+ limit = { can_preview_mission_of_key_and_batch = { key = GBR batch = $batch$ } }
2439
+ clr_country_flag = eng_took_gbr_branch
2440
+ clr_country_flag = eng_took_ave_branch
2441
+ }
2442
+ #King of Kings
1829
2443
  #BYZ
1830
2444
  if = {
1831
- limit = { can_preview_mission_of_key = { key = BYZ } }
2445
+ limit = { can_preview_mission_of_key_and_batch = { key = BYZ batch = $batch$ } }
1832
2446
  clr_country_flag = BYZ_centralized
1833
2447
  clr_country_flag = BYZ_decentralized
1834
2448
  }
1835
2449
  #PER
1836
2450
  if = {
1837
- limit = { can_preview_mission_of_key = { key = PER } }
2451
+ limit = { can_preview_mission_of_key_and_batch = { key = PER batch = $batch$ } }
1838
2452
  clr_country_flag = per_shia_missions
1839
2453
  clr_country_flag = per_sunni_missions
1840
2454
  clr_country_flag = per_zoroastrian_missions
@@ -1842,47 +2456,179 @@ clear_all_branching_flags = {
1842
2456
  }
1843
2457
 
1844
2458
  preview_mission_branch_1 = {
2459
+ #Origins
2460
+ #MAL
2461
+ if = {
2462
+ limit = { can_preview_mission_of_key_and_batch = { key = MAL batch = $batch$ } }
2463
+ set_country_flag = mal_decide_for_conversion
2464
+ custom_tooltip = MAL_preview_conversion
2465
+ }
2466
+ #SON
2467
+ if = {
2468
+ limit = { can_preview_mission_of_key_and_batch = { key = SON batch = $batch$ } }
2469
+ set_country_flag = son_islamic_focus
2470
+ custom_tooltip = SON_preview_islamic
2471
+ }
2472
+ #KON
2473
+ if = {
2474
+ limit = { can_preview_mission_of_key_and_batch = { key = KON batch = $batch$ } }
2475
+ set_country_flag = kon_picked_fetishism
2476
+ custom_tooltip = KON_preview_fetishism
2477
+ }
2478
+ #Lions of the North
2479
+ #SWE
2480
+ if = {
2481
+ limit = { can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ } }
2482
+ set_country_flag = sca_unlock_catholic_missions
2483
+ custom_tooltip = SCA_preview_catholic
2484
+ }
2485
+ #DAN
2486
+ if = {
2487
+ limit = { can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ } }
2488
+ set_country_flag = sca_unlock_catholic_missions
2489
+ custom_tooltip = SCA_preview_catholic
2490
+ }
2491
+ #NOR
2492
+ if = {
2493
+ limit = { can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ } }
2494
+ set_country_flag = sca_unlock_catholic_missions
2495
+ custom_tooltip = SCA_preview_catholic
2496
+ }
1845
2497
  #TEU
1846
2498
  if = {
1847
- limit = { can_preview_mission_of_key = { key = TEU } }
2499
+ limit = { can_preview_mission_of_key_and_batch = { key = TEU batch = $batch$ } }
1848
2500
  set_country_flag = teu_prussian_path
1849
2501
  custom_tooltip = TEU_preview_prussian
1850
2502
  }
1851
2503
  #TEU_PRU
1852
2504
  if = {
1853
- limit = { can_preview_mission_of_key = { key = TEU_PRU } }
2505
+ limit = { can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ } }
1854
2506
  set_country_flag = teu_conquest_hre_path
1855
2507
  custom_tooltip = TEU_PRU_preview_hre_conquest
1856
2508
  }
1857
2509
  #LIV
1858
2510
  if = {
1859
- limit = { can_preview_mission_of_key = { key = LIV } }
2511
+ limit = { can_preview_mission_of_key_and_batch = { key = LIV batch = $batch$ } }
1860
2512
  set_country_flag = liv_livonian_path
1861
2513
  custom_tooltip = LIV_preview_livonian
1862
2514
  }
2515
+ #POL
2516
+ if = {
2517
+ limit = { can_preview_mission_of_key_and_batch = { key = POL batch = $batch$ } }
2518
+ set_country_flag = pol_chose_pu_flag
2519
+ custom_tooltip = POL_preview_lith
2520
+ }
2521
+ #Domination
2522
+ #TUR
2523
+ if = {
2524
+ limit = { can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ } }
2525
+ set_country_flag = tur_chose_legalism
2526
+ custom_tooltip = TUR_preview_legalism
2527
+ }
2528
+ #MNG
2529
+ if = {
2530
+ limit = { can_preview_mission_of_key_and_batch = { key = MNG batch = $batch$ } }
2531
+ set_country_flag = mng_dynamic_1
2532
+ custom_tooltip = MNG_preview_improve_haijin
2533
+ }
2534
+ #QNG
2535
+ if = {
2536
+ limit = { can_preview_mission_of_key_and_batch = { key = QNG batch = $batch$ } }
2537
+ set_country_flag = qng_open_ports_flag
2538
+ custom_tooltip = QNG_preview_open_ports
2539
+ }
2540
+ #GBR
2541
+ if = {
2542
+ limit = { can_preview_mission_of_key_and_batch = { key = GBR batch = $batch$ } }
2543
+ set_country_flag = eng_took_gbr_branch
2544
+ custom_tooltip = ENG_preview_gbr_branch
2545
+ }
2546
+ #FRA
2547
+ if = {
2548
+ limit = { can_preview_mission_of_key_and_batch = { key = FRA batch = $batch$ } }
2549
+ set_country_flag = fra_chose_to_piss_off_pope_flag
2550
+ custom_tooltip = FRA_preview_italian_wars
2551
+ }
2552
+ #FRA_HRE
2553
+ if = {
2554
+ limit = { can_preview_mission_of_key_and_batch = { key = FRA_HRE batch = $batch$ } }
2555
+ set_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
2556
+ custom_tooltip = FRA_preview_charlemagnes_legacy
2557
+ }
2558
+ #JAP
2559
+ if = {
2560
+ limit = { can_preview_mission_of_key_and_batch = { key = JAP batch = $batch$ } }
2561
+ set_country_flag = jap_mushashi_5_books_flag
2562
+ custom_tooltip = JAP_preview_mushashi_5_books
2563
+ }
2564
+ #JAP_RELI
2565
+ if = {
2566
+ limit = { can_preview_mission_of_key_and_batch = { key = JAP_RELI batch = $batch$ } }
2567
+ set_country_flag = christianity_defeated_flag
2568
+ custom_tooltip = JAP_preview_christianity_defeated
2569
+ }
2570
+ #King of Kings
1863
2571
  #BYZ
1864
2572
  if = {
1865
- limit = { can_preview_mission_of_key = { key = BYZ } }
2573
+ limit = { can_preview_mission_of_key_and_batch = { key = BYZ batch = $batch$ } }
1866
2574
  set_country_flag = BYZ_centralized
1867
2575
  custom_tooltip = BYZ_preview_centralized
1868
2576
  }
1869
2577
  #PER
1870
2578
  if = {
1871
- limit = { can_preview_mission_of_key = { key = PER } }
2579
+ limit = { can_preview_mission_of_key_and_batch = { key = PER batch = $batch$ } }
1872
2580
  set_country_flag = per_shia_missions
1873
2581
  custom_tooltip = per_preview_shia_missions
1874
2582
  }
1875
2583
  }
1876
2584
  preview_mission_branch_2 = {
2585
+ #Origins
2586
+ #MAL
2587
+ if = {
2588
+ limit = { can_preview_mission_of_key_and_batch = { key = MAL batch = $batch$ } }
2589
+ set_country_flag = mal_decide_for_tolerance
2590
+ custom_tooltip = MAL_preview_tolerance
2591
+ }
2592
+ #SON
2593
+ if = {
2594
+ limit = { can_preview_mission_of_key_and_batch = { key = SON batch = $batch$ } }
2595
+ set_country_flag = son_tolerance_focus
2596
+ custom_tooltip = SON_preview_tolerance
2597
+ }
2598
+ #KON
2599
+ if = {
2600
+ limit = { can_preview_mission_of_key_and_batch = { key = KON batch = $batch$ } }
2601
+ set_country_flag = kon_picked_side_with_europeans
2602
+ custom_tooltip = KON_preview_christian
2603
+ }
2604
+ #Lions of the North
2605
+ #SWE
2606
+ if = {
2607
+ limit = { can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ } }
2608
+ set_country_flag = sca_unlock_protestant_missions
2609
+ custom_tooltip = SCA_preview_protestant
2610
+ }
2611
+ #DAN
2612
+ if = {
2613
+ limit = { can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ } }
2614
+ set_country_flag = sca_unlock_protestant_missions
2615
+ custom_tooltip = SCA_preview_protestant
2616
+ }
2617
+ #NOR
2618
+ if = {
2619
+ limit = { can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ } }
2620
+ set_country_flag = sca_unlock_protestant_missions
2621
+ custom_tooltip = SCA_preview_protestant
2622
+ }
1877
2623
  #TEU
1878
2624
  if = {
1879
- limit = { can_preview_mission_of_key = { key = TEU } }
2625
+ limit = { can_preview_mission_of_key_and_batch = { key = TEU batch = $batch$ } }
1880
2626
  set_country_flag = teu_crusader_path
1881
2627
  custom_tooltip = TEU_preview_crusader
1882
2628
  }
1883
2629
  #TEU_PRU
1884
2630
  if = {
1885
- limit = { can_preview_mission_of_key = { key = TEU_PRU } }
2631
+ limit = { can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ } }
1886
2632
  if = {
1887
2633
  limit = { hre_size = 1 }
1888
2634
  set_country_flag = teu_diplomacy_hre_path
@@ -1895,43 +2641,165 @@ preview_mission_branch_2 = {
1895
2641
  }
1896
2642
  #LIV
1897
2643
  if = {
1898
- limit = { can_preview_mission_of_key = { key = LIV } }
2644
+ limit = { can_preview_mission_of_key_and_batch = { key = LIV batch = $batch$ } }
1899
2645
  set_country_flag = liv_crusader_path
1900
2646
  custom_tooltip = LIV_preview_crusader
1901
2647
  }
2648
+ #POL
2649
+ if = {
2650
+ limit = { can_preview_mission_of_key_and_batch = { key = POL batch = $batch$ } }
2651
+ set_country_flag = pol_denied_pu_flag
2652
+ custom_tooltip = POL_preview_hre
2653
+ }
2654
+ #Domination
2655
+ #TUR
2656
+ if = {
2657
+ limit = { can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ } }
2658
+ set_country_flag = tur_chose_mysticism
2659
+ custom_tooltip = TUR_preview_mysticism
2660
+ }
2661
+ #MNG
2662
+ if = {
2663
+ limit = { can_preview_mission_of_key_and_batch = { key = MNG batch = $batch$ } }
2664
+ set_country_flag = mng_dynamic_2
2665
+ custom_tooltip = MNG_preview_repeal_haijin
2666
+ }
2667
+ #QNG
2668
+ if = {
2669
+ limit = { can_preview_mission_of_key_and_batch = { key = QNG batch = $batch$ } }
2670
+ set_country_flag = qng_close_ports_flag
2671
+ custom_tooltip = QNG_preview_close_ports
2672
+ }
2673
+ #GBR
2674
+ if = {
2675
+ limit = { can_preview_mission_of_key_and_batch = { key = GBR batch = $batch$ } }
2676
+ set_country_flag = eng_took_ave_branch
2677
+ custom_tooltip = ENG_preview_ave_branch
2678
+ }
2679
+ #FRA
2680
+ if = {
2681
+ limit = { can_preview_mission_of_key_and_batch = { key = FRA batch = $batch$ } }
2682
+ set_country_flag = fra_papal_lap_dop_flag
2683
+ custom_tooltip = FRA_preview_crusader_kings
2684
+ }
2685
+ #FRA_HRE
2686
+ if = {
2687
+ limit = { can_preview_mission_of_key_and_batch = { key = FRA_HRE batch = $batch$ } }
2688
+ set_country_flag = fra_fufujoni_flag
2689
+ custom_tooltip = FRA_preview_kill_hre
2690
+ }
2691
+ #JAP
2692
+ if = {
2693
+ limit = { can_preview_mission_of_key_and_batch = { key = JAP batch = $batch$ } }
2694
+ set_country_flag = jap_domineering_naval_focus_flag
2695
+ custom_tooltip = JAP_preview_domineering_naval_focus
2696
+ }
2697
+ #JAP_RELI
2698
+ if = {
2699
+ limit = { can_preview_mission_of_key_and_batch = { key = JAP_RELI batch = $batch$ } }
2700
+ set_country_flag = a_kirishitan_realm
2701
+ custom_tooltip = JAP_preview_a_kirishitan_realm
2702
+ }
2703
+ #King of Kings
1902
2704
  #BYZ
1903
2705
  if = {
1904
- limit = { can_preview_mission_of_key = { key = BYZ } }
2706
+ limit = { can_preview_mission_of_key_and_batch = { key = BYZ batch = $batch$ } }
1905
2707
  set_country_flag = BYZ_decentralized
1906
2708
  custom_tooltip = BYZ_preview_decentralized
1907
2709
  }
1908
2710
  #PER
1909
2711
  if = {
1910
- limit = { can_preview_mission_of_key = { key = PER } }
2712
+ limit = { can_preview_mission_of_key_and_batch = { key = PER batch = $batch$ } }
1911
2713
  set_country_flag = per_sunni_missions
1912
2714
  custom_tooltip = per_preview_sunni_missions
1913
2715
  }
1914
2716
  }
1915
2717
  preview_mission_branch_3 = {
2718
+ #Origins
2719
+ # none
2720
+ #Lions of the North
2721
+ #SWE
2722
+ if = {
2723
+ limit = { can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ } }
2724
+ set_country_flag = sca_unlock_humanist_missions
2725
+ custom_tooltip = SCA_preview_humanist
2726
+ }
2727
+ #DAN
2728
+ if = {
2729
+ limit = { can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ } }
2730
+ set_country_flag = sca_unlock_humanist_missions
2731
+ custom_tooltip = SCA_preview_humanist
2732
+ }
2733
+ #NOR
2734
+ if = {
2735
+ limit = { can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ } }
2736
+ set_country_flag = sca_unlock_humanist_missions
2737
+ custom_tooltip = SCA_preview_humanist
2738
+ }
1916
2739
  #TEU_PRU
1917
2740
  if = {
1918
- limit = { can_preview_mission_of_key = { key = TEU_PRU } }
2741
+ limit = { can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ } }
1919
2742
  set_country_flag = teu_kingdom_prussia_path
1920
2743
  custom_tooltip = TEU_PRU_preview_prussian_kingdom
1921
2744
  }
2745
+ #Domination
2746
+ #TUR
2747
+ if = {
2748
+ limit = { can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ } }
2749
+ set_country_flag = tur_non_muslim_path_flag
2750
+ custom_tooltip = TUR_preview_non_muslim_path
2751
+ }
2752
+ #King of Kings
1922
2753
  #PER
1923
2754
  if = {
1924
- limit = { can_preview_mission_of_key = { key = PER } }
2755
+ limit = { can_preview_mission_of_key_and_batch = { key = PER batch = $batch$ } }
1925
2756
  set_country_flag = per_zoroastrian_missions
1926
2757
  custom_tooltip = per_preview_zoroastrian_missions
1927
2758
  }
1928
2759
  }
1929
2760
  preview_mission_branch_4 = {
2761
+ #Origins
2762
+ # none
2763
+ #Lions of the North
2764
+ #SWE
2765
+ if = {
2766
+ limit = { can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ } }
2767
+ set_country_flag = sca_unlock_norse_missions
2768
+ custom_tooltip = SCA_preview_norse
2769
+ }
2770
+ #DAN
2771
+ if = {
2772
+ limit = { can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ } }
2773
+ set_country_flag = sca_unlock_norse_missions
2774
+ custom_tooltip = SCA_preview_norse
2775
+ }
2776
+ #NOR
2777
+ if = {
2778
+ limit = { can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ } }
2779
+ set_country_flag = sca_unlock_norse_missions
2780
+ custom_tooltip = SCA_preview_norse
2781
+ }
2782
+ #Domination
2783
+ # none
2784
+ #King of Kings
2785
+ # none
1930
2786
  }
1931
2787
  preview_mission_branch_5 = {
2788
+ #Origins
2789
+ # none
2790
+ #Lions of the North
2791
+ # none
2792
+ #Domination
2793
+ # none
2794
+ #King of Kings
2795
+ # none
2796
+ if = {
2797
+ limit = { can_preview_mission_of_key_and_batch = { key = DUMMY batch = $batch$ } }
2798
+ custom_tooltip = COOL_EFFECT
2799
+ }
1932
2800
  }
1933
2801
  preview_mission_branch = {
1934
- clear_all_branching_flags = yes
1935
- preview_mission_branch_$branch$ = yes
2802
+ clear_all_branching_flags = { batch = $batch$ }
2803
+ preview_mission_branch_$branch$ = { batch = $batch$ }
1936
2804
  hidden_effect = { swap_non_generic_missions = yes }
1937
2805
  }
common/scripted_triggers/00_scripted_triggers.txt CHANGED
@@ -201,6 +201,7 @@ is_subject_other_than_tributary_trigger = { #Ie Tags that cannot conduct indepen
201
201
  tooltip = is_subject_other_than_tributary_trigger_tooltip
202
202
  is_subject = yes
203
203
  NOT = { is_subject_of_type = tributary_state }
204
+ NOT = { is_subject_of_type = cultural_sphere_of_influence_subject }
204
205
  }
205
206
  }
206
207
 
@@ -210,6 +211,7 @@ is_free_or_tributary_trigger = { #I.e. Tags that can conduct independent diploma
210
211
  OR = {
211
212
  is_subject = no
212
213
  is_subject_of_type = tributary_state
214
+ is_subject_of_type = cultural_sphere_of_influence_subject
213
215
  }
214
216
  }
215
217
  }
@@ -4404,58 +4406,50 @@ has_completed_all_persian_missions = {
4404
4406
  tooltip = has_completed_all_persian_missions_tt
4405
4407
  mission_completed = per_reform_our_defenses
4406
4408
  mission_completed = per_master_of_india
4409
+ mission_completed = per_create_the_tupchi
4407
4410
  OR = {
4408
- AND = {
4409
- mission_completed = per_indomitable_lion
4410
- mission_completed = per_unify_islam
4411
- }
4412
- AND = {
4413
- mission_completed = per_indomitable_lion
4414
- mission_completed = per_great_shia_empire
4415
- }
4416
4411
  AND = {
4417
4412
  mission_completed = per_a_new_eranshahr
4418
4413
  mission_completed = per_an_asha_empire
4419
4414
  }
4420
- }
4421
- if = {
4422
- limit = { primary_culture = mazandarani }
4423
- mission_completed = per_tab_legacy_of_eranshahr
4424
- }
4425
- if = {
4426
- limit = {
4415
+ AND = {
4427
4416
  OR = {
4428
- was_tag = AKK
4429
- was_tag = QAR
4417
+ mission_completed = per_unify_islam
4418
+ mission_completed = per_great_shia_empire
4430
4419
  }
4420
+ mission_completed = per_indomitable_lion
4421
+ mission_completed = per_language_of_poetry
4431
4422
  }
4432
- mission_completed = per_qqq_legacy_of_the_seljuk
4433
4423
  }
4434
- if = {
4435
- limit = {
4436
- OR = {
4437
- was_tag = TIM
4438
- was_tag = KHO
4439
- was_tag = FRS
4440
- was_tag = AFG
4441
- was_tag = TRS
4442
- was_tag = SIS
4443
- was_tag = QOM
4444
- has_country_flag = enthroned_a_timurid_prince
4445
- }
4424
+ OR = {
4425
+ AND = {
4426
+ has_mission = per_tab_legacy_of_eranshahr
4427
+ mission_completed = per_tab_legacy_of_eranshahr
4428
+ }
4429
+ AND = {
4430
+ has_mission = per_qqq_legacy_of_the_seljuk
4431
+ mission_completed = per_qqq_legacy_of_the_seljuk
4432
+ }
4433
+ AND = {
4434
+ has_mission = per_tim_legacy_of_timur
4435
+ mission_completed = per_tim_legacy_of_timur
4436
+ }
4437
+ AND = {
4438
+ has_mission = per_arl_legacy_of_the_safavid
4439
+ mission_completed = per_arl_legacy_of_the_safavid
4440
+ }
4441
+ AND = {
4442
+ NOT = { has_mission = per_tab_legacy_of_eranshahr }
4443
+ NOT = { has_mission = per_qqq_legacy_of_the_seljuk }
4444
+ NOT = { has_mission = per_tim_legacy_of_timur }
4445
+ NOT = { has_mission = per_arl_legacy_of_the_safavid }
4446
4446
  }
4447
- mission_completed = per_tim_legacy_of_timur
4448
- }
4449
- if = {
4450
- limit = { was_tag = ARL }
4451
- mission_completed = per_arl_legacy_of_the_safavid
4452
4447
  }
4453
4448
  mission_completed = per_riches_of_asia
4454
4449
  mission_completed = per_enlightened_rule
4455
4450
  mission_completed = per_the_tofangchi
4456
4451
  mission_completed = per_balance_of_power
4457
4452
  mission_completed = per_establish_the_qurchi
4458
- mission_completed = per_language_of_poetry
4459
4453
  }
4460
4454
  }
4461
4455
 
@@ -4479,4 +4473,40 @@ total_non_estate_disasters_completed = {
4479
4473
  value = $value$
4480
4474
  }
4481
4475
  }
4476
+ }
4477
+
4478
+ has_domination_eoc_missions_available = {
4479
+ has_dlc = "Domination"
4480
+ OR = {
4481
+ tag = MNG
4482
+ tag = QNG
4483
+ tag = MCH
4484
+ tag = YAN
4485
+ tag = JIN
4486
+ tag = QIN
4487
+ tag = QIC
4488
+ tag = CSH
4489
+ tag = LNG
4490
+ tag = TNG
4491
+ tag = CXI
4492
+ tag = CHC
4493
+ tag = WUU
4494
+ tag = NNG
4495
+ tag = MIN
4496
+ tag = HUA
4497
+ tag = YUE
4498
+ tag = CMI
4499
+ tag = CYI
4500
+ tag = CDL
4501
+ tag = CGS
4502
+ tag = SHU
4503
+ tag = FRM
4504
+ tag = MJZ
4505
+ tag = MYR
4506
+ tag = EJZ
4507
+ tag = NHX
4508
+ tag = MHX
4509
+ tag = KOR
4510
+ tag = JAP
4511
+ }
4482
4512
  }
common/scripted_triggers/02_scripted_triggers_missions.txt CHANGED
@@ -206,15 +206,29 @@ has_orthodox_religious_icon_trigger = {
206
206
  has_branching_missions = {
207
207
  OR = {
208
208
  #Origins
209
+ has_mission = mal_pick_religious_direction
210
+ has_mission = son_conquer_the_mossi
211
+ has_mission = kon_annex_vassals #Technically not the starting point of the missions
209
212
  #Lions of the North
213
+ has_mission = swe_the_theologian_discussions
214
+ has_mission = dan_the_age_of_reformation
215
+ has_mission = nor_religious_path_mission
210
216
  has_mission = teu_defeat_the_poles
211
217
  has_mission = teu_pru_teutonic_order_and_the_empire
212
218
  has_mission = liv_strengthen_ruling_authority
219
+ has_mission = pol_varna_aftermath
213
220
  #Domination
221
+ has_mission = tur_seize_the_caliphate
222
+ has_mission = mng_inward_perfection
223
+ has_mission = qng_regulate_trade
224
+ has_mission = gbr_ave_hundred_years_war
225
+ has_mission = fra_ducal_lands_avignon
226
+ has_mission = fra_border_empire
227
+ has_mission = jap_bushido_code
228
+ has_mission = jap_new_buddha
214
229
  #king of Kings
215
230
  has_mission = BYZ_theme_system
216
231
  has_mission = per_our_religious_direction
217
- has_mission = per_the_islamic_teachings
218
232
  }
219
233
  }
220
234
 
@@ -225,8 +239,19 @@ has_preview_mission_flag = {
225
239
  }
226
240
  }
227
241
 
242
+ can_preview_batch = {
243
+ has_country_flag = has_batch_$batch$_active
244
+ }
245
+
246
+ can_preview_mission_of_key_and_batch = {
247
+ has_country_flag = can_choose_$key$_$batch$_branching_missions
248
+ }
228
249
  can_preview_mission_of_key = {
229
- has_country_flag = can_choose_$key$_branching_missions
250
+ or = {
251
+ can_preview_mission_of_key_and_batch = { key = $key$ batch = 1 }
252
+ can_preview_mission_of_key_and_batch = { key = $key$ batch = 2 }
253
+ can_preview_mission_of_key_and_batch = { key = $key$ batch = 3 }
254
+ }
230
255
  }
231
256
  can_preview_missions = {
232
257
  custom_trigger_tooltip = {
@@ -235,6 +260,7 @@ can_preview_missions = {
235
260
  #Origins
236
261
  can_preview_mission_of_key = { key = MAL }
237
262
  can_preview_mission_of_key = { key = SON }
263
+ can_preview_mission_of_key = { key = KON }
238
264
  #Lions of the North
239
265
  can_preview_mission_of_key = { key = DAN }
240
266
  can_preview_mission_of_key = { key = SWE }
@@ -245,9 +271,13 @@ can_preview_missions = {
245
271
  can_preview_mission_of_key = { key = POL }
246
272
  #Domination
247
273
  can_preview_mission_of_key = { key = TUR }
248
- can_preview_mission_of_key = { key = ENG }
249
- can_preview_mission_of_key = { key = FRA }
250
274
  can_preview_mission_of_key = { key = MNG }
275
+ can_preview_mission_of_key = { key = QNG }
276
+ can_preview_mission_of_key = { key = GBR }
277
+ can_preview_mission_of_key = { key = FRA }
278
+ can_preview_mission_of_key = { key = FRA_HRE }
279
+ can_preview_mission_of_key = { key = JAP }
280
+ can_preview_mission_of_key = { key = JAP_RELI }
251
281
  #King of Kings
252
282
  can_preview_mission_of_key = { key = BYZ }
253
283
  can_preview_mission_of_key = { key = PER }
@@ -262,7 +292,7 @@ not_in_mission_preview_mode = {
262
292
  which = can_preview_missions_var
263
293
  value = 1
264
294
  }
265
- has_country_flag = can_choose_$key$_branching_missions
295
+ can_preview_mission_of_key = { key = $key$ }
266
296
  }
267
297
  custom_trigger_tooltip = {
268
298
  tooltip = BYZ_we_are_in_preview
@@ -276,45 +306,177 @@ has_selected_a_branch = {
276
306
  tooltip = has_selected_a_branch_tt
277
307
  OR = {
278
308
  #Origins
309
+ #MAL
310
+ AND = {
311
+ OR = {
312
+ has_country_flag = mal_decide_for_conversion
313
+ has_country_flag = mal_decide_for_tolerance
314
+ }
315
+ can_preview_mission_of_key_and_batch = { key = MAL batch = $batch$ }
316
+ }
317
+ #SON
318
+ AND = {
319
+ OR = {
320
+ has_country_flag = son_islamic_focus
321
+ has_country_flag = son_tolerance_focus
322
+ }
323
+ can_preview_mission_of_key_and_batch = { key = SON batch = $batch$ }
324
+ }
325
+ #KON
326
+ AND = {
327
+ OR = {
328
+ has_country_flag = kon_picked_fetishism
329
+ has_country_flag = kon_picked_side_with_europeans
330
+ }
331
+ can_preview_mission_of_key_and_batch = { key = KON batch = $batch$ }
332
+ }
279
333
  #Lions of the North
334
+ #SWE
335
+ AND = {
336
+ OR = {
337
+ has_country_flag = sca_unlock_catholic_missions
338
+ has_country_flag = sca_unlock_protestant_missions
339
+ has_country_flag = sca_unlock_humanist_missions
340
+ has_country_flag = sca_unlock_norse_missions
341
+ }
342
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
343
+ }
344
+ #DAN
345
+ AND = {
346
+ OR = {
347
+ has_country_flag = sca_unlock_catholic_missions
348
+ has_country_flag = sca_unlock_protestant_missions
349
+ has_country_flag = sca_unlock_humanist_missions
350
+ has_country_flag = sca_unlock_norse_missions
351
+ }
352
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
353
+ }
354
+ #NOR
355
+ AND = {
356
+ OR = {
357
+ has_country_flag = sca_unlock_catholic_missions
358
+ has_country_flag = sca_unlock_protestant_missions
359
+ has_country_flag = sca_unlock_humanist_missions
360
+ has_country_flag = sca_unlock_norse_missions
361
+ }
362
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
363
+ }
364
+ #TEU
280
365
  AND = {
281
366
  OR = {
282
367
  has_country_flag = teu_prussian_path
283
368
  has_country_flag = teu_crusader_path
284
369
  }
285
- can_preview_mission_of_key = { key = TEU }
370
+ can_preview_mission_of_key_and_batch = { key = TEU batch = $batch$ }
286
371
  }
372
+ #TEU-PRU
287
373
  AND = {
288
374
  OR = {
289
375
  has_country_flag = teu_conquest_hre_path
290
376
  has_country_flag = teu_diplomacy_hre_path
291
377
  has_country_flag = teu_kingdom_prussia_path
292
378
  }
293
- can_preview_mission_of_key = { key = TEU_PRU }
379
+ can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ }
294
380
  }
381
+ #LIV
295
382
  AND = {
296
383
  OR = {
297
384
  has_country_flag = liv_livonian_path
298
385
  has_country_flag = liv_crusader_path
299
386
  }
300
- can_preview_mission_of_key = { key = LIV }
387
+ can_preview_mission_of_key_and_batch = { key = LIV batch = $batch$ }
388
+ }
389
+ #POL
390
+ AND = {
391
+ OR = {
392
+ has_country_flag = pol_chose_pu_flag
393
+ has_country_flag = pol_denied_pu_flag
394
+ }
395
+ can_preview_mission_of_key_and_batch = { key = POL batch = $batch$ }
301
396
  }
302
397
  #Domination
398
+ #TUR
399
+ AND = {
400
+ OR = {
401
+ has_country_flag = tur_chose_legalism
402
+ has_country_flag = tur_chose_mysticism
403
+ has_country_flag = tur_non_muslim_path_flag
404
+ }
405
+ can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ }
406
+ }
407
+ #MNG
408
+ AND = {
409
+ OR = {
410
+ has_country_flag = mng_dynamic_1
411
+ has_country_flag = mng_dynamic_2
412
+ }
413
+ can_preview_mission_of_key_and_batch = { key = MNG batch = $batch$ }
414
+ }
415
+ #QNG
416
+ AND = {
417
+ OR = {
418
+ has_country_flag = qng_open_ports_flag
419
+ has_country_flag = qng_close_ports_flag
420
+ }
421
+ can_preview_mission_of_key_and_batch = { key = QNG batch = $batch$ }
422
+ }
423
+ #GBR
424
+ AND = {
425
+ OR = {
426
+ has_country_flag = eng_took_gbr_branch
427
+ has_country_flag = eng_took_ave_branch
428
+ }
429
+ can_preview_mission_of_key_and_batch = { key = GBR batch = $batch$ }
430
+ }
431
+ #FRA
432
+ AND = {
433
+ OR = {
434
+ has_country_flag = fra_chose_to_piss_off_pope_flag
435
+ has_country_flag = fra_papal_lap_dop_flag
436
+ }
437
+ can_preview_mission_of_key_and_batch = { key = FRA batch = $batch$ }
438
+ }
439
+ #FRA_HRE
440
+ AND = {
441
+ OR = {
442
+ has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
443
+ has_country_flag = fra_fufujoni_flag
444
+ }
445
+ can_preview_mission_of_key_and_batch = { key = FRA_HRE batch = $batch$ }
446
+ }
447
+ #JAP
448
+ AND = {
449
+ OR = {
450
+ has_country_flag = jap_mushashi_5_books_flag
451
+ has_country_flag = jap_domineering_naval_focus_flag
452
+ }
453
+ can_preview_mission_of_key_and_batch = { key = JAP batch = $batch$ }
454
+ }
455
+ #JAP_RELI
456
+ AND = {
457
+ OR = {
458
+ has_country_flag = christianity_defeated_flag
459
+ has_country_flag = a_kirishitan_realm
460
+ }
461
+ can_preview_mission_of_key_and_batch = { key = JAP_RELI batch = $batch$ }
462
+ }
303
463
  #King of Kings
464
+ #BYZ
304
465
  AND = {
305
466
  OR = {
306
467
  has_country_flag = BYZ_decentralized
307
468
  has_country_flag = BYZ_centralized
308
469
  }
309
- can_preview_mission_of_key = { key = BYZ }
470
+ can_preview_mission_of_key_and_batch = { key = BYZ batch = $batch$ }
310
471
  }
472
+ #PER
311
473
  AND = {
312
474
  OR = {
313
475
  has_country_flag = per_shia_missions
314
476
  has_country_flag = per_sunni_missions
315
477
  has_country_flag = per_zoroastrian_missions
316
478
  }
317
- can_preview_mission_of_key = { key = PER }
479
+ can_preview_mission_of_key_and_batch = { key = PER batch = $batch$ }
318
480
  }
319
481
  }
320
482
  }
@@ -322,125 +484,412 @@ has_selected_a_branch = {
322
484
 
323
485
  num_of_mission_branches_3 = {
324
486
  OR = {
325
- can_preview_mission_of_key = { key = PER }
326
- can_preview_mission_of_key = { key = TEU_PRU }
487
+ #Origins
488
+ # none
489
+ #Lions of the North
490
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
491
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
492
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
493
+ can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ }
494
+ #Domination
495
+ can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ }
496
+ #King of Kings
497
+ can_preview_mission_of_key_and_batch = { key = PER batch = $batch$ }
327
498
  }
328
499
  }
329
500
 
330
501
  num_of_mission_branches_4 = {
331
- always = no
502
+ OR = {
503
+ #Origins
504
+ # none
505
+ #Lions of the North
506
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
507
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
508
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
509
+ #Domination
510
+ # none
511
+ #King of Kings
512
+ # none
513
+ }
332
514
  }
333
515
 
334
516
  num_of_mission_branches_5 = {
335
517
  always = no
518
+ has_country_flag = has_$batch$_batch #Dummy
336
519
  }
337
520
  num_of_mission_branches = {
338
- num_of_mission_branches_$value$ = yes
521
+ num_of_mission_branches_$value$ = { batch = $batch$ }
339
522
  }
340
523
 
341
524
  currently_selected_branch_1 = {
342
525
  OR = {
526
+ #Origins
527
+ #MAL
528
+ AND = {
529
+ can_preview_mission_of_key_and_batch = { key = MAL batch = $batch$ }
530
+ has_country_flag = mal_decide_for_conversion
531
+ }
532
+ #SON
533
+ AND = {
534
+ can_preview_mission_of_key_and_batch = { key = SON batch = $batch$ }
535
+ has_country_flag = son_islamic_focus
536
+ }
537
+ #KON
538
+ AND = {
539
+ can_preview_mission_of_key_and_batch = { key = KON batch = $batch$ }
540
+ has_country_flag = kon_picked_fetishism
541
+ }
542
+ #Lions of the North
543
+ #SWE
544
+ AND = {
545
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
546
+ has_country_flag = sca_unlock_catholic_missions
547
+ }
548
+ #DAN
549
+ AND = {
550
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
551
+ has_country_flag = sca_unlock_catholic_missions
552
+ }
553
+ #NOR
554
+ AND = {
555
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
556
+ has_country_flag = sca_unlock_catholic_missions
557
+ }
343
558
  #TEU
344
559
  AND = {
345
- can_preview_mission_of_key = { key = TEU }
560
+ can_preview_mission_of_key_and_batch = { key = TEU batch = $batch$ }
346
561
  has_country_flag = teu_prussian_path
347
562
  }
348
563
  #TEU-PRU
349
564
  AND = {
350
- can_preview_mission_of_key = { key = TEU_PRU }
565
+ can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ }
351
566
  has_country_flag = teu_conquest_hre_path
352
567
  }
353
568
  #LIV
354
569
  AND = {
355
- can_preview_mission_of_key = { key = LIV }
570
+ can_preview_mission_of_key_and_batch = { key = LIV batch = $batch$ }
356
571
  has_country_flag = liv_livonian_path
357
572
  }
573
+ #POL
574
+ AND = {
575
+ can_preview_mission_of_key_and_batch = { key = POL batch = $batch$ }
576
+ has_country_flag = pol_chose_pu_flag
577
+ }
578
+ #Domination
579
+ #TUR
580
+ AND = {
581
+ can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ }
582
+ has_country_flag = tur_chose_legalism
583
+ }
584
+ #MNG
585
+ AND = {
586
+ can_preview_mission_of_key_and_batch = { key = MNG batch = $batch$ }
587
+ has_country_flag = mng_dynamic_1
588
+ }
589
+ #QNG
590
+ AND = {
591
+ can_preview_mission_of_key_and_batch = { key = QNG batch = $batch$ }
592
+ has_country_flag = qng_open_ports_flag
593
+ }
594
+ #GBR
595
+ AND = {
596
+ can_preview_mission_of_key_and_batch = { key = GBR batch = $batch$ }
597
+ has_country_flag = eng_took_gbr_branch
598
+ }
599
+ #FRA
600
+ AND = {
601
+ can_preview_mission_of_key_and_batch = { key = FRA batch = $batch$ }
602
+ has_country_flag = fra_chose_to_piss_off_pope_flag
603
+ }
604
+ #FRA_HRE
605
+ AND = {
606
+ can_preview_mission_of_key_and_batch = { key = FRA_HRE batch = $batch$ }
607
+ has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
608
+ }
609
+ #JAP
610
+ AND = {
611
+ can_preview_mission_of_key_and_batch = { key = JAP batch = $batch$ }
612
+ has_country_flag = jap_mushashi_5_books_flag
613
+ }
614
+ #JAP_RELI
615
+ AND = {
616
+ can_preview_mission_of_key_and_batch = { key = JAP_RELI batch = $batch$ }
617
+ has_country_flag = christianity_defeated_flag
618
+ }
619
+ #King of Kings
358
620
  #BYZ
359
621
  AND = {
360
- can_preview_mission_of_key = { key = BYZ }
622
+ can_preview_mission_of_key_and_batch = { key = BYZ batch = $batch$ }
361
623
  has_country_flag = BYZ_centralized
362
624
  }
363
625
  #PER
364
626
  AND = {
365
- can_preview_mission_of_key = { key = PER }
627
+ can_preview_mission_of_key_and_batch = { key = PER batch = $batch$ }
366
628
  has_country_flag = per_shia_missions
367
629
  }
368
630
  }
369
631
  }
370
632
  currently_selected_branch_2 = {
371
633
  OR = {
634
+ #Origins
635
+ #MAL
636
+ AND = {
637
+ can_preview_mission_of_key_and_batch = { key = MAL batch = $batch$ }
638
+ has_country_flag = mal_decide_for_tolerance
639
+ }
640
+ #SON
641
+ AND = {
642
+ can_preview_mission_of_key_and_batch = { key = SON batch = $batch$ }
643
+ has_country_flag = son_tolerance_focus
644
+ }
645
+ #KON
646
+ AND = {
647
+ can_preview_mission_of_key_and_batch = { key = KON batch = $batch$ }
648
+ has_country_flag = kon_picked_side_with_europeans
649
+ }
650
+ #Lions of the North
651
+ #SWE
652
+ AND = {
653
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
654
+ has_country_flag = sca_unlock_protestant_missions
655
+ }
656
+ #DAN
657
+ AND = {
658
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
659
+ has_country_flag = sca_unlock_protestant_missions
660
+ }
661
+ #NOR
662
+ AND = {
663
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
664
+ has_country_flag = sca_unlock_protestant_missions
665
+ }
372
666
  #TEU
373
667
  AND = {
374
- can_preview_mission_of_key = { key = TEU }
668
+ can_preview_mission_of_key_and_batch = { key = TEU batch = $batch$ }
375
669
  has_country_flag = teu_crusader_path
376
670
  }
377
671
  #TEU-PRU
378
672
  AND = {
379
- can_preview_mission_of_key = { key = TEU_PRU }
673
+ can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ }
380
674
  has_country_flag = teu_diplomacy_hre_path
381
675
  }
382
676
  #LIV
383
677
  AND = {
384
- can_preview_mission_of_key = { key = LIV }
678
+ can_preview_mission_of_key_and_batch = { key = LIV batch = $batch$ }
385
679
  has_country_flag = liv_crusader_path
386
680
  }
681
+ #POL
682
+ AND = {
683
+ can_preview_mission_of_key_and_batch = { key = POL batch = $batch$ }
684
+ has_country_flag = pol_denied_pu_flag
685
+ }
686
+ #Domination
687
+ #TUR
688
+ AND = {
689
+ can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ }
690
+ has_country_flag = tur_chose_mysticism
691
+ }
692
+ #MNG
693
+ AND = {
694
+ can_preview_mission_of_key_and_batch = { key = MNG batch = $batch$ }
695
+ has_country_flag = mng_dynamic_2
696
+ }
697
+ #QNG
698
+ AND = {
699
+ can_preview_mission_of_key_and_batch = { key = QNG batch = $batch$ }
700
+ has_country_flag = qng_close_ports_flag
701
+ }
702
+ #GBR
703
+ AND = {
704
+ can_preview_mission_of_key_and_batch = { key = GBR batch = $batch$ }
705
+ has_country_flag = eng_took_ave_branch
706
+ }
707
+ #FRA
708
+ AND = {
709
+ can_preview_mission_of_key_and_batch = { key = FRA batch = $batch$ }
710
+ has_country_flag = fra_papal_lap_dop_flag
711
+ }
712
+ #FRA_HRE
713
+ AND = {
714
+ can_preview_mission_of_key_and_batch = { key = FRA_HRE batch = $batch$ }
715
+ has_country_flag = fra_fufujoni_flag
716
+ }
717
+ #JAP
718
+ AND = {
719
+ can_preview_mission_of_key_and_batch = { key = JAP batch = $batch$ }
720
+ has_country_flag = jap_domineering_naval_focus_flag
721
+ }
722
+ #JAP_RELI
723
+ AND = {
724
+ can_preview_mission_of_key_and_batch = { key = JAP_RELI batch = $batch$ }
725
+ has_country_flag = a_kirishitan_realm
726
+ }
727
+ #King of Kings
387
728
  #BYZ
388
729
  AND = {
389
- can_preview_mission_of_key = { key = BYZ }
730
+ can_preview_mission_of_key_and_batch = { key = BYZ batch = $batch$ }
390
731
  has_country_flag = BYZ_decentralized
391
732
  }
392
733
  #PER
393
734
  AND = {
394
- can_preview_mission_of_key = { key = PER }
735
+ can_preview_mission_of_key_and_batch = { key = PER batch = $batch$ }
395
736
  has_country_flag = per_sunni_missions
396
737
  }
397
738
  }
398
739
  }
399
740
  currently_selected_branch_3 = {
400
741
  OR = {
742
+ #Origins
743
+ # none
744
+ #Lions of the North
745
+ #SWE
746
+ AND = {
747
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
748
+ has_country_flag = sca_unlock_humanist_missions
749
+ }
750
+ #DAN
751
+ AND = {
752
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
753
+ has_country_flag = sca_unlock_humanist_missions
754
+ }
755
+ #NOR
756
+ AND = {
757
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
758
+ has_country_flag = sca_unlock_humanist_missions
759
+ }
401
760
  #TEU-PRU
402
761
  AND = {
403
- can_preview_mission_of_key = { key = TEU_PRU }
762
+ can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ }
404
763
  has_country_flag = teu_kingdom_prussia_path
405
764
  }
765
+ #Domination
766
+ #TUR
767
+ AND = {
768
+ can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ }
769
+ has_country_flag = tur_non_muslim_path_flag
770
+ }
771
+ #King of Kings
406
772
  #PER
407
773
  AND = {
408
- can_preview_mission_of_key = { key = PER }
774
+ can_preview_mission_of_key_and_batch = { key = PER batch = $batch$ }
409
775
  has_country_flag = per_zoroastrian_missions
410
776
  }
411
777
  }
412
778
  }
413
779
  currently_selected_branch_4 = {
414
- always = no
780
+ OR = {
781
+ #Origins
782
+ # none
783
+ #Lions of the North
784
+ #SWE
785
+ AND = {
786
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
787
+ has_country_flag = sca_unlock_norse_missions
788
+ }
789
+ #DAN
790
+ AND = {
791
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
792
+ has_country_flag = sca_unlock_norse_missions
793
+ }
794
+ #NOR
795
+ AND = {
796
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
797
+ has_country_flag = sca_unlock_norse_missions
798
+ }
799
+ #Domination
800
+ # none
801
+ #King of Kings
802
+ # none
803
+ }
415
804
  }
416
805
  currently_selected_branch_5 = {
417
806
  always = no
807
+ has_country_flag = has_$batch$_batch #dummy
418
808
  }
419
809
  currently_selected_branch = {
420
- currently_selected_branch_$value$ = yes
810
+ currently_selected_branch_$value$ = { batch = $batch$ }
421
811
  }
422
812
 
423
813
  can_select_branch_1 = {
424
- hidden_trigger = { always = yes }
814
+ if = {
815
+ limit = {
816
+ or = {
817
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
818
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
819
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
820
+ }
821
+ }
822
+ religion_group = christian
823
+ }
824
+ else = { hidden_trigger = { or = { always = yes } } }
825
+ if = {
826
+ limit = { can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ } }
827
+ religion_group = muslim
828
+ }
829
+ else = { hidden_trigger = { or = { always = yes } } }
425
830
  }
426
831
  can_select_branch_2 = {
427
832
  if = {
428
- limit = { can_preview_mission_of_key = { key = TEU_PRU } }
833
+ limit = {
834
+ or = {
835
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
836
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
837
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
838
+ }
839
+ }
840
+ religion_group = christian
841
+ }
842
+ else = { hidden_trigger = { or = { always = yes } } }
843
+ if = {
844
+ limit = { can_preview_mission_of_key_and_batch = { key = TEU_PRU batch = $batch$ } }
429
845
  hre_size = 1
430
846
  }
431
- else = {
432
- hidden_trigger = { always = yes }
847
+ else = { hidden_trigger = { always = yes } }
848
+ if = {
849
+ limit = { can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ } }
850
+ religion_group = muslim
433
851
  }
852
+ else = { hidden_trigger = { or = { always = yes } } }
853
+ if = {
854
+ limit = { can_preview_mission_of_key_and_batch = { key = FRA_HRE batch = $batch$ } }
855
+ is_emperor = no
856
+ }
857
+ else = { hidden_trigger = { or = { always = yes } } }
434
858
  }
435
859
  can_select_branch_3 = {
436
- hidden_trigger = { always = yes }
860
+ if = {
861
+ limit = {
862
+ or = {
863
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
864
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
865
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
866
+ }
867
+ }
868
+ not = { religion = norse_pagan_reformed }
869
+ }
870
+ else = { hidden_trigger = { or = { always = yes } } }
871
+ if = {
872
+ limit = { can_preview_mission_of_key_and_batch = { key = TUR batch = $batch$ } }
873
+ not = { religion_group = muslim }
874
+ }
875
+ else = { hidden_trigger = { or = { always = yes } } }
437
876
  }
438
877
  can_select_branch_4 = {
439
- hidden_trigger = { always = yes }
878
+ if = {
879
+ limit = {
880
+ or = {
881
+ can_preview_mission_of_key_and_batch = { key = SWE batch = $batch$ }
882
+ can_preview_mission_of_key_and_batch = { key = DAN batch = $batch$ }
883
+ can_preview_mission_of_key_and_batch = { key = NOR batch = $batch$ }
884
+ }
885
+ }
886
+ religion = norse_pagan_reformed
887
+ }
888
+ else = { hidden_trigger = { or = { always = yes } } }
440
889
  }
441
890
  can_select_branch_5 = {
442
- hidden_trigger = { always = yes }
891
+ hidden_trigger = { or = { always = yes has_country_flag = has_$batch$_batch } }
443
892
  }
444
893
  can_select_branch = {
445
- can_select_branch_$value$ = yes
894
+ can_select_branch_$value$ = { batch = $batch$ }
446
895
  }