﻿##until_death_do_us_part_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = until_death_do_us_part_achievement_trigger
##			has_character_flag = achievement_until_death_do_us_part_flag
##		}
##	}
##}
##
##way_of_life_achievement = {
##	possible = {
##		NOR = {
##			AND = {
##				has_perk = diplomat_perk
##				has_perk = august_perk
##				has_perk = family_man_perk
##			}
##			AND = {
##				has_perk = schemer_perk
##				has_perk = seducer_perk
##				has_perk = torturer_perk
##			}
##			AND = {
##				has_perk = whole_of_body_perk
##				has_perk = scholar_perk
##				has_perk = theologian_perk
##			}
##			AND = {
##				has_perk = strategist_perk
##				has_perk = overseer_perk
##				has_perk = gallant_perk
##			}
##			AND = {
##				has_perk = avaricious_perk
##				has_perk = architect_perk
##				has_perk = administrator_perk
##			}
##		}
##	}
##	happened = {
##		custom_description = {
##			text = way_of_life_achievement_trigger
##			OR = {
##				AND = {
##					has_perk = diplomat_perk
##					has_perk = august_perk
##					has_perk = family_man_perk
##				}
##				AND = {
##					has_perk = schemer_perk
##					has_perk = seducer_perk
##					has_perk = torturer_perk
##				}
##				AND = {
##					has_perk = whole_of_body_perk
##					has_perk = scholar_perk
##					has_perk = theologian_perk
##				}
##				AND = {
##					has_perk = strategist_perk
##					has_perk = overseer_perk
##					has_perk = gallant_perk
##				}
##				AND = {
##					has_perk = avaricious_perk
##					has_perk = architect_perk
##					has_perk = administrator_perk
##				}
##			}
##		}
##	}
##}
##
##a_legacy_to_last_the_ages_achievement = {
##	possible = {
##		dynasty = {
##			NOR = {
##				has_dynasty_perk = blood_legacy_5
##				has_dynasty_perk = warfare_legacy_5
##				has_dynasty_perk = law_legacy_5
##				has_dynasty_perk = guile_legacy_5
##				has_dynasty_perk = erudition_legacy_5
##				has_dynasty_perk = glory_legacy_5
##				has_dynasty_perk = kin_legacy_5
##				has_dynasty_perk = fp1_adventure_legacy_5
##				has_dynasty_perk = fp1_pillage_legacy_5
##				has_dynasty_perk = ep1_culture_legacy_5
##				has_dynasty_perk = fp2_urbanism_legacy_5
##				has_dynasty_perk = fp2_coterie_legacy_5
##				has_dynasty_perk = fp3_khvarenah_legacy_5
##			}
##		}
##	}
##	happened = {
##		custom_description = {
##			text = a_legacy_to_last_the_ages_achievement_trigger
##			dynasty = {
##				OR = {
##					has_dynasty_perk = blood_legacy_5
##					has_dynasty_perk = warfare_legacy_5
##					has_dynasty_perk = law_legacy_5
##					has_dynasty_perk = guile_legacy_5
##					has_dynasty_perk = erudition_legacy_5
##					has_dynasty_perk = glory_legacy_5
##					has_dynasty_perk = kin_legacy_5
##					#FP1
##					has_dynasty_perk = fp1_adventure_legacy_5
##					has_dynasty_perk = fp1_pillage_legacy_5
##					#EP1
##					has_dynasty_perk = ep1_culture_legacy_5
##					#FP2
##					has_dynasty_perk = fp2_urbanism_legacy_5
##					has_dynasty_perk = fp2_coterie_legacy_5
##					#FP3
##					has_dynasty_perk = fp3_khvarenah_legacy_5
##					#EP2
##					has_dynasty_perk = ep2_activities_legacy_5
##					#CE1
##					has_dynasty_perk = ce1_heroic_legacy_5
##					has_dynasty_perk = ce1_legitimacy_legacy_5
##					#EP3
##					has_dynasty_perk = ep3_administrative_legacy_5
##				}
##			}
##		}
##	}
##}
##
##a_house_of_my_own_achievement = {
##	possible = {
##	
##	}
##	happened = {
##		custom_description = {
##			text = a_house_of_my_own_achievement_trigger
##			has_character_flag = achievement_a_house_of_my_own_flag
##		}
##	}
##}
##
##dreadful_ruler_achievement = {
##	possible = {
##	
##	}
##	happened = {
##		custom_description = {
##			text = dreadful_ruler_achievement_trigger
##			dread = 100
##		}
##	}
##}
##
##stressful_situation_achievement = {
##	possible = {
##	
##	}
##	happened = {
##		custom_description = {
##			text = stressful_situation_achievement_trigger
##			has_character_flag = achievement_stressful_situation_flag
##		}
##	}
##}
##
##not_so_feudal_system_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = not_so_feudal_system_achievement_trigger
##			has_character_flag = achievement_not_so_feudal_system_flag
##		}
##	}
##}
##
##the_succession_is_safe_achievement = {
##	possible = {
##		NOT = { has_character_flag = rd_character_blocked_the_succession_is_safe_achievement_flag }
##	}
##	happened = {
##		custom_description = {
##			text = the_succession_is_safe_achievement_trigger
##			any_child = {
##				count >= 10
##				is_alive = yes
##			}
##		}
##	}
##}
##
##almost_there_achievement = {
##	possible = {
##		exists = global_var:started_almost_there_achievement
##		character:159137 = {
##			is_alive = yes
##			is_ai = no
##		}
##	}
##	happened = {
##		custom_description = {
##			text = almost_there_achievement_trigger
##			has_title = title:k_hungary
##			has_religion = religion:christianity_religion
##			character:159137 = {
##				is_alive = yes
##				is_ai = no
##			}
##		}
##	}
##}
##
##last_count_first_king_achievement = {
##	possible = {
##		exists = global_var:started_last_count_first_king_achievement
##		character:109607 = {
##			is_alive = yes
##			is_ai = no
##		}
##	}
##	happened = {
##		custom_description = {
##			text = last_count_first_king_achievement_trigger
##			has_title = title:k_portugal
##			character:109607 = {
##				is_alive = yes
##				is_ai = no
##			}
##		}
##	}
##}
##
##prolific_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = prolific_achievement_trigger
##			dynasty = {
##				any_dynasty_member = {
##					count >= 100
##					is_alive = yes
##				}
##			}
##		}
##	}
##}
##
##a_name_known_throughout_the_world_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = a_name_known_throughout_the_world_achievement_trigger
##			dynasty = {
##				dynasty_prestige_level >= max_dynasty_prestige_level
##			}
##		}
##	}
##}
##
##end_of_an_era_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = end_of_an_era_achievement_trigger
##			current_date >= 1452.12.1
##		}
##	}
##}
##
##turning_to_diamonds_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = turning_to_diamonds_achievement_trigger
##			stress_level >= define:NCharacter|MAX_STRESS_LEVEL
##		}
##	}
##}
##
##reconquista_achievement = {
##	possible = {
##		exists = global_var:started_reconquista_achievement
##	}
##	happened = {
##		custom_description = {
##			text = reconquista_achievement_trigger
##			completely_controls_region = world_europe_west_iberia
##			any_county_in_region = {
##				region = world_europe_west_iberia
##				count = all
##				faith = { religion_tag = christianity_religion }
##			}
##			OR = {
##				culture = { has_cultural_pillar = heritage_iberian }
##				culture = culture:andalusian
##			}
##			has_religion = religion:christianity_religion
##		}
##	}
##}
##
##seven_holy_cities_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = seven_holy_cities_achievement_trigger
##			has_religion = religion:hinduism_religion
##			primary_title = { is_de_facto_liege_or_above_target = title:c_varanasi } # Varanasi
##			primary_title = { is_de_facto_liege_or_above_target = title:c_ayodhya } # Ayodhya
##			primary_title = { is_de_facto_liege_or_above_target = title:c_mathura }  # Mathura
##			primary_title = { is_de_facto_liege_or_above_target = title:c_sthanisvara } # Haridwar
##			primary_title = { is_de_facto_liege_or_above_target = title:c_kanchipuram } # Kanchipuram
##			primary_title = { is_de_facto_liege_or_above_target = title:c_ujjayini } # Ujjayini
##			primary_title = { is_de_facto_liege_or_above_target = title:c_dvaraka } # Dwarka
##		}
##	}
##}
##
##frankokratia_achievement = {
##	possible = {
##		
##	}
##	happened = {
##		custom_description = {
##			text = frankokratia_achievement_trigger
##			completely_controls = title:k_thessalonika
##			culture = culture:french
##			faith = faith:catholic
##			NOR = {
##				is_roman_emperor_trigger = yes
##				any_liege_or_above = {
##					has_title = title:e_byzantium
##				}
##				any_liege_or_above = {
##					has_title = title:h_roman_empire
##				}
##				any_liege_or_above = {
##					has_title = title:h_eastern_roman_empire
##				}
##			}
##		}
##	}
##}
##
##celebrity_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = celebrity_achievement_trigger
##			prestige_level >= max_prestige_level
##		}
##	}
##}
##
##saint_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = saint_achievement_trigger
##			piety_level >= max_piety_level
##		}
##	}
##}
##
##keeping_it_in_the_family_achievement = {
##	possible = {
##		NOT = { has_character_flag = rd_character_blocked_keeping_it_in_the_family_achievement_flag }
##	}
##	happened = {
##		custom_description = {
##			text = keeping_it_in_the_family_achievement_trigger
##			any_child = {
##				has_trait = inbred
##			}
##		}
##	}
##}
##
##non_nobis_domine_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = non_nobis_domine_achievement_trigger
##			has_character_flag = achievement_non_nobis_domine_flag
##		}
##	}
##}
##
##trapped_in_the_web_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = trapped_in_the_web_achievement_trigger
##			any_vassal = {
##				count >= 3
##				save_temporary_scope_as = hooked_vassals
##				root = { has_strong_hook = scope:hooked_vassals }
##			}
##		}
##	}
##}
##
##followed_by_shadows_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = followed_by_shadows_achievement_trigger
##			any_known_secret = {
##				count >= 10
##			}
##		}
##	}
##}
##
##what_nepotism_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = what_nepotism_achievement_trigger
##			dynasty = {
##				any_dynasty_member = {
##					count >= 10
##					highest_held_title_tier >= tier_kingdom
##					top_liege = this
##				}
##			}
##		}
##	}
##}
##
##rise_from_the_ashes_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = rise_from_the_ashes_achievement_trigger
##			has_title = title:h_roman_empire
##		}
##	}
##}
##
##the_emerald_isle_achievement = {
##	possible = {
##		exists = global_var:started_the_emerald_isle_achievement
##	}
##	happened = {
##		custom_description = {
##			text = the_emerald_isle_achievement_trigger
##			has_title = title:k_ireland
##		}
##	}
##}
##
##from_rags_to_riches_achievement = {
##	possible = {
##		has_global_variable = achievement_rags_to_riches_valid
##	}
##	happened = {
##		custom_description = {
##			text = from_rags_to_riches_achievement_trigger
##			highest_held_title_tier = tier_empire
##		}
##	}
##}
##
##give_a_dog_a_bone_achievement = {
##	possible = {
##		exists = global_var:started_give_a_dog_a_bone_achievement
##	}
##	happened = {
##		custom_description = {
##			text = give_a_dog_a_bone_achievement_trigger
##			dynasty = {
##				any_dynasty_member = {
##					has_title = title:k_italy
##				}
##			}
##			dynasty = {
##				any_dynasty_member = {
##					count >= 50
##					is_alive = yes
##				}
##			}
##			exists = global_var:holy_order_give_a_dog_a_bone_achievement
##		}
##	}
##}
##
##al_andalus_achievement = {
##	possible = {
##		exists = global_var:started_al_andalus_achievement
##	}
##	happened = {
##		custom_description = {
##			text = al_andalus_achievement_trigger
##			has_character_flag = achievement_al_andalus_flag
##			completely_controls_region = world_europe_west_iberia
##		}
##	}
##}
##
##wily_as_the_fox_achievement = {
##	possible = {
##		exists = global_var:started_wily_as_the_fox_achievement
##	}
##	happened = {
##		custom_description = {
##			text = wily_as_the_fox_achievement_trigger
##			OR = {
##				has_title = title:k_sicily
##				has_title = title:k_trinacria
##				has_title = title:k_naples
##			}
##			OR = {
##				AND = {
##					completely_controls = title:k_epirus
##					any_county_in_region = {
##						region = custom_k_epirus
##						count = all
##						faith = faith:catholic
##					}
##				}
##				AND = {
##					completely_controls = title:k_thessalonika
##					any_county_in_region = {
##						region = custom_k_thessalonika
##						count = all
##						faith = faith:catholic
##					}
##				}
##				AND = {
##					completely_controls = title:k_hellas
##					any_county_in_region = {
##						region = custom_k_hellas
##						count = all
##						faith = faith:catholic
##					}
##				}
##				#Krete doesn't count.
##			}
##		}
##	}
##}
##
##sibling_rivalry_achievement = {
##	possible = {
##		exists = global_var:started_sibling_rivalry_achievement
##	}
##	happened = {
##		custom_description = {
##			text = sibling_rivalry_achievement_trigger
##			any_held_title = {
##				this = title:e_spain
##			}
##		}
##	}
##}
##
##blood_eagle_achievement = {
##	possible = {
##		exists = global_var:started_blood_eagle_achievement
##	}
##	happened = {
##		custom_description = {
##			text = blood_eagle_achievement_trigger
##			completely_controls_region = world_europe_west_britannia
##		}
##	}
##}
##
##kings_to_the_seventh_generation_achievement = {
##	possible = {
##		exists = global_var:started_kings_to_the_seventh_generation_achievement
##	}
##	happened = {
##		custom_description = {
##			text = kings_to_the_seventh_generation_achievement_trigger
##			any_held_title = {
##				this = title:k_france
##			}
##		}
##	}
##}
##
##norman_yoke_achievement = {
##	possible = {
##		exists = global_var:started_norman_yoke_achievement
##	}
##	happened = {
##		custom_description = {
##			text = norman_yoke_achievement_trigger
##			exists = global_var:achievement_norman_yoke_war_flag
##			culture = culture:english
##			title:k_england = {
##				holder = {
##					this = root
##					save_temporary_scope_as = english_king
##				}
##
##				# All direct vassals who hold a county or duchy in De Jure England must be English.
##				any_in_de_jure_hierarchy = {
##					count = all
##
##					trigger_if = {
##						limit = {
##							OR = {
##								tier = tier_county
##								tier = tier_duchy
##							}
##							holder ?= {
##								is_vassal_of = scope:english_king
##							}
##						}
##						holder = {
##							culture = culture:english
##						}
##					}
##				}
##			}
##		}
##	}
##}
##
##royal_dignity_achievement = {
##	possible = {
##		exists = global_var:started_royal_dignity_achievement
##	}
##	happened = {
##		custom_description = {
##			text = royal_dignity_achievement_trigger
##			any_held_title = {
##				this = title:k_bohemia
##			}
##			any_held_title = {
##				this = title:e_hre
##			}
##		}
##	}
##}
##
##going_places_achievement = {
##	possible = {
##		exists = global_var:started_going_places_achievement
##		character:6878 = {
##			is_alive = yes
##			is_ai = no
##		}
##	}
##	happened = {
##		custom_description = {
##			text = going_places_achievement_trigger
##			highest_held_title_tier >= tier_kingdom
##			character:6878 = {
##				is_alive = yes
##				is_ai = no
##			}
##		}
##	}
##}
##
##land_of_the_rus_achievement = {
##	possible = {
##		exists = global_var:started_land_of_the_rus_achievement
##	}
##	happened = {
##		custom_description = {
##			text = land_of_the_rus_achievement_trigger
##			any_held_title = {
##				this = title:e_russia
##			}
##		}
##	}
##}
##
##above_god_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = above_god_achievement_trigger
##			exists = root.faith.religious_head
##			has_strong_hook = root.faith.religious_head
##		}
##	}
##}
##
##paragon_of_virtue_achievement = {
##	possible = {
##		NOT = { has_character_flag = rd_character_blocked_paragon_of_virtue_achievement_flag }
##	}
##	happened = {
##		custom_description = {
##			text = paragon_of_virtue_achievement_trigger
##			num_virtuous_traits >= 3
##		}
##	}
##}
##
##the_things_love_does_for_us_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = the_things_love_does_for_us_achievement_trigger
##			has_character_flag = achievement_the_things_love_does_for_us_flag
##		}
##	}
##}
##
##fine_print_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = fine_print_achievement_trigger
##			has_character_flag = achievement_fine_print_flag
##		}
##	}
##}
##
##know_your_place_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = know_your_place_achievement_trigger
##			has_character_flag = achievement_know_your_place_flag
##		}
##	}
##}
##
##monumental_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = monumental_achievement_trigger
##			any_directly_owned_province = {
##				has_building_with_flag = { flag = fully_upgraded_duchy_capital_building }
##			}
##		}
##	}
##}
##
##its_not_a_cult_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = its_not_a_cult_achievement_trigger
##			has_character_flag = achievement_its_not_a_cult_flag
##		}
##	}
##}
##
##the_things_we_do_for_love_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = the_things_we_do_for_love_achievement_trigger
##			has_character_flag = achievement_the_things_we_do_for_love_flag
##		}
##	}
##}
##
##an_unfortunate_accident_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = an_unfortunate_accident_achievement_trigger
##			has_character_flag = achievement_an_unfortunate_accident_flag
##		}
##	}
##}
##
##death_did_us_part_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = death_did_us_part_achievement_trigger
##			has_character_flag = achievement_death_did_us_part_flag
##		}
##	}
##}
##
##for_the_faith_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = for_the_faith_achievement_trigger
##			has_character_flag = achievement_for_the_faith_flag
##		}
##	}
##}
##
##bad_blood_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = bad_blood_achievement_trigger
##			has_character_flag = achievement_bad_blood_flag
##		}
##	}
##}
##
##seductive_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = seductive_achievement_trigger
##			has_variable = achievement_seductive_variable
##			var:achievement_seductive_variable >= 10
##		}
##	}
##}
##
##the_emperors_new_clothes_achievement = {
##	possible = {
##		NOT = { has_character_flag = rd_character_blocked_the_emperors_new_clothes_achievement_flag }
##	}
##	happened = {
##		custom_description = {
##			text = the_emperors_new_clothes_achievement_trigger
##			highest_held_title_tier >= tier_empire
##			should_be_naked_trigger = yes
##		}
##	}
##}
##
##a_perfect_circle_achievement = {
##	possible = {
##
##	}
##	happened = {
##		custom_description = {
##			text = a_perfect_circle_achievement_trigger
##			parent_relatedness >= 0.8
##		}
##	}
##}
##
##carolingian_consolidation_achievement = {
##	possible = {
##		root.dynasty = {
##			this = dynasty:25061
##		}
##	}
##	happened = {
##		custom_description = {
##			text = carolingian_consolidation_achievement_trigger
##			top_liege = this
##			NOT = {
##				root.dynasty = {
##					any_dynasty_member = {
##						is_playable_character = yes
##						top_liege = this
##						this != root
##					}
##				}
##			}
##		}
##	}
##}
##
##moving_up_in_the_world_achievement = {
##	possible = {
##		
##	}
##	happened = {
##		custom_description = {
##			text = moving_up_in_the_world_achievement_trigger
##			has_character_flag = achievement_moving_up_in_the_world_flag
##		}
##	}
##}
##
##beacon_of_progress_achievement = {
##	possible = {
##		
##	}
##	happened = {
##		custom_description = {
##			text = beacon_of_progress_achievement_trigger
##			culture = {
##				has_all_innovations = { with_flag = global_regular }
##			}
##		}
##	}
##}
##
##mother_of_us_all_achievement = {
##	possible = {
##		exists = global_var:started_mother_of_us_all_achievement
##	}
##	happened = {
##		custom_description = {
##			text = mother_of_us_all_achievement_trigger
##			OR = {
##				#Siguic/Bidaic
##				AND = {
##					has_global_variable = achievement_mother_of_us_all_siguic
##					any_county_in_region = {
##						region = world_africa
##						count = all
##						faith = { religion_tag = west_african_religion }
##					}
##				}
##				#Orisan
##				AND = {
##					has_global_variable = achievement_mother_of_us_all_orisha
##					any_county_in_region = {
##						region = world_africa
##						count = all
##						faith = { religion_tag = west_african_orisha_religion }
##					}
##				}
##				#Bori
##				AND = {
##					has_global_variable = achievement_mother_of_us_all_bori
##					any_county_in_region = {
##						region = world_africa
##						count = all
##						faith = { religion_tag = west_african_bori_religion }
##					}
##				}
##				#Roog Sene
##				AND = {
##					has_global_variable = achievement_mother_of_us_all_roog_sene
##					any_county_in_region = {
##						region = world_africa
##						count = all
##						faith = { religion_tag = west_african_roog_religion }
##					}
##				}
##				#Akom
##				AND = {
##					has_global_variable = achievement_mother_of_us_all_akom
##					any_county_in_region = {
##						region = world_africa
##						count = all
##						faith = { religion_tag = akom_religion }
##					}
##				}
##				#Kushitism
##				AND = {
##					has_global_variable = achievement_mother_of_us_all_kushitism
##					any_county_in_region = {
##						region = world_africa
##						count = all
##						faith = { religion_tag = kushitism_religion }
##					}
##				}
##				#Waaqism
##				AND = {
##					has_global_variable = achievement_mother_of_us_all_waaqism
##					any_county_in_region = {
##						region = world_africa
##						count = all
##						faith = { religion_tag = waaqism_religion }
##					}
##				}
##				#North African
##				AND = {
##					has_global_variable = achievement_mother_of_us_all_achamanism
##					any_county_in_region = {
##						region = world_africa
##						count = all
##						faith = { religion_tag = north_african_religion }
##					}
##				}
##			}
##		}
##	}
##}
##