decisions = {
	create_the_north = {
		is_high_prio = yes
		
		only_playable = yes
		only_independent = yes
		
		potential = {
			is_playable = yes
			religion_group = northern_religions
			culture_group = northern_group
			e_the_north = { has_holder = no }
			any_demesne_title = {
				count = 2
				OR = {
					title = k_temeria
					title = k_sodden
					title = k_redania
					title = k_kovir_poviss
					title = k_hengfors_league
					title = k_kaedwen
					title = k_aedirn
					title = k_lyria_rivia
					title = k_skellig
					title = k_cintra
				}
			}
		}
		allow = {
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			prestige = 1000
			any_demesne_title = {
				count = 3
				OR = {
					title = k_temeria
					title = k_sodden
					title = k_redania
					title = k_kovir_poviss
					title = k_hengfors_league
					title = k_kaedwen
					title = k_aedirn
					title = k_lyria_rivia
					title = k_skellig
					title = k_cintra
				}
			}
		}
		effect = {
			narrative_event = { id = realm.1 tooltip = EVTTOOLTIPrealm.1 }
			prestige = 1000
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	create_dwarf_empire = {
		is_high_prio = yes
		
		only_playable = yes
		only_independent = yes
		
		potential = {
			is_playable = yes
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			religion = dwarven_religion
			culture = dwarven
			tier = KING
			e_dwarf_empire = { has_holder = no }
		}
		allow = {
			prestige = 1000
			any_demesne_title = {
				title = k_mahakam
			}
			num_of_king_titles = 2
		}
		effect = {
			narrative_event = { id = realm.10 tooltip = EVTTOOLTIPrealm.10 }
			prestige = 1000
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	create_hen_caerme = {
		is_high_prio = yes
		
		only_playable = yes
		only_independent = yes
		
		potential = {
			is_playable = yes
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			religion = dana_meadbh
			culture = aen_seidhe
			tier = KING
			e_hen_caerme = { has_holder = no }
		}
		allow = {
			prestige = 1000
			any_demesne_title = {
				OR = {
					title = k_tir_tochair
					title = k_dol_blathanna
					title = k_ard_glas
				}
			}
			num_of_king_titles = 2
		}
		effect = {
			narrative_event = { id = realm.20 tooltip = EVTTOOLTIPrealm.20 }
			prestige = 1000
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	organize_black_hammers = {
		is_high_prio = yes
		
		only_playable = yes
		only_independent = yes
		
		potential = {
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			culture = dwarven
			religion = dwarven_religion
			has_landed_title = e_dwarf_empire
			NOT = { has_global_flag = black_hammers_founded }
		}
		allow = {
			prestige = 300
			wealth = 300
		}
		effect = {
			set_global_flag = black_hammers_founded
			prestige = -300
			wealth = -300
			activate_title = { title = d_black_hammers status = yes }
			hidden_tooltip = {
				narrative_event = { id = realm.30 }
				create_character = {
					random_traits = yes
					religion = dwarven_religion
					culture = dwarven
					dynasty = NONE
					female = no
					age = 50
					trait = skilled_tactician
				}
				new_character = {
					d_black_hammers = { grant_title = PREV }
					set_defacto_liege = ROOT
				}
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	organize_saethyddion = {
		is_high_prio = yes
		
		only_playable = yes
		only_independent = yes
		
		potential = {
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			culture = aen_seidhe
			religion = dana_meadbh
			has_landed_title = e_hen_caerme
			NOT = { has_global_flag = saethyddion_founded }
		}
		allow = {
			prestige = 300
			wealth = 300
		}
		effect = {
			set_global_flag = saethyddion_founded
			prestige = -300
			wealth = -300
			activate_title = { title = d_saethyddion status = yes }
			hidden_tooltip = {
				narrative_event = { id = realm.31 }
				create_character = {
					random_traits = yes
					religion = dana_meadbh
					culture = aen_seidhe
					dynasty = NONE
					female = no
					age = 50
					trait = skilled_tactician
				}
				new_character = {
					d_saethyddion = { grant_title = PREV }
					set_defacto_liege = ROOT
				}
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	make_drakenborg_into_prison = {
		only_playable = yes
		
		potential = {
			is_playable = yes
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			culture_group = northern_group
			year = 1220
			NOT = { has_global_flag = drakenborg_made_into_prison }
		}
		allow = {
			has_landed_title = k_redania
			has_landed_title = c_drakenborg
		}
		effect = {
			character_event = { id = realm.50 tooltip = EVTTOOLTIPrealm.50 }
			set_global_flag = drakenborg_made_into_prison
		}
		ai_will_do = {
			factor = 1
			modifier = { factor = 0.001 }
		}
	}
	
	hold_archery_competition = {
		is_high_prio = yes
		
		only_playable = yes
		only_independent = yes
		
		potential = {
			NOT = {
				has_character_flag = archery_competition
					custom_tooltip = {
					text = is_not_busy_trigger_tooltip
					hidden_tooltip = { NOT = { has_character_flag = do_not_disturb } }
				}
			}
			independent = yes
			OR = {
				tier = duke
				tier = king
				tier = emperor 
			}
			location = {
				owner = { character = ROOT }
			}
			OR = {
				trait = dryad_race
				trait = elf_race
			}
		}
		allow = {
			war = no
			prisoner = no
			in_command = no
			age = 15
			prestige = 300
			wealth = 100
		}
		effect = {
			set_character_flag = archery_competition
			set_character_flag = do_not_disturb
			clr_character_flag = archery_competition_has_ended
			hidden_tooltip = { character_event = { id = tournament.400 days = 200 } } # Safety catch flag clearing
			wealth = -100
			prestige = 50
			character_event = { id = tournament.1 tooltip = "tournament_invite" }
			hidden_tooltip = {
				character_event = { id = tournament.10 days = 60 } # Competition start
				clr_character_flag = archery_competition_has_ended
				any_realm_character = {
					limit = {
						is_feudal = yes
						NOT = { has_job_title = job_spiritual }
						age = 15
						NOT = { has_character_modifier = old_age }
						NOT = { trait = incapable }
						prisoner = no
						is_female = no
					}
					clr_character_flag = archery_competition_has_ended
					character_event = { id = tournament.2 }
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					OR = {
						wealth = 500
						scaled_wealth = 2
					}
				}
			}
		}
	}
	
	embrace_solarism = {
		only_playable = yes
		
		potential = {
			has_dlc = "Sons of Abraham"
			religion = solar
			NOT = { 
				OR = {
					trait = solarist
					trait = imperialist
				}
			}
			is_ruler = yes
			age = 15
			prisoner = no
		}
		
		allow = {
			piety = 50
		}
		
		effect = {
			tooltip = { add_trait = solarist }
			character_event = { id = religious.100 tooltip = EVTTOOLTIPreligious.100 }
		}
		
		ai_will_do = {
			factor = 1
			modifier = { factor = 0.005 }
			modifier = { factor = 1.2 trait = zealous }
			modifier = { factor = 0 trait = cynical }
			modifier = { factor = 1.2 liege = { trait = solarist } }
			modifier = { factor = 1.5 any_independent_ruler = { NOT = { trait = strong_emperor } } }
		}
	}
	
	embrace_imperialism = {
		only_playable = yes
		
		potential = {
			has_dlc = "Sons of Abraham"
			religion = solar
			NOT = { 
				OR = {
					trait = solarist
					trait = imperialist
				}
			}
			is_ruler = yes
			age = 15
			prisoner = no
		}
		
		allow = {
			piety = 50
		}
		
		effect = {
			tooltip = { add_trait = imperialist }
			character_event = { id = religious.101 tooltip = EVTTOOLTIPreligious.101 }
		}
		
		ai_will_do = {
			factor = 1
			modifier = { factor = 0.005 }
			modifier = { factor = 0 trait = zealous }
			modifier = { factor = 1.2 trait = cynical }
			modifier = { factor = 1.2 liege = { trait = imperialist } }
			modifier = { factor = 2 any_independent_ruler = { trait = strong_emperor } }
		}
	}
}
