﻿###################
# AGOT More Bookmarks #
###################


agot_more_bookmarks_game_start_effect = {
	if = {
		limit = {
			NOR = {
				game_start_date = 8082.1.1
				game_start_date = 8106.4.18
				game_start_date = 8284.6.2
				game_start_date = 8282.9.15
				game_start_date = 8277.1.1
				game_start_date = 8258.12.21
				game_start_date = 8239.1.11
				game_start_date = 8233.2.8
				game_start_date = 8209.2.1
				game_start_date = 8170.12.11
				game_start_date = 8106.4.18
			}
		}
		if = {
			limit = {
				title:h_the_iron_throne.holder ={
					is_at_war = yes
				}
			}

			title:h_the_iron_throne.holder = {
				add_character_flag = { flag = mw_init_event_blocker days = 2 }
				 save_scope_as = historical_setup
				 every_character_war = {
					agot_more_bookmarks_war_setup = yes
				 }
			}
		}
		else = {
			every_independent_ruler = {
				limit = {
					#highest_held_title_tier < tier_empire
					capital_province = { geographical_region = world_westeros_seven_kingdoms }
					is_landless_ruler = no
					agot_can_be_feudal_ruler = yes
					game_start_date >= 8002.1.1
					NOT = {
						has_title = title:e_dorne
						game_start_date < 8190.1.1
					}
				}
				create_title_and_vassal_change = {
					type = swear_fealty
					save_scope_as = change
					add_claim_on_loss = no
				}
				change_liege = {
					liege = title:h_the_iron_throne.holder
					change = scope:change
				}
				resolve_title_and_vassal_change = scope:change
			}
		}
		agot_more_bookmarks_historical_wars_start = yes	
	}
	### Religion related setup
	# Setup faiths
	if = { # Add doctrine of exceptionalism
		limit = {
			game_start_date <= 8051.1.1
		}
		faith:fots_seven = { add_doctrine = agot_exceptionalism_doctrine }
		dynasty:dynn_Targaryen = { set_variable = agot_doctrine_of_exceptionalism_incest_exemption }
		dynasty:dynn_Targaryen = {
			every_dynasty_member = {
				limit = {
					any_secret = { secret_type = secret_incest }
				}
				every_secret = {
					limit = { secret_type = secret_incest }
					remove_secret = yes
				}
			}
		}
	}
	
	#Miscellaneous
	character:Targaryen_91 ?= {
		random_list = {
			50 = {
				set_real_father = character:Targaryen_89
			}
			50 = {}
		}
	}
	character:Lannister_6 ?= {
		random_list = {
			1 = {
				set_real_father = character:Targaryen_1
				character:Lannister_7 = {
					set_real_father = character:Targaryen_1
				}
			}
			100 = {}
		}
	}
	character:Targaryen_27 ?= {
		if = {
			limit = {
				is_alive = yes
				has_title = title:h_the_iron_throne
				game_start_date < 8000.12.1
			}
			trigger_event = conqueror.0001
		}
	}
	title:h_the_iron_throne ?= {
		if = {
			limit = {
				game_start_date < 8010.1.1
			}
			set_variable = kingsguard
		}
	}
	agot_more_bookmarks_vanity_setup = yes
}


agot_more_bookmarks_war_setup = {
	#primary_attacker = {
	#	if = {
	#		limit = {
	#			has_title = title:e_blackfyre_rebellion
	#		}
	#		destroy_title = title:e_blackfyre_rebellion
	#	}
	#}
	### SET UP REBEL LEADERS
	hidden_effect = { # Robert aganist Targaryens
		
		# ADD REBEL SUPPORTERS #
		# Add vassal rebels
		primary_attacker = {
			agot_mw_scenario_rebel_setup = {
				SOURCE = flag:mw_internal
				MODE = flag:mw_regular
				REALM_BREAK_UP = flag:yes
				REBEL_MAY_VASSALIZE = flag:no
				HELD_TITLE = primary_title
				CASUS_BELLI = prev.casus_belli
				PRE_WAR_LIEGE = title:h_the_iron_throne.holder
				MW_TARGET = title:h_the_iron_throne.holder
			}
			save_scope_as = mw_rebel_leader_robert
			every_vassal_or_below = {
				limit = {
					primary_title.tier > tier_barony
					NOT = {
						OR = {
							primary_title = title:e_the_most_devout
						}
					}
				}

				scope:mw_rebel_story = {
					add_to_variable_list = {
						name = mw_rebel_supporter_list
						target = prev
					}
				}
			}
		}
		# Add independent rebels
		every_war_attacker = {
			limit = {
				is_independent_ruler = yes
				NOR = {
					this = character:Tully_7
					AND = {
						this = character:Tully_1
						game_start_date > 8284.1.1
					}
				}
			}
			agot_mw_add_character_to_mw_list = {
				CHARACTER_SCOPE = this
				STORY_SCOPE = scope:mw_rebel_story
				LIST = mw_rebel_supporter_list
				PRE_WAR_LIEGE_SCOPE = title:h_the_iron_throne.holder
			}
		}
	}
	######

	### SET UP CROWN
	agot_mw_scenario_crown_setup = {
		MODE = flag:mw_regular
		REALM_BREAK_UP = flag:yes
		HELD_TITLE = title:h_the_iron_throne
	}
	# ADD LOYALISTS #
	# Add vassal loyalists
	title:h_the_iron_throne.holder = {
		every_vassal_or_below = {
			limit = {
				primary_title.tier > tier_barony
				NOT = {
					OR = {
						primary_title = title:e_the_most_devout
					}
				}
			}

			scope:mw_crown_story = {
				add_to_variable_list = {
					name = mw_loyalist_list
					target = prev
				}
			}
		}
	}
	every_war_defender = {
		agot_mw_add_character_to_mw_list = {
			CHARACTER_SCOPE = this
			STORY_SCOPE = scope:mw_crown_story
			LIST = mw_loyalist_list
			PRE_WAR_LIEGE_SCOPE = title:h_the_iron_throne.holder
		}
	}
	every_independent_ruler = {
		limit = {
			OR = {
				has_government = lp_feudal_government
				has_government = feudal_government
			}
			#highest_held_title_tier < tier_empire
			capital_barony.title_province = { geographical_region = world_westeros_seven_kingdoms }
			NOR = {
				is_at_war_with = title:h_the_iron_throne.holder
				is_allied_in_war = title:h_the_iron_throne.holder
			}
		}
		agot_mw_add_character_to_mw_list = {
			CHARACTER_SCOPE = this
			STORY_SCOPE = scope:mw_crown_story
			LIST = mw_neutral_list
			PRE_WAR_LIEGE_SCOPE = title:h_the_iron_throne.holder
		}
	}
	######

	### SET OPINIONS ###
	agot_mw_set_opinions_up = { REBEL_STORY_OWNER_SCOPE = scope:mw_rebel_leader_robert }
	######


}

agot_more_bookmarks_historical_wars_start = {
	if = {
		limit = {
			game_start_date = 8289.1.1
			exists = title:e_the_iron_islands.holder
		}
		title:e_the_iron_islands.holder = {
			save_scope_as = defender
			every_vassal = {
				add_to_list = potential_defenders
			}
		}
		title:h_the_iron_throne.holder = {
			save_scope_as = attacker
		}
		title:k_dragonstone.holder = { add_to_list = potential_attackers }
		title:e_the_north.holder = { add_to_list = potential_attackers }
		title:e_the_westerlands.holder = { add_to_list = potential_attackers }
		title:e_the_riverlands.holder = { add_to_list = potential_attackers }
		title:c_oldtown.holder = { add_to_list = potential_attackers }
		title:d_the_arbor.holder = { add_to_list = potential_attackers }
		title:c_fang_hill.holder = { add_to_list = potential_attackers }
		title:d_cape_of_eagles.holder = { add_to_list = potential_attackers }
		title:d_bear_island.holder = { add_to_list = potential_attackers }
		#agot_more_bookmarks_historical_war_participants_effect = yes
		title:h_the_iron_throne.holder = {
			start_war = {
				casus_belli = agot_reconquest_war
				target = title:c_pyke.holder
				target_title = title:e_the_iron_islands
			}
			random_character_war = {
				limit = {
					using_cb = agot_reconquest_war
				}
				save_scope_as = war
			}
		}
		every_in_list = {
			list = potential_attackers
			scope:war = {
				add_attacker = prev
			}
		}
		every_in_list = {
			list = potential_defenders
			scope:war = {
				add_defender = prev
			}
		}
	}
	else_if = {
		limit = {
			character:Targaryen_65 = {
				has_title = title:h_the_iron_throne
			}
			character:Targaryen_63 = {
				is_alive = yes
			}
		}
		character:Targaryen_65 = {
			save_scope_as = defender
			designate_diarch = character:Hightower_90
			set_diarch = character:Hightower_90	
			
		}
		character:Targaryen_63 = {
			save_scope_as = attacker
		}
		### Blacks
		title:e_the_vale.holder= { add_to_list = potential_attackers }
		title:e_the_north.holder = { add_to_list = potential_attackers }
		title:d_riverrun.holder = { add_to_list = potential_attackers } 
		title:d_driftmark.holder = { add_to_list = potential_attackers }
		title:d_sharp_point.holder = { add_to_list = potential_attackers }
		title:c_honeyholt.holder = { add_to_list = potential_attackers }
		title:c_flockshade.holder= { add_to_list = potential_attackers }
		title:d_blackwood_vale.holder = { add_to_list = potential_attackers }
		title:c_sweetsister.holder = { add_to_list = potential_attackers }
		#title:d_southstone.holder = { add_to_list = potential_attackers }
		title:c_brownhollow.holder = { add_to_list = potential_attackers }
		title:c_dyre_den.holder = { add_to_list = potential_attackers }
		title:c_bronzegate.holder = { add_to_list = potential_attackers }
		title:c_silverhead.holder = { add_to_list = potential_attackers }
		title:d_bitterbridge.holder = { add_to_list = potential_attackers }
		title:d_claw_isle.holder = { add_to_list = potential_attackers }
		title:d_kings_course.holder = { add_to_list = potential_attackers }
		title:c_whisper_point.holder = { add_to_list = potential_attackers }
		title:c_branstone.holder = { add_to_list = potential_attackers }
		title:c_mistlewood.holder = { add_to_list = potential_attackers }
		title:d_hearts_home.holder = { add_to_list = potential_attackers }
		title:c_strongcliffs.holder = { add_to_list = potential_attackers }
		title:d_duskendale.holder = { add_to_list = potential_attackers }
		title:c_darry.holder = { add_to_list = potential_attackers }
		title:c_lancewood.holder = { add_to_list = potential_attackers }
		title:d_the_barrowlands.holder = { add_to_list = potential_attackers }
		title:d_kingswood.holder = { add_to_list = potential_attackers }
		title:d_flints_finger.holder = { add_to_list = potential_attackers }
		title:d_tumbleton.holder = { add_to_list = potential_attackers }
		title:d_the_crossing.holder = { add_to_list = potential_attackers }
		title:c_oldferns.holder = { add_to_list = potential_attackers }
		#title:d_pyke.holder = { add_to_list = potential_attackers }
		title:c_greyshield.holder = { add_to_list = potential_attackers }
		title:c_brackworth.holder = { add_to_list = potential_attackers } 
		title:d_hayford.holder = { add_to_list = potential_attackers }
		title:d_hornwood.holder = { add_to_list = potential_attackers }
		title:d_cape_of_eagles.holder = { add_to_list = potential_attackers }
		title:d_white_harbor.holder = { add_to_list = potential_attackers }
		title:d_masseys_hook.holder = { add_to_list = potential_attackers }
		title:d_fullharvest.holder = { add_to_list = potential_attackers }
		title:c_turrellis.holder = { add_to_list = potential_attackers }
		title:c_float_river.holder = { add_to_list = potential_attackers }
		title:d_pinkmaiden.holder = { add_to_list = potential_attackers }
		title:c_horsehead.holder = { add_to_list = potential_attackers }
		title:d_goldengrove.holder = { add_to_list = potential_attackers }
		title:d_runestone.holder = { add_to_list = potential_attackers }
		title:c_acorns_ridge.holder = { add_to_list = potential_attackers }
	
		title:d_rooks_rest.holder = { add_to_list = potential_attackers }
		title:d_the_sisters.holder = { add_to_list = potential_attackers }
		title:d_the_westmarch.holder = { add_to_list = potential_attackers }
		title:d_wayfarers_rest.holder = { add_to_list = potential_attackers }
		title:c_stillfen.holder = { add_to_list = potential_attackers }
		title:c_summer_cove.holder = { add_to_list = potential_attackers }
		
		### Greens
		title:e_the_westerlands.holder  = { add_to_list = potential_defenders }
		title:e_the_stormlands.holder   = { add_to_list = potential_defenders }
		title:c_torrentpeak.holder  = { add_to_list = potential_defenders }   
		title:c_great_fork.holder       = { add_to_list = potential_defenders }
		title:d_southstone.holder = { add_to_list = potential_defenders }
		title:c_milkstone.holder        = { add_to_list = potential_defenders }
		title:d_crakehall.holder        = { add_to_list = potential_defenders }
		title:d_orchard_way.holder      = { add_to_list = potential_defenders }
		title:c_holyhall.holder         = { add_to_list = potential_defenders }
		title:d_oldtown.holder          = { add_to_list = potential_defenders }
		title:d_the_golden_tooth.holder = { add_to_list = potential_defenders }
		title:c_estryck.holder          = { add_to_list = potential_defenders }
		title:d_maidenpool.holder       = { add_to_list = potential_defenders }
		title:c_norcross.holder         = { add_to_list = potential_defenders }
		title:d_cockleswhent.holder     = { add_to_list = potential_defenders }
		title:d_the_arbor.holder        = { add_to_list = potential_defenders }
		title:d_castamere.holder        = { add_to_list = potential_defenders }
		title:c_risley_glade.holder     = { add_to_list = potential_defenders }
		title:c_rhodalea.holder         = { add_to_list = potential_defenders }
		title:d_rosby.holder            = { add_to_list = potential_defenders }
		title:d_oldhills.holder         = { add_to_list = potential_defenders }
		title:d_stokeworth.holder       = { add_to_list = potential_defenders }
		title:d_harrenhal.holder        = { add_to_list = potential_defenders }
		title:d_red_watch.holder        = { add_to_list = potential_defenders }
		title:d_the_fieldlands.holder   = { add_to_list = potential_defenders }
		title:d_tarrich.holder          = { add_to_list = potential_defenders }
		title:c_shinebridge.holder      = { add_to_list = potential_defenders }
		title:d_atranta.holder          = { add_to_list = potential_defenders }
		title:d_the_rainwood.holder     = { add_to_list = potential_defenders }
		
		#Neutral
		title:e_the_reach.holder = { add_to_list = potential_neutrals }
		title:e_the_iron_islands.holder = {
			 add_to_list = potential_neutrals
			 every_vassal_or_below = {
				add_to_list = potential_neutrals
			 }
		}
		title:e_the_reach.holder = {
			every_vassal = {
				limit = {
					NOR = {
						is_in_list = potential_defenders
						is_in_list = potential_attackers
					}
				}
				add_to_list = potential_neutrals	
			}
			mother = {
				add_to_list = potential_neutrals
			}
			every_courtier = {
				add_to_list = potential_neutrals
			}
		}
		#Independence
		#title:e_the_iron_islands.holder = { add_to_list = potential_independents }
		
		agot_more_bookmarks_historical_war_participants_effect = yes
		character:Velaryon_43 = {
			if = {
				limit = {
					has_trait = bastard
				}
				set_father = character:Velaryon_35
				set_house = character:Velaryon_35.house
				remove_trait = bastard
				add_trait = legitimized_bastard
				set_culture = culture:high_valyrian
				
			}
		}
		character:Velaryon_44 = {
			if = {
				limit = {
					has_trait = bastard
				}
				set_father = character:Velaryon_35
				set_house = character:Velaryon_35.house
				remove_trait = bastard
				add_trait = legitimized_bastard
				give_nickname = nick_agot_historical_oakenfist
				set_culture = culture:high_valyrian
			}
		}
		title:e_the_vale.holder = {
			if = {
				limit = {
					is_ai = yes
				}
				add_character_flag = {
					flag = agot_is_at_unknown_place
					months = 18
				}
			}
		}
		character:Targaryen_63 = {
			save_scope_as = scenario_landed_heir_vs_usurper_generic
			save_scope_as = crown_theft_king_legit_heir
			add_courtier =  character:Velaryon_44
			add_courtier = character:Velaryon_43
			if = {
				limit = {
					is_ai = yes
				}
				add_character_flag = {
					flag = agot_is_at_unknown_place
					months = 18
				}
			}
			add_prestige = 3000
			every_courtier = {
				add_opinion = {
					modifier = loyalty_opinion
					target = host
					opinion = 500
					months = 3
				}
			}
			create_maa_regiment = {
				type = trebuchet
				check_can_recruit = no
				size = 4
			}
			create_maa_regiment = {
				type = armored_footmen
				check_can_recruit = no
				size = 4
			}
			create_maa_regiment = {
				type = bowmen
				check_can_recruit = no
				size = 4
			}
		}
		title:k_dragonstone = {
			set_coa = rhaenrya_personal_coa
		}
		character:Targaryen_60 = {
			save_scope_as = crown_thief_king
		}
		character:Targaryen_65 ={
			add_prestige = 3000
			add_gold = 2000
			save_scope_as = crown_thief
			save_scope_as = usurper
			title:h_the_iron_throne = {
				set_coa = aegon_ii_personal_arms
			}
			every_courtier = {
				add_opinion = {
					modifier = loyalty_opinion
					target = host
					opinion = 500
					months = 3
				}
			}
			create_maa_regiment = {
				type = trebuchet
				check_can_recruit = no
				size = 4
			}
			create_maa_regiment = {
				type = armored_footmen
				check_can_recruit = no
				size = 4
			}
			create_maa_regiment = {
				type = bowmen
				check_can_recruit = no
				size = 4
			}
		}
		title:e_the_stormlands.holder = {
			random_child = {
				save_scope_as = baratheon_daughter
			}
		}
		character:Targaryen_67 = {
			create_betrothal = scope:baratheon_daughter
		}
		character:Targaryen_75 = {
			set_relation_crush = character:Stark_88
			set_relation_friend = character:Stark_86
		}
		title:d_driftmark.holder = {
			create_title_and_vassal_change = {
				type = swear_fealty
				save_scope_as = change
				add_claim_on_loss = no
			}
			change_liege = {
				liege = title:h_the_iron_throne.holder
				change = scope:change
			}
			resolve_title_and_vassal_change = scope:change
		}
		#scope:crown_theft_king_legit_heir ={
		#	trigger_event = {
		#		id = agot_crown_theft.0110
		#		days = 1
		#	}
		#}
		agot_more_bookmarks_alliance_effect = {
			ALLY_1 = title:k_tyrosh.holder
			ALLY_2 = title:h_the_iron_throne.holder
		}
		agot_more_bookmarks_alliance_effect = {
			ALLY_1 = title:k_lys.holder
			ALLY_2 = title:h_the_iron_throne.holder
		}
		agot_more_bookmarks_alliance_effect = {
			ALLY_1 = title:k_myr.holder
			ALLY_2 = title:h_the_iron_throne.holder
		}
		#title:e_the_iron_islands.holder = {
		#	create_maa_regiment = {
		#		type = trebuchet
		#		check_can_recruit = no
		#		size = 4
		#	}
		#	create_maa_regiment = {
		#		type = armored_footmen
		#		check_can_recruit = no
		#		size = 4
		#	}
		#	create_maa_regiment = {
		#		type = bowmen
		#		check_can_recruit = no
		#		size = 4
		#	}
		#	start_war = {
		#		casus_belli = flowery_war_cb
		#		target = title:d_fair_isle.holder.top_liege
		#		target_title = title:d_fair_isle
		#	}
		#}
		scope:crown_theft_king_legit_heir = {
			add_character_flag = {
				flag = dance_name
				days = 40
			}
		}
		scope:crown_thief = {
			if = {
				limit = {
					any_vassal_or_below = {
						is_playable_character = yes
						highest_held_title_tier > tier_barony
					}
				}
				every_vassal_or_below = {
					limit = {
						is_playable_character = yes
						highest_held_title_tier > tier_barony
					}
					add_to_list = the_vassals
				}
				every_in_list = {
					list = the_vassals
					limit = {
						save_temporary_opinion_value_as = {
							name = opinion_of_legitimate_heir
							target = scope:crown_theft_king_legit_heir
						}
						scope:opinion_of_legitimate_heir >= 0
					}
					add_character_flag = {
						flag = the_vassal_remembers_legit
						days = 60
					}
				}
				every_in_list = {
					list = the_vassals
					limit = {
						save_temporary_opinion_value_as = {
							name = opinion_of_usurper
							target = scope:crown_thief
						}
						scope:opinion_of_usurper < 0
					}
					add_character_flag = {
						flag = the_vassal_remembers_usurper
						days = 60
					}
				}
				every_in_list = {
					list = the_vassals
					limit = { ai_honor >= 50 }
					add_character_flag = {
						flag = the_vassal_is_honorable
						days = 60
					}
				}
			}
		}
		if = {
			limit = {
				exists = scope:landed_helper
			}
			scope:landed_helper = {
				add_character_flag = {
					flag = make_the_vassals_remember_legit
					days = 60
				}
			}
			scope:crown_thief = {
				add_character_flag = {
					flag = make_the_vassals_remember_usurper
					days = 60
				}
			}
		}
		else_if = {
			limit = {
				NOT = { exists = scope:landed_helper }
			}
			scope:crown_theft_king_legit_heir = {
				add_character_flag = {
					flag = make_the_vassals_remember_legit
					days = 60
				}
			}
			scope:crown_thief = {
				add_character_flag = {
					flag = make_the_vassals_remember_usurper
					days = 60
				}
			}
		}
		scope:crown_theft_king_legit_heir = {
			add_character_flag = {
				flag = succession_war_claimant
				days = 40
			}
			agot_succession_war_start_effect = yes
			random_character_war = {
				limit = {
					using_cb = agot_succession_war
				}
				add_attacker = title:d_driftmark.holder
				add_defender = title:d_oldtown.holder
				add_defender = title:d_harrenhal.holder
			}
		}
	}
	#else_if = {
	#	limit = {
	#		current_year = 8043
	#		title:h_the_iron_throne.holder = {
	#			is_at_war = no
	#		}
	#	}
	#	save_scope_as = scenario_landed_heir_vs_usurper_generic
	#	character:Targaryen_33 = {
	#		save_scope_as = crown_theft_king_legit_heir 
	#		if = {
	#			limit = {
	#				is_landed = yes
	#			}
	#			create_title_and_vassal_change = {
	#				type = usurped
	#				save_scope_as = change
	#				add_claim_on_loss = yes
	#			}
	#			every_held_title = {
	#				change_title_holder = {
	#					holder = character:Targaryen_31
	#					change = scope:change
	#				}
	#			}
	#			resolve_title_and_vassal_change = scope:change
	#		}
	#	}
	#	scope:crown_theft_king_legit_heir ={
	#		if = {
	#			limit = {
	#				is_ruler = no
	#			}
	#			title:c_pinkmaiden.holder = { add_courtier = prev }
	#			agot_wos_create_landless_title = yes
	#			spawn_army = {
	#					levies = 5000
	#					name = targaryen_host
	#					men_at_arms = {
	#						type = light_footmen # 2000
	#						stacks = 2
	#					}
	#					men_at_arms = {
	#						type = pikemen_unit # 2000
	#						stacks = 2
	#					}
	#					men_at_arms = {
	#						type = armored_footmen # 2000
	#						stacks = 2
	#					}
	#					men_at_arms = {
	#						type = light_horsemen # 2500
	#						stacks = 2
	#					}
	#					men_at_arms = {
	#						type = armored_horsemen # 500
	#						stacks = 2
	#					}
	#					men_at_arms = {
	#						type = bowmen # 300
	#						stacks = 3
	#					}
	#					men_at_arms = {
	#						type = longbowmen # 700
	#						stacks = 7
	#					}
	#					
	#					location = title:c_pinkmaiden.holder.location
	#					origin = title:c_pinkmaiden.holder.location
	#					inheritable = no
	#			}
	#			create_title_and_vassal_change = {
	#				type = swear_fealty
	#				save_scope_as = change
	#			}
	#			change_liege = {
	#				liege = title:h_the_iron_throne.holder
	#				change = scope:change
	#			}
	#			resolve_title_and_vassal_change = scope:change
	#			create_story = {
	#				type = story_agot_targaryen_exile_invasion
	#				save_scope_as = targ_story
	#			}
	#			scope:targ_story = {
	#				set_variable = {
	#					name = story_cycle_status
	#					value = flag:exile_pre_invasion_window
	#				}
	#			}
	#		}
	#		dynasty:dynn_Charlton.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Connington.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Corbray.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Dustin.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Farman.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Frey.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Paege.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Parren.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Piper.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Roote.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Smallwood.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Tarbeck.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Vance.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
	#		dynasty:dynn_Westerling.dynast = { set_variable = { name = debug_mw_stance value = flag:rebel days = 90 }}
#
	#		dynasty:dynn_Caswell.dynast = { set_variable = { name = debug_mw_stance value = flag:loyalist days = 90 }}
	#		dynasty:dynn_Harroway.dynast = { set_variable = { name = debug_mw_stance value = flag:loyalist days = 90 }}
	#		dynasty:dynn_Tully.dynast = { set_variable = { name = debug_mw_stance value = flag:loyalist days = 90 }}
	#		dynasty:dynn_Merryweather.dynast = { set_variable = { name = debug_mw_stance value = flag:loyalist days = 90 }}
	#		dynasty:dynn_Peake.dynast = { set_variable = { name = debug_mw_stance value = flag:loyalist days = 90 }}
	#		title:h_the_iron_throne.holder = {
	#			every_vassal_or_below = {
	#				limit = {
	#					NOR = {
	#						has_variable = debug_mw_stance
	#						has_title = title:e_the_westerlands
	#					}
	#				}
	#				set_variable = { name = debug_mw_stance value = flag:neutral days = 90 }		
	#			}
	#		}
	#		title:c_pinkmaiden.holder = {
	#			add_courtier = character:Targaryen_32
	#			add_courtier = character:Targaryen_41
	#			add_courtier = character:Targaryen_42
	#		}
	#	}
	#}
	else_if = {
		limit = {
			current_year = 8219
		}
		if = {
			limit = {
				exists = title:e_blackfyre_rebellion.holder
				NOT = {
					title:e_blackfyre_rebellion.holder = { is_at_war = yes }
				}
			}
			dynasty:dynn_Peake.dynasty_founder.house.house_head ?= {
				add_to_list = potential_attackers
			}
			dynasty:dynn_Ball.dynasty_founder.house.house_head ?= {
				add_to_list = potential_attackers
			}
			dynasty:dynn_Yronwood.dynasty_founder.house.house_head ?= {
				add_to_list = potential_attackers
			}
			dynasty:dynn_Bracken.dynasty_founder.house.house_head ?= {
				add_to_list = potential_attackers
			}
			dynasty:dynn_Sunderland.dynasty_founder.house.house_head ?= {
				add_to_list = potential_attackers
			}
			dynasty:dynn_Osgrey.dynasty_founder.house.house_head ?= {
				add_to_list = potential_attackers
			}
			dynasty:dynn_Costayne.dynasty_founder.house.house_head ?= {
				add_to_list = potential_attackers
			}
			dynasty:dynn_Shawney.dynasty_founder.house.house_head ?= {
				add_to_list = potential_attackers
			}
			dynasty:dynn_Oakheart.dynasty_founder.house.house_head ?= {
				add_to_list = potential_attackers
			}
			agot_more_bookmarks_historical_war_participants_effect = yes
			title:e_blackfyre_rebellion.holder = {
				add_character_modifier = {
					modifier = agot_exile_faegon_invader_embark_modifier
					years = 5
				}
				set_global_variable = {
					name = number_of_blackfyre_rebellions 
					value = 3
				}
				start_war = {
					casus_belli = agot_blackfyre_claim
					target = title:h_the_iron_throne.holder
					target_title = title:h_the_iron_throne
					target_title = title:d_kings_landing
					target_title = title:c_kings_landing
					target_title = title:k_dragonstone
					target_title = title:d_dragonstone
					target_title = title:c_dragonstone
					claimant = title:e_blackfyre_rebellion.holder
				}
				every_character_war = {
					add_attacker = title:d_laamp_merc_golden_company.holder
				}
				spawn_army = {
						levies = 20000
						name = golden_company
						men_at_arms = {
							type = light_footmen # 2000
							stacks = 20
						}
						men_at_arms = {
							type = pikemen_unit # 2000
							stacks = 20
						}
						men_at_arms = {
							type = armored_footmen # 2000
							stacks = 20
						}
						men_at_arms = {
							type = light_horsemen # 2500
							stacks = 25
						}
						men_at_arms = {
							type = armored_horsemen # 500
							stacks = 10
						}
						men_at_arms = {
							type = bowmen # 300
							stacks = 3
						}
						men_at_arms = {
							type = longbowmen # 700
							stacks = 7
						}
						men_at_arms = {
							type = war_elephant # 25
							stacks = 1
						}
						location = title:k_tyrosh.holder.location
						origin = title:k_tyrosh.holder.location
						inheritable = no
				}
			}
		}
	}
	else_if = {
		limit = {
			current_year = 8236
		}
		if = {
			limit = {
				exists = title:e_blackfyre_rebellion.holder
				NOT = {
					title:e_blackfyre_rebellion.holder = { is_at_war = yes }
				}
			}
			title:e_blackfyre_rebellion.holder = {
				set_global_variable = {
					name = number_of_blackfyre_rebellions 
					value = 4
				}
				start_war = {
					casus_belli = agot_blackfyre_claim
					target = title:h_the_iron_throne.holder
					target_title = title:h_the_iron_throne
					target_title = title:d_kings_landing
					target_title = title:c_kings_landing
					target_title = title:k_dragonstone
					target_title = title:d_dragonstone
					target_title = title:c_dragonstone
					claimant = title:e_blackfyre_rebellion.holder
				}
				every_character_war = {
					add_attacker = title:d_laamp_merc_golden_company.holder
				}
				spawn_army = {
						levies = 10000
						name = golden_company
						men_at_arms = {
							type = light_footmen # 2000
							stacks = 20
						}
						men_at_arms = {
							type = pikemen_unit # 2000
							stacks = 20
						}
						men_at_arms = {
							type = armored_footmen # 2000
							stacks = 20
						}
						men_at_arms = {
							type = light_horsemen # 2500
							stacks = 25
						}
						men_at_arms = {
							type = armored_horsemen # 500
							stacks = 10
						}
						men_at_arms = {
							type = bowmen # 300
							stacks = 3
						}
						men_at_arms = {
							type = longbowmen # 700
							stacks = 7
						}
						men_at_arms = {
							type = war_elephant # 25
							stacks = 1
						}
						location = title:e_blackfyre_rebellion.holder.location
						origin = title:e_blackfyre_rebellion.holder.location
						inheritable = no
				}
			}
		}
	}
	#else_if = {
	#	limit = {
	#		OR = {
	#			current_year = 8195
	#			current_year = 8196
	#		}
	#		exists = title:e_blackfyre_rebellion.holder
	#	}
	#	title:d_yronwood.holder = {
	#		every_character_war = {
	#			remove_participant = prev
	#		}
	#		start_war = {
	#			casus_belli = claim_cb
	#			target = title:k_dorne.holder
	#			target_title = title:k_dorne
	#			claimant = title:d_yronwood.holder
	#		}
	#		random_character_war = {
	#			limit = { primary_defender = title:k_dorne.holder }
	#			add_attacker = title:d_the_stoneway.holder
	#			add_attacker = title:d_brimstone.holder
	#			add_defender = title:d_torrentine.holder
	#		}
	#	}
	#}
	else_if = {
		limit = {
			game_start_date = 8195.3.6
		}
		### Rebels
		character:Bracken_77 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}	
		character:Lothston_7 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Paege_27 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Frey_131 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Costayne_35 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Osgrey_55 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Peake_59 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Strickland_15 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Ball_21 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Stafford_14 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Sunderland_32 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Yronwood_52 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Reyne_42 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Crakehall_42 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		character:Grafton_36 = {
			add_to_list = potential_attackers
			every_vassal_or_below = {
				add_to_list = potential_attackers
			}
		}
		
		
		### Loyalists
		character:Arryn_104 = {
			 add_to_list = potential_defenders
		}
		#character:Targaryen_107 = {
		#	 add_to_list = potential_defenders
		#}
		character:Tyrell_90 = {
			 add_to_list = potential_defenders
			
		}
		character:Lannister_116 = {
			 add_to_list = potential_defenders
			
		}
		character:Martell_80 = {
			 add_to_list = potential_defenders
			 every_vassal_or_below = {
				add_to_list = potential_defenders
			 }
		}
		title:e_the_westerlands.holder= {
			 add_to_list = potential_defenders
		}
		
		#Neutral
		title:e_the_north.holder = {
			 add_to_list = potential_neutrals
			 every_vassal_or_below = {
				add_to_list = potential_neutrals
			 }
		}
		title:e_the_stormlands.holder = {
			 add_to_list = potential_neutrals
			 every_vassal_or_below = {
				add_to_list = potential_neutrals
			 }
		}
		title:d_vellum_coast.holder = {
			 add_to_list = potential_neutrals
			 every_vassal_or_below = {
				add_to_list = potential_neutrals
			 }
		}
		title:e_the_iron_islands.holder = {
			 add_to_list = potential_neutrals
			 every_vassal_or_below = {
				add_to_list = potential_neutrals
			 }
		}
		title:d_the_ocean_road.holder = {
			 add_to_list = potential_neutrals
			 every_vassal_or_below = {
				add_to_list = potential_neutrals
			 }
		}
		title:c_milkstone.holder = {
			 add_to_list = potential_neutrals
			 every_vassal_or_below = {
				add_to_list = potential_neutrals
			 }
		}
		title:d_oldtown.holder = {
			 add_to_list = potential_neutrals
			 every_vassal_or_below = {
				add_to_list = potential_neutrals
			 }
		}
		title:d_tarrich.holder = {
			 add_to_list = potential_neutrals
			 every_vassal_or_below = {
				add_to_list = potential_neutrals
			 }
		}
		character:Magnar_50 = {
			 add_to_list = potential_neutrals
			 every_vassal_or_below = {
				add_to_list = potential_neutrals
			 }
		}
		agot_more_bookmarks_historical_war_participants_effect = yes
		every_in_list = {
			list = potential_defenders
			house = { add_house_modifier = agot_historical_loyalty_targaryen }
		}
		every_in_list = {
			list = potential_attackers
			house = { add_house_modifier = agot_historical_loyalty_blackfyre }
		}
		title:h_the_iron_throne.holder = {
			create_maa_regiment = {
				type = trebuchet
				check_can_recruit = no
				size = 4
			}
		}
		character:Targaryen_94 = {
			agot_create_artifact_daemonblackfyre_crown_effect = {
				OWNER = this
			}
			start_war = {
				casus_belli = agot_blackfyre_claim
				target = title:h_the_iron_throne.holder
				target_title = title:h_the_iron_throne
				claimant = character:Targaryen_94
			}
			random_character_war = {
				save_scope_as = war
			}
			create_story = {
				type = story_agot_more_bookmarks_first_blackfyre_rebellion
				save_scope_as = blackfyre_rebellion_story
			}
			#scope:blackfyre_rebellion_story = {
			#	set_variable = {
			#		name = war
			#		value = scope:war
			#	}
			#}
			character:Targaryen_94 = {
				add_prestige = 2000
				create_maa_regiment = {
					type = trebuchet
					check_can_recruit = no
					size = 4
				}
				spawn_army = {
					levies = 10000
					men_at_arms = {
						type = light_footmen
						men = 2000
					}
					men_at_arms = {
						type = armored_footmen
						men = 2000
					}
					men_at_arms = {
						type = heavy_cavalry
						men = 4000
					}
					men_at_arms = {
						type = bowmen
						men = 2000
					}
					men_at_arms = {
						type = trebucet
						men = 50
					}
					location = prev.location
					inheritable = yes
					name = e_blackfyre_rebellion
				}

			}
		}
		character:Magnar_50 = {
			start_war = {
				casus_belli = rv_revenge_war
				target = title:d_karhold.holder
			}
			spawn_army = {
				levies = 10000
				men_at_arms = {
					type = light_footmen
					men = 2000
				}
				men_at_arms = {
					type = unicorn_riders
					men = 2000
				}
				men_at_arms = {
					type = trebuchet
					men = 15
				}
				location = prev.location
				inheritable = yes
				name = grizzled_veterans
			}
		}
		set_global_variable = {
			name = number_of_blackfyre_rebellions
			value = 1
		}

	}
	#else_if = {
	#	limit = {
	#		game_start_date = 8298.10.22
	#	}
	#	title:k_pentos.holder = {
	#		add_courtier = character:AGOT_More_Bookmarks_Drogo
	#	}
	#	character:AGOT_More_Bookmarks_Drogo = {
	#		create_landless_adventurer_title_effect = {
	#			REASON = flag:voluntary
	#			FLAVOR_CHAR = title:h_the_iron_throne.holder
	#		}
	#		
	#		#create_dynamic_title = {
	#		#	tier = empire
	#		#	name = "Dothraki Sea"
	#		#}
	#		#create_title_and_vassal_change = {
	#		#	type = created
	#		#	save_scope_as = change
	#		#	add_claim_on_loss = no
	#		#}
	#		#scope:new_title = {
	#		#	set_capital_county = title:k_pentos.holder.capital_county
	#		#	set_landless_title = yes
	#		#	set_destroy_on_gain_same_tier = yes
	#		#	set_destroy_on_succession = yes
	#		#	set_no_automatic_claims = yes
	#		#	set_can_be_named_after_dynasty = no
	#		#	change_title_holder = {
	#		#		holder = character:AGOT_More_Bookmarks_Drogo
	#		#		change = scope:change
	#		#	}
	#		#}
	#		#resolve_title_and_vassal_change = scope:change
	#		#scope:new_title = {
	#		#	set_coa = character:AGOT_More_Bookmarks_Drogo.house
	#		#	#set_variable = {
	#		#	#	name = temporary_title
	#		#	#	value = yes
	#		#	#}
	#		#}
	#		spawn_army = {
	#			levies = 20000
	#			men_at_arms = {
	#				type = light_horsemen
	#				stacks = 200
	#			}
	#			inheritable = no
	#			location = this.location
	#			name = "Dothraki Khalasar"
	#		}
	#		title:h_the_iron_throne.holder = {
	#			every_vassal_or_below = {
	#				limit = {
	#					is_ai = yes
	#				}
	#				if = {
	#					limit = {
	#						OR = {
	#							culture = culture:westerman_main
	#							culture = culture:crownlander
	#						}
	#						#NOR = {
	#						#	this = character:Farring_1
	#						#	this = character:Massey_1
	#						#}
	#					}
	#					every_courtier = {
	#						set_variable = { name = debug_mw_stance value = flag:loyalist days = 60 }
	#					}
	#					set_variable = { name = debug_mw_stance value = flag:loyalist days = 60 }
	#				}
	#			}
	#			else = {
	#				set_variable = { name = debug_mw_stance value = flag:neutral days = 60 }
	#				every_courtier = {
	#						set_variable = { name = debug_mw_stance value = flag:neutral days = 60 }
	#					}
	#			}
	#		}
	#		#title:h_the_iron_throne.holder = {
	#		#	every_vassal_or_below = {
	#		#		limit = {
	#		#			is_ai = yes
	#		#		}
	#		#		set_variable = { name = debug_mw_stance value = flag:neutral days = 14 }
	#		#	}
	#		#}
	#		character:Stark_3 = {
	#			trigger_event = agot_more_bookmarks_acok.0001
	#		}
	#		character:Baratheon_4 = {
	#			trigger_event = {
	#				id = agot_more_bookmarks_acok.0002
	#				days = 1
	#			}
	#		}
	#		character:Baratheon_3 = {
	#			trigger_event = {
	#				id = agot_more_bookmarks_acok.0003
	#				days = 30
	#			}
	#		}
	#		character:Targaryen_8 = {
	#			trigger_event = {
	#				id = agot_more_bookmarks_acok.0009
	#				days = 1
	#			}
	#		}
	#		character:Targaryen_9 = {
	#			marry_matrilineal = character:AGOT_More_Bookmarks_Drogo
	#			add_trait = pregnant
	#			set_variable = {
	#				name = agot_fated_pregnancy_months
	#				value = 7
	#			}
	#			trigger_event = {
	#				id = agot_more_bookmarks_acok.0010
	#				days = 30
	#			}
	#		}
	#	}
	#}
	#else_if = {
	#	limit = {
	#		game_start_date = 8298.10.23
	#	}
	#	character:Baratheon_2 = {
	#		death = {
	#			death_reason = death_boar
	#			killer = Lannister_6 # Cersei Lannister
	#		}
	#	}
	#	character:Stark_3 = {
	#		random_character_artifact = {
	#			limit = {
	#				has_variable = valyrian_steel
	#			}
	#			destroy_artifact = this
	#		}
	#		death = {
	#			death_reason = death_execution
	#			killer = Baratheon_5 # Joffrey
	#		}
	#	}
	#	title:e_the_north.holder = {
	#		designate_diarch = mother
	#		character:Frey_1 = {
	#			random_close_family_member = {
	#				limit = {
	#					is_female = yes
	#					age <= 25
	#					is_married = no
	#					is_betrothed = no
	#				}
	#				create_betrothal = character:Stark_6
	#			}
	#		}
	#		if = {
	#			limit = {
	#				has_ep2_dlc_trigger = yes
	#			}
	#			create_grand_wedding_betrothal = {
	#				SPOUSE_1 = character:Stark_6
	#				SPOUSE_2 = character:Stark_6.betrothed
	#				HOST = character:Stark_6
	#				PROMISEE = character:Frey_1
	#			}
	#		}
	#		rightfully_imprison_character_effect = {
	#			IMPRISONER = this
	#			TARGET = character:Lannister_7
	#		}
	#	}
	#	title:e_the_iron_islands.holder = {
	#		character:Greyjoy_14 = {
	#			return_hostage = yes
	#		}
	#		add_to_list = potential_neutrals
	#		every_vassal_or_below = {
	#			add_to_list = potential_neutrals
	#		}
	#	}
	#	title:c_riverrun.holder = {
	#		every_vassal = {
	#			add_to_list = tully_vassals
	#		}
	#	}
	#	create_title_and_vassal_change = {
	#		type = granted
	#		save_scope_as = change
	#	}
	#	title:c_riverrun.holder.primary_title = {
	#		change_title_holder = {
	#			holder = title:e_the_north.holder
	#			change = scope:change
	#		}
	#	}
	#	resolve_title_and_vassal_change = scope:change
	#	hidden_effect = {
	#		create_title_and_vassal_change = {
	#			type = swear_fealty
	#			save_scope_as = title_change
	#			add_claim_on_loss = no
	#		}
	#		title:c_riverrun.holder = {
	#			change_liege = {
	#				liege = title:e_the_north.holder
	#				change = scope:title_change
	#			}
	#		}
	#		resolve_title_and_vassal_change = scope:title_change
	#	}
	#	### Northern Rebels
	#	title:e_the_north.holder = {
	#		create_title_and_vassal_change = {
	#			type = independency
	#			save_scope_as = change
	#			add_claim_on_loss = no
	#		}
	#		becomes_independent = { change = scope:change }
	#		resolve_title_and_vassal_change = scope:change
	#	}
	#	### Rebels
	#	title:e_the_reach.holder= {
	#		 add_to_list = potential_attackers
	#		 every_vassal_or_below = {
	#			add_to_list = potential_attackers
	#		 }
	#	}
	#	title:e_the_stormlands.holder= {
	#		 every_vassal_or_below = {
	#			add_to_list = potential_attackers
	#		 }
	#	}
	#	### Loyalists
	#	title:e_the_westerlands.holder= {
	#		 add_to_list = potential_defenders
	#		 every_vassal_or_below = {
	#			add_to_list = potential_defenders
	#		 }
	#	}
	#	character:Baelish_2 = {
	#	     add_pressed_claim = title:e_the_riverlands
	#		 add_to_list = potential_defenders
	#		 create_title_and_vassal_change = {
	#			type = granted
	#			save_scope_as = change
	#		}
	#		title:c_harrenhal.holder = {
	#			every_held_title = {
	#				change_title_holder = {
	#					holder = character:Baelish_2
	#					change = scope:change
	#				}
	#				resolve_title_and_vassal_change = scope:change
	#			}
	#		}
	#			 every_vassal_or_below = {
	#				add_to_list = potential_defenders
	#			 }
	#		}
	#	
	#	#Neutral
	#	title:k_dorne.holder = {
	#		 add_to_list = potential_neutrals
	#		 every_vassal_or_below = {
	#			add_to_list = potential_neutrals
	#		 }
	#	}
#
	#	title:e_the_vale.holder = {
	#		 add_to_list = potential_neutrals
	#		 every_vassal_or_below = {
	#			limit = {
	#				NOT = {
	#					this = character:Baelish_2
	#				}
	#			}
	#			add_to_list = potential_neutrals
	#		 }
	#	}
	#	character:Baratheon_3 = {
	#		set_character_faith = faith:fc_red_god
	#		 add_to_list = potential_neutrals
	#		 every_vassal_or_below = {
	#			add_to_list = potential_neutrals
	#		 }
	#	}
	#	character:Farring_1 = {
	#		 add_to_list = potential_neutrals
	#		 every_vassal_or_below = {
	#			add_to_list = potential_neutrals
	#		 }
	#	}
	#	character:Massey_1 = {
	#		 add_to_list = potential_neutrals
	#		 every_vassal_or_below = {
	#			add_to_list = potential_neutrals
	#		 }
	#	}
	#	#Independence
	#	#title:e_the_iron_islands.holder = { add_to_list = potential_independents }
	#	
	#	agot_more_bookmarks_historical_war_participants_effect = yes
	#	character:Baratheon_4 = {
	#		marry = character:Tyrell_14
	#		add_character_modifier = {
	#			modifier = contraceptives_modifier
	#			years = 1
	#		}
	#		set_designated_heir_unsafe = character:Baratheon_3
	#		start_war = {
	#			casus_belli = agot_succession_war
	#			target = character:Baratheon_5
	#			target_title = title:h_the_iron_throne
	#			claimant = character:Baratheon_4
	#		}
	#	}
#
	#	character:Baratheon_3 = {
	#		set_character_faith = faith:rhllor_fots
	#		start_war = {
	#			casus_belli = agot_succession_war
	#			target = character:Baratheon_5
	#			target_title = title:h_the_iron_throne
	#			claimant = character:Baratheon_3
	#		}
	#		every_character_war = {
	#			add_attacker = character:Massey_1
	#			add_attacker = character:Farring_1
	#		}
	#	}
	#	character:Melisandre_1 = {
	#		start_scheme = {
	#			type = murder
	#			target_character = character:Baratheon_4
	#		}
	#		random_scheme = {
	#			limit = { scheme_type = murder }
	#			add_scheme_modifier = {
	#				type = agot_realm_support
	#			}
	#		}
	#	}
	#	character:Baratheon_5 = {
	#		rightfully_imprison_character_effect = {
	#			IMPRISONER = this
	#			TARGET = character:Stark_8
	#		}
	#		add_courtier = character:Stark_9
	#	}
	#	character:Stark_9 = {
	#		set_character_faith = faith:fc_pan_faceless
	#		agot_start_secret_identity_effect = yes
	#	}
	#	character:Baratheon_5 = {
	#		agot_create_artifact_vs_widows_wail_effect = {
	#			OWNER = character:Baratheon_5
	#			CREATOR = character:Lannister_1
	#		}
	#	}
	#	character:Lannister_7 = {
	#		save_scope_as = owner
	#		character:Lannister_1 = {
	#		save_scope_as = creator
	#		set_artifact_rarity_illustrious = yes
	#		create_artifact = {
	#			name = "Oathkeeper"
	#			visuals = vs_widows_wail_visuals
	#			description = "Oathkeeper has grey-black and red ripples through the steel, with the red almost as dark as the grey. Its scabbard glitters gold, and is decorated with a row of lion's heads and smoldering red rubies.[2] The pommel has a golden lion's head, with ruby eyes that shine like two red stars."
	#			creator = scope:creator
	#			type = sword
	#			wealth = scope:wealth
	#			quality = scope:quality
	#			template = vs_widows_wail_template
	#			modifier = vs_widows_wail_modifier
	#			save_scope_as = newly_created_artifact
	#			decaying = no
	#		}
	#		scope:newly_created_artifact ?= {
	#			equip_artifact_to_owner_replace = yes
	#			set_variable = {
	#				name = valyrian_steel
	#				value = yes
	#			}
	#		}
	#	}
	#	}
	#	character:Targaryen_8 = {
	#		every_owned_story = {
	#			end_story = yes
	#		}
	#		death = {
	#			death_reason = death_execution
	#		}
	#	}
	#	
	#	character:Targaryen_9 = {
	#		add_trait = ambitious
	#		primary_spouse ?= {
	#			death = {
	#				death_reason = death_euthanasia
	#				killer = prev
	#			}
	#		}
	#		add_trait = widowed
	#		add_character_modifier = {
	#			modifier = no_more_children_modifier
	#			years = { 3 100 }
	#		}
	#		save_scope_as = owner
	#		agot_spawn_drogon_effect = yes
	#		scope:dragon = {
	#			# The agot_set_as_owned_dragon effect throws errors here
	#			add_character_flag = owned_dragon
	#			set_employer = prev
	#			return_to_court = yes
	#			if = {
	#				limit = {
	#					any_in_list = {
	#						list = generated_eggs
	#						has_variable = genned_eggs
	#					}
	#				}
	#				set_mother = character:dragon_pythax
	#			}
	#		}
	#		agot_bond_dragon_relation_effect = { # Set as bonded if not
	#			ACTOR = this
	#			DRAGON = scope:dragon
	#		}
	#		clear_saved_scope = dragon
	#		agot_spawn_viserion_effect = yes
	#		scope:dragon = {
	#			# The agot_set_as_owned_dragon effect throws errors here
	#			add_character_flag = owned_dragon
	#			set_employer = prev
	#			return_to_court = yes
	#			if = {
	#				limit = {
	#					any_in_list = {
	#						list = generated_eggs
	#						has_variable = genned_eggs
	#					}
	#				}
	#				set_mother = character:dragon_pythax
	#			}
	#		}
	#		clear_saved_scope = dragon
	#		agot_spawn_rhaegal_effect = yes
	#			scope:dragon = {
	#			# The agot_set_as_owned_dragon effect throws errors here
	#			add_character_flag = owned_dragon
	#			set_employer = prev
	#			return_to_court = yes
	#			if = {
	#				limit = {
	#					any_in_list = {
	#						list = generated_eggs
	#						has_variable = genned_eggs
	#					}
	#				}
	#				set_mother = character:dragon_pythax
	#			}
	#		}
	#		spawn_army = {
	#			men_at_arms = {
	#				#AGOT Modified
	#				#type = huscarl
	#				type = unsullied
	#				men = 10000
	#			}
	#			location = this.location
	#			inheritable = yes
	#			name = "Unsullied"
	#		}
	#		spawn_army = {
	#			men_at_arms = {
	#				#AGOT Modified
	#				#type = huscarl
	#				type = dothraki_screamers
	#				men = 10000
	#			}
	#			location = this.location
	#			inheritable = yes
	#			name = "Unsullied"
	#		}
	#		trigger_event = {
	#			id = conqueror.0001
	#			months = 9
	#		}
	#	}
	#	character:Stark_6 = {
	#		create_story = {
	#			type = lmf_will_not_wed_story_cycle
	#		}
	#		start_war = {
	#			casus_belli = agot_independence_war
	#			target = title:h_the_iron_throne.holder
	#		}
	#	}
	#	title:e_the_iron_islands.holder = {
	#		start_war = {
	#			casus_belli = agot_independence_war
	#			target = title:h_the_iron_throne.holder
	#		}
	#		start_war = {
	#			casus_belli = invasion_war
	#			target = title:e_the_north.holder
	#			target_title = title:e_the_north
	#		}
	#	}
	#	character:Greyjoy_6 = {
	#		create_landless_adventurer_title_effect = {
	#			REASON = flag:deposition
	#			FLAVOR_CHAR = title:e_the_iron_islands.holder
	#		}
	#		add_gold = 2000
	#		spawn_army = {
	#			levies = 7000
	#			men_at_arms = {
	#				#AGOT Modified
	#				#type = huscarl
	#				type = ironborn_reavers
	#				men = 3000
	#			}
	#			location = this.location
	#			inheritable = no
	#			name = grizzled_veterans
	#		}
	#		agot_create_artifact_valyrian_steel_armor_effect = { OWNER = this }	
	#		agot_create_artifact_dragon_horn_effect = { OWNER = this DRAGON = character:dragon_pythax }
	#		scope:newly_created_artifact = {
	#			set_variable = {
	#				name = binder
	#				value = this
	#			}
	#			set_variable = {
	#				name = binding_strength
	#				value = 75
	#			}
	#		}
	#		create_character = {
	#			template = default_mystic_character
	#			location = this.location
	#			culture = culture:qartheen
	#			employer = this
	#			faith = faith:qh_warlock
	#			gender = male
	#		}
	#		create_character = {
	#			template = default_mystic_character
	#			location = this.location
	#			culture = culture:qartheen
	#			employer = this
	#			faith = faith:qh_warlock
	#			gender = male
	#		}
	#		create_character = {
	#			template = default_mystic_character
	#			location = this.location
	#			culture = culture:qartheen
	#			employer = this
	#			faith = faith:qh_warlock
	#			gender = male
	#		}
	#		create_character = {
	#			template = default_mystic_character
	#			location = this.location
	#			culture = culture:qartheen
	#			employer = this
	#			faith = faith:qh_warlock
	#			gender = male
	#		}
	#		add_pressed_claim = title:e_the_iron_islands
	#		trigger_event = {
	#			id = conqueror.0001
	#			months = 18
	#		}
	#	}
	#	character:Mopatis_1 = {
	#		every_character_artifact = {
	#			limit = {
	#				has_variable = dragon_egg
	#			}
	#			destroy_artifact = this
	#		}
	#	}
	#	set_global_variable = { name = faegon_invasion months = 23 }
	#	set_global_variable = aegon_vi_killed_in_sack
	#	title:d_ruins.holder = {
	#		trigger_event = { id = agot_faegon_invasion.0001 months = { 24 30 } }
	#	}
	#}
	else_if = {
		limit = {
			game_start_date >= 8298.10.24
			character:Stark_6 = {
				is_alive = yes
			}
		}
		random_ruler = {
			limit = {
				highest_held_title_tier >= tier_kingdom
				NOT = {
					location = { geographical_region = world_westeros }
				}
			}
			add_courtier = character:Targaryen_9
		}
			character:Targaryen_9 = {
				remove_character_modifier = no_more_children_modifier
				add_character_modifier = {
					modifier = no_more_children_modifier
					years = { 5 15 }
				}
				create_landless_adventurer_title_effect = {
				REASON = flag:deposition
				FLAVOR_CHAR = title:h_the_iron_throne.holder
			}
			primary_title = {
				reset_title_prefix = yes
				set_title_prefix = AGOT_PREFIX_THE
				set_title_name = targaryen_exiles
			}
			add_realm_law = camp_purpose_legitimists
			character:dragon_viserion = {
				add_character_flag = owned_dragon
				set_employer = prev
				return_to_court = yes
			}
			character:dragon_rhaegal = {
				add_character_flag = owned_dragon
				set_employer = prev
				return_to_court = yes
			}
			character:dragon_drogon = {
				add_character_flag = owned_dragon
				set_employer = prev
				return_to_court = yes
			}
			create_story = story_agot_targaryen_exile_invasion
			create_story = story_agot_more_bookmarks_dany_exile_invasion

		}
		set_global_variable = { name = faegon_invasion months = { 12 18 } }
		set_global_variable = aegon_vi_killed_in_sack
		title:d_ruins.holder = {
			trigger_event = { id = agot_faegon_invasion.0001 months = { 12 18 } }
		}
		### Grant Robb Riverlands
		title:c_riverrun.holder = {
			every_vassal = {
				add_to_list = tully_vassals
			}
		}
		create_title_and_vassal_change = {
			type = granted
			save_scope_as = change
		}
		title:c_riverrun.holder.primary_title = {
			change_title_holder = {
				holder = title:e_the_north.holder
				change = scope:change
			}
		}
		resolve_title_and_vassal_change = scope:change
		hidden_effect = {
			create_title_and_vassal_change = {
				type = swear_fealty
				save_scope_as = title_change
				add_claim_on_loss = no
			}
			title:c_riverrun.holder = {
				change_liege = {
					liege = title:e_the_north.holder
					change = scope:title_change
				}
			}
			resolve_title_and_vassal_change = scope:title_change
		}
		character:Stark_6 = {
			set_diarch = character:Tully_9
			create_story = agot_more_bookmarks_northern_war_story
		}
		character:Melisandre_1 = {
			add_intrigue_skill = 30
			set_relation_lover = character:Baratheon_3
		}
		if = {
			limit = {
				character:Baratheon_4 = {
					is_alive = yes
					is_at_war = no
				}
			}
			character:Baratheon_4 = {
				start_war = {
					casus_belli = claim_cb
					target = title:h_the_iron_throne.holder
					target_title = title:h_the_iron_throne
					target_title = title:d_kings_landing
					target_title = title:c_kings_landing
					claimant = character:Baratheon_4
				}
				every_character_war = {
					add_attacker = title:e_the_reach.holder
					add_defender = title:e_the_westerlands.holder
				}
				create_story = agot_more_bookmarks_melisandre_murder_time
			}
		}
		#Create Fake Mother
		create_character = {
			gender = female
			age = { 33 50 }
			culture = character:Stark_Dummy_8.culture
			faith = character:Stark_Dummy_8.faith
			location = character:Stark_6.location
			dynasty = none
			save_scope_as = throwaway_mother
			after_creation = {
				character:Stark_Dummy_8 = {
					set_mother = scope:throwaway_mother
				}
				character:Poole_Dummy_3 = {
					set_mother = scope:throwaway_mother
				}
				death = { death_reason = death_disappearance }
			}
		}

		#Create Fake Father
		create_character = {
			gender = male
			age = { 33 50 }
			culture = character:Stark_Dummy_8.culture
			faith = character:Stark_Dummy_8.faith
			location = character:Stark_6.location
			dynasty = none
			save_scope_as = throwaway_father
			after_creation = {
				character:Stark_Dummy_8 = {
					set_father = scope:throwaway_father
				}
				character:Poole_Dummy_3 = {
					set_father = scope:throwaway_father
				}
				death = { death_reason = death_disappearance }
			}
		}
		character:Tyrell_14 = {
			create_story = agot_more_bookmarks_marge_matchmaker 
		}
		if = {
			limit = {
				character:Tyrell_14 = {
					is_spouse_of = character:Baratheon_5
				}
			}
			character:Baratheon_5 = {
				every_character_war = {
					add_defender = character:Baratheon_8
				}
			}
		}
		if = {
			limit = {
				character:Stark_9 = {
					is_alive = yes
				}
			}
			character:Stark_9 = {
				agot_start_secret_identity_effect = yes
			}
		}
		else = {
			character:Stark_Dummy_9 ?= {
				set_father = character:Stark_3
				set_mother = character:Tully_4
				make_trait_inactive = is_stark_9
				set_house = character:Stark_3.house
				change_first_name = Arya
				agot_start_secret_identity_effect = yes
			}
			character:Stark_9 = {
				set_mother = scope:throwaway_mother
				set_father = scope:throwaway_father
				set_to_lowborn = yes
			}
		}
		if = {
			limit = {
				character:Stark_10 = {
					is_alive = yes
				}
			}
			character:Greyjoy_14 = {
				save_scope_as = king_executioner
			}
			character:Stark_10 = {
				agot_start_secret_identity_effect = yes
			}
			character:Stark_11 = {
				agot_start_secret_identity_effect = yes
			}
		}
		else = {
			character:Stark_Dummy_10 ?= {
				set_father = character:Stark_3
				set_mother = character:Tully_4
				make_trait_inactive = is_stark_10
				set_house = character:Stark_3.house
				agot_start_secret_identity_effect = yes
			}
			character:Stark_Dummy_11 ?= {
				set_father = character:Stark_3
				set_mother = character:Tully_4
				make_trait_inactive = is_stark_11
				set_house = character:Stark_3.house
				agot_start_secret_identity_effect = yes
			}
			character:Stark_10 = {
				set_mother = scope:throwaway_mother
				set_father = scope:throwaway_father
				set_to_lowborn = yes
			}
			character:Stark_11 = {
				set_mother = scope:throwaway_mother
				set_father = scope:throwaway_father
				set_to_lowborn = yes
			}
		}
		if = {
			limit = {
				character:Stark_8 = {
					is_alive = no
				}
			}
			character:Stark_Dummy_8 ?= {
				set_father = character:Stark_3
				set_mother = character:Tully_4
				make_trait_inactive = is_stark_8
				set_house = character:Stark_3.house
				change_first_name = Sansa
				agot_start_secret_identity_effect = yes
				character:Baelish_2 = {
					add_courtier = prev
				}
			}
			character:Stark_8 = {
				set_mother = scope:throwaway_mother
				set_father = scope:throwaway_father
				set_to_lowborn = yes
			}
		}
		character:Hardyng_5 = {
			set_house = title:e_the_vale.holder.house
			mother = {
				set_house = title:e_the_vale.holder.house
			}
			title:d_ironoaks.holder = {
				add_courtier = prev
			}
		}
		#if = {
		#	limit = {
		#		character:Poole_Dummy_3 = {
		#			is_married = yes
		#		}
		#	}
		#	character:Poole_Dummy_3 = {
		#		set_house = character:Poole_3
		#		set_mother = character:Poole_3.mother
		#		set_father = character:Poole_3.father
		#		agot_start_secret_identity_effect = yes
		#		set_house = character:Stark_3.house
		#		set_mother = character:Tully_4
		#		set_father = character:Stark_3
		#		change_first_name = Arya
		#		title:e_the_north.holder = {
		#			add_courtier = prev
		#		}
		#	}
		#}
		if = {
			limit = {
				character:Stark_6 = {
					is_betrothed = yes
				}
			}
			character:Stark_6 = {
				if = {
					limit = { has_dlc_feature = tours_and_tournaments }
					set_grand_wedding_betrothal_variables = {
						SPOUSE_1 = character:Stark_6
						SPOUSE_2 = character:Stark_6.betrothed
						HOST = character:Stark_6
						PROMISEE = character:Frey_1
					}
				}
				add_courtier = character:Westerling_2
				add_courtier = character:Westerling_4
				set_relation_lover = {
					target = character:Westerling_2 # Jeyne Westerling
					reason = lover_spouse
				}
				random_list = {
					50 = {
						character:Westerling_2 = { # Jeyne Westerling
							make_pregnant_no_checks = {
								father = prev
							}
							event_pregnancy_effect = yes
						}
					}
					50 = {}
				}
			}

		}
	}

}


agot_more_bookmarks_alliance_effect = {
	$ALLY_1$ = { save_scope_as = ally_1 }
	$ALLY_2$ = { save_scope_as = ally_2 }
	scope:ally_1 = {
		create_alliance = {
			target = scope:ally_2
			allied_through_owner = scope:ally_1
			allied_through_target = scope:ally_2
		}
	}
	scope:ally_2 = {
		add_opinion = {
			target = scope:ally_1
			modifier = event_negotiated_alliance_opinion
		}
	}
}



agot_more_bookmarks_historical_war_participants_effect = {
	
	every_in_list = {
		list = potential_attackers
		limit = {
			is_alive = yes
			is_landed = yes
			is_ai = yes
		}
		#save_temporary_scope_as = ally
		#scope:attacker = {
		#	create_alliance = {
		#		target = scope:ally
		#		allied_through_owner = scope:attacker
		#		allied_through_target = scope:ally
		#	}
		#}
		#hidden_effect = {
		#	add_opinion = {
		#		target = scope:attacker
		#		modifier = event_negotiated_alliance_opinion
		#	}
		#}
		set_variable = { name = debug_mw_stance value = flag:rebel days = 60 }
	}
	every_in_list = {
		list = potential_defenders
		limit = {
			is_alive = yes
			is_landed = yes
			is_ai = yes
		}
		set_variable = { name = debug_mw_stance value = flag:loyalist days = 60 }
		#save_temporary_scope_as = ally
		#scope:defender = {
		#	create_alliance = {
		#		target = scope:ally
		#		allied_through_owner = scope:defender
		#		allied_through_target = scope:ally
		#	}
		#}
		#hidden_effect = {
		#	add_opinion = {
		#		target = scope:defender
		#		modifier = event_negotiated_alliance_opinion
		#	}
		#}
	}
	every_in_list = {
		list = potential_neutrals
		limit = {
			is_alive = yes
			#is_landed = yes
			is_ai = yes
		}
		set_variable = { name = debug_mw_stance value = flag:neutral days = 60 }
		#save_temporary_scope_as = ally
		#scope:defender = {
		#	create_alliance = {
		#		target = scope:ally
		#		allied_through_owner = scope:defender
		#		allied_through_target = scope:ally
		#	}
		#}
		#hidden_effect = {
		#	add_opinion = {
		#		target = scope:defender
		#		modifier = event_negotiated_alliance_opinion
		#	}
		#}
	}
	#
	every_in_list = {
		list = potential_independents 
		limit = {
			is_alive = yes
			is_landed = yes
			is_ai = yes
		}
		set_variable = { name = debug_mw_stance value = flag:independence days = 60 }
		#save_temporary_scope_as = ally
		#scope:defender = {
		#	create_alliance = {
		#		target = scope:ally
		#		allied_through_owner = scope:defender
		#		allied_through_target = scope:ally
		#	}
		#}
		#hidden_effect = {
		#	add_opinion = {
		#		target = scope:defender
		#		modifier = event_negotiated_alliance_opinion
		#	}
		#}
	}
}


agot_more_bookmarks_vanity_setup = {
	title:c_driftmark.holder = {
		save_scope_as = velaryon
		father = {
			save_scope_as = velaryon_grandfather
		}
		#random_close_or_extended_family_member = {
		#	even_if_dead = yes
		#	limit = {
		#		is_alive = no
		#		is_male = yes
		#		age >= 40
		#	}
		#}
	}
	#Daen
	create_character = {
		name = Daen
		dynasty = none
		employer = scope:velaryon
		culture = scope:velaryon.culture
		gender = male
		faith = scope:velaryon.faith
		age = 37
		trait = intellect_good_2
		trait = education_stewardship_3
		trait = education_martial_prowess_2
		trait = wrathful
		trait = diligent
		trait = impatient
		trait = temperate
		after_creation = {
			character:Targaryen_13_A.dynasty ?= {
				random_dynasty_member = {
					even_if_dead = yes
					limit = {
						age >= 16
					}
					save_scope_as = dna_copy
				}
			}
			if = { limit = { exists = scope:dna_copy } copy_inheritable_appearance_from = scope:dna_copy }
			set_real_father = scope:velaryon_grandfather
			save_scope_as =  daen
			create_landless_adventurer_title_effect = {
				REASON = flag:voluntary
				FLAVOR_CHAR = scope:daen
			}
			set_to_lowborn = yes
			if = {
				limit = {
					exists = title:h_the_iron_throne.previous_holder
				}
				title:h_the_iron_throne.previous_holder = { save_scope_as = king }
			}
			else = {
				save_scope_as = king
			}
			agot_create_artifact_vs_valyrian_armingsword_silver_effect = { OWNER = scope:daen CREATOR = scope:king }	
		}
	}
	create_character = {
		name = Gaelyra
		dynasty = none
		culture = scope:velaryon.culture
		employer = scope:daen
		gender = female
		age = 34
		faith = scope:velaryon.faith
		trait = intellect_good_3
		trait = education_diplomacy_3
		trait = honest
		trait = lazy
		trait = forgiving
		trait = calm
		trait = infertile
		after_creation = {
			character:Targaryen_13_A.dynasty ?= {
				random_dynasty_member = {
					even_if_dead = yes
					limit = {
						age >= 16
					}
					save_scope_as = dna_copy
				}
			}
			if = { limit = { exists = scope:dna_copy } copy_inheritable_appearance_from = scope:dna_copy }
			save_scope_as =  gaelyra
			marry = scope:daen
		}
	}
	create_character = {
		name = Kaetheryne
		dynasty = none
		father = scope:daen
		mother = scope:gaelyra
		employer = scope:daen
		age = 21
		culture = scope:velaryon.culture
		gender = female
		faith = scope:velaryon.faith
		trait = intellect_good_2
		trait = education_stewardship_3
		trait = education_martial_prowess_2
		trait = honest
		trait = lazy
		trait = forgiving
		trait = calm
		after_creation = {
			character:Targaryen_13_A.dynasty ?= {
				random_dynasty_member = {
					even_if_dead = yes
					limit = {
						age >= 16
					}
					save_scope_as = dna_copy
				}
			}
			if = { limit = { exists = scope:dna_copy } copy_inheritable_appearance_from = scope:dna_copy }
			
			save_scope_as =  kaetheryne
		}
	}
	create_character = {
		name = Tomasyr
		dynasty = none
		culture = title:c_rosby.holder.culture
		gender = male
		age = 28
		faith = title:c_rosby.holder.faith
		employer = scope:daen
		trait = shrewd
		trait = education_stewardship_2
		trait = education_martial_prowess_2
		trait = ambitious
		trait = diligent
		trait = greedy
		trait = patient
		after_creation = {
			save_scope_as =  tomasyr
			marry = scope:kaetheryne
		}
	}
	create_character = {
		name = Tomasyr
		dynasty = none
		father = scope:tomasyr
		age = 8
		mother = scope:kaetheryne
		culture = title:c_rosby.holder.culture
		gender = male
		employer = scope:daen
		faith = title:c_rosby.holder.faith
		after_creation = {
			save_scope_as =  tomasyr_ii
		}
	}
	create_character = {
		name = Craegon
		dynasty = none
		father = scope:daen
		mother = scope:gaelyra
		employer = scope:daen
		age = 20
		
		culture = scope:velaryon.culture
		gender = male
		faith = scope:velaryon.faith
		trait = education_stewardship_1
		trait = education_martial_prowess_2
		trait = gluttonous
		trait = stubborn
		trait = shy
		trait = eccentric
		after_creation = {
			character:Targaryen_13_A.dynasty ?= {
				random_dynasty_member = {
					even_if_dead = yes
					limit = {
						age >= 16
					}
					save_scope_as = dna_copy
				}
			}
			if = { limit = { exists = scope:dna_copy } copy_inheritable_appearance_from = scope:dna_copy }
			
			save_scope_as =  craegon
		}
	}
	random_ruler = {
		limit = {
			highest_held_title_tier <= tier_kingdom
			location = { geographical_region = world_westeros_dorne }
			exists = father
			father = {
				is_alive = no
				is_lowborn = no
			}
		}
		save_scope_as = dale_kin
		father = { 
			save_scope_as = dale_father
		}
	}
	#Dale
	create_character = {
		name = Dale
		dynasty = none
		employer = title:b_goldguard_heights.holder
		culture = scope:dale_kin.culture
		gender = male
		faith = scope:dale_kin.faith
		age = 40
		trait = education_martial_2
		trait = education_martial_prowess_2
		trait = brave
		trait = humble
		trait = compassionate
		trait = trusting
		after_creation = {
			set_real_father = scope:dale_father
			save_scope_as =  dale
			create_landless_adventurer_title_effect = {
				REASON = flag:voluntary
				FLAVOR_CHAR = scope:dale
			}
			set_to_lowborn = yes
		}
	}
	#Helena
	create_character = {
		name = Helena
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		faith = scope:dale_kin.faith
		age = 39
		trait = education_intrigue_2
		trait = deceitful
		trait = diligent
		trait = ambitious
		trait = zealous
		after_creation = {
			save_scope_as =  helena
			marry = scope:dale
		}
	}
	#Ceryn
	create_character = {
		name = Ceryn
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		father = scope:dale
		mother = scope:helena
		faith = scope:dale_kin.faith
		age = 27
		after_creation = {
			save_scope_as =  ceryn
		}
	}
	#Dale II
	create_character = {
		name = Dale
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		father = scope:dale
		mother = scope:helena
		faith = scope:dale_kin.faith
		age = 26
		after_creation = {
			save_scope_as =  dale_ii
		}
	}
	#Davos
	create_character = {
		name = Davos
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		father = scope:dale
		mother = scope:helena
		faith = scope:dale_kin.faith
		age = 25
		after_creation = {
			add_trait = authoritative
			save_scope_as =  davos
		}
	}
	#Mikken
	create_character = {
		name = Mikken
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		father = scope:dale
		mother = scope:helena
		faith = scope:dale_kin.faith
		age = 24
		after_creation = {
			save_scope_as =  mikken
		}
	}
	#Steffon
	create_character = {
		name = Steffon
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		father = scope:dale
		mother = scope:helena
		faith = scope:dale_kin.faith
		age = 23
		after_creation = {
			save_scope_as =  steffon
		}
	}
	#Lollys
	create_character = {
		name = Lollys
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		father = scope:dale
		mother = scope:helena
		faith = scope:dale_kin.faith
		age = 22
		after_creation = {
			save_scope_as =  lollys
		}
	}
	#Falyse
	create_character = {
		name = Falyse
		dynasty = none
		
		culture = culture:salt_dornish
		employer = scope:daen
		gender = female
		father = scope:dale
		mother = scope:helena
		faith = scope:dale_kin.faith
		age = 20
		trait = compassionate
		trait = impatient
		trait = generous
		trait = fickle
		after_creation = {
			save_scope_as =  falyse
			marry = scope:craegon
			set_culture = scope:dale_kin.culture
		}
	}

	#Paega
	create_character = {
		name = Paega
		dynasty = none
		
		culture = scope:velaryon.culture
		gender = female
		employer = scope:daen
		father = scope:craegon
		mother = scope:falyse
		faith = scope:craegon.faith
		age = 7
		after_creation = {
			save_scope_as =  paega
		}
	}
	#Craegon II
	create_character = {
		name = Craegon
		dynasty = none
		
		culture = scope:velaryon.culture
		gender = male
		employer = scope:daen
		father = scope:craegon
		mother = scope:falyse
		faith = scope:craegon.faith
		age = 6
		after_creation = {
			character:Targaryen_13_A.dynasty ?= {
				random_dynasty_member = {
					even_if_dead = yes
					limit = {
						age >= 16
					}
					save_scope_as = dna_copy
				}
			}
			if = { limit = { exists = scope:dna_copy } copy_inheritable_appearance_from = scope:dna_copy }
			save_scope_as =  craegon_ii
		}
	}

	#Nissa
	create_character = {
		name = Nissa
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		father = scope:dale_ii
		faith = scope:dale_kin.faith
		age = 14
		after_creation = {
			save_scope_as =  nissa
		}
	}
	#Loryn
	create_character = {
		name = Loryn
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		father = scope:dale_ii
		faith = scope:dale_kin.faith
		age = 13
		after_creation = {
			save_scope_as =  loryn
		}
	}
	#Janyce
	create_character = {
		name = Janyce
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		father = scope:davos
		faith = scope:dale_kin.faith
		age = 15
		after_creation = {
			save_scope_as =  janyce
		}
	}
	#Jeysa
	create_character = {
		name = Jeysa
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		father = scope:davos
		faith = scope:dale_kin.faith
		age = 14
		after_creation = {
			save_scope_as =  jeysa
		}
	}
	#Karyna
	create_character = {
		name = Karyna
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		father = scope:davos
		faith = scope:dale_kin.faith
		trait = beauty_good_1
		age = 13
		after_creation = {
			save_scope_as =  karyna
		}
	}

	#Rickard
	create_character = {
		name = Rickard
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		father = scope:mikken
		faith = scope:dale_kin.faith
		age = 13
		after_creation = {
			save_scope_as =  rickard
		}
	}

	#Catya
	create_character = {
		name = Catya
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		father = scope:mikken
		faith = scope:dale_kin.faith
		age = 12
		after_creation = {
			save_scope_as =  catya
		}
	}
	#Maron
	create_character = {
		name = Maron
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		father = scope:steffon
		faith = scope:dale_kin.faith
		age = 13
		after_creation = {
			save_scope_as =  maron
		}
	}
	#Calleb
	create_character = {
		name = Calleb
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		mother = scope:karyna
		faith = scope:dale_kin.faith
		age = 0
		after_creation = {
			save_scope_as =  calebb
		}
	}
	#Jordan
	create_character = {
		name = Jordana
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		mother = scope:janyce
		faith = scope:dale_kin.faith
		age = 1
		after_creation = {
			save_scope_as =  jordana
		}
	}
	#Collo
	create_character = {
		name = Collo
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		mother = scope:janyce
		faith = scope:dale_kin.faith
		age = 0
		after_creation = {
			save_scope_as =  collo
		}
	}
	#Jory
	create_character = {
		name = Jory
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		mother = scope:jeysa
		faith = scope:dale_kin.faith
		age = 0
		after_creation = {
			save_scope_as =  jory
		}
	}
	#Attucar
	create_character = {
		name = Alucard
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		mother = scope:jeysa
		faith = scope:dale_kin.faith
		age = 0
		after_creation = {
			save_scope_as =  alucard
		}
	}
	#Tommen
	create_character = {
		name = Tommen
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		father = scope:rickard
		faith = scope:dale_kin.faith
		age = 2
		after_creation = {
			save_scope_as =  tommen
		}
	}
	#kayla
	create_character = {
		name = Kaela
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		father = scope:rickard
		faith = scope:dale_kin.faith
		age = 1
		after_creation = {
			save_scope_as =  kaela
		}
	}
	#Averra
	create_character = {
		name = Averra
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = female
		employer = scope:dale
		father = scope:rickard
		faith = scope:dale_kin.faith
		age = 0
		after_creation = {
			save_scope_as =  averra
		}
	}
	#Joffrey
	create_character = {
		name = Joffrey
		dynasty = none
		
		culture = scope:dale_kin.culture
		gender = male
		employer = scope:dale
		mother = scope:ceryn
		faith = scope:dale_kin.faith
		age = 16
		trait = education_martial_prowess_3
		after_creation = {
			save_scope_as =  joffrey
		}
	}
}


