More commenting things out

This commit is contained in:
Heidesommer 2026-05-30 04:14:43 -04:00
parent 4618ca7ce3
commit fc88308bc8
22 changed files with 13251 additions and 508 deletions

View file

@ -0,0 +1,75 @@
##############################################################
# Structure
##############################################################
#
# These files comprise the Achievement Database.
#
# Achievements Flags
#
# When we add flags etc for achievements, we need to do it in a certain roundabout way, or else it'll trigger errors
# when running some of our automated tests. For context, these tests run the game without graphics, which for one
# reason or another, don't read achievements.
# Thus if the only place an achievement flag/variable is read is inside the achievement script, we end up with errors
# like these during the test:
#
# [15:36:43][jomini_effect.cpp:324]: Character flag 'rd_character_blocked_far_from_home_achievement' is set but is never used
# [15:36:43][jomini_effect.cpp:324]: Variable 'first_of_the_crusader_kings_achievement_flag' is set but is never used
#
# Instead use the scripted achievement effects such as add_achievement_flag_effect.
# They will suppress the above errors by adding dummy usages as well.
#
# Look for all effects in achievement_effects.txt, the different effects are used for different kinds of achievement checks.
# Key of the achievement. Name and description loc keys will use this as base in achievements_l_LANGUAGE.yml
# name: ACHIEVEMENT_your_achievement_key
# description: ACHIEVEMENT_DESC_your_achievement_key
your_achievement_key = {
### possible (trigger, optional)
#
# A player-character-scoped trigger that determines whether the achievement can ever be unlocked in this run.
# This allows the player to see which achievement they can aim for in this run. Can be empty and check for variables
#
# Scopes:
# root = the character being played
possible = {
}
### happened (trigger)
#
# A player-character-scoped trigger that determines whether the achievement was unlocked.
# In practice we always use a custom_description trigger to be able to show custom trigger text.
# The custom trigger descriptions are defined in XX_track_achievement_triggers.txt in the common/trigger_localization folder.
# After the text you can write the actual condition to unlock the achievement.
happened = {
custom_description = {
# Name of the custom trigger localization. Usually the structure to use in the achievement_triggers file goes like this:
#
# your_achievement_key_trigger = {
# global = ACHIEVEMENT_DESC_your_achievement_key
# }
text = your_achievement_key_trigger
### subject (optional)
# scope object of the subject of the text's phrase, to be used when localizing the text's variable entities (he/she/I...).
# This only affects the text localization. Generally unused for achievements.
subject = {}
### object (optional)
# scope object of the object of the text's phrase, to be used when localizing the text's variable entities (he/she/I...).
# This only affects the text localization. Generally unused for achievements.
object = {}
### value (optional)
# scope object of a numeric value to be used in the text's phrase.
# This only affects the text localization. Generally unused for achievements.
value = {}
# Everything else in this custom_description is counted as a Character-scoped trigger that checks if the current situation can unlock this achievement.
#
# Scopes:
# root = the character being played
exists = root.capital_province
}
}
}

View file

@ -0,0 +1,152 @@
###01. Not Today
##ce1_not_today_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_not_today_achievement_trigger
## exists = global_var:ce1_not_today_achievement_unlocked
## }
## }
##}
##
###02. Divine Right
##ce1_divine_right_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_divine_right_achievement_trigger
## legitimacy_level >= max_legitimacy_level_value
## }
## }
##}
##
###03. You'll Never Take Me Alive
##ce1_youll_never_take_me_alive_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_youll_never_take_me_alive_achievement_trigger
## exists = root.capital_province
## location = {
## this != root.capital_province
## NOT = {
## any_province_epidemic = { }
## }
## }
## root.capital_province = {
## any_province_epidemic = { }
## }
## }
## }
##}
##
###04. The Pharaoh Islands
##ce1_the_pharaoh_islands_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_the_pharaoh_islands_achievement_trigger
## exists = global_var:ce1_the_pharaoh_islands_achievement_unlocked
## }
## }
##}
##
###05. Canonized
##ce1_canonized_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_canonized_achievement_trigger
## exists = global_var:ce1_canonized_achievement_unlocked
## }
## }
##}
##
###06. Upward Mobility
##ce1_upward_mobility_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_upward_mobility_achievement_trigger
## exists = global_var:ce1_upward_mobility_achievement_unlocked
## }
## }
##}
##
###07. Can't Touch This
##ce1_cant_touch_this_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_cant_touch_this_achievement_trigger
## exists = global_var:ce1_cant_touch_this_achievement_unlocked
## }
## }
##}
##
###08. Legendary!
##ce1_legendary_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_legendary_achievement_trigger
## exists = global_var:ce1_legendary_achievement_unlocked
## }
## }
##}
##
###9. Pay Respects
##ce1_f_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_f_achievement_trigger
## exists = global_var:ce1_f_achievement_unlocked
## }
## }
##}
##
###10. Local Legend
##ce1_local_legend_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_local_legend_achievement_trigger
## exists = global_var:ce1_local_legend_achievement_unlocked
## }
## }
##}
##
###11. Neverending Story
##ce1_neverending_story_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = ce1_neverending_story_achievement_trigger
## exists = global_var:ce1_neverending_story_achievement_unlocked
## }
## }
##}
##

View file

@ -0,0 +1,349 @@
#ep1_01_achievement = {
# possible = {
# exists = global_var:started_patronage_achievement
# }
# happened = {
# custom_description = {
# text = patronage_achievement_trigger
# any_courtier_or_guest = {
# has_variable = created_artifact_for
# var:created_artifact_for = ROOT
# }
# }
# }
#}
#
#ep1_02_achievement = {
# possible = {
# exists = global_var:started_converging_paths_achievement
# }
# happened = {
# custom_description = {
# text = converging_paths_achievement_trigger
# root.culture = {
# is_hybrid_culture = yes
# exists = var:ep1_02_achievement_unlocked
# var:ep1_02_achievement_unlocked >= 1
# }
# }
# }
#}
#
#ep1_03_achievement = {
# possible = {
# exists = global_var:started_changing_course_achievement
# }
# happened = {
# custom_description = {
# text = changing_course_achievement_trigger
# root.culture = {
# is_divergent_culture = yes
# exists = var:ep1_03_achievement_unlocked
# var:ep1_03_achievement_unlocked >= 1
# }
# }
# }
#}
#
#ep1_04_achievement = {
# possible = {
# exists = global_var:started_hoarder_achievement
# }
# happened = {
# custom_description = {
# text = hoarder_achievement_trigger
# all_court_artifact_slots = full
# all_inventory_artifact_slots = full
# }
# }
#}
#
#ep1_05_achievement = {
# possible = {
# exists = global_var:started_creme_de_la_creme_achievement
#
# }
# happened = {
# custom_description = {
# text = creme_de_la_creme_achievement_trigger
# court_grandeur_current_level >= 10
# }
# }
#}
#
#ep1_06_achievement = {
# possible = {
# exists = global_var:started_polyglot_achievement
# }
# happened = {
# custom_description = {
# text = polyglot_achievement_trigger
# num_of_known_languages >= 10
# }
# }
#}
#
#ep1_07_achievement = {
# possible = {
# exists = global_var:started_inspirational_achievement
# }
# happened = {
# custom_description = {
# text = inspirational_achievement_trigger
# exists = global_var:ep1_07_achievement_inspiration_count_tracker
# global_var:ep1_07_achievement_inspiration_count_tracker >= 30
# }
# }
#}
#
#ep1_08_achievement = {
# possible = {
# exists = global_var:started_one_of_a_kind_achievement
# }
# happened = {
# custom_description = {
# text = one_of_a_kind_achievement_trigger
# has_variable = one_of_a_kind_var
# any_character_artifact = { this = root.var:one_of_a_kind_var }
# }
# }
#}
#
#ep1_09_achievement = {
# possible = {
# exists = global_var:started_true_tolerance_achievement
# }
# happened = {
# custom_description = {
# text = true_tolerance_achievement_trigger
# trigger_if = { # For performance
# limit = {
# any_realm_county = {
# count >= 10
# culture = {
# THIS != ROOT.culture
# cultural_acceptance = {
# target = ROOT.culture
# value >= 95
# }
# }
# }
# }
# any_culture_global = {
# count >= 10
# cultural_acceptance = {
# target = ROOT.culture
# value >= 95
# }
# any_culture_county = { holder.top_liege = ROOT }
# }
# }
# trigger_else = { always = no }
# }
# }
#}
#
#
#ep1_10_achievement = {
# possible = {
# exists = global_var:started_delusions_of_grandeur_achievement_achievement
# }
# happened = {
# custom_description = {
# text = delusions_of_grandeur_achievement_trigger
# court_grandeur_current_level >= delusions_of_grandeur_level_difference
# }
# }
#}
#
#ep1_11_achievement = {
# possible = {
# exists = global_var:started_bod_chen_po_achievement
# }
# happened = {
# custom_description = {
# text = bod_chen_po_achievement_trigger
# root.dynasty = { this = dynasty:105800 }
# has_title = title:e_tibet
# }
# }
#}
#
#ep1_12_achievement = {
# possible = {
# exists = global_var:started_turkish_eagle_achievement
# }
# happened = {
# custom_description = {
# text = turkish_eagle_achievement_trigger
# has_title = title:k_rum
# root.culture = {
# is_hybrid_culture = yes
# any_parent_culture_or_above = { this = culture:turkish }
# any_parent_culture_or_above = { this = culture:greek }
# }
# }
# }
#}
#
#ep1_13_achievement = {
# possible = {
# exists = global_var:started_rise_of_the_ghurids_achievement
# }
# happened = {
# custom_description = {
# text = rise_of_the_ghurids_achievement_trigger
# completely_controls_region = dlc_ep1_achievement_rise_of_the_ghurids
# }
# }
#}
#
#ep1_14_achievement = {
# possible = {
# exists = global_var:started_brave_and_bold_achievement
# }
# happened = {
# custom_description = {
# text = brave_and_bold_achievement_trigger
# has_title = title:k_poland
# government_has_flag = government_is_feudal
# any_character_artifact = {
# artifact_slot_type = primary_armament
# OR = {
# rarity = illustrious
# rarity = famed
# }
# }
# any_character_artifact = {
# artifact_slot_type = armor
# OR = {
# rarity = illustrious
# rarity = famed
# }
# }
# any_character_artifact = {
# artifact_slot_type = helmet
# OR = {
# rarity = illustrious
# rarity = famed
# }
# }
# any_character_artifact = {
# artifact_slot_type = regalia
# OR = {
# rarity = illustrious
# rarity = famed
# }
# }
# }
# }
#}
#
#ep1_15_achievement = {
# possible = {
# exists = global_var:started_lingua_franca_achievement
# NOT = { exists = global_var:any_ruler_designed_character_achievement }
# }
# happened = {
# custom_description = {
# text = lingua_franca_achievement_trigger
# has_royal_court = yes
# NOT = {
# any_character_with_royal_court = {
# NOT = {
# has_same_court_language = root
# }
# }
# }
# }
# }
#}
#
#ep1_16_achievement = {
# possible = {
# exists = global_var:started_beta_israel_achievement
# NOT = { exists = global_var:any_ruler_designed_character_achievement }
# }
# happened = {
# custom_description = {
# text = beta_israel_achievement_trigger
# exists = global_var:diverged_culture_beta_israel_achievement
# root.faith.religion = religion:judaism_religion
# highest_held_title_tier >= tier_kingdom
# root.culture = { is_divergent_culture = yes }
# }
# }
#}
#
#ep1_17_achievement = {
# possible = {
# exists = global_var:started_they_belong_in_a_museum_achievement
# }
# happened = {
# custom_description = {
# text = they_belong_in_a_museum_achievement_trigger
# any_court_position_holder = {
# type = antiquarian_court_position
# has_variable = completed_adventure_inspirations
# }
# }
# }
#}
#
#
#
#
#ep1_18_achievement = {
# possible = {
# exists = global_var:started_i_made_this_achievement
# }
# happened = {
# custom_description = {
# text = i_made_this_achievement_trigger
# any_character_artifact = {
# exists = var:last_person_to_steal
# var:last_person_to_steal = {
# OR = {
# any_child = { this = root }
# this = root.primary_title.previous_holder
# }
# }
# }
# }
# }
#}
#
#ep1_19_achievement = {
# possible = {
# exists = global_var:started_nobody_comes_to_fika_achievement
# }
# happened = {
# custom_description = {
# text = nobody_comes_to_fika_achievement_trigger
# exists = global_var:diverged_culture_nobody_comes_to_fika_achievement
# root.culture = { is_divergent_culture = yes }
# any_sub_realm_county = {
# count >= 30
# culture = root.culture
# }
# }
# }
#}
#
#ep1_20_achievement = {
# possible = {
# exists = global_var:started_the_true_royal_court_achievement
# }
# happened = {
# custom_description = {
# text = the_true_royal_court_achievement_trigger
# root.liege != root
# highest_held_title_tier = tier_kingdom
# root.liege = {
# highest_held_title_tier = tier_empire
# }
# root.court_grandeur_current > root.liege.court_grandeur_current
# }
# }
#}
#

View file

@ -0,0 +1,374 @@
## 01. The Grandest Tour
#ep2_01_the_grandest_tour_achievement = {
# possible = {
# exists = global_var:started_the_grandest_tour_achievement
#
# }
# happened = {
# custom_description = {
# text = the_grandest_tour_achievement_trigger
# exists = global_var:finished_the_grandest_tour_achievement
# }
# }
#}
#
## 02. Your Eternal Reward
#ep2_02_your_eternal_reward_achievement = {
# possible = {
# exists = global_var:started_your_eternal_reward_achievement
#
# }
# happened = {
# custom_description = {
# text = your_eternal_reward_achievement_trigger
# exists = global_var:finished_your_eternal_reward_achievement
# }
# }
#}
#
## 03. Imperial March
#ep2_03_imperial_march_achievement = {
# possible = {
# exists = global_var:started_imperial_march_achievement
#
# }
# happened = {
# custom_description = {
# text = imperial_march_achievement_trigger
# exists = global_var:finished_imperial_march_achievement
# }
# }
#}
#
## 04. Black Dinner
#ep2_04_black_dinner_achievement = {
# possible = {
# exists = global_var:started_black_dinner_achievement
#
# }
# happened = {
# custom_description = {
# text = black_dinner_achievement_trigger
# exists = global_var:finished_black_dinner_achievement
# }
# }
#}
#
## 05. There and Back Again
#ep2_05_there_and_back_again_achievement = {
# possible = {
# exists = global_var:started_there_and_back_again_achievement
#
# }
# happened = {
# custom_description = {
# text = there_and_back_again_achievement_trigger
# has_trait_xp = {
# trait = lifestyle_traveler
# track = travel
# value >= 100
# }
# has_trait_xp = {
# trait = lifestyle_traveler
# track = danger
# value >= 100
# }
# }
# }
#}
#
## 06. The Very Best
#ep2_06_the_very_best_achievement = {
# possible = {
# exists = global_var:started_the_very_best_achievement
#
# }
# happened = {
# custom_description = {
# text = the_very_best_achievement_trigger
# OR = {
# has_trait_xp = {
# trait = tourney_participant
# track = foot
# value >= 100
# }
# has_trait_xp = {
# trait = tourney_participant
# track = bow
# value >= 100
# }
# has_trait_xp = {
# trait = tourney_participant
# track = horse
# value >= 100
# }
# has_trait_xp = {
# trait = tourney_participant
# track = wit
# value >= 100
# }
# }
# }
# }
#}
#
## 07. Like No One Ever Was
#ep2_07_like_no_one_ever_was_achievement = {
# possible = {
# exists = global_var:started_like_no_one_ever_was_achievement
#
# }
# happened = {
# custom_description = {
# text = like_no_one_ever_was_achievement_trigger
# has_trait_xp = {
# trait = tourney_participant
# track = foot
# value >= 100
# }
# has_trait_xp = {
# trait = tourney_participant
# track = bow
# value >= 100
# }
# has_trait_xp = {
# trait = tourney_participant
# track = horse
# value >= 100
# }
# has_trait_xp = {
# trait = tourney_participant
# track = wit
# value >= 100
# }
# }
# }
#}
#
## 08. A Thousand and One Night
#ep2_08_a_thousand_and_one_nights_achievement = {
# possible = {
# exists = global_var:started_a_thousand_and_one_nights_achievement
#
# }
# happened = {
# custom_description = {
# text = a_thousand_and_one_nights_achievement_trigger
# exists = global_var:finished_a_thousand_and_one_nights_achievement
# }
# }
#}
#
## 09. A Knight's Tale
#ep2_09_a_knights_tale_achievement = {
# possible = {
# exists = global_var:started_a_knights_tale_achievement
#
# }
# happened = {
# custom_description = {
# text = a_knights_tale_achievement_trigger
# exists = global_var:finished_a_knights_tale_achievement
# }
# }
#}
#
## 10. Hunting Accident
#ep2_10_hunting_accident_achievement = {
# possible = {
# exists = global_var:started_hunting_accident_achievement
#
# }
# happened = {
# custom_description = {
# text = hunting_accident_achievement_trigger
# exists = global_var:finished_hunting_accident_achievement
# }
# }
#}
#
## 11. Lions and Tigers and Bears, Oh My!
#ep2_11_lions_and_tigers_and_bears_oh_my_achievement = {
# possible = {
# exists = global_var:started_lions_and_tigers_and_bears_oh_my_achievement
#
# }
# happened = {
# custom_description = {
# text = lions_and_tigers_and_bears_oh_my_achievement_trigger
# has_character_modifier = hunt_captive_beast_modifier
# }
# }
#}
#
## 12. Fly, my Pretty!
#ep2_12_fly_my_pretty_achievement = {
# possible = {
# exists = global_var:started_fly_my_pretty_achievement
#
# }
# happened = {
# custom_description = {
# text = fly_my_pretty_achievement_trigger
# has_trait_xp = {
# trait = lifestyle_hunter
# track = falconer
# value >= 100
# }
# }
# }
#}
#
## 13. Pathway to Heaven
#ep2_13_pathway_to_heaven_achievement = {
# possible = {
# exists = global_var:started_pathway_to_heaven_achievement
#
# }
# happened = {
# custom_description = {
# text = pathway_to_heaven_achievement_trigger
# faith = {
# any_holy_site = {
# count = all
# save_temporary_scope_as = holy_site_temp
# root = {
# is_target_in_variable_list = {
# name = pathway_to_heaven_achievement_tally
# target = scope:holy_site_temp
# }
# }
# }
# }
# }
# }
#}
#
## 14. Sir Lance-a-Lot
#ep2_14_sir_lance_a_lot_achievement = {
# possible = {
# exists = global_var:started_sir_lance_a_lot_achievement
#
# }
# happened = {
# custom_description = {
# text = sir_lance_a_lot_achievement_trigger
# exists = global_var:achieved_sir_lance_a_lot_achievement
# }
# }
#}
#
## 15. I'm in my Element(s)
#ep2_15_im_in_my_elements_achievement = {
# possible = {
# exists = global_var:started_im_in_my_elements_achievement
#
# }
# happened = {
# custom_description = {
# text = im_in_my_elements_achievement_trigger
# has_variable_list = ep2_im_in_my_elements_achievement_terrain_list
# variable_list_size = {
# name = ep2_im_in_my_elements_achievement_terrain_list
# # 16 terrains as of ~March 2023 — will need incrementing if we add more.
# # 17 terrains as of ~October 2025 — will need incrementing if we add more.
# value >= 17
# }
# }
# }
#}
#
## 16. Ahab
#ep2_16_ahab_achievement = {
# possible = {
# exists = global_var:started_ahab_achievement
#
# }
# happened = {
# custom_description = {
# text = ahab_achievement_trigger
# exists = global_var:achieved_ahab_achievement
# }
# }
#}
#
## 17. Little William Marshal
#ep2_17_little_william_marshal_achievement = {
# possible = {
# exists = global_var:started_little_william_marshal_achievement
#
# }
# happened = {
# custom_description = {
# text = little_william_marshal_achievement_trigger
# exists = global_var:finished_little_william_marshal_achievement
# }
# }
#}
#
## 18. A True & Perfect Knight
#ep2_18_a_true_and_perfect_knight_achievement = {
# possible = {
# exists = global_var:started_a_true_and_perfect_knight_achievement
#
# }
# happened = {
# custom_description = {
# text = a_true_and_perfect_knight_achievement_trigger
# any_active_accolade = {
# accolade_rank >= 6
# acclaimed_knight = { has_trait = faith_warrior }
# }
# }
# }
#}
#
## 19. A.E.I.O.U & Me
#ep2_19_a_e_i_o_u_and_me_achievement = {
# possible = {
# exists = global_var:started_a_e_i_o_u_and_me_achievement
#
# }
# happened = {
# custom_description = {
# text = a_e_i_o_u_and_me_achievement_trigger
# NOT = { exists = global_var:player_declared_war }
# has_title = title:k_austria
# dynasty ?= {
# has_variable = a_e_i_o_u_and_me_achievement_grand_wedding_tally
# var:a_e_i_o_u_and_me_achievement_grand_wedding_tally >= 5
# }
# }
# }
#}
#
## 20. The Iron and Golden King
#ep2_20_the_iron_and_golden_king_achievement = {
# possible = {
# exists = global_var:started_the_iron_and_golden_king_achievement
#
# }
# happened = {
# custom_description = {
# text = the_iron_and_golden_king_achievement_trigger
# capital_county ?= {
# # Has any special mine.
# ## We let you have any province in the capital county for this.
# any_county_province = { county_has_any_special_mine_building_trigger = yes }
# # But then, we need to be stricter with some triggers.
# title_province = {
# # Has insanely high income.
# monthly_income >= 60
# # Has heavy cavs.
# has_stationed_regiment_of_base_type = heavy_cavalry
# }
# }
# # Plus make sure you've got an amount: they can be instantly switched around, so we're not fussed where they are.
# number_maa_soldiers_of_base_type = {
# type = heavy_cavalry
# value >= 500
# }
# }
# }
#}
#

View file

@ -0,0 +1,320 @@
## 01. The Old Man of the Mountain
#ep3_01_the_old_man_of_the_mountain_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = the_old_man_of_the_mountain_achievement_trigger
# this = character:41702
# exists = global_var:finished_the_old_man_of_the_mountain_achievement
# }
# }
#}
#
## 02. Band of Brothers
#ep3_02_band_of_brothers_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = band_of_brothers_trigger
# has_government = landless_adventurer_government
# any_courtier = {
# count >= 10
# is_alive = yes
# }
# any_courtier = {
# count = all
# opinion = {
# target = root
# value >= 40 # sync with define:NDomicile|TEMPERAMENT_THRESHOLD_HIGH
# }
# }
# }
# }
#}
#
## 03. Mio Cid
#ep3_03_mio_cid_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = mio_cid_achievement_trigger
# this = character:107590
# exists = global_var:finished_mio_cid_achievement
# }
# }
#}
#
## 04. Birthright
#ep3_04_birthright_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = birthright_achievement_trigger
# exists = global_var:finished_birthright_achievement
# }
# }
#}
#
## 05. Historically Inaccurate
#ep3_05_historically_inaccurate_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = historically_inaccurate_achievement_trigger
# exists = global_var:finished_historically_inaccurate_achievement
# }
# }
#}
#
## 06. Quantum Leap
#ep3_06_quantum_leap_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = quantum_leap_achievement_trigger
# exists = global_var:achievement_quantum_leap_count_tracker
# global_var:achievement_quantum_leap_count_tracker >= 5
# }
# }
#}
#
## 07. Kingdom of Heaven
#ep3_07_kingdom_of_heaven_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = kingdom_of_heaven_achievement_trigger
# exists = global_var:finished_kingdom_of_heaven_achievement
# }
# }
#}
#
## 08. New Management, same as the Old Management
#ep3_08_new_management_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = new_management_achievement_trigger
# exists = global_var:finished_new_management_achievement
# }
# }
#}
#
## 09. Rags to Riches to Rags to Riches
#ep3_09_rags_to_riches_to_rags_to_riches_achievement = {
# possible = {
# has_global_variable = achievement_rags_to_riches_to_rags_to_riches_valid
# }
# happened = {
# custom_description = {
# text = rags_to_riches_to_rags_to_riches_achievement_trigger
# exists = global_var:finished_rags_to_riches_to_rags_to_riches_achievement
# }
# }
#}
#
## 10. Tamar Mepe
#ep3_10_tamar_mepe_achievement = {
# possible = {
# this = character:466517
# }
# happened = {
# custom_description = {
# text = tamar_mepe_achievement_trigger
# this = character:466517
# completely_controls = title:k_georgia
# completely_controls = title:k_armenia
# completely_controls = title:k_daylam
# }
# }
#}
#
## 11. Despoiler of Byzantium
#ep3_11_despoiler_of_byzantium_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = despoiler_of_byzantium_achievement_trigger
# has_title = title:e_latin_empire
# has_trait = despoiler_of_byzantium
# }
# }
#}
#
## 12. Chaos is a Ladder
#ep3_12_chaos_is_a_ladder_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = chaos_is_a_ladder_achievement_trigger
# government_allows = administrative
# house ?= { is_dominant_family = yes }
# }
# }
#}
#
## 13. Epic Paperwork
#ep3_13_epic_paperwork_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = epic_paperwork_achievement_trigger
# exists = global_var:achieved_epic_paperwork_achievement
# }
# }
#}
#
## 14. Against the Odds
#ep3_14_against_the_odds_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = against_the_odds_achievement_trigger
# exists = global_var:achieved_against_the_odds_achievement
# }
# }
#}
#
## 15. In Good Estate
#ep3_15_in_good_estate_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = in_good_estate_achievement_trigger
# domicile ?= {
# has_domicile_building_or_higher = estate_main_05
# calc_true_if = {
# amount >= 6
# has_domicile_building_or_higher = temple_small_01
# has_domicile_building_or_higher = barracks_01
# has_domicile_building_or_higher = watchtower_01
# has_domicile_building_or_higher = guardhouse_01
# has_domicile_building_or_higher = garden_01
# has_domicile_building_or_higher = stable_01
# has_domicile_building_or_higher = workshop_01
# has_domicile_building_or_higher = storage_01
# has_domicile_building_or_higher = market_01
# has_domicile_building_or_higher = grazing_land_01
# has_domicile_building_or_higher = grain_field_01
# has_domicile_building_or_higher = vineyard_01
# has_domicile_building_or_higher = olive_01
# has_domicile_building_or_higher = silk_01
# }
# }
# }
# }
#}
#
## 16. It's OK, I Got a Permit
#ep3_16_i_got_a_permit_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = i_got_a_permit_achievement_trigger
# exists = global_var:achieved_i_got_a_permit_achievement
# }
# }
#}
#
## 17. Despotic
#ep3_17_despotic_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = despotic_achievement_trigger
# top_liege != this
# liege ?= {
# may_appoint_co_emperors_trigger = yes
# has_diarchy_type = co_emperorship
# diarch ?= root
# }
# government_allows = administrative
# highest_held_title_tier = tier_kingdom
# }
# }
#}
#
## 18. Byzywork
#ep3_18_byzywork_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = byzywork_achievement_trigger
# highest_held_title_tier < tier_empire
# house ?= {
# any_house_member = {
# count >= 5
# top_liege != this
# government_allows = administrative
# highest_held_title_tier >= tier_duchy
# top_liege = root.top_liege
# this != root
# }
# }
# }
# }
#}
#
## 19. Not Content to Serve
#ep3_19_not_content_to_serve_achievement = {
# possible = {
#
# OR = {
# this = character:34281
# this = character:215009
# }
# }
# happened = {
# custom_description = {
# text = not_content_to_serve_achievement_trigger
# has_title = title:e_byzantium
# }
# }
#}
#
## 20. Started from the Bottom now we're ERE
#ep3_20_started_from_the_bottom_now_were_ere_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = started_from_the_bottom_now_were_ere_achievement_trigger
# exists = global_var:started_from_the_bottom_now_were_ere_procure
# has_title = title:e_byzantium
# }
# }
#}
#

View file

@ -0,0 +1,293 @@
## 01. Fishing in China
#ep4_01_fishing_in_china_achievement = {
# possible = {
# this = character:6878
# }
# happened = {
# custom_description = {
# text = ep4_01_fishing_in_china_achievement_trigger
# this = character:6878
# has_title = title:h_china
# }
# }
#}
#
## 02. The Heavenly Kingdom
#ep4_02_the_heavenly_kingdom_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_02_the_heavenly_kingdom_achievement_trigger
# has_title = title:h_china
# government_has_flag = government_is_celestial
# religion = religion:christianity_religion
# faith.religious_head ?= this
# }
# }
#}
#
## 03. Sword of Japan
#ep4_03_sword_of_japan_achievement = {
# possible = {
# exists = global_var:started_ep4_03_sword_of_japan_achievement
# }
# happened = {
# custom_description = {
# text = ep4_03_sword_of_japan_achievement_trigger
# exists = global_var:finished_ep4_03_sword_of_japan_achievement
# }
# }
#}
#
## 04. A Living God on Earth
#ep4_04_a_living_god_on_earth_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_04_a_living_god_on_earth_achievement_trigger
# government_has_flag = government_is_mandala
# piety_level >= 8
# mandala_radiance_value >= 100
# }
# }
#}
#
## 05. Grand Governor
#ep4_05_grand_governor_achievement = {
# possible = {
# exists = global_var:started_ep4_05_grand_governor_achievement
# }
# happened = {
# custom_description = {
# text = ep4_05_grand_governor_achievement_trigger
# government_has_flag = government_is_celestial
# tgp_is_any_minister = yes
# }
# }
#}
#
## 06. Mandate of Heaven
#ep4_06_mandate_of_heaven_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_06_mandate_of_heaven_achievement_trigger
# exists = global_var:finished_ep4_06_mandate_of_heaven_achievement_trigger
# }
# }
#}
#
## 07. Cut off the Head... and the Body will Follow
#ep4_07_cut_off_the_head_and_the_body_will_follow_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_07_cut_off_the_head_and_the_body_will_follow_achievement_trigger
# exists = global_var:finished_ep4_07_cut_off_the_head_and_the_body_will_follow_achievement
# }
# }
#}
#
## 08. Shōgun
#ep4_08_shogun_achievement = {
# possible = {
# this = character:japanese_minamoto_seiwa_10
# }
# happened = {
# custom_description = {
# text = ep4_08_shogun_achievement_trigger
# exists = global_var:finished_ep4_08_shogun_achievement
# }
# }
#}
#
## 09. Devaraja
#ep4_09_devaraja_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_09_devaraja_achievement_trigger
# has_mandala_aspect_level_5_trigger = yes
# capital_province = { has_building_or_higher = mandala_capital_04 }
# }
# }
#}
#
## 10. Confucian Scholar
#ep4_10_confucian_scholar_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_10_confucian_scholar_achievement_trigger
# has_trait = confucian_education
# has_trait_xp = {
# trait = confucian_education
# value >= 100
# }
# any_relation = {
# type = disciple
# count >= 5
# }
# }
# }
#}
#
## 11. Bloc Politics
#ep4_11_bloc_politics_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_11_bloc_politics_achievement_trigger
# confederation ?= {
# has_cohesion = yes
# cohesion >= 100
# }
# }
# }
#}
#
## 12. Upper-upper
#ep4_12_upper_upper_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_12_upper_upper_achievement_trigger
# merit_level >= 9
# }
# }
#}
#
## 13. How it's done, done, done
#ep4_13_how_its_done_done_done_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_13_how_its_done_done_done_achievement_trigger
# exists = global_var:achieved_ep4_13_how_its_done_done_done_achievement
# }
# }
#}
#
## 14. Daits How You Do It
#ep4_14_daits_how_you_do_it_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_14_daits_how_you_do_it_achievement_trigger
# exists = global_var:achieved_ep4_14_daits_how_you_do_it_achievement
# }
# }
#}
#
## 15. Humble Beginnings
#ep4_15_humble_beginnings_achievement = {
# possible = {
# exists = global_var:started_ep4_15_humble_beginnings_achievement
# }
# happened = {
# custom_description = {
# text = ep4_15_humble_beginnings_achievement_trigger
# government_has_flag = government_is_mandala
# capital_province = { has_building_with_flag = mandala_capital_building }
# }
# }
#}
#
## 16. Flying Colors
#ep4_16_flying_colors_achievement = {
# possible = {
# exists = global_var:started_ep4_16_flying_colors_achievement
# }
# happened = {
# custom_description = {
# text = ep4_16_flying_colors_achievement_trigger
# tgp_passed_children_examination = yes
# tgp_passed_provincial_examination = yes
# tgp_passed_metropolitan_examination = yes
# tgp_passed_palace_examination = yes
# }
# }
#}
#
## 17. Highway of Ideas
#ep4_17_highway_of_ideas_achievement = {
# possible = {
# exists = global_var:started_ep4_17_highway_of_ideas_achievement
# }
# happened = {
# custom_description = {
# text = ep4_17_highway_of_ideas_achievement_trigger
# culture = {
# any_known_innovation = {
# has_innovation_parameter = silk_road_innovation_parameter
# }
# }
# }
# }
#}
#
## 18. Yes I need, I need my Samurai
#ep4_18_yes_i_need_my_samurai_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_18_yes_i_need_my_samurai_achievement_trigger
# exists = global_var:achieved_ep4_18_yes_i_need_my_samurai_achievement
# }
# }
#}
#
## 19. Stamp of Approval
#ep4_19_stamp_of_approval_achievement = {
# possible = {
# exists = global_var:started_ep4_19_stamp_of_approval_achievement
# }
# happened = {
# custom_description = {
# text = ep4_19_stamp_of_approval_achievement_trigger
# top_liege.primary_title = title:h_china
# OR = {
# tgp_passed_children_examination = yes
# tgp_passed_provincial_examination = yes
# tgp_passed_metropolitan_examination = yes
# tgp_passed_palace_examination = yes
# }
# }
# }
#}
#
## 20. Promised Land
#ep4_20_promised_land_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ep4_20_promised_land_achievement_trigger
# exists = global_var:achieved_ep4_20_promised_land_achievement
# }
# }
#}
#

View file

@ -0,0 +1,172 @@
#fp1_01_achievement = {
# possible = {
# exists = global_var:started_far_from_home_achievement
#
# NOT = {
# is_target_in_global_variable_list = {
# name = unavailable_achievements
# target = flag:rd_character_blocked_far_from_home_achievement
# }
# }
# }
# happened = {
# custom_description = {
# text = miklagardariki_achievement_trigger
# fp1_achievement_culture_plus_religion_norse_trigger = yes
# capital_county.title_province = { geographical_region = dlc_fp1_achievement_far_from_home }
# }
# }
#}
#
#fp1_02_achievement = {
# possible = {
# exists = global_var:started_miklagardariki_achievement
#
# NOT = {
# is_target_in_global_variable_list = {
# name = unavailable_achievements
# target = flag:rd_character_blocked_miklagardariki_achievement
# }
# }
# }
# happened = {
# custom_description = {
# text = miklagardariki_achievement_trigger
# fp1_achievement_culture_plus_religion_norse_trigger = yes
# completely_controls = title:k_thessalonika
# highest_held_title_tier >= tier_empire
# NOT = {
# any_held_title = { this = title:e_byzantium }
# }
# }
# }
#}
#
#fp1_03_achievement = {
# possible = {
# exists = global_var:started_canute_the_greater_achievement
#
# }
# happened = {
# custom_description = {
# text = canute_the_greater_achievement_trigger
# has_character_flag = canute_the_greater_achievement_flag
# }
# }
#}
#
#fp1_04_achievement = {
# possible = {
# exists = global_var:started_king_of_all_the_isles_achievement
#
# # Realm size cannot ever go over a certain amount.
# realm_size <= 80
# }
# happened = {
# custom_description = {
# text = king_of_all_the_isles_achievement_trigger
# fp1_achievement_culture_plus_religion_norse_trigger = yes
# completely_controls_region = dlc_fp1_achievement_king_of_all_the_isles
# }
# }
#}
#
#fp1_05_achievement = {
# possible = {
# exists = global_var:started_faster_than_the_fox_achievement
#
# NOT = {
# is_target_in_global_variable_list = {
# name = unavailable_achievements
# target = flag:rd_character_blocked_faster_than_the_fox_achievement
# }
# }
# }
# happened = {
# custom_description = {
# text = faster_than_the_fox_achievement_trigger
# fp1_achievement_culture_plus_religion_norse_trigger = yes
# completely_controls = title:k_sicily
# top_liege = this
# current_date < 1047.1.1
# }
# }
#}
#
#fp1_06_achievement = {
# possible = {
# exists = global_var:started_volva_achievement
#
# }
# happened = {
# custom_description = {
# text = volva_achievement_trigger
# fp1_achievement_culture_plus_religion_norse_trigger = yes
# has_character_flag = volva_achievement_flag
# }
# }
#}
#
#fp1_07_achievement = {
# possible = {
# exists = global_var:started_saga_in_stone_achievement
#
# }
# happened = {
# custom_description = {
# text = saga_in_stone_achievement_trigger
# dynasty = {
# exists = var:saga_in_stone_achievement_tally
# var:saga_in_stone_achievement_tally >= 100
# }
# }
# }
#}
#
#fp1_08_achievement = {
# possible = {
# exists = global_var:started_first_of_the_crusader_kings_achievement
#
# NOT = { exists = global_var:had_first_catholic_crusade }
# }
# happened = {
# custom_description = {
# text = first_of_the_crusader_kings_achievement_trigger
# has_character_flag = first_of_the_crusader_kings_achievement_flag
# fp1_achievement_culture_norse_trigger = yes
# }
# }
#}
#
#fp1_09_achievement = {
# possible = {
# exists = global_var:started_vladimirs_second_choice_achievement
#
# }
# happened = {
# custom_description = {
# text = fans_of_ibn_fadlan_achievement_trigger
# fp1_achievement_culture_norse_or_rus_trigger = yes
# religion = religion:islam_religion
# any_county_in_region = {
# region = dlc_fp1_achievement_vladimirs_second_choice
# count = all
# religion = religion:islam_religion
# }
# }
# }
#}
#
#fp1_10_achievement = {
# possible = {
# exists = global_var:started_a_dangerous_business_achievement
#
# }
# happened = {
# custom_description = {
# text = a_dangerous_business_achievement_trigger
# has_character_flag = a_dangerous_business_achievement_flag
# }
# }
#}
#

View file

@ -0,0 +1,166 @@
##fp2_historys_best_friends = { # History's Best Friend
## possible = {
##
## }
## happened = {
## custom_description = {
## text = fp2_historys_best_friends_trigger
## exists = global_var:fp2_historys_best_friends_achievement_unlocked
## }
## }
##}
##
##fp2_basque_in_my_glory = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = fp2_basque_in_my_glory_trigger
## exists = global_var:fp2_basque_in_my_glory_achievement_unlocked
## }
## }
##}
##
##fp2_friendship_is_magic = {
## possible = {
##
## fp2_character_involved_in_struggle_trigger = yes
## }
## happened = {
## custom_description = {
## text = fp2_friendship_is_magic_trigger
## exists = global_var:fp2_friendship_is_magic_achievement_unlocked
## }
## }
##}
##
##fp2_high_stakes_chess = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = fp2_high_stakes_chess_trigger
## exists = global_var:fp2_high_stakes_chess_achievement_unlocked
## }
## }
##}
##
##fp2_iberia_or_iberia = {
## possible = {
##
## NOT = {
## is_target_in_global_variable_list = {
## name = unavailable_achievements
## target = flag:rd_character_blocked_iberia_or_iberia_achievement
## }
## }
## }
## happened = {
## custom_description = {
## text = fp2_iberia_or_iberia_trigger
## is_ai = no
## culture = { has_cultural_pillar = heritage_iberian }
## completely_controls_region = dlc_fp2_caucasian_iberia # custom_ireland can be used instead of dlc_fp2_caucasian_iberia for testing, otherwise use debug.411
## }
## }
##}
##
##fp2_andalusian_inquisition = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = fp2_andalusian_inquisition_trigger
## is_ai = no
## any_county_in_region = {
## region = world_europe_west_iberia
## count = all
## faith = faith:mozarabic_church
## }
## }
## }
##}
##
##fp2_iberian_hostilities = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = fp2_iberian_hostilities_trigger
## exists = global_var:fp2_iberian_hostilities_achievement_unlocked
## }
## }
##}
##
##fp2_iberian_conciliation = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = fp2_iberian_conciliation_trigger
## exists = global_var:fp2_iberian_conciliation_achievement_unlocked
## }
## }
##}
##
##fp2_iberian_compromise = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = fp2_iberian_compromise_trigger
## exists = global_var:fp2_iberian_compromise_achievement_unlocked
## }
## }
##}
##
##fp2_holiday_in_iberia = {
## possible = {
##
## exists = global_var:fp2_holiday_in_iberia_achievement_unlocked
## }
## happened = {
## custom_description = {
## text = fp2_holiday_in_iberia_trigger
## global_var:fp2_holiday_in_iberia_achievement_unlocked = yes
## }
## }
##}
##
##fp2_el_cid_achievement = {
## possible = {
##
## game_start_date > 1045
## NOT = {
## is_target_in_global_variable_list = {
## name = unavailable_achievements
## target = flag:rd_character_blocked_el_cid_achievement
## }
## }
## }
## happened = {
## custom_description = {
## text = fp2_el_cid_achievement_trigger
## exists = global_var:fp2_el_cid_achievement_unlocked
## }
## }
##}
##
##
### fp2_00_achievement = {
### possible = {
###
### }
### happened = {
### custom_description = {
### text = fp2_00_achievement_trigger
### #
### }
### }
### }

View file

@ -0,0 +1,167 @@
#####################################
### FP3 Achievements
### Ideation by The Thalassic Ship
### Implementation by Hugo Cortell
#####################################
##
### fp3_00_achievement = {
### possible = {
###
### }
### happened = {
### custom_description = {
### text = fp3_00_achievement_trigger
### #
### }
### }
### }
##
##fp3_rich_in_diversity_achievement = {
## possible = { }
## happened = {
## custom_description = {
## text = fp3_rich_in_diversity_achievement_trigger
## is_ai = no
## faith = {
## OR = {
## has_doctrine = tenet_tax_nonbelievers
## has_doctrine = special_doctrine_jizya
## }
## }
## any_vassal = {
## faith != root.faith
## count >= 10
## }
## }
## }
##}
##
##fp3_darius_revenge_achievement = {
## possible = { }
## happened = {
## custom_description = {
## text = fp3_darius_revenge_achievement_trigger
## is_ai = no
## has_title = title:e_persia
## has_title = title:k_thessalonika
## has_title = title:k_hellas
## culture = { has_cultural_pillar = heritage_iranian }
## }
## }
##}
##
##fp3_mulct_them_dry_achievement = {
## possible = { }
## happened = {
## custom_description = {
## text = fp3_mulct_them_dry_achievement_trigger
## has_character_flag = fp3_mulct_them_dry_achievement_flag
## }
## }
##}
##
##fp3_the_umma_strikes_back_achievement = {
## possible = {
##
## exists = global_var:fp3_the_umma_strikes_back_achievement_tracker
## }
## happened = {
## custom_description = {
## text = fp3_the_umma_strikes_back_achievement_trigger
## is_ai = no
## exists = global_var:fp3_the_umma_strikes_back_achievement_tracker
## has_title = title:e_arabia
## has_title = title:d_sunni
## faith = {
## has_doctrine = muhammad_succession_sunni_doctrine
## prev = religious_head
## }
## }
## }
##}
##
##fp3_royal_flush_achievement = { # Achievement for commiting sassasinations
## possible = { }
## happened = {
## custom_description = {
## text = fp3_royal_flush_achievement_trigger
## is_ai = no
## faith = {
## has_doctrine = tenet_fp3_fedayeen
## }
## has_character_flag = fp3_assassinated_tier1
## has_character_flag = fp3_assassinated_tier2
## has_character_flag = fp3_assassinated_tier3
## }
## }
##}
##
##fp3_fiscal_res_achievement = {
## possible = { }
## happened = {
## custom_description = {
## text = fp3_fiscal_res_achievement_trigger
## is_ai = no
## any_tax_collector = {
## count = 5 # Use "all" for dynamic, 5 is max and makes achi harder
## tax_collector_aptitude = {
## target = clan_tax_slot
## value >= 4
## }
## }
## }
## }
##}
##
##fp3_abassid_strong_achievement = {
## possible = {
##
## exists = struggle:persian_struggle
## }
## happened = {
## custom_description = {
## text = fp3_abassid_strong_achievement_trigger
## has_character_flag = fp3_abassid_strong_achievement_unlocked
## }
## }
##}
##
##fp3_challenger_caliphate_achievement = {
## possible = {
##
## exists = struggle:persian_struggle
## }
## happened = {
## custom_description = {
## text = fp3_challenger_caliphate_achievement_trigger
## has_character_flag = fp3_challenger_caliphate_achievement_unlocked
## }
## }
##}
##
##fp3_vassalize_the_caliph_achievement = {
## possible = {
##
## exists = struggle:persian_struggle
## }
## happened = {
## custom_description = {
## text = fp3_vassalize_the_caliph_achievement_trigger
## has_character_flag = fp3_vassalize_the_caliph_achievement_unlocked
## }
## }
##}
##
##fp3_rekindle_iran_achievement = {
## possible = {
##
## exists = struggle:persian_struggle
## }
## happened = {
## custom_description = {
## text = fp3_rekindle_iran_achievement_trigger
## has_character_flag = fp3_rekindle_iran_achievement_unlocked
## }
## }
##}
##

View file

@ -0,0 +1,143 @@
###01. The Stallion that Mounts the World
##mpo_the_stallion_that_mounts_the_world_achievement = {
## possible = {
## exists = global_var:started_the_stallion_that_mounts_the_world_achievement
## }
## happened = {
## custom_description = {
## text = mpo_the_stallion_that_mounts_the_world_achievement_trigger
## NOT = {
## any_independent_ruler = {
## this != root
## is_landed = yes
## is_tributary = no
## }
## }
## }
## }
##}
##
###02. Nobody's Business
##mpo_nobodys_business_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = mpo_nobodys_business_achievement_trigger
## exists = global_var:mpo_nobodys_business_achievement_unlocked
## }
## }
##}
##
###03. Tribute Band
##mpo_tribute_band_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = mpo_tribute_band_achievement_trigger
## any_tributary = {
## count >= 30
## }
## }
## }
##}
##
###04. This Chinggis Everything
##mpo_this_chinggis_everything_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = mpo_this_chinggis_everything_achievement_trigger
## has_trait = greatest_of_khans
## }
## }
##}
##
###05. Steppe by Steppe
##mpo_steppe_by_steppe_achievement = {
## possible = {
## exists = global_var:started_steppe_by_steppe_achievement
## }
## happened = {
## custom_description = {
## text = mpo_steppe_by_steppe_achievement_trigger
## exists = global_var:mpo_steppe_by_steppe_achievement_unlocked
## }
## }
##}
##
###06. In Xanadu
##mpo_in_xanadu_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = mpo_in_xanadu_achievement_trigger
## any_sub_realm_county = {
## any_county_province = {
## has_building_or_higher = pleasure_dome
## }
## }
## }
## }
##}
##
###07. Settling In
##mpo_settling_in_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = mpo_settling_in_achievement_trigger
## exists = global_var:mpo_settling_in_achievement_unlocked
## }
## }
##}
##
###08. Blood of my Blood
##mpo_blood_of_my_blood_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = mpo_blood_of_my_blood_achievement_trigger
## any_relation = {
## type = blood_brother
## }
## }
## }
##}
##
###9. Con-fed-up
##mpo_confedup_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = mpo_confedup_achievement_trigger
## exists = global_var:mpo_confedup_achievement_unlocked
## }
## }
##}
##
###10. Shut Up, Nerge
##mpo_shut_up_nerge_achievement = {
## possible = {
##
## }
## happened = {
## custom_description = {
## text = mpo_shut_up_nerge_achievement_trigger
## exists = global_var:mpo_shut_up_nerge_achievement_unlocked
## }
## }
##}

View file

@ -0,0 +1,757 @@
{
"mapping": [
{
"pdx_id": "until_death_do_us_part_achievement",
"xbla_id": "1"
},
{
"pdx_id": "way_of_life_achievement",
"xbla_id": "2"
},
{
"pdx_id": "a_legacy_to_last_the_ages_achievement",
"xbla_id": "3"
},
{
"pdx_id": "a_house_of_my_own_achievement",
"xbla_id": "4"
},
{
"pdx_id": "dreadful_ruler_achievement",
"xbla_id": "5"
},
{
"pdx_id": "stressful_situation_achievement",
"xbla_id": "6"
},
{
"pdx_id": "not_so_feudal_system_achievement",
"xbla_id": "7"
},
{
"pdx_id": "the_succession_is_safe_achievement",
"xbla_id": "8"
},
{
"pdx_id": "almost_there_achievement",
"xbla_id": "9"
},
{
"pdx_id": "last_count_first_king_achievement",
"xbla_id": "10"
},
{
"pdx_id": "prolific_achievement",
"xbla_id": "11"
},
{
"pdx_id": "a_name_known_throughout_the_world_achievement",
"xbla_id": "12"
},
{
"pdx_id": "end_of_an_era_achievement",
"xbla_id": "13"
},
{
"pdx_id": "turning_to_diamonds_achievement",
"xbla_id": "14"
},
{
"pdx_id": "reconquista_achievement",
"xbla_id": "15"
},
{
"pdx_id": "seven_holy_cities_achievement",
"xbla_id": "16"
},
{
"pdx_id": "frankokratia_achievement",
"xbla_id": "17"
},
{
"pdx_id": "celebrity_achievement",
"xbla_id": "18"
},
{
"pdx_id": "saint_achievement",
"xbla_id": "19"
},
{
"pdx_id": "keeping_it_in_the_family_achievement",
"xbla_id": "20"
},
{
"pdx_id": "non_nobis_domine_achievement",
"xbla_id": "21"
},
{
"pdx_id": "trapped_in_the_web_achievement",
"xbla_id": "22"
},
{
"pdx_id": "followed_by_shadows_achievement",
"xbla_id": "23"
},
{
"pdx_id": "what_nepotism_achievement",
"xbla_id": "24"
},
{
"pdx_id": "rise_from_the_ashes_achievement",
"xbla_id": "25"
},
{
"pdx_id": "the_emerald_isle_achievement",
"xbla_id": "26"
},
{
"pdx_id": "from_rags_to_riches_achievement",
"xbla_id": "27"
},
{
"pdx_id": "give_a_dog_a_bone_achievement",
"xbla_id": "28"
},
{
"pdx_id": "al_andalus_achievement",
"xbla_id": "29"
},
{
"pdx_id": "wily_as_the_fox_achievement",
"xbla_id": "30"
},
{
"pdx_id": "sibling_rivalry_achievement",
"xbla_id": "31"
},
{
"pdx_id": "blood_eagle_achievement",
"xbla_id": "32"
},
{
"pdx_id": "kings_to_the_seventh_generation_achievement",
"xbla_id": "33"
},
{
"pdx_id": "norman_yoke_achievement",
"xbla_id": "34"
},
{
"pdx_id": "royal_dignity_achievement",
"xbla_id": "35"
},
{
"pdx_id": "going_places_achievement",
"xbla_id": "36"
},
{
"pdx_id": "land_of_the_rus_achievement",
"xbla_id": "37"
},
{
"pdx_id": "above_god_achievement",
"xbla_id": "38"
},
{
"pdx_id": "paragon_of_virtue_achievement",
"xbla_id": "39"
},
{
"pdx_id": "the_things_love_does_for_us_achievement",
"xbla_id": "40"
},
{
"pdx_id": "fine_print_achievement",
"xbla_id": "41"
},
{
"pdx_id": "know_your_place_achievement",
"xbla_id": "42"
},
{
"pdx_id": "monumental_achievement",
"xbla_id": "43"
},
{
"pdx_id": "its_not_a_cult_achievement",
"xbla_id": "44"
},
{
"pdx_id": "the_things_we_do_for_love_achievement",
"xbla_id": "45"
},
{
"pdx_id": "an_unfortunate_accident_achievement",
"xbla_id": "46"
},
{
"pdx_id": "death_did_us_part_achievement",
"xbla_id": "47"
},
{
"pdx_id": "for_the_faith_achievement",
"xbla_id": "48"
},
{
"pdx_id": "bad_blood_achievement",
"xbla_id": "49"
},
{
"pdx_id": "seductive_achievement",
"xbla_id": "50"
},
{
"pdx_id": "the_emperors_new_clothes_achievement",
"xbla_id": "51"
},
{
"pdx_id": "a_perfect_circle_achievement",
"xbla_id": "52"
},
{
"pdx_id": "carolingian_consolidation_achievement",
"xbla_id": "53"
},
{
"pdx_id": "moving_up_in_the_world_achievement",
"xbla_id": "54"
},
{
"pdx_id": "beacon_of_progress_achievement",
"xbla_id": "55"
},
{
"pdx_id": "mother_of_us_all_achievement",
"xbla_id": "56"
},
{
"pdx_id": "fp1_01_achievement",
"xbla_id": "57"
},
{
"pdx_id": "fp1_02_achievement",
"xbla_id": "58"
},
{
"pdx_id": "fp1_03_achievement",
"xbla_id": "59"
},
{
"pdx_id": "fp1_04_achievement",
"xbla_id": "60"
},
{
"pdx_id": "fp1_05_achievement",
"xbla_id": "61"
},
{
"pdx_id": "fp1_06_achievement",
"xbla_id": "62"
},
{
"pdx_id": "fp1_07_achievement",
"xbla_id": "63"
},
{
"pdx_id": "fp1_08_achievement",
"xbla_id": "64"
},
{
"pdx_id": "fp1_09_achievement",
"xbla_id": "65"
},
{
"pdx_id": "fp1_10_achievement",
"xbla_id": "66"
},
{
"pdx_id": "ep1_01_achievement",
"xbla_id": "67"
},
{
"pdx_id": "ep1_02_achievement",
"xbla_id": "68"
},
{
"pdx_id": "ep1_03_achievement",
"xbla_id": "69"
},
{
"pdx_id": "ep1_04_achievement",
"xbla_id": "70"
},
{
"pdx_id": "ep1_05_achievement",
"xbla_id": "71"
},
{
"pdx_id": "ep1_06_achievement",
"xbla_id": "72"
},
{
"pdx_id": "ep1_07_achievement",
"xbla_id": "73"
},
{
"pdx_id": "ep1_08_achievement",
"xbla_id": "74"
},
{
"pdx_id": "ep1_09_achievement",
"xbla_id": "75"
},
{
"pdx_id": "ep1_10_achievement",
"xbla_id": "76"
},
{
"pdx_id": "ep1_11_achievement",
"xbla_id": "77"
},
{
"pdx_id": "ep1_12_achievement",
"xbla_id": "78"
},
{
"pdx_id": "ep1_13_achievement",
"xbla_id": "79"
},
{
"pdx_id": "ep1_14_achievement",
"xbla_id": "80"
},
{
"pdx_id": "ep1_15_achievement",
"xbla_id": "81"
},
{
"pdx_id": "ep1_16_achievement",
"xbla_id": "82"
},
{
"pdx_id": "ep1_17_achievement",
"xbla_id": "83"
},
{
"pdx_id": "ep1_18_achievement",
"xbla_id": "84"
},
{
"pdx_id": "ep1_19_achievement",
"xbla_id": "85"
},
{
"pdx_id": "ep1_20_achievement",
"xbla_id": "86"
},
{
"pdx_id": "fp2_historys_best_friends",
"xbla_id": "87"
},
{
"pdx_id": "fp2_basque_in_my_glory",
"xbla_id": "88"
},
{
"pdx_id": "fp2_friendship_is_magic",
"xbla_id": "89"
},
{
"pdx_id": "fp2_high_stakes_chess",
"xbla_id": "90"
},
{
"pdx_id": "fp2_iberia_or_iberia",
"xbla_id": "91"
},
{
"pdx_id": "fp2_andalusian_inquisition",
"xbla_id": "92"
},
{
"pdx_id": "fp2_iberian_hostilities",
"xbla_id": "93"
},
{
"pdx_id": "fp2_iberian_conciliation",
"xbla_id": "94"
},
{
"pdx_id": "fp2_iberian_compromise",
"xbla_id": "95"
},
{
"pdx_id": "fp2_holiday_in_iberia",
"xbla_id": "96"
},
{
"pdx_id": "fp2_el_cid_achievement",
"xbla_id": "97"
},
{
"pdx_id": "ep2_01_the_grandest_tour_achievement",
"xbla_id": "98"
},
{
"pdx_id": "ep2_02_your_eternal_reward_achievement",
"xbla_id": "99"
},
{
"pdx_id": "ep2_03_imperial_march_achievement",
"xbla_id": "100"
},
{
"pdx_id": "ep2_04_black_dinner_achievement",
"xbla_id": "101"
},
{
"pdx_id": "ep2_05_there_and_back_again_achievement",
"xbla_id": "102"
},
{
"pdx_id": "ep2_06_the_very_best_achievement",
"xbla_id": "103"
},
{
"pdx_id": "ep2_07_like_no_one_ever_was_achievement",
"xbla_id": "104"
},
{
"pdx_id": "ep2_08_a_thousand_and_one_nights_achievement",
"xbla_id": "105"
},
{
"pdx_id": "ep2_09_a_knights_tale_achievement",
"xbla_id": "106"
},
{
"pdx_id": "ep2_10_hunting_accident_achievement",
"xbla_id": "107"
},
{
"pdx_id": "ep2_11_lions_and_tigers_and_bears_oh_my_achievement",
"xbla_id": "108"
},
{
"pdx_id": "ep2_12_fly_my_pretty_achievement",
"xbla_id": "109"
},
{
"pdx_id": "ep2_13_pathway_to_heaven_achievement",
"xbla_id": "110"
},
{
"pdx_id": "ep2_14_sir_lance_a_lot_achievement",
"xbla_id": "111"
},
{
"pdx_id": "ep2_15_im_in_my_elements_achievement",
"xbla_id": "112"
},
{
"pdx_id": "ep2_16_ahab_achievement",
"xbla_id": "113"
},
{
"pdx_id": "ep2_17_little_william_marshal_achievement",
"xbla_id": "114"
},
{
"pdx_id": "ep2_18_a_true_and_perfect_knight_achievement",
"xbla_id": "115"
},
{
"pdx_id": "ep2_19_a_e_i_o_u_and_me_achievement",
"xbla_id": "116"
},
{
"pdx_id": "ep2_20_the_iron_and_golden_king_achievement",
"xbla_id": "117"
},
{
"pdx_id": "fp3_rich_in_diversity_achievement",
"xbla_id": "118"
},
{
"pdx_id": "fp3_abassid_strong_achievement",
"xbla_id": "119"
},
{
"pdx_id": "fp3_royal_flush_achievement",
"xbla_id": "120"
},
{
"pdx_id": "fp3_rekindle_iran_achievement",
"xbla_id": "121"
},
{
"pdx_id": "fp3_challenger_caliphate_achievement",
"xbla_id": "122"
},
{
"pdx_id": "fp3_vassalize_the_caliph_achievement",
"xbla_id": "123"
},
{
"pdx_id": "fp3_mulct_them_dry_achievement",
"xbla_id": "124"
},
{
"pdx_id": "fp3_fiscal_res_achievement",
"xbla_id": "125"
},
{
"pdx_id": "fp3_the_umma_strikes_back_achievement",
"xbla_id": "126"
},
{
"pdx_id": "fp3_darius_revenge_achievement",
"xbla_id": "127"
},
{
"pdx_id": "ce1_not_today_achievement",
"xbla_id": "128"
},
{
"pdx_id": "ce1_divine_right_achievement",
"xbla_id": "129"
},
{
"pdx_id": "ce1_youll_never_take_me_alive_achievement",
"xbla_id": "130"
},
{
"pdx_id": "ce1_the_pharaoh_islands_achievement",
"xbla_id": "131"
},
{
"pdx_id": "ce1_canonized_achievement",
"xbla_id": "132"
},
{
"pdx_id": "ce1_upward_mobility_achievement",
"xbla_id": "133"
},
{
"pdx_id": "ce1_cant_touch_this_achievement",
"xbla_id": "134"
},
{
"pdx_id": "ce1_legendary_achievement",
"xbla_id": "135"
},
{
"pdx_id": "ce1_f_achievement",
"xbla_id": "136"
},
{
"pdx_id": "ce1_local_legend_achievement",
"xbla_id": "137"
},
{
"pdx_id": "ce1_neverending_story_achievement",
"xbla_id": "138"
},
{
"pdx_id": "ep3_01_the_old_man_of_the_mountain_achievement",
"xbla_id": "139"
},
{
"pdx_id": "ep3_02_band_of_brothers_achievement",
"xbla_id": "140"
},
{
"pdx_id": "ep3_03_mio_cid_achievement",
"xbla_id": "141"
},
{
"pdx_id": "ep3_04_birthright_achievement",
"xbla_id": "142"
},
{
"pdx_id": "ep3_05_historically_inaccurate_achievement",
"xbla_id": "143"
},
{
"pdx_id": "ep3_06_quantum_leap_achievement",
"xbla_id": "144"
},
{
"pdx_id": "ep3_07_kingdom_of_heaven_achievement",
"xbla_id": "145"
},
{
"pdx_id": "ep3_08_new_management_achievement",
"xbla_id": "146"
},
{
"pdx_id": "ep3_09_rags_to_riches_to_rags_to_riches_achievement",
"xbla_id": "147"
},
{
"pdx_id": "ep3_10_tamar_mepe_achievement",
"xbla_id": "148"
},
{
"pdx_id": "ep3_11_despoiler_of_byzantium_achievement",
"xbla_id": "149"
},
{
"pdx_id": "ep3_12_chaos_is_a_ladder_achievement",
"xbla_id": "150"
},
{
"pdx_id": "ep3_13_epic_paperwork_achievement",
"xbla_id": "151"
},
{
"pdx_id": "ep3_14_against_the_odds_achievement",
"xbla_id": "152"
},
{
"pdx_id": "ep3_15_in_good_estate_achievement",
"xbla_id": "153"
},
{
"pdx_id": "ep3_16_i_got_a_permit_achievement",
"xbla_id": "154"
},
{
"pdx_id": "ep3_17_despotic_achievement",
"xbla_id": "155"
},
{
"pdx_id": "ep3_18_byzywork_achievement",
"xbla_id": "156"
},
{
"pdx_id": "ep3_19_not_content_to_serve_achievement",
"xbla_id": "157"
},
{
"pdx_id": "ep3_20_started_from_the_bottom_now_were_ere_achievement",
"xbla_id": "158"
},
{
"pdx_id": "mpo_the_stallion_that_mounts_the_world_achievement",
"xbla_id": "159"
},
{
"pdx_id": "mpo_nobodys_business_achievement",
"xbla_id": "160"
},
{
"pdx_id": "mpo_tribute_band_achievement",
"xbla_id": "161"
},
{
"pdx_id": "mpo_this_chinggis_everything_achievement",
"xbla_id": "162"
},
{
"pdx_id": "mpo_steppe_by_steppe_achievement",
"xbla_id": "163"
},
{
"pdx_id": "mpo_in_xanadu_achievement",
"xbla_id": "164"
},
{
"pdx_id": "mpo_settling_in_achievement",
"xbla_id": "165"
},
{
"pdx_id": "mpo_blood_of_my_blood_achievement",
"xbla_id": "166"
},
{
"pdx_id": "mpo_confedup_achievement",
"xbla_id": "167"
},
{
"pdx_id": "mpo_shut_up_nerge_achievement",
"xbla_id": "168"
},
{
"pdx_id": "ep4_01_fishing_in_china_achievement",
"xbla_id": "169"
},
{
"pdx_id": "ep4_02_the_heavenly_kingdom_achievement",
"xbla_id": "170"
},
{
"pdx_id": "ep4_03_sword_of_japan_achievement",
"xbla_id": "171"
},
{
"pdx_id": "ep4_04_a_living_god_on_earth_achievement",
"xbla_id": "172"
},
{
"pdx_id": "ep4_05_grand_governor_achievement",
"xbla_id": "173"
},
{
"pdx_id": "ep4_06_mandate_of_heaven_achievement",
"xbla_id": "174"
},
{
"pdx_id": "ep4_07_cut_off_the_head_and_the_body_will_follow_achievement",
"xbla_id": "175"
},
{
"pdx_id": "ep4_08_shogun_achievement",
"xbla_id": "176"
},
{
"pdx_id": "ep4_09_devaraja_achievement",
"xbla_id": "177"
},
{
"pdx_id": "ep4_10_confucian_scholar_achievement",
"xbla_id": "178"
},
{
"pdx_id": "ep4_11_bloc_politics_achievement",
"xbla_id": "179"
},
{
"pdx_id": "ep4_12_upper_upper_achievement",
"xbla_id": "180"
},
{
"pdx_id": "ep4_13_how_its_done_done_done_achievement",
"xbla_id": "181"
},
{
"pdx_id": "ep4_14_daits_how_you_do_it_achievement",
"xbla_id": "182"
},
{
"pdx_id": "ep4_15_humble_beginnings_achievement",
"xbla_id": "183"
},
{
"pdx_id": "ep4_16_flying_colors_achievement",
"xbla_id": "184"
},
{
"pdx_id": "ep4_17_highway_of_ideas_achievement",
"xbla_id": "185"
},
{
"pdx_id": "ep4_18_yes_i_need_my_samurai_achievement",
"xbla_id": "186"
},
{
"pdx_id": "ep4_19_stamp_of_approval_achievement",
"xbla_id": "187"
},
{
"pdx_id": "ep4_20_promised_land_achievement",
"xbla_id": "188"
}
]
}

File diff suppressed because it is too large Load diff

View file

@ -1196,7 +1196,7 @@ e_yugoslavia = {
d_herzegovina = { #Actually Zachlumia
color = { 16 125 90 }
capital = c_zelengora # Mostar
capital = c_neretva # Mostar
c_trebinje = {
color = { 16 125 90 }

View file

@ -3965,7 +3965,7 @@ on_yearly_events = {
250 = ep3_emperor_yearly.8010 # Fake imperial letter of introduction
250 = ep3_emperor_yearly.8020 # Selling purple rights
25 = ep3_emperor_yearly.8030 # Porphyrios strikes back - rare
150 = ep3_emperor_yearly.8040 # Embrace Iconoclasm
# 150 = ep3_emperor_yearly.8040 # Embrace Iconoclasm
250 = ep3_emperor_yearly.8050 # Northern raider ransom
250 = ep3_emperor_yearly.8060 # Border governor defects

View file

@ -0,0 +1,853 @@

### HOUSE RELATIONS
house_relation_casus_belli_discount_value = 0.75
house_relation_personal_scheme_bonus_value = 15
house_relation_hostile_scheme_bonus_value = 15
house_relation_increased_marriage_acceptance = 25
house_relation_decreased_marriage_acceptance = -25
house_relation_less_likely_war_target = -150
house_relation_actions_to_improve_level_threshold_value = 10 # How many actions before House level changes
house_relation_actions_to_damage_level_threshold_value = { # Same as above, but negative
value = house_relation_actions_to_improve_level_threshold_value
multiply = -1
}
house_relation_improve_minor_value = 0.1
house_relation_improve_medium_value = 0.2
house_relation_improve_major_value = 0.3
house_relation_damage_minor_value = { # Same as above, but negative
value = house_relation_improve_minor_value
multiply = -1
}
house_relation_damage_medium_value = {
value = house_relation_improve_medium_value
multiply = -1
}
house_relation_damage_major_value = {
value = house_relation_improve_major_value
multiply = -1
}
house_relation_damage_massive_value = {
value = house_relation_improve_major_value
multiply = -2
}
house_relation_damage_monumental_value = {
value = house_relation_improve_major_value
multiply = -3
}
improve_house_relation_calculated_value = {
value = house_relation_improve_major_value
multiply = 4 #Since we know we are in Japan to use the interaction
}
# Imperial Grace loss values depending on phase
imperial_grace_loss_situation_dynastic_cycle_phase_stability = -1
imperial_grace_loss_situation_dynastic_cycle_phase_stability_expansion = -2
imperial_grace_loss_situation_dynastic_cycle_phase_stability_advancement = -1
imperial_grace_loss_situation_dynastic_cycle_phase_instability = -3
imperial_grace_loss_situation_dynastic_cycle_phase_instability_conquest = -3
imperial_grace_loss_situation_dynastic_cycle_phase_chaos = -5
# This value is used for the ai_expected_level param for mandate_legitimacy, but can also be used directly without a vassal scope
# It's set to max, unless Cycle is in Stability Era, then it is lower by 2 for the first 50 years and lower by 1 for another 50 years
dynastic_cycle_legitimacy_expectation = {
value = 7 #max
if = {
limit = {
situation:dynastic_cycle ?= {
OR = {
situation_current_phase = situation_dynastic_cycle_phase_stability_expansion
situation_current_phase = situation_dynastic_cycle_phase_stability_advancement
}
has_variable = stability_phase_start_date
}
}
if = {
limit = {
situation:dynastic_cycle = {
var:stability_phase_start_date <= {
value = current_date
subtract = 18250
}
}
}
add = -2
}
if = {
limit = {
situation:dynastic_cycle = {
var:stability_phase_start_date <= {
value = current_date
subtract = 36500
}
}
}
add = -1
}
}
}
celestial_investiture_trade_bonus_max = 50
grand_guardian_aptitude_modifier_scaling_value = {
value = 1
if = {
limit = { exists = root }
add = root.aptitude:grand_guardian_court_position
}
desc = MODIFIER_DEFINITION_MAIN_DESC_GRAND_GUARDIAN_APTITUDE
}
## IE LOC VALUES
child_exam_min_age = {
value = 6
}
metropolitan_exam_final_entrants = {
value = 10
}
metropolitan_exam_final_entrants_loc = {
value = metropolitan_exam_final_entrants
}
## LOCAL EXAMINATION VALUES
examination_success_learning_value = {
value = learning
multiply = 1.2
ceiling = yes
max = 30
}
examination_success_stewardship_value = {
value = stewardship
multiply = 1.2
ceiling = yes
max = 30
}
examination_success_martial_value = {
value = martial
multiply = 1.2
ceiling = yes
max = 30
}
examination_success_increase_miniscule_value = 5
examination_success_increase_minor_value = 10
examination_success_increase_medium_value = 15
examination_success_increase_major_value = 20
examination_success_increase_massive_value = 25
examination_merit_reward_base_value = medium_merit_value
child_examination_success_chance_value = {
value = 0
# EXAM TYPE
add = {
value = learning
multiply = 1.2
ceiling = yes
max = 30
desc = learning_modifier
}
# A Confucian Education will improve your chances
add = {
if = {
limit = { has_trait = confucian_education }
add = 5
}
desc = confucian_education_modifier
}
# Having a Tutor will improve your chances
add = {
if = {
limit = { employs_court_position = court_tutor_court_position }
add = 15
}
desc = tutor_modifier
}
# Having lost a parent will improve your chances
add = {
if = {
limit = {
any_parent = {
is_alive = no
count = all
}
}
add = 10
}
desc = mourned_parent_modifier
}
# Let's also add the child's age
add = {
value = age
desc = age_modifier
}
add = {
if = {
limit = {
has_trait = curious
}
add = 5
}
desc = curious_modifier
}
# VARIABLES
# Nr of safe bets at examination
add = {
if = {
limit = { var:safe_bets > 0 }
value = var:safe_bets
multiply = 5
}
desc = played_it_safe_modifier
}
# MODIFIERS
if = {
limit = {
has_character_modifier = tgp_local_exam_initial_success
}
add = {
value = examination_success_increase_medium_value
desc = exam_success_chance.tgp_local_exam_initial_success
}
}
if = {
limit = {
has_character_modifier = tgp_local_exam_impressed_examiner
}
add = {
value = examination_success_increase_major_value
desc = exam_success_chance.tgp_local_exam_impressed_examiner
}
}
if = {
limit = {
has_character_modifier = tgp_local_exam_strong_finish
}
add = {
value = examination_success_increase_massive_value
desc = exam_success_chance.tgp_local_exam_strong_finish
}
}
}
dynasty_legacy_influence_career_discount_value = -0.1
# Referenced to in code for the Merit tooltip (DO NOT REMOVE)
# displayed in MERIT_PROGRESSBAR_MARKER_TOOLTIP, if you change the value here be sure to update the loc key as well
movement_power_character_individual_merit_value = {
value = merit_level
multiply = 10
}
relevant_family_members_metropolitan_value = {
value = var:num_exam_family_passed_metropolitan
}
relevant_family_members_palace_value = {
value = prev.var:num_exam_family_passed_palace
ceiling = yes
max = 3
}
meritocratic_province_military_max_value = 8
meritocratic_province_protectorate_max_value = {
value = 5
}
meritocratic_province_industrial_max_value = 8
meritocratic_province_metropolitan_max_value = {
value = 5
}
# dejure governorship value for sidegrade appointments
# this is the prominence value
# root - title considered for appointment
appointment_title_value = {
value = 0
# We value titles differently depending on if it is a civilian or military appointment
if = {
limit = {
OR = {
holder ?= { vassal_contract_has_flag = meritocratic_civil_appointment }
holder ?= { vassal_contract_has_flag = celestial_civil_appointment }
}
}
# General gold income
if = {
limit = {
tier >= tier_duchy
}
add = {
every_de_jure_county = {
add = {
value = title_province.monthly_income
multiply = 24
}
}
desc = appointment_title_value.county_income
}
}
else = {
add = {
value = title_province.monthly_income
multiply = 24
desc = appointment_title_value.capital_income
}
}
# Distance to capital
add = {
value = 500
subtract = {
value = "title_province.squared_distance(root.holder.top_liege.capital_province)"
multiply = 0.0001
}
min = 0
desc = appointment_title_value.distance_to_capital
}
}
else_if = {
limit = {
holder ?= {
OR = {
vassal_contract_has_flag = meritocratic_military_appointment
vassal_contract_has_flag = celestial_military_appointment
vassal_contract_has_flag = celestial_grand_marshal_obligation
}
}
}
# Army size
add = {
every_owned_title_maa_regiment = {
add = {
value = maa_size
}
}
desc = appointment_title_value.maa_size
}
# Province size (to make larger provinces more attractive)
if = {
limit = {
tier >= tier_duchy
}
add = {
every_de_jure_county = {
add = 10
}
desc = appointment_title_value.counties
}
}
add = {
every_title_to_title_neighboring_county = {
limit = {
holder.top_liege != prev.holder.top_liege
}
add = {
value = 10
}
}
desc = appointment_title_value.neighboring_enemy_counties
}
# A protectorate is more attractive
if = {
limit = {
holder = { vassal_contract_has_flag = celestial_province_protectorate }
}
multiply = {
value = 2
desc = appointment_title_value.protectorate
}
}
}
# Minister titles
if = {
limit = {
holder ?= {
tgp_is_any_minister = yes
}
}
add = {
value = holder.top_liege.capital_province.monthly_income
multiply = 1000
desc = appointment_title_value.capital_income
}
if = {
limit = {
title:h_china.holder = {
has_diarchy_type = grand_secretariat
OR = {
AND = {
has_realm_law = grand_chancellor_law
root = title:e_minister_chancellor
}
AND = {
has_realm_law = grand_marshal_law
root = title:e_minister_grand_marshal
}
AND = {
has_realm_law = grand_censor_law
root = title:e_minister_censor
}
}
}
}
add = {
value = 1000
desc = appointment_title_value.diarch
}
}
if = {
limit = {
OR = {
this = title:e_minister_chancellor
this = title:e_minister_censor
this = title:e_minister_grand_marshal
}
}
add = {
value = 3500
desc = appointment_title_value.minister
}
}
else_if = {
limit = {
OR = {
this = title:e_minister_of_personnel
this = title:e_minister_of_revenue
}
}
add = {
value = 3000
desc = appointment_title_value.minister
}
}
else_if = {
limit = {
OR = {
this = title:e_minister_of_rites
this = title:e_minister_of_war
}
}
add = {
value = 2500
desc = appointment_title_value.minister
}
}
else_if = {
limit = {
OR = {
this = title:e_minister_of_justice
this = title:e_minister_of_works
}
}
add = {
value = 2000
desc = appointment_title_value.minister
}
}
}
}
## Movement power
event_decrease_movement_power_minor_value = -5
event_decrease_movement_power_medium_value = -10
event_decrease_movement_power_major_value = -25
event_increase_movement_power_major_value = 25
event_increase_movement_power_medium_value = 10
event_increase_movement_power_minor_value = 5
event_increased_personal_movement_power_value = 15
# Events
subsidised_estate_value = {
value = 0
if = {
limit = {
has_variable = subsidised_estate_var
}
add = var:subsidised_estate_var
}
min = 1
desc = MODIFIER_DEFINITION_SUBSIDISED_ESTATE
}
tgp_shared_bloc_cohesion_base_change_monthly_value = {
value = 0
add = {
value = 0
every_confederation_member_house = { add = -0.1 }
max = 0
desc = "HOUSE_BLOC_COHESION_FROM_SIZE_HOUSE"
}
add = {
value = 0
leading_house.house_head.top_liege ?= {
every_sub_realm_county = {
limit = { holder.house.house_confederation ?= root }
add = -0.05
}
}
max = 0
desc = "HOUSE_BLOC_COHESION_FROM_SIZE"
}
# TODO GAIN FROM FESTIVAL MODIFIERS GOES HERE
}
## Boost/Penalize bloc for having conforming/diverging members.
#
# Scopes
# ------
# root: confederation/bloc
# house: Member house that we're checking
#
#
tgp_shared_bloc_cohesion_base_change_per_house_monthly_value = {
value = 0
leading_house ?= {
if = {
limit = {
NOT = { this = scope:house }
}
if = {
limit = {
NOT = { has_same_house_aspiration_as = scope:house }
}
add = {
value = -0.25
desc = "HOUSE_BLOC_COHESION_MISMATCHED_ASPIRATION"
}
}
else = {
add = {
value = 0.25
if = { # Unlanded give less
limit = {
NOT = {
scope:house = {
any_house_member = {
is_landed = yes
top_liege = root.leading_house.house_head.top_liege
}
}
}
}
multiply = 0.5
}
desc = "HOUSE_BLOC_COHESION_MATCHED_ASPIRATION"
}
}
}
}
scope:house.house_head = {
if = {
limit = {
NOT = { has_same_government = root.leading_house.house_head }
}
add = {
value = -1
desc = "HOUSE_BLOC_COHESION_MISMATCHED_GOVERNMENT"
}
}
}
if = {
limit = {
leading_house.house_dynasty = { has_dynasty_perk = tgp_japan_legacy_1 }
leading_house.house_dynasty = scope:house.house_dynasty
scope:house != leading_house
}
add = {
value = tgp_dynasty_legacy_bloc_cohesion_value
desc = "HOUSE_BLOC_SAME_DYNASTY_LEGACY_PERK"
}
}
}
tgp_shared_bloc_cohesion_contribution_value = {
value = scope:base_value
divide = scope:num_relations
divide = root.tgp_bloc_member_house_count_value
}
tgp_shared_bloc_cohesion_soft_cap_value = {
value = 75
}
tgp_establish_soryo_administration_bloc_leader_count_value = {
value = 0
every_in_list = {
list = bloc_leaders
add = 1
}
}
tgp_establish_soryo_administration_other_joiners_count_value = {
value = 0
every_in_list = {
list = other_joiners
add = 1
}
}
#Aptitude Bonus for Dynasty Legacy
court_position_tgp_dynasty_legacy_aptitude_bonus = 10
#Bloc Joining Dynasty Legacy Bonus
tgp_legacy_japan_dynasty_bloc_bonus_value = 25
#Bloc Joining Dynasty Lifestyle Perk
tgp_join_bloc_interaction_lifestyle_perk_value = 15
#Bloc Cohesion Dynasty Legacy Bonus
tgp_dynasty_legacy_bloc_cohesion_value = 0.25
#Hosting Festival Discount Legacy Perk
tgp_dynasty_legacy_perk_festival_discount_value = 0.2
# House Bloc Cohesion
cohesion_gain_minor = 0.25
cohesion_gain_medium = 0.5
cohesion_gain_major = 1
cohesion_loss_minor = {
value = cohesion_gain_minor
multiply = -1
}
cohesion_loss_medium = {
value = cohesion_gain_medium
multiply = -1
}
cohesion_loss_major = {
value = cohesion_gain_major
multiply = -1
}
border_war_grace_period_days = {
value = 1095
}
border_war_grace_period_years = {
value = border_war_grace_period_days
divide = 365
round = yes
}
steppe_admin_target_counties_tributaries = {
value = 50
}
temp_num_qualifying_counties_count = {
value = 0
every_sub_realm_county = {
limit = {
holder = {
is_governor_or_admin_count = yes
government_has_flag = government_has_merit
}
title_province = {
OR = {
has_holding_type = castle_holding
has_holding_type = church_holding
has_holding_type = city_holding
has_holding_type = temple_citadel_holding
}
}
}
add = 1
}
}
meritocratic_conversion_county_count = {
value = 30
}
return_to_steppe_county_requirement = {
value = 10
}
maitreya_devotee_army_value = {
value = 0
if = {
limit = {
any_sub_realm_county = {
faith = root.faith
count <= 5
}
}
add = 1000
}
else_if = {
limit = {
any_sub_realm_county = {
faith = root.faith
count <= 10
}
}
add = 500
}
else_if = {
limit = {
any_sub_realm_county = {
faith = root.faith
count <= 20
}
}
add = 400
}
else_if = {
limit = {
any_sub_realm_county = {
faith = root.faith
count <= 30
}
}
add = 300
}
else_if = {
limit = {
any_sub_realm_county = {
faith = root.faith
count <= 50
}
}
add = 200
}
else = {
add = 100
}
multiply = {
value = 0
every_sub_realm_county = {
limit = {
faith = root.faith
}
add = 1
}
}
}
cranial_trophies_stolen_prestige_value = {
value = 0
if = {
limit = {
scope:dead_character.prestige > 0
}
add = scope:dead_character.prestige
}
multiply = 0.25
}
tgp_ai_concubine_soft_cap = {
value = max_number_of_concubines
multiply = 0.5
}
silk_road_downstream_primary_value = 15
silk_road_downstream_primary_negative_value = {
value = silk_road_downstream_primary_value
multiply = -1
}
silk_road_downstream_secondary_value = 10
silk_road_downstream_secondary_negative_value = {
value = silk_road_downstream_secondary_value
multiply = -1
}
silk_road_downstream_tertiary_value = 5
silk_road_downstream_tertiary_negative_value = {
value = silk_road_downstream_tertiary_value
multiply = -1
}
silk_road_steppe_market_built_value = 15
silk_road_steppe_resettlement_value = 5
silk_road_steppe_canal_built_primary_value = 30
silk_road_steppe_canal_built_secondary_value = 20
silk_road_steppe_canal_built_tertiary_value = 10
silk_road_stability_primary_value = 15
silk_road_stability_secondary_value = 10
silk_road_stability_tertiary_value = 5
silk_road_expand_steppe_value = 50
silk_road_expand_steppe_negative_value = {
value = silk_road_expand_steppe_value
multiply = -1
}
silk_road_raid_value = 10
silk_road_raid_negative_value = {
value = silk_road_raid_value
multiply = -1
}
silk_road_mongol_devastation_value = 15
silk_road_mongol_devastation_negative_value = {
value = silk_road_mongol_devastation_value
multiply = -1
}
silk_road_byzantium_destroyed_value = 50
silk_road_byzantium_destroyed_negative_value = {
value = silk_road_byzantium_destroyed_value
multiply = -1
}
silk_road_steppe_iranian_intermezzo_ending_value = 15
silk_road_steppe_iranian_intermezzo_unrest_value = 3
silk_road_steppe_iranian_intermezzo_unrest_negative_value = {
value = silk_road_steppe_iranian_intermezzo_unrest_value
multiply = -1
}
silk_road_steppe_china_consolidation_value = 1000
silk_road_steppe_china_consolidation_negative_value = {
value = silk_road_steppe_china_consolidation_value
multiply = -1
}
silk_road_steppe_china_stability_value = 5
innovation_cupellation_mine_tax_bonus_value = 0.15
innovation_champa_rice_tax_mult_value_1 = 0.02
innovation_champa_rice_levy_size_value_1 = 0.02
innovation_champa_rice_development_growth_factor_value_1 = 0.05
innovation_champa_rice_tax_mult_value_2 = 0.03
innovation_champa_rice_levy_size_value_2 = 0.03
innovation_champa_rice_development_growth_factor_value_2 = 0.05
innovation_champa_rice_tax_mult_value_3 = 0.04
innovation_champa_rice_levy_size_value_3 = 0.04
innovation_champa_rice_development_growth_factor_value_3 = 0.05
innovation_champa_rice_tax_mult_value_4 = 0.04
innovation_champa_rice_levy_size_value_4 = 0.04
innovation_champa_rice_development_growth_factor_value_4 = 0.05
innovation_block_printing_control_growth_value_1 = 0.02
innovation_block_printing_development_growth_value_1 = 0.02
innovation_block_printing_control_growth_value_2 = 0.03
innovation_block_printing_development_growth_value_2 = 0.03
innovation_block_printing_control_growth_value_3 = 0.04
innovation_block_printing_development_growth_value_3 = 0.04
innovation_block_printing_control_growth_value_4 = 0.05
innovation_block_printing_development_growth_value_4 = 0.05
innovation_coking_development_growth_value_1 = 0.02
innovation_coking_development_growth_value_2 = 0.03
innovation_coking_development_growth_value_3 = 0.04
innovation_coking_development_growth_value_4 = 0.05
tgp_chinese_decision_taoism_conversion_discount_value = 0.85
treasury_budget_law_change_legitimacy_loss_base = {
value = monumental_legitimacy_loss
if = {
limit = { highest_held_title_tier = tier_hegemony }
multiply = 1.5
}
}
governor_trait_counter_bonus_value = 0.05

View file

@ -0,0 +1,377 @@
#find_title_for_almohad_spawn_effect = {
# if = { # The important thing is to not mess too much with players who can't resist
# limit = {
# title:c_tinmallal = {
# holder = { is_ai = yes }
# OR = {
# NOT = { exists = duchy.holder }
# duchy.holder = { is_ai = yes }
# }
# }
# }
# title:c_tinmallal = {
# save_scope_as = almohad_county
# }
# }
# else = {
# title:k_maghreb = {
# random_in_de_jure_hierarchy = {
# continue = { tier > tier_county }
# limit = {
# tier = tier_county
# holder = { is_ai = yes } # Let's not murder players
# NOT = { this = title:c_marrakesh }
# save_temporary_scope_as = potential_almohad_county
# # If someone holds k_maghreb, put the Almohads in their realm
# trigger_if = {
# limit = { exists = title:k_maghreb.holder }
# title:k_maghreb.holder = {
# OR = {
# this = scope:potential_almohad_county.holder
# any_sub_realm_county = {
# this = scope:potential_almohad_county
# }
# }
# }
# }
# # Either this should be the holder's only title, or it should NOT be their capital
# trigger_if = {
# limit = {
# holder = {
# any_sub_realm_county = { count > 1 }
# }
# }
# this != holder.capital_county
# }
# }
# weight = {
# base = 1
# # Prefer already Muslim counties
# modifier = {
# add = 5
# religion = religion:islam_religion
# }
# # Massively prefer to avoid a player-held Duchies if possible
# modifier = {
# factor = 0.01
# exists = duchy.holder
# duchy.holder = { is_ai = no }
# }
# }
# save_scope_as = almohad_county
# }
# }
# }
#
# if = { # Discard stuff from here on out
# limit = { NOT = { exists = scope:almohad_county } }
# debug_log = "No Almohad title found, Almohad's won't spawn"
# }
# # Convert the County and warn relevant people
# else = {
# set_global_variable = {
# name = spawned_almohads
# value = yes
# }
# scope:almohad_county = {
# set_county_faith = faith:masmudi
# }
# scope:almohad_county.holder = {
# if = {
# limit = {
# is_ai = no
# }
# trigger_event = almohad.1001
# }
# every_liege_or_above = {
# limit = { is_ai = no }
# trigger_event = almohad.1001
# }
# }
# trigger_event = { # Random amount of time to convert the province or otherwise prepare
# id = almohad.0002
# days = { 400 1000 }
# }
# }
#}
#
#
#create_almohads_effect = {
# create_character = {
# template = ibn_tumart_character_template
# name = Amghar_ibn_Tumert
# location = scope:almohad_county.title_province
# dynasty_house = house:house_tumert
# save_scope_as = ibn_tumart
# }
# faith:masmudi = {
# change_fervor = {
# value = 50
# desc = fervor_gain_almohads
# }
# }
# scope:ibn_tumart = {
# create_story = {
# type = story_almohad_invasion
# save_scope_as = story
# }
# add_pressed_claim = title:k_maghreb
# add_character_modifier = {
# modifier = almohad_leader_modifier
# }
# add_character_flag = {
# flag = immune_to_disease
# years = 15
# }
# }
# scope:story = {
# set_variable = {
# name = ibn_tumart
# value = scope:ibn_tumart
# }
# set_variable = {
# name = almohad_county
# value = scope:almohad_county
# }
# }
# almohads_find_target_titles_effect = yes
#
# find_almohad_titles_and_assign_to_ibn_tumart_effect = yes
#
# create_character = {
# template = abd_al_mumin_character_template
# name = Abd_al_Mu_min
# employer = scope:ibn_tumart
# dynasty_house = house:house_almohad
# save_scope_as = al_mumin
# }
# scope:al_mumin = {
# add_pressed_claim = title:k_maghreb
# add_character_modifier = {
# modifier = almohad_leader_modifier
# }
# add_character_flag = {
# flag = immune_to_disease
# years = 15
# }
# }
# scope:story = {
# set_variable = {
# name = al_mumin
# value = scope:al_mumin
# }
# }
#
# scope:almohad_county.holder = {
# set_global_variable = {
# name = almohads_waiting_for_player_responses
# value = 0
# years = 1 # Clear out eventually, just in case
# }
# set_global_variable = {
# name = almohads_player_responses_received
# value = 0
# years = 1 # Clear out eventually, just in case
# }
# if = {
# limit = { is_ai = no }
# change_global_variable = {
# name = almohads_waiting_for_player_responses
# add = 1
# }
# trigger_event = almohad.1002
# }
# every_liege_or_above = {
# limit = { is_ai = no }
# change_global_variable = {
# name = almohads_waiting_for_player_responses
# add = 1
# }
# trigger_event = almohad.1002
# }
# if = {
# limit = {
# global_var:almohads_waiting_for_player_responses = 0
# }
# remove_global_variable = almohads_waiting_for_player_responses
# remove_global_variable = almohads_player_responses_received
# almohads_go_to_war_effect = yes
# }
# else = {
# trigger_event = {
# id = almohad.0004
# days = 5
# }
# }
# }
#}
#
#find_almohad_titles_and_assign_to_ibn_tumart_effect = {
#
# create_title_and_vassal_change = {
# type = usurped
# save_scope_as = change
# add_claim_on_loss = no
# }
# scope:almohad_county = {
# change_title_holder = {
# holder = scope:ibn_tumart
# change = scope:change
# take_baronies = yes
# }
# }
# resolve_title_and_vassal_change = scope:change
#
# create_title_and_vassal_change = {
# type = created
# save_scope_as = change
# add_claim_on_loss = no
# }
# scope:ibn_tumart.faith.religious_head_title = {
# change_title_holder = {
# holder = scope:ibn_tumart
# change = scope:change
# }
# }
# resolve_title_and_vassal_change = scope:change
#}
#
#almohads_go_to_war_effect = {
# scope:ibn_tumart = {
# almohads_become_independent_effect = yes
# almohads_declare_war_for_target_title_effect = yes
# spawn_first_almohad_troops_effect = yes
# }
#}
#
#almohads_become_independent_effect = {
# hidden_effect = {
# if = {
# limit = { scope:ibn_tumart = { is_imprisoned = yes } }
# scope:ibn_tumart = { release_from_prison = yes }
# }
# }
# create_title_and_vassal_change = {
# type = independency
# save_scope_as = going_independent
# add_claim_on_loss = no
# }
# scope:ibn_tumart = {
# becomes_independent = {
# change = scope:going_independent
# }
# }
#
# resolve_title_and_vassal_change = scope:going_independent
#}
#
#almohads_find_target_titles_effect = {
# if = {
# limit = { exists = title:k_maghreb.holder }
# title:k_maghreb = {
# save_scope_as = maghreb_target_title
# holder = {
# save_scope_as = first_target
# }
# }
# if = {
# limit = {
# NOT = { scope:almohad_county.holder.top_liege = title:k_maghreb.holder.top_liege }
# scope:almohad_county.holder.top_liege = {
# any_sub_realm_county = {
# this != scope:almohad_county
# kingdom = title:k_maghreb
# }
# }
# }
# scope:almohad_county.holder.top_liege = {
# save_scope_as = second_target
# }
# }
# }
# else = {
# ordered_independent_ruler = {
# limit = { highest_held_title_tier > tier_county }
# order_by = titles_held_in_k_maghreb
# position = 0
# save_scope_as = first_target
# }
# }
#}
#
#
#almohads_declare_war_for_target_title_effect = {
# save_scope_as = war_leader
# if = {
# limit = { exists = scope:first_target }
# start_war = {
# cb = claim_cb
# target = scope:first_target
# claimant = scope:war_leader
# target_title = scope:maghreb_target_title
# }
#
# if = {
# limit = {
# exists = scope:second_target
# NOT = { exists = global_var:almohads_do_not_attack_second_target }
# }
# start_war = {
# cb = claim_cb
# target = scope:second_target
# claimant = scope:war_leader
# target_title = scope:maghreb_target_title
# }
# }
# }
# if = {
# limit = { exists = global_var:almohads_do_not_attack_second_target }
# remove_global_variable = almohads_do_not_attack_second_target
# }
# else = {
# debug_log = "Failed to find a valid war target for the Almohads!"
# }
#}
#
#
#spawn_first_almohad_troops_effect = {
# spawn_army = {
# uses_supply = yes
# inheritable = no
# name = first_almohad_event_troops
# levies = {
# value = 1000
# }
# location = scope:ibn_tumart.capital_province
# }
#}
#
#spawn_second_almohad_troops_effect = {
# if = {
# limit = {
# is_at_war = yes
# }
# ordered_war_enemy = {
# order_by = max_military_strength
# position = 0
# save_scope_as = powerful_war_enemy
# }
# spawn_army = {
# uses_supply = yes
# inheritable = no
# name = second_almohad_event_troops
# levies = {
# if = {
# limit = { exists = scope:powerful_war_enemy }
# add = scope:powerful_war_enemy.max_military_strength
# multiply = 2
# }
# else = {
# add = 3000
# }
# }
# location = capital_province
# }
# }
#}
#

File diff suppressed because it is too large Load diff

View file

@ -3886,30 +3886,65 @@ restore_swedish_empire_effect = {
}
resolve_title_and_vassal_change = scope:change
hidden_effect = {
set_primary_title_to = title:e_sweden
title:d_vasterbottena = { set_de_jure_liege_title = title:k_sweden }
title:d_norrbottena = { set_de_jure_liege_title = title:k_sweden }
title:d_giemajohka = { set_de_jure_liege_title = title:k_finland }
title:d_west_karelia = { set_de_jure_liege_title = title:k_finland }
title:k_finland = { set_de_jure_liege_title = title:e_sweden }
title:d_west_karelia = { set_de_jure_liege_title = title:k_finland }
title:k_esthonia = { set_de_jure_liege_title = title:e_sweden }
title:k_sweden = { set_de_jure_liege_title = title:e_sweden }
if = {
limit = {
exists = title:gotaland
}
destroy_title = title:gotaland
}
if = {
limit = { title:k_gotaland ?= { is_titular = no } }
title:k_gotaland = {
every_in_de_jure_hierarchy = {
limit = { tier = tier_duchy }
set_de_jure_liege_title = title:k_sweden
set_primary_title_to = title:e_sweden
if = {
limit = {
title:k_sapmi = { is_titular = no }
has_title = title:k_sapmi
}
title:k_sapmi = { set_de_jure_liege_title = title:e_sweden }
set_flag = flag_swedish_sapmi
}
else = {
if = {
limit = {
title:k_sapmi = { is_titular = no }
}
title:k_sapmi = {
every_in_de_jure_hierarchy = {
limit = {
tier = tier_duchy
root = { completely_controls = prev }
OR = {
this = title:d_vasterbottena
this = title:d_norrbottena
}
}
set_de_jure_liege_title = title:k_sweden
}
every_in_de_jure_hierarchy = {
limit = {
tier = tier_duchy
root = { completely_controls = prev }
OR = {
this = title:d_giemajohka
this = title:d_gulodat
}
}
set_de_jure_liege_title = title:k_finland
}
set_de_jure_liege_title = title:e_zapadnorussia
}
}
}
title:k_finland = { set_de_jure_liege_title = title:e_sweden }
title:k_esthonia = { set_de_jure_liege_title = title:e_sweden }
title:k_sweden = { set_de_jure_liege_title = title:e_sweden }
if = {
limit = {
exists = title:gotaland
}
destroy_title = title:gotaland
}
if = {
limit = { title:k_gotaland ?= { is_titular = no } }
title:k_gotaland = {
every_in_de_jure_hierarchy = {
limit = { tier = tier_duchy }
set_de_jure_liege_title = title:k_sweden
}
}
}
}
if = {
limit = {
title:k_norway = { is_titular = no }
@ -3920,6 +3955,51 @@ restore_swedish_empire_effect = {
}
title:k_norway = { set_de_jure_liege_title = title:e_sweden }
}
if = {
limit = {
completely_controls = title:d_finnmarku
NOT = { has_title = title:k_sapmi }
}
if = {
limit = {
OR = {
has_title = title:k_norway
completely_controls = title:k_norway
}
}
title:d_finnmarku = { set_de_jure_liege_title = title:k_norway }
}
else = {
title:d_finnmarku = { set_de_jure_liege_title = title:k_finland }
}
}
if = {
limit = {
completely_controls = title:d_guoldat
NOT = { has_title = title:k_sapmi }
}
if = {
limit = {
OR = {
has_title = title:k_norway
completely_controls = title:k_norway
}
}
title:d_guoldat = { set_de_jure_liege_title = title:k_norway }
}
else_if = {
limit = {
OR = {
has_title = title:k_karelia
completely_controls = title:k_karelia
}
}
title:d_guoldat = { set_de_jure_liege_title = title:k_karelia }
}
else = {
title:d_guoldat = { set_de_jure_liege_title = title:k_finland }
}
}
if = {
limit = {
title:k_latvia = { is_titular = no }
@ -3930,6 +4010,16 @@ restore_swedish_empire_effect = {
}
title:k_latvia = { set_de_jure_liege_title = title:e_sweden }
}
if = {
limit = {
title:k_pribaltia = { is_titular = no }
OR = {
has_title = title:k_pribaltia
completely_controls = title:k_pribaltia
}
}
title:k_pribaltia = { set_de_jure_liege_title = title:e_sweden }
}
if = {
limit = {
title:k_lithuania = { is_titular = no }
@ -3958,7 +4048,19 @@ restore_swedish_empire_effect = {
completely_controls = title:k_karelia
}
}
title:k_karelia = { set_de_jure_liege_title = title:e_sweden }
title:k_karelia = { set_de_jure_liege_title = title:e_sweden }
}
else = {
title:k_karelia = {
every_in_de_jure_hierarchy = {
limit = {
tier = tier_duchy
root = { completely_controls = prev }
}
set_de_jure_liege_title = title:k_finland
}
set_de_jure_liege_title = title:e_zapadnorussia
}
}
if = {
limit = {
@ -3972,13 +4074,13 @@ restore_swedish_empire_effect = {
}
if = {
limit = {
title:k_poland = { is_titular = no }
title:k_brandenburg = { is_titular = no }
OR = {
has_title = title:k_poland
completely_controls = title:k_poland
has_title = title:k_brandenburg
completely_controls = title:k_brandenburg
}
}
title:k_poland = { set_de_jure_liege_title = title:e_sweden }
title:k_brandenburg = { set_de_jure_liege_title = title:e_sweden }
}
if = {
limit = {
@ -3990,6 +4092,21 @@ restore_swedish_empire_effect = {
}
title:k_petrograd = { set_de_jure_liege_title = title:e_sweden }
}
if = {
limit = {
title:k_iceland = { is_titular = no }
OR = {
has_title = title:k_iceland
completely_controls = title:k_iceland
}
}
title:k_iceland = { set_de_jure_liege_title = title:e_sweden }
}
title:e_scandinavia = {
set_title_name = k_denmark
set_color_from_title = title:k_denmark
set_coa = k_denmark
}
}
}

View file

@ -14862,177 +14862,177 @@ claim_throne_set_mythical_founder_variable_effect = {
value = flag:charles_martell
}
}
else_if = { # Alexander
limit = {
OR = {
scope:target_title = title:k_thessalonika
scope:target_title = title:k_hellas
scope:target_title = title:k_egypt
AND = {
OR = {
scope:target_title = title:k_persia
scope:target_title = title:e_persia
}
NOR = {
root.faith.religion = religion:islam_religion
root.faith.religion = religion:zoroastrianism_religion
}
}
scope:target_title = title:k_anatolia
}
}
set_variable = {
name = mythical_founder
value = flag:alexander
}
}
else_if = { # Lech
limit = {
scope:target_title = title:k_poland # Lech
}
set_variable = {
name = mythical_founder
value = flag:lech
}
}
else_if = { # Czech
limit = {
scope:target_title = title:k_bohemia # Lech
}
set_variable = {
name = mythical_founder
value = flag:czech
}
}
else_if = { # Rus
limit = {
OR = { # Rus
scope:target_title = title:k_white_rus
scope:target_title = title:k_ruthenia
scope:target_title = title:e_russia
}
}
set_variable = {
name = mythical_founder
value = flag:rus
}
}
else_if = { # Arthur
limit = {
OR = {
scope:target_title = title:k_wales
scope:target_title = title:k_cornwall
scope:target_title = title:k_england
scope:target_title = title:e_britannia
}
}
set_variable = {
name = mythical_founder
value = flag:arthur
}
}
else_if = { # Belisarius
limit = {
OR = {
scope:target_title = title:k_italy
scope:target_title = title:k_romagna
scope:target_title = title:k_sardinia
scope:target_title = title:e_italy
scope:target_title = title:h_roman_empire
scope:target_title = title:h_eastern_roman_empire
}
faith = faith:orthodox
}
set_variable = {
name = mythical_founder
value = flag:belisarius
}
}
else_if = { # Romulus
limit = {
OR = {
scope:target_title = title:k_italy
scope:target_title = title:k_romagna
scope:target_title = title:k_sardinia
scope:target_title = title:e_italy
scope:target_title = title:h_roman_empire
scope:target_title = title:h_eastern_roman_empire
}
}
set_variable = {
name = mythical_founder
value = flag:romulus
}
}
else_if = { # Ardashir
limit = {
OR = {
scope:target_title = title:k_persia
scope:target_title = title:e_persia
}
}
set_variable = {
name = mythical_founder
value = flag:ardashir
}
}
else_if = { # The Pharaohs
limit = {
scope:target_title = title:k_egypt
NOT = { religion = religion:islam_religion }
}
set_variable = {
name = mythical_founder
value = flag:pharaohs
}
}
else_if = { # The Visigothic Kings
limit = {
OR = {
scope:target_title = title:k_castille
scope:target_title = title:k_aragon
scope:target_title = title:k_navarra
scope:target_title = title:k_andalusia
scope:target_title = title:k_portugal
scope:target_title = title:e_spain
}
NOT = { religion = religion:islam_religion }
}
set_variable = {
name = mythical_founder
value = flag:visigothic_kings
}
}
else_if = { # Abd al-Rahman
limit = {
OR = {
scope:target_title = title:k_castille
scope:target_title = title:k_aragon
scope:target_title = title:k_navarra
scope:target_title = title:k_andalusia
scope:target_title = title:k_portugal
scope:target_title = title:e_spain
}
religion = religion:islam_religion
}
set_variable = {
name = mythical_founder
value = flag:abd_al_rahman
}
}
else_if = { # Zenobia
limit = {
OR = {
scope:target_title = title:k_syria
scope:target_title = title:k_mesopotamia
}
NOT = { religion = religion:islam_religion }
}
set_variable = {
name = mythical_founder
value = flag:zenobia
}
}
# else_if = { # Alexander
# limit = {
# OR = {
# scope:target_title = title:k_thessalonika
# scope:target_title = title:k_hellas
# scope:target_title = title:k_egypt
# AND = {
# OR = {
# scope:target_title = title:k_persia
# scope:target_title = title:e_persia
# }
# NOR = {
# root.faith.religion = religion:islam_religion
# root.faith.religion = religion:zoroastrianism_religion
# }
# }
# scope:target_title = title:k_anatolia
# }
# }
# set_variable = {
# name = mythical_founder
# value = flag:alexander
# }
# }
# else_if = { # Lech
# limit = {
# scope:target_title = title:k_poland # Lech
# }
# set_variable = {
# name = mythical_founder
# value = flag:lech
# }
# }
# else_if = { # Czech
# limit = {
# scope:target_title = title:k_bohemia # Lech
# }
# set_variable = {
# name = mythical_founder
# value = flag:czech
# }
# }
# else_if = { # Rus
# limit = {
# OR = { # Rus
# scope:target_title = title:k_white_rus
# scope:target_title = title:k_ruthenia
# scope:target_title = title:e_russia
# }
# }
# set_variable = {
# name = mythical_founder
# value = flag:rus
# }
# }
# else_if = { # Arthur
# limit = {
# OR = {
# scope:target_title = title:k_wales
# scope:target_title = title:k_cornwall
# scope:target_title = title:k_england
# scope:target_title = title:e_britannia
# }
# }
# set_variable = {
# name = mythical_founder
# value = flag:arthur
# }
# }
# else_if = { # Belisarius
# limit = {
# OR = {
# scope:target_title = title:k_italy
# scope:target_title = title:k_romagna
# scope:target_title = title:k_sardinia
# scope:target_title = title:e_italy
# scope:target_title = title:h_roman_empire
# scope:target_title = title:h_eastern_roman_empire
# }
# faith = faith:orthodox
# }
# set_variable = {
# name = mythical_founder
# value = flag:belisarius
# }
# }
# else_if = { # Romulus
# limit = {
# OR = {
# scope:target_title = title:k_italy
# scope:target_title = title:k_romagna
# scope:target_title = title:k_sardinia
# scope:target_title = title:e_italy
# scope:target_title = title:h_roman_empire
# scope:target_title = title:h_eastern_roman_empire
# }
# }
# set_variable = {
# name = mythical_founder
# value = flag:romulus
# }
# }
# else_if = { # Ardashir
# limit = {
# OR = {
# scope:target_title = title:k_persia
# scope:target_title = title:e_persia
# }
# }
# set_variable = {
# name = mythical_founder
# value = flag:ardashir
# }
# }
# else_if = { # The Pharaohs
# limit = {
# scope:target_title = title:k_egypt
# NOT = { religion = religion:islam_religion }
# }
# set_variable = {
# name = mythical_founder
# value = flag:pharaohs
# }
# }
# else_if = { # The Visigothic Kings
# limit = {
# OR = {
# scope:target_title = title:k_castille
# scope:target_title = title:k_aragon
# scope:target_title = title:k_navarra
# scope:target_title = title:k_andalusia
# scope:target_title = title:k_portugal
# scope:target_title = title:e_spain
# }
# NOT = { religion = religion:islam_religion }
# }
# set_variable = {
# name = mythical_founder
# value = flag:visigothic_kings
# }
# }
# else_if = { # Abd al-Rahman
# limit = {
# OR = {
# scope:target_title = title:k_castille
# scope:target_title = title:k_aragon
# scope:target_title = title:k_navarra
# scope:target_title = title:k_andalusia
# scope:target_title = title:k_portugal
# scope:target_title = title:e_spain
# }
# religion = religion:islam_religion
# }
# set_variable = {
# name = mythical_founder
# value = flag:abd_al_rahman
# }
# }
# else_if = { # Zenobia
# limit = {
# OR = {
# scope:target_title = title:k_syria
# scope:target_title = title:k_mesopotamia
# }
# NOT = { religion = religion:islam_religion }
# }
# set_variable = {
# name = mythical_founder
# value = flag:zenobia
# }
# }
else = {
set_variable = {
name = mythical_founder

View file

@ -0,0 +1,42 @@
namespace = bp3_decisions
bp3_decisions.0100 = {
type = character_event
title = bp3_decisions.0100.t
desc = bp3_decisions.0100.desc
theme = realm
left_portrait = {
character = root
animation = personality_honorable
}
immediate = {
house = {
add_house_modifier = {
modifier = legacy_adventurer_house_modifier
}
}
}
# Do some justicar contracts
option = {
name = bp3_decisions.0100.a
custom_tooltip = bp3_decisions.0100.a_tt
hidden_effect = {
populate_task_contracts_for_area = {
location = root.location
amount = 3
group = { laamp_contracts_justicar_group }
}
}
}
# Become legitimists
option = {
name = bp3_decisions.0100.b
trigger = { NOT = { has_realm_law = camp_purpose_legitimists } }
add_realm_law_skip_effects = camp_purpose_legitimists
}
}

File diff suppressed because it is too large Load diff

View file

@ -1228,314 +1228,314 @@ ep3_emperor_yearly.8030 = {
}
# Iconoclasm
ep3_emperor_yearly.8040 = {
type = character_event
title = ep3_emperor_yearly.8040.t
desc = {
desc = ep3_emperor_yearly.8040.intro
first_valid = {
triggered_desc = {
trigger = { exists = scope:truce_target }
desc = ep3_emperor_yearly.8040.truce_target
}
triggered_desc = {
trigger = { exists = scope:truce_holder }
desc = ep3_emperor_yearly.8040.truce_holder
}
triggered_desc = {
trigger = { exists = scope:epidemic }
desc = ep3_emperor_yearly.8040.plague
}
triggered_desc = {
trigger = {
any_in_list = {
variable = formerly_infected_counties
this = title:c_byzantion
}
}
desc = ep3_emperor_yearly.8040.past_plague
}
desc = ep3_emperor_yearly.8040.debt
}
desc = ep3_emperor_yearly.8040.desc
first_valid = {
triggered_desc = {
trigger = { exists = scope:family }
desc = ep3_emperor_yearly.8040.family
}
triggered_desc = {
trigger = { exists = scope:predecessor }
desc = ep3_emperor_yearly.8040.predecessor
}
desc = ep3_emperor_yearly.8040.leo
}
}
theme = emperor
override_background = { reference = ep3_hagia_sophia }
left_portrait = {
character = root
animation = worry
}
right_portrait = {
character = scope:priest
triggered_animation = {
trigger = { faith = faith:iconoclast }
animation = admiration
}
animation = disapproval
}
lower_right_portrait = scope:leo
cooldown = { years = 50 }
trigger = {
OR = {
static_group_filter = {
group = ep3_emperor_yearly.8040
match = 0.2
}
has_trait = cynical
}
has_ep3_dlc_trigger = yes
# Ensure you are l'empereur
has_title = title:e_byzantium
# You are not an Iconoclast
faith = faith:orthodox
# Something bad has happened
OR = {
# Won war recently to powerful enemy
any_truce_holder = { highest_held_title_tier >= tier_kingdom }
# Lost war recently to powerful enemy
any_truce_target = { highest_held_title_tier >= tier_kingdom }
# In debt
gold < -100
# Epidemic
capital_province = {
any_province_epidemic = { }
}
any_in_list = {
variable = formerly_infected_counties
title_province = root.capital_province
}
}
# Never twice
NOT = { has_character_flag = ep3_iconoclast_cooldown }
}
weight_multiplier = {
base = 1
modifier = {
factor = 2
# Constantinopolis is Iconoclast
capital_province.faith = faith:iconoclast
}
modifier = {
factor = 2
# Iconoclasm is about
any_sub_realm_county = { faith = faith:iconoclast }
}
modifier = {
factor = 2
# Won war recently to powerful enemy
any_truce_holder = { highest_held_title_tier >= tier_kingdom }
}
modifier = {
factor = 2
# Lost war recently to powerful enemy
any_truce_target = { highest_held_title_tier >= tier_kingdom }
}
modifier = {
factor = 2
# In debt
gold < -100
}
modifier = {
factor = 2
capital_province = {
any_province_epidemic = { }
}
}
modifier = {
factor = 2
any_in_list = {
variable = formerly_infected_counties
title_province = root.capital_province
}
}
}
immediate = {
add_character_flag = ep3_iconoclast_cooldown
capital_province = { save_scope_as = constantinople }
character:70502 = { save_scope_as = leo }
title:e_byzantium.previous_holder ?= {
if = {
limit = { faith = faith:iconoclast }
save_scope_as = predecessor
}
}
if = {
limit = {
any_close_family_member = {
faith = faith:iconoclast
OR = {
is_parent_of = root
is_grandparent_of = root
}
}
}
random_close_family_member = {
limit = {
sex_same_as = root
is_parent_of = root
faith = faith:iconoclast
}
alternative_limit = {
is_parent_of = root
faith = faith:iconoclast
}
alternative_limit = {
sex_same_as = root
is_grandparent_of = root
faith = faith:iconoclast
}
alternative_limit = {
is_grandparent_of = root
faith = faith:iconoclast
}
save_scope_as = family
}
}
if = {
limit = {
title:k_orthodox.holder = { is_vassal_of = root }
}
title:k_orthodox.holder = { save_scope_as = priest }
}
else = {
ordered_vassal = {
limit = {
OR = {
is_clergy = yes
is_theocratic_lessee = yes
government_has_flag = government_is_theocracy
}
}
order_by = highest_held_title_tier
save_scope_as = priest
}
}
# Fallback
if = {
limit = { NOT = { exists = scope:priest } }
cp:councillor_court_chaplain ?= { save_scope_as = priest }
}
if = {
limit = {
# Lost war recently to powerful enemy
any_truce_target = { highest_held_title_tier >= tier_kingdom }
}
ordered_truce_target = {
order_by = max_military_strength
save_scope_as = truce_target
}
}
if = {
limit = {
# Won war recently to powerful enemy
any_truce_holder = { highest_held_title_tier >= tier_kingdom }
}
ordered_truce_holder = {
order_by = max_military_strength
save_scope_as = truce_holder
}
}
scope:constantinople = {
if = {
limit = {
any_province_epidemic = { }
}
random_province_epidemic = {
limit = { outbreak_intensity = apocalyptic }
alternative_limit = { outbreak_intensity = major }
alternative_limit = { outbreak_intensity = minor }
save_scope_as = epidemic
}
}
}
}
option = { # Convert
name = ep3_emperor_yearly.8040.a
add_piety = major_piety_gain
set_character_faith_with_conversion = faith:iconoclast
if = {
limit = {
faith:iconoclast = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
add_character_modifier = {
modifier = ep3_iconoclast_modifier
years = 15
}
if = {
limit = { ep3_iconoclast_vassal_count > 0 }
change_influence = {
value = 25
multiply = ep3_iconoclast_vassal_count
}
}
scope:priest = {
if = {
limit = { faith != faith:iconoclast }
add_opinion = {
target = root
modifier = angry_opinion
opinion = -30
}
}
else = {
add_opinion = {
target = root
modifier = pleased_opinion
opinion = 15
}
}
}
stress_impact = {
stubborn = medium_stress_impact_gain
lazy = medium_stress_impact_gain
arrogant = medium_stress_impact_gain
brave = medium_stress_impact_gain
}
ai_chance = {
base = 1
ai_value_modifier = {
ai_boldness = 0.5
ai_zeal = 0.5
}
}
}
option = { # Stay the course
name = ep3_emperor_yearly.8040.b
change_influence = medium_influence_gain
stress_impact = {
fickle = medium_stress_impact_gain
zealous = medium_stress_impact_gain
humble = medium_stress_impact_gain
craven = medium_stress_impact_gain
}
ai_chance = {
base = 2
ai_value_modifier = {
ai_energy = -0.5
ai_rationality = 0.5
}
}
}
}
#
#ep3_emperor_yearly.8040 = {
# type = character_event
# title = ep3_emperor_yearly.8040.t
# desc = {
# desc = ep3_emperor_yearly.8040.intro
# first_valid = {
# triggered_desc = {
# trigger = { exists = scope:truce_target }
# desc = ep3_emperor_yearly.8040.truce_target
# }
# triggered_desc = {
# trigger = { exists = scope:truce_holder }
# desc = ep3_emperor_yearly.8040.truce_holder
# }
# triggered_desc = {
# trigger = { exists = scope:epidemic }
# desc = ep3_emperor_yearly.8040.plague
# }
# triggered_desc = {
# trigger = {
# any_in_list = {
# variable = formerly_infected_counties
# this = title:c_byzantion
# }
# }
# desc = ep3_emperor_yearly.8040.past_plague
# }
# desc = ep3_emperor_yearly.8040.debt
# }
# desc = ep3_emperor_yearly.8040.desc
# first_valid = {
# triggered_desc = {
# trigger = { exists = scope:family }
# desc = ep3_emperor_yearly.8040.family
# }
# triggered_desc = {
# trigger = { exists = scope:predecessor }
# desc = ep3_emperor_yearly.8040.predecessor
# }
# desc = ep3_emperor_yearly.8040.leo
# }
# }
# theme = emperor
# override_background = { reference = ep3_hagia_sophia }
# left_portrait = {
# character = root
# animation = worry
# }
# right_portrait = {
# character = scope:priest
# triggered_animation = {
# trigger = { faith = faith:iconoclast }
# animation = admiration
# }
# animation = disapproval
# }
# lower_right_portrait = scope:leo
# cooldown = { years = 50 }
#
# trigger = {
# OR = {
# static_group_filter = {
# group = ep3_emperor_yearly.8040
# match = 0.2
# }
# has_trait = cynical
# }
# has_ep3_dlc_trigger = yes
# # Ensure you are l'empereur
# has_title = title:e_byzantium
# # You are not an Iconoclast
# faith = faith:orthodox
# # Something bad has happened
# OR = {
# # Won war recently to powerful enemy
# any_truce_holder = { highest_held_title_tier >= tier_kingdom }
# # Lost war recently to powerful enemy
# any_truce_target = { highest_held_title_tier >= tier_kingdom }
# # In debt
# gold < -100
# # Epidemic
# capital_province = {
# any_province_epidemic = { }
# }
# any_in_list = {
# variable = formerly_infected_counties
# title_province = root.capital_province
# }
# }
# # Never twice
# NOT = { has_character_flag = ep3_iconoclast_cooldown }
# }
#
# weight_multiplier = {
# base = 1
# modifier = {
# factor = 2
# # Constantinopolis is Iconoclast
# capital_province.faith = faith:iconoclast
# }
# modifier = {
# factor = 2
# # Iconoclasm is about
# any_sub_realm_county = { faith = faith:iconoclast }
# }
# modifier = {
# factor = 2
# # Won war recently to powerful enemy
# any_truce_holder = { highest_held_title_tier >= tier_kingdom }
# }
# modifier = {
# factor = 2
# # Lost war recently to powerful enemy
# any_truce_target = { highest_held_title_tier >= tier_kingdom }
# }
# modifier = {
# factor = 2
# # In debt
# gold < -100
# }
# modifier = {
# factor = 2
# capital_province = {
# any_province_epidemic = { }
# }
# }
# modifier = {
# factor = 2
# any_in_list = {
# variable = formerly_infected_counties
# title_province = root.capital_province
# }
# }
# }
#
# immediate = {
# add_character_flag = ep3_iconoclast_cooldown
# capital_province = { save_scope_as = constantinople }
# character:70502 = { save_scope_as = leo }
# title:e_byzantium.previous_holder ?= {
# if = {
# limit = { faith = faith:iconoclast }
# save_scope_as = predecessor
# }
# }
# if = {
# limit = {
# any_close_family_member = {
# faith = faith:iconoclast
# OR = {
# is_parent_of = root
# is_grandparent_of = root
# }
# }
# }
# random_close_family_member = {
# limit = {
# sex_same_as = root
# is_parent_of = root
# faith = faith:iconoclast
# }
# alternative_limit = {
# is_parent_of = root
# faith = faith:iconoclast
# }
# alternative_limit = {
# sex_same_as = root
# is_grandparent_of = root
# faith = faith:iconoclast
# }
# alternative_limit = {
# is_grandparent_of = root
# faith = faith:iconoclast
# }
# save_scope_as = family
# }
# }
# if = {
# limit = {
# title:k_orthodox.holder = { is_vassal_of = root }
# }
# title:k_orthodox.holder = { save_scope_as = priest }
# }
# else = {
# ordered_vassal = {
# limit = {
# OR = {
# is_clergy = yes
# is_theocratic_lessee = yes
# government_has_flag = government_is_theocracy
# }
# }
# order_by = highest_held_title_tier
# save_scope_as = priest
# }
# }
# # Fallback
# if = {
# limit = { NOT = { exists = scope:priest } }
# cp:councillor_court_chaplain ?= { save_scope_as = priest }
# }
# if = {
# limit = {
# # Lost war recently to powerful enemy
# any_truce_target = { highest_held_title_tier >= tier_kingdom }
# }
# ordered_truce_target = {
# order_by = max_military_strength
# save_scope_as = truce_target
# }
# }
# if = {
# limit = {
# # Won war recently to powerful enemy
# any_truce_holder = { highest_held_title_tier >= tier_kingdom }
# }
# ordered_truce_holder = {
# order_by = max_military_strength
# save_scope_as = truce_holder
# }
# }
# scope:constantinople = {
# if = {
# limit = {
# any_province_epidemic = { }
# }
# random_province_epidemic = {
# limit = { outbreak_intensity = apocalyptic }
# alternative_limit = { outbreak_intensity = major }
# alternative_limit = { outbreak_intensity = minor }
# save_scope_as = epidemic
# }
# }
# }
# }
#
# option = { # Convert
# name = ep3_emperor_yearly.8040.a
# add_piety = major_piety_gain
# set_character_faith_with_conversion = faith:iconoclast
# if = {
# limit = {
# faith:iconoclast = { has_doctrine = doctrine_monotheist }
# }
# custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
# }
# add_character_modifier = {
# modifier = ep3_iconoclast_modifier
# years = 15
# }
# if = {
# limit = { ep3_iconoclast_vassal_count > 0 }
# change_influence = {
# value = 25
# multiply = ep3_iconoclast_vassal_count
# }
# }
# scope:priest = {
# if = {
# limit = { faith != faith:iconoclast }
# add_opinion = {
# target = root
# modifier = angry_opinion
# opinion = -30
# }
# }
# else = {
# add_opinion = {
# target = root
# modifier = pleased_opinion
# opinion = 15
# }
# }
# }
# stress_impact = {
# stubborn = medium_stress_impact_gain
# lazy = medium_stress_impact_gain
# arrogant = medium_stress_impact_gain
# brave = medium_stress_impact_gain
# }
# ai_chance = {
# base = 1
# ai_value_modifier = {
# ai_boldness = 0.5
# ai_zeal = 0.5
# }
# }
# }
#
# option = { # Stay the course
# name = ep3_emperor_yearly.8040.b
# change_influence = medium_influence_gain
# stress_impact = {
# fickle = medium_stress_impact_gain
# zealous = medium_stress_impact_gain
# humble = medium_stress_impact_gain
# craven = medium_stress_impact_gain
# }
# ai_chance = {
# base = 2
# ai_value_modifier = {
# ai_energy = -0.5
# ai_rationality = 0.5
# }
# }
# }
#}
# Norse raiders