Diff to HTML by rtfpessoa

Files changed (2) hide show
  1. common/scripted_triggers/00_scripted_triggers.txt +66 -36
  2. common/scripted_triggers/02_scripted_triggers_missions.txt +485 -36
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
  }