namespace = Plus
#reserved: Plus.800 to Plus.899
namespace = ancrel
#reserved: ancrel.0000 - ancrel.1999

#######################################
# CELTIC EVENTS
#######################################

### AONACH TAILTEANN
### Written by Patrick Marchand

# Invitation
character_event = {
	id = ancrel.1190
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1190
	picture = GFX_evt_courier

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1190
		ai_chance = {
			factor = 75
			modifier = {
				factor = 0
				OR = {
					trait = pregnant
					is_ill = yes
					is_not_busy_trigger = no
				}
			}
			modifier = {
				factor = 2
				OR = {
					trait = diligent
					trait = proud
					trait = gregarious
					trait = zealous
				}
			}
		}
		prestige = 25
		piety = 25
		hidden_tooltip = {
			set_character_flag = attending_tailteann
			set_character_flag = tailteann_death_phase
			add_character_modifier = {
				name = do_not_disturb
				days = 210
				hidden = yes
			}
		}
		end_inaccessibility_effect = yes
	}
	option = {
		name = EVTOPTB_ancrel_1190
		ai_chance = {
			factor = 25
			modifier = {
				factor = 10
				is_inaccessible_trigger = yes
			}
			modifier = {
				factor = 1.5
				trait = slothful
			}
			modifier = {
				factor = 1.5
				trait = shy
			}
			modifier = {
				factor = 1.5
				trait = cynical
			}
			modifier = {
				factor = 1.5
				trait = paranoid
			}
		}
		prestige = -50
		piety = -50
	}
}	

# Start of Aonach
character_event = {
	id = ancrel.1191
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1191
	picture = GFX_evt_bonfire_celtic

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1191
		trigger = {
			war = no
		}
		hidden_tooltip = {
			set_character_flag = tailteann_death_ruler
			set_character_flag = tailteann_begins
			set_character_flag = tailteann_death_phase
			set_character_flag = attending_tailteann
			location = {
				set_province_flag = tailteann_60_days
			}
			any_realm_lord = {
				limit = {
					has_character_flag = attending_tailteann
				}
				set_character_flag = tailteann_death_phase
				character_event = { id = ancrel.1196 days = 5 }
			}
			character_event = { id = ancrel.1196 days = 5 }			
			character_event = { id = ancrel.1199 days = 10 }
		}
	}
	option = {
		name = EVTOPTB_ancrel_1191
		trigger = {
			war = yes
		}
		wealth = 200
		prestige = -100
		clr_character_flag = aonach_tailteann
		remove_character_modifier = holding_aonach_tailteann
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			any_realm_character = {
				limit = {
					has_character_flag = attending_tailteann
				}
				character_event = { id = ancrel.1192 }
			}
		}
	}
}

# Aonach has been cancelled
character_event = {
	id = ancrel.1192
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1192
	picture = GFX_evt_bonfire_celtic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_1192
		prestige = -50
		clr_character_flag = attending_tailteann
		hidden_tooltip = { remove_do_not_disturb_effect = yes }
	}
}

# Invitations have gone out
character_event = {
	id = ancrel.1193
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1193
	picture = GFX_evt_courier

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1193
	}
}

#[on_death] Ruler has died, the Aonach is over
character_event = {
	id = ancrel.1194
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1194
	picture = GFX_evt_funeral_pyre

	is_triggered_only = yes
	
	has_character_flag = tailteann_begins
	
	option = {
		name = EVTOPTA_ancrel_1194
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			remove_character_modifier = holding_aonach_tailteann
			clr_character_flag = tailteann_begins
			clr_character_flag = winner_athletic
			clr_character_flag = winner_fighting
			clr_character_flag = winner_crafting
			clr_character_flag = attending_tailteann
			clr_character_flag = attending_tailteann_event
			clr_character_flag = tailteann_craftsman
			clr_character_flag = tailteann_fighter
			clr_character_flag = tailteann_winner_athlete
		}
		any_realm_character = {
			limit = {
				has_character_flag = attending_tailteann
			}
			letter_event = {
				id = ancrel.1195
				days = 2
				random = 2
				tooltip = EVTTOOLTIP_ancrel_1195
			}
			hidden_tooltip = {
				remove_do_not_disturb_effect = yes
				set_character_flag = tailteann_has_ended
				clr_character_flag = tailteann_craftsman
				clr_character_flag = tailteann_fighter
				clr_character_flag = tailteann_winner_athlete
				clr_character_flag = attending_tailteann
				clr_character_flag = attending_tailteann_event
			}
		}
	}
}

# The Aonach has been cancelled due to Ruler's death
letter_event = {
	id = ancrel.1195
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1195
	border = GFX_event_letter_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_1195
	}
}

# Choose who to honor at the bonfire
character_event = {
	id = ancrel.1196
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1196
	picture = GFX_evt_bonfire_celtic
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	hide_from = yes
	
	only_rulers = yes
	has_character_flag = tailteann_death_phase
	
	trigger = {
		NOR = {
			has_character_flag = choose_dead_one_tailteann
			has_character_flag = chosen_dead_one_tailteann
		}
		OR = {
			father_even_if_dead = {
				is_alive = no
			}
			mother = {
				is_alive = no
			}
		}
	}
	
	option = { # In memory of father
		name = EVTOPTA_ancrel_1196
		trigger = {
			father_even_if_dead = {
				is_alive = no
			}
		}
		set_character_flag = choose_dead_one_tailteann
		custom_tooltip = {
			text = honor_dead_tailteann
			hidden_tooltip = { 
				narrative_event = { id = ancrel.1197 days = 2 }
			}
		}
	}
	
	option = { # In memory of mother
		name = EVTOPTB_ancrel_1196
		trigger = {
			mother = {
				is_alive = no
			}
		}
		set_character_flag = choose_dead_one_tailteann
		custom_tooltip = {
			text = honor_dead_tailteann
			hidden_tooltip = { 
				narrative_event = { id = ancrel.1198 days = 2 }
			}
		}
	}
	
}

# In memory of father
narrative_event = {
	id = ancrel.1197
	title = EVTNAME_ancrel_1197
	desc = EVTDESC_ancrel_1197
	picture = GFX_evt_bonfire_celtic
	border = GFX_event_narrative_frame_diplomacy
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_1197
		piety = 100
		clr_character_flag = choose_dead_one_tailteann
		set_character_flag = chosen_dead_one_tailteann
	}
}

# In memory of mother
narrative_event = {
	id = ancrel.1198
	title = EVTNAME_ancrel_1198
	desc = EVTDESC_ancrel_1198
	picture = GFX_evt_bonfire_celtic
	border = GFX_event_narrative_frame_diplomacy
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_1198
		piety = 100
		clr_character_flag = choose_dead_one_tailteann
		set_character_flag = chosen_dead_one_tailteann
	}
}

# Ruler chooses which caste to favor
character_event = {
	id = ancrel.1199
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1199
	picture = GFX_evt_ollamh_laws
	
	is_triggered_only = yes
	
	option = { # Favor warrior caste
		name = EVTOPTA_ancrel_1199
		custom_tooltip = {
			text = give_laws_ollam
			change_martial = 1
			prestige = 150
			add_character_modifier = {
				name = favored_warriors
				duration = 3650
			}
			hidden_tooltip = {
				clr_character_flag = tailteann_death_ruler
				clr_character_flag = tailteann_death_phase
				clr_character_flag = chosen_dead_one_tailteann
				clr_character_flag = tailteann_begins
				set_character_flag = tailteann_law_phase
				any_realm_character = {
					if = {
						limit = { has_character_flag = tailteann_death_phase }
						character_event = { id = ancrel.1200 }
					}
				}
				character_event = { id = ancrel.1201 }
			}
		}
	}
	
	option = { # Favor druidic caste
		name = EVTOPTB_ancrel_1199
		custom_tooltip = {
			text = give_laws_ollam
			change_learning = 1
			piety = 100
			add_character_modifier = {
				name = favored_druids
				duration = 3650
			}
			hidden_tooltip = {
				clr_character_flag = tailteann_death_ruler
				clr_character_flag = tailteann_death_phase
				clr_character_flag = chosen_dead_one_tailteann
				clr_character_flag = tailteann_begins
				set_character_flag = tailteann_law_phase
				any_realm_character = {
					if = {
						limit = { has_character_flag = tailteann_death_phase }
						character_event = { id = ancrel.1200 }
					}
				}
				character_event = { id = ancrel.1201 }
			}
		}
	}
	
	option = { # Favor merchant caste
		name = EVTOPTC_ancrel_1199
		custom_tooltip = {
			text = give_laws_ollam
			change_stewardship = 1
			wealth = 100
			add_character_modifier = {
				name = favored_merchants
				duration = 3650
			}
			hidden_tooltip = {
				clr_character_flag = tailteann_death_ruler
				clr_character_flag = tailteann_death_phase
				clr_character_flag = chosen_dead_one_tailteann
				clr_character_flag = tailteann_begins
				set_character_flag = tailteann_law_phase
				any_realm_character = {
					if = {
						limit = { has_character_flag = tailteann_death_phase }
						character_event = { id = ancrel.1200 }
					}
				}
				character_event = { id = ancrel.1201 }
			}
		}
	}
	
	option = { # Favor the crown
		name = EVTOPTE_ancrel_1199
		trigger = {
			trait = ambitious
			trait = diligent
		}
		custom_tooltip = {
			text = give_laws_ollam
			add_character_modifier = {
				name = favored_crown
				duration = 3650
			}
			prestige = 50
			piety = 50
			hidden_tooltip = {
				clr_character_flag = tailteann_death_ruler
				clr_character_flag = tailteann_death_phase
				clr_character_flag = chosen_dead_one_tailteann
				clr_character_flag = tailteann_begins
				set_character_flag = tailteann_law_phase
				any_realm_character = {
					if = {
						limit = { has_character_flag = tailteann_death_phase }
						character_event = { id = ancrel.1200 }
					}
				}
				character_event = { id = ancrel.1201 }
			}
		}
	}
	
	
	option = { # Balance
		name = EVTOPTD_ancrel_1199
		trigger = {
			diplomacy = 12
		}
		custom_tooltip = {
			text = give_laws_ollam
			add_character_modifier = {
				name = favored_balance
				duration = 3650
			}
			hidden_tooltip = {
				clr_character_flag = tailteann_death_ruler
				clr_character_flag = tailteann_death_phase
				clr_character_flag = chosen_dead_one_tailteann
				clr_character_flag = tailteann_begins
				set_character_flag = tailteann_law_phase
				any_realm_character = {
					if = {
						limit = { has_character_flag = tailteann_death_phase }
						character_event = { id = ancrel.1200 }
					}
				}
				character_event = { id = ancrel.1201 }
			}
		}
	}
	
	option = { # Fianna
		name = EVTOPTF_ancrel_1199
		trigger = {
			trait = fian
		}
		custom_tooltip = { 
			text = give_laws_ollam
			add_character_modifier = {
				name = favored_fianna
				duration = 3650
			}
			hidden_tooltip = {
				clr_character_flag = tailteann_death_ruler
				clr_character_flag = tailteann_death_phase
				clr_character_flag = chosen_dead_one_tailteann
				clr_character_flag = tailteann_begins
				set_character_flag = tailteann_law_phase
				any_realm_character = {
					if = {
						limit = { has_character_flag = tailteann_death_phase }
						character_event = { id = ancrel.1200 }
					}
				}
				character_event = { id = ancrel.1201 }
			}
		}
	}
	
	option = { # Lunatic
		name = EVTOPTG_ancrel_1199
		trigger = {
			trait = lunatic
		}
		tooltip_info = lunatic
		custom_tooltip = {
			text = give_laws_ollam
			add_character_modifier = {
				name = favored_birds
				duration = 3650
			}
			hidden_tooltip = {
				clr_character_flag = tailteann_death_ruler
				clr_character_flag = tailteann_death_phase
				clr_character_flag = chosen_dead_one_tailteann
				clr_character_flag = tailteann_begins
				set_character_flag = tailteann_law_phase
				any_realm_character = {
					if = {
						limit = { has_character_flag = tailteann_death_phase }
						character_event = { id = ancrel.1200 }
					}
				}
				character_event = { id = ancrel.1201 }
			}
		}
	}
}

# Learn of new laws from Ollamh
character_event = {
	id = ancrel.1200
	title = TAILTEANNTITLE	
	picture = GFX_evt_bonfire_celtic
	
	desc = {
		text = EVTDESC_ancrel_1200
		trigger = {
			FROM = {
				has_character_modifier = favored_warriors
			}
		}
	}
	
	desc = {
		text = EVTDESCB_ancrel_1200
		trigger = {
			FROM = {
				has_character_modifier = favored_druids
			}
		}
	}
	
	desc = {
		text = EVTDESCC_ancrel_1200
		trigger = {
			FROM = {
				has_character_modifier = favored_merchants
			}
		}
	}
	
	desc = {
		text = EVTDESCD_ancrel_1200
		trigger = {
			FROM = {
				has_character_modifier = favored_balance
			}
		}
	}
	
	desc = {
		text = EVTDESCE_ancrel_1200
		trigger = {
			FROM = {
				has_character_modifier = favored_crown
			}
		}
	}
	
	desc = {
		text = EVTDESCF_ancrel_1200
		trigger = {
			FROM = {
				has_character_modifier = favored_fianna
			}
		}
	}
	
	desc = {
		text = EVTDESCG_ancrel_1200
		trigger = {
			FROM = {
				has_character_modifier = favored_birds
			}
		}
	}
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1200
		trigger = {
			FROM = {
				NOT = {
					has_character_modifier = favored_birds
				}
			}
		}
		hidden_tooltip = {
			clr_character_flag = tailteann_death_phase
			clr_character_flag = chosen_dead_one_tailteann
			character_event = { id = ancrel.1251 }
		}
	}
	
	option = {
		name = EVTOPTB_ancrel_1200
		trigger = {
			FROM = {				
				has_character_modifier = favored_birds				
			}
		}
		hidden_tooltip = {
			clr_character_flag = tailteann_death_phase
			clr_character_flag = chosen_dead_one_tailteann
			character_event = { id = ancrel.1251 }
		}
	}
}

# Announce new laws
character_event = {
	id = ancrel.1201
	title = TAILTEANNTITLE	
	picture = GFX_evt_bonfire_celtic
	
	desc = {
		text = EVTDESC_ancrel_1200
		trigger = {
			has_character_modifier = favored_warriors			
		}
	}
	
	desc = {
		text = EVTDESCB_ancrel_1200
		trigger = {
			has_character_modifier = favored_druids			
		}
	}
	
	desc = {
		text = EVTDESCC_ancrel_1200
		trigger = {
			has_character_modifier = favored_merchants			
		}
	}
	
	desc = {
		text = EVTDESCD_ancrel_1200
		trigger = {
			has_character_modifier = favored_balance			
		}
	}
	
	desc = {
		text = EVTDESCE_ancrel_1200
		trigger = {
			has_character_modifier = favored_crown			
		}
	}
	
	desc = {
		text = EVTDESCF_ancrel_1200
		trigger = {
			has_character_modifier = favored_fianna			
		}
	}
	
	desc = {
		text = EVTDESCG_ancrel_1200
		trigger = {
			has_character_modifier = favored_birds			
		}
	}
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1201
		hidden_tooltip = {
			clr_character_flag = tailteann_law_phase
			set_character_flag = tailteann_game_phase
			character_event = { id = ancrel.1251 }
		}		
	}
}

# Character is the best athlete
character_event = {
	id = ancrel.1214
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1214
	picture = GFX_evt_athlete

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		OR = {
			is_female = no
			martial = 10			
		}
		top_liege = {
			had_character_flag = { flag = tailteann_game_phase days = 20 }
			NOT = {
				has_character_flag = winner_athletic
			}
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}
	}

	mean_time_to_happen = {
		months = 10
		modifier = {
			factor = 0.75
			martial = 8
		}
		modifier = {
			factor = 0.75
			martial = 10
		}
		modifier = {
			factor = 0.75
			martial = 12
		}
		modifier = {
			factor = 0.75
			martial = 14
		}
		modifier = {
			factor = 0.75
			trait = brave
		}
		modifier = {
			factor = 0.75
			is_strong_trigger = yes
		}
		modifier = {
			factor = 0.75
			trait = diligent
		}
		modifier = {
			factor = 1.25
			trait = dwarf
		}
		modifier = {
			factor = 1.25
			is_weak_trigger = yes
		}
		modifier = {
			factor = 1.25
			trait = ill
		}
		modifier = {
			factor = 1.25
			NOT = { martial = 7 }
		}
		modifier = {
			factor = 1.25
			NOT = { martial = 5 }
		}
		modifier = {
			factor = 1.25
			NOT = { martial = 3 }
		}
		modifier = {
			factor = 1.25
			NOT = { martial = 1 }
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_event
		set_character_flag = tailteann_winner_athletic
		top_liege = {
			set_character_flag = winner_athletic
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_1214
		wealth = 100
		prestige = 300
		hidden_tooltip = {
			if = {
				limit = {
					top_liege = {
						NOT = {
							character = ROOT
						}
					}
				}
				top_liege = { character_event = { id = ancrel.1215 } }
			}
		}
	}
}

# Inform about best athlete
character_event = {
	id = ancrel.1215
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1215
	picture = GFX_evt_athlete
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_1215
		FROM = {
			opinion = {
				modifier = opinion_tailteann_athlete
				who = ROOT
				years = 20
			}
		}
	}
}

# Best fighter
character_event = {
	id = ancrel.1216
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1216
	picture = GFX_evt_melee

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	
	trigger = {
		NOR = {
			has_character_flag = tailteann_has_ended
			has_character_flag = tailteann_fighting
		}
		OR = {
			is_female = no
			trait = martial_lady_pagan
		}
		top_liege = {
			had_character_flag = { flag = tailteann_game_phase days = 20 }
			had_character_flag = { flag = winner_athletic days = 1 }
			NOT = { has_character_flag = winner_fighter }
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}
	}

	mean_time_to_happen = {
		months = 10
		modifier = {
			factor = 0.75
			martial = 8
		}
		modifier = {
			factor = 0.75
			martial = 10
		}
		modifier = {
			factor = 0.75
			martial = 12
		}
		modifier = {
			factor = 0.75
			martial = 14
		}
		modifier = {
			factor = 0.75
			trait = brave
		}
		modifier = {
			factor = 0.75
			is_strong_trigger = yes
		}
		modifier = {
			factor = 0.75
			trait = diligent
		}
		modifier = {
			factor = 0.75
			trait = head1
		}
		modifier = {
			factor = 0.75
			trait = head2
		}
		modifier = {
			factor = 0.75
			trait = head3
		}
		modifier = {
			factor = 0.75
			trait = head4
		}
		modifier = {
			factor = 0.75
			trait = head5
		}
		modifier = {
			factor = 1.25
			trait = dwarf
		}
		modifier = {
			factor = 1.25
			is_weak_trigger = yes
		}
		modifier = {
			factor = 1.25
			trait = ill
		}
		modifier = {
			factor = 1.25
			NOT = { martial = 7 }
		}
		modifier = {
			factor = 1.25
			NOT = { martial = 5 }
		}
		modifier = {
			factor = 1.25
			NOT = { martial = 3 }
		}
		modifier = {
			factor = 1.25
			NOT = { martial = 1 }
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_event
		set_character_flag = tailteann_fighting
		top_liege = {
			set_character_flag = winner_fighter
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_1216
		wealth = 75
		prestige = 250
		hidden_tooltip = {
			if = {
				limit = {
					top_liege = {
						NOT = {
							character = ROOT
						}
					}
				}
				top_liege = { character_event = { id = ancrel.1217 } }
			}
		}
	}
}

# Inform about best fighter
character_event = {
	id = ancrel.1217
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1217
	picture = GFX_evt_melee
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_1217
		FROM = {
			opinion = {
				modifier = opinion_tailteann_fighter
				who = ROOT
				years = 15
			}
		}
	}
}

# Character wins best crafstman
character_event = {
	id = ancrel.1218
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1218
	picture = GFX_evt_craftsman

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	
	trigger = {
		NOR = {
			has_character_flag = tailteann_has_ended
			has_character_flag = tailteann_winner_athletic
			has_character_flag = tailteann_fighting
		}
		top_liege = {
			had_character_flag = { flag = tailteann_game_phase days = 20 }
			had_character_flag = { flag = winner_fighter days = 1 }
			NOT = { has_character_flag = winner_crafting }
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}
	}

	mean_time_to_happen = {
		months = 10
		modifier = {
			factor = 0.75
			learning = 8
		}
		modifier = {
			factor = 0.75
			learning = 10
		}
		modifier = {
			factor = 0.75
			learning = 12
		}
		modifier = {
			factor = 0.75
			learning = 14
		}
		modifier = {
			factor = 0.75
			trait = genius
		}
		modifier = {
			factor = 0.75
			OR = {
				trait = quick
				trait = shrewd
			}
		}
		modifier = {
			factor = 0.75
			trait = diligent
		}
		modifier = {
			factor = 0.75
			trait = lunatic
		}
		modifier = {
			factor = 1.25
			NOT = { learning = 7 }
		}
		modifier = {
			factor = 1.25
			NOT = { learning = 5 }
		}
		modifier = {
			factor = 1.25
			NOT = { learning = 3 }
		}
		modifier = {
			factor = 1.25
			NOT = { learning = 1 }
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_event
		set_character_flag = tailteann_craftsman
		top_liege = {
			set_character_flag = winner_crafting
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_1218
		wealth = 50
		prestige = 200
		hidden_tooltip = {
			if = {
				limit = {
					top_liege = {
						NOT = {
							character = ROOT
						}
					}
				}
				top_liege = { character_event = { id = ancrel.1219 } }
			}
		}
	}
}

# Inform about best crafstman
character_event = {
	id = ancrel.1219
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1219
	picture = GFX_evt_craftsman
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_1219
		FROM = {
			opinion = {
				modifier = opinion_tailteann_craftsman
				who = ROOT
				years = 10
			}
		}
	}
}

# Tailteann is over
province_event = {
	id = ancrel.1220
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1220
	picture = GFX_evt_bonfire_celtic

	trigger = {
		had_province_flag = {
			flag = tailteann_60_days
			days = 60
		}
		owner = {
			has_character_flag = winner_athletic
			has_character_flag = winner_fighter
			has_character_flag = winner_crafting
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = EVTOPTA_ancrel_1220
		clr_province_flag = tailteann_60_days
		owner = {
			if = {
				limit = { any_vassal = { leads_faction = faction_tradition } }
				custom_tooltip = { text = TRADITIONFACTIONMOODPLUS }
				hidden_tooltip = {
					random_vassal = { limit = { leads_faction = faction_tradition } set_variable = { which = "faction_mood_increase" value = 2 } }
				}
			}
			if = {
				limit = { any_vassal = { leads_faction = faction_glory } }
				custom_tooltip = { text = GLORYFACTIONMOODPLUS }
				hidden_tooltip = {
					random_vassal = { limit = { leads_faction = faction_glory } set_variable = { which = "faction_mood_increase" value = 3 } }
				}
			}
			hidden_tooltip = { character_event = { id = PlusFaction.200 days = 1 } } #recalculate faction moods
			if = {
				limit = { tier = EMPEROR }
				ROOT = {
					custom_tooltip = { text = IMPERIAL_DECADENCE_MINUS_1 }
					hidden_tooltip = {
						owner = {
							primary_title = { change_variable = { which = "imperial_decadence" value = -1 } } 
							character_event = { id = Plus.1852 }
						}
					}
				}
			}
			hidden_tooltip = {			
				remove_do_not_disturb_effect = yes
				remove_character_modifier = holding_aonach_tailteann
				clr_character_flag = tailteann_game_phase
				clr_character_flag = winner_athletic
				clr_character_flag = winner_fighter
				clr_character_flag = winner_crafting
				clr_character_flag = attending_tailteann
				clr_character_flag = attending_tailteann_event
				clr_character_flag = tailteann_craftsman
				clr_character_flag = tailteann_fighting
				clr_character_flag = tailteann_winner_athletic
				set_character_flag = tailteann_has_ended
			}
			custom_tooltip = { text = EVTTOOLTIP70002 }
			hidden_tooltip = {
				any_realm_character = {
					limit = {
						has_character_flag = attending_tailteann
						OR = {
							has_character_flag = tailteann_craftsman
							has_character_flag = tailteann_fighting
							has_character_flag = tailteann_winner_athletic
						}
					}
					hidden_tooltip = {
						remove_do_not_disturb_effect = yes
						set_character_flag = tailteann_has_ended
						clr_character_flag = tailteann_craftsman
						clr_character_flag = tailteann_fighting
						clr_character_flag = tailteann_winner_athletic				
						reverse_opinion = {
							modifier = opinion_tailteann_participant
							who = PREV
							years = 2
						}				
						clr_character_flag = attending_tailteann
						clr_character_flag = attending_tailteann_wound						
						clr_character_flag = attending_tailteann_fear
						clr_character_flag = attending_tailteann_martialed
						clr_character_flag = attending_tailteann_gay
						clr_character_flag = attending_tailteann_syph
						clr_character_flag = attending_tailteann_drunk
						clr_character_flag = attending_tailteann_duelist
						clr_character_flag = attending_tailteann_intrigue
						clr_character_flag = attending_tailteann_stew
						clr_character_flag = attending_tailteann_dip
					}
				}
				any_realm_character = {
					limit = {
						has_character_flag = attending_tailteann
						NOT = {
							character = PREV
							has_character_flag = tailteann_craftsman
							has_character_flag = tailteann_fighting
							has_character_flag = tailteann_winner_athletic
						}
					}
					hidden_tooltip = {
						random_list = {
							10 = {
								character_event = { id = ancrel.1224 }
							}
							10 = {
								character_event = { id = ancrel.1225 }
							}
							10 = {
								character_event = { id = ancrel.1226 }
							}
							10 = {
								character_event = { id = ancrel.1227 }
							}
							10 = {
								character_event = { id = ancrel.1228 }
							}
							10 = {
								character_event = { id = ancrel.1229 }
							}
						}
					}
					hidden_tooltip = {
						remove_do_not_disturb_effect = yes
					}
					set_character_flag = tailteann_has_ended					
					reverse_opinion = {
						modifier = opinion_tailteann_participant
						who = PREV
						years = 2
					}					
					clr_character_flag = attending_tailteann
					clr_character_flag = attending_tailteann_wound						
					clr_character_flag = attending_tailteann_fear
					clr_character_flag = attending_tailteann_martialed
					clr_character_flag = attending_tailteann_gay
					clr_character_flag = attending_tailteann_syph
					clr_character_flag = attending_tailteann_drunk
					clr_character_flag = attending_tailteann_duelist
					clr_character_flag = attending_tailteann_intrigue
					clr_character_flag = attending_tailteann_stew
					clr_character_flag = attending_tailteann_dip
				}
			}
		}
	}
}

# Message about death
character_event = {
	id = ancrel.1221
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1221
	picture = GFX_evt_funeral_pyre
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_character_flag = no_msg_death }
		NOT = { has_character_flag = tailteann_has_ended }
	}
	
	option = {
		name = EVTOPTA_ancrel_1221
	}
	option = {
		name = EVTOPTB_ancrel_1221
		set_character_flag = no_msg_death
	}
}

# Message about maimed
character_event = {
	id = ancrel.1222
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1222
	picture = GFX_evt_viking_throneroom_oldgods
	
	is_triggered_only = yes

	trigger = {
		NOT = { has_character_flag = no_msg_maimed }
		NOT = { has_character_flag = tailteann_has_ended }
	}
	
	option = {
		name = EVTOPTA_ancrel_1221
	}
	option = {
		name = EVTOPTB_ancrel_1221
		set_character_flag = no_msg_maimed
	}
}

# Message about wounded
character_event = {
	id = ancrel.1223
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1223
	picture = GFX_evt_viking_throneroom_oldgods

	trigger = {
		NOT = { has_character_flag = no_msg_wounded }
		NOT = { has_character_flag = tailteann_has_ended }
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_1221
	}
	option = {
		name = EVTOPTB_ancrel_1221
		set_character_flag = no_msg_wounded
	}
}

# End of tailteann event
character_event = {
	id = ancrel.1224
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1224
	picture = GFX_evt_athlete

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1224
		prestige = 50
	}
}

# End of tailteann event
character_event = {
	id = ancrel.1225
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1225
	picture = GFX_evt_athlete

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1225
		prestige = 100
	}
}

# End of tailteann event
character_event = {
	id = ancrel.1226
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1226
	picture = GFX_evt_athlete

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1226
		prestige = -50
	}
}

# End of tailteann event
character_event = {
	id = ancrel.1227
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1227
	picture = GFX_evt_athlete

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1227
		prestige = -100
	}
}

# End of tailteann event
character_event = {
	id = ancrel.1228
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1228
	picture = GFX_evt_athlete

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1228
		change_martial = 1
	}
}

# End of tailteann event
character_event = {
	id = ancrel.1229
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1229
	picture = GFX_evt_athlete

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1229
		change_martial = -1
	}
}	

# Character is killed
character_event = {
	id = ancrel.1230
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1230
	picture = GFX_evt_death

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		OR = {
			is_female = no
			martial = 10
			trait = martial_lady_pagan
		}
		top_liege = {
			has_character_flag = tailteann_game_phase
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}
	}

	immediate = {
		set_character_flag = tailteann_has_ended
	}
	
	option = {
		name = EVTOPTA_ancrel_1230
		death = {
			death_reason = death_battle
		}
		hidden_tooltip = {
			if = {
				limit = {
					top_liege = {
						NOT = {
							character = ROOT
						}
					}
				}
				top_liege = { character_event = { id = ancrel.1221 } }
			}
		}
	}
}

# Character is maimed
character_event = {
	id = ancrel.1231
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1231
	picture = GFX_evt_melee

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			is_maimed_trigger = yes
		}
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		OR = {
			is_female = no
			martial = 10
			trait = martial_lady_pagan
		}
		top_liege = {
			has_character_flag = tailteann_game_phase
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}
	}
	
	immediate = {
		set_character_flag = tailteann_has_ended
	}

	option = {
		name = EVTOPTA_ancrel_1231
		add_maimed_trait_effect = yes
		hidden_tooltip = {
			if = {
				limit = {
					top_liege = {
						NOT = {
							character = ROOT
						}
					}
				}
				top_liege = { character_event = { id = ancrel.1222 } }
			}
		}
	}
}

# Character is wounded
character_event = {
	id = ancrel.1232
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1232
	picture = GFX_evt_melee

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_character_flag = attending_tailteann_event }
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = {
			trait = wounded
		}
		NOT = {
			is_maimed_trigger = yes
		}
		OR = {
			is_female = no
			martial = 10
			trait = martial_lady_pagan
		}
		top_liege = {
			has_character_flag = tailteann_game_phase
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_wound
	}
	
	option = {
		name = EVTOPTA_ancrel_1232
		add_trait = wounded
		hidden_tooltip = {
			if = {
				limit = {
					top_liege = {
						NOT = {
							character = ROOT
						}
					}
				}
				top_liege = { character_event = { id = ancrel.1223 } }
			}
		}
	}
}	

# Character becomes craven
character_event = {
	id = ancrel.1233
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1233
	picture = GFX_evt_melee

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_character_flag = attending_tailteann_fear }
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = {
			trait = craven
		}
		OR = {
			is_female = no
			martial = 10
			trait = martial_lady_pagan
		}
		top_liege = {
			has_character_flag = tailteann_game_phase
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_fear
	}
	
	option = {
		name = EVTOPTA_ancrel_1233
		add_trait = craven
	}
}

# Character becomes brave
character_event = {
	id = ancrel.1234
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1234
	picture = GFX_evt_melee

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_character_flag = attending_tailteann_fear }
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = {
			trait = brave
		}
		OR = {
			is_female = no
			martial = 10
			trait = martial_lady_pagan
		}
		top_liege = {
			has_character_flag = tailteann_game_phase
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_fear
	}	

	option = {
		name = EVTOPTA_ancrel_1234
		add_trait = brave
	}
}

# Character gains Martial Education
character_event = {
	id = ancrel.1235
	title = TAILTEANNTITLE	
	picture = GFX_evt_athlete
	
	desc = {
		text = EVTDESC_ancrel_1235
		trigger = {
			trait = misguided_warrior
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1236
		trigger = {
			trait = tough_soldier
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1237
		trigger = {
			trait = skilled_tactician
		}
	}

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_character_flag = attending_tailteann_event }
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		OR = {
			trait = misguided_warrior
			trait = tough_soldier
			trait = skilled_tactician 			
		}
		top_liege = {
			has_character_flag = tailteann_game_phase
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_martialed
	}
	
	option = {
		name = EVTOPTA_ancrel_1237
		trigger = { trait = skilled_tactician }
		remove_trait = skilled_tactician 
		add_trait = brilliant_strategist 
	}

	option = {
		name = EVTOPTA_ancrel_1236
		trigger = { trait = tough_soldier }
		remove_trait = tough_soldier 
		add_trait = skilled_tactician 
	}
	
	option = {
		name = EVTOPTA_ancrel_1235
		trigger = { trait = misguided_warrior }
		remove_trait = misguided_warrior
		add_trait = tough_soldier 
	}
}

# Character loses Martial Education
character_event = {
	id = ancrel.1238
	title = TAILTEANNTITLE	
	picture = GFX_evt_athlete

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	desc = {
		text = EVTDESC_ancrel_1238
		trigger = {
			trait = brilliant_strategist
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1240
		trigger = {
			trait = tough_soldier
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1239
		trigger = {
			trait = skilled_tactician
		}
	}
	
	trigger = {
		NOT = { has_character_flag = attending_tailteann_martialed }
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		OR = {
			trait = brilliant_strategist 
			trait = skilled_tactician
			trait = tough_soldier
		}
		top_liege = {
			has_character_flag = tailteann_game_phase
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_martialed
	}

	option = {
		name = EVTOPTA_ancrel_1238
		trigger = { trait = brilliant_strategist }
		remove_trait = brilliant_strategist
		add_trait = skilled_tactician  
	}
	
	option = {
		name = EVTOPTA_ancrel_1239
		trigger = { trait = skilled_tactician }
		remove_trait = skilled_tactician
		add_trait = tough_soldier
	}
	
	option = {
		name = EVTOPTA_ancrel_1240
		trigger = { trait = tough_soldier }
		remove_trait = tough_soldier
		add_trait = misguided_warrior
	}
}

# Character becomes homosexual
character_event = {
	id = ancrel.1241
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1241
	picture = GFX_evt_shadowy_cabal

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = { has_character_flag = attending_tailteann_gay }
		NOT = {
			trait = homosexual
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_gay
	}
	
	option = {
		name = EVTOPTA_ancrel_1241
		add_trait = homosexual
	}
}

# Character becomes syphilitic
character_event = {
	id = ancrel.1242
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1242
	picture = GFX_evt_lovers

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = { has_character_flag = attending_tailteann_syph }
		NOR = {
			trait = syphilitic
			trait = celibate
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_syph
	}

	option = {
		name = EVTOPTA_ancrel_1242
		add_trait = syphilitic
	}
}

# Character becomes drunkard
character_event = {
	id = ancrel.1243
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1243
	picture = GFX_evt_drunk
	
	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = { has_character_flag = attending_tailteann_drunk }
		NOT = {
			trait = drunkard
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_drunk
	}

	option = {
		name = EVTOPTA_ancrel_1243
		add_trait = drunkard
	}
}

# Character becomes duelist
character_event = {
	id = ancrel.1244
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1244
	picture = GFX_evt_melee
	
	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = { has_character_flag = attending_tailteann_duelist }
		OR = {
			is_female = no			
			trait = martial_lady_pagan
		}
		martial = 10
		NOT = {
			lifestyle_traits = 1
		}
	}

	immediate = {
		set_character_flag = attending_tailteann_duelist
	}
	
	option = {
		name = EVTOPTA_ancrel_1244
		add_trait = duelist
	}
}

# Character gains intrigue
character_event = {
	id = ancrel.1245
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1245
	picture = GFX_evt_whispers

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = { has_character_flag = attending_tailteann_intrigue }
	}
	
	immediate = {
		set_character_flag = attending_tailteann_intrigue
	}

	option = {
		name = EVTOPTA_ancrel_1245
		change_intrigue = 1
	}
}

# Character loses intrigue
character_event = {
	id = ancrel.1246
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1246
	picture = GFX_evt_whispers

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = { has_character_flag = attending_tailteann_intrigue }
	}
	
	immediate = {
		set_character_flag = attending_tailteann_intrigue
	}
	
	option = {
		name = EVTOPTA_ancrel_1246
		change_intrigue = -1
	}
}

# Character gains stewardship
character_event = {
	id = ancrel.1247
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1247
	picture = GFX_evt_market

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = { has_character_flag = attending_tailteann_steward }
	}

	immediate = {
		set_character_flag = attending_tailteann_steward
	}
	
	option = {
		name = EVTOPTA_ancrel_1247
		change_stewardship = 1
	}
}

# Character loses stewardship
character_event = {
	id = ancrel.1248
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1248
	picture = GFX_evt_market

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = { has_character_flag = attending_tailteann_stew }
	}
	
	immediate = {
		set_character_flag = attending_tailteann_stew
	}
	
	option = {
		name = EVTOPTA_ancrel_1248
		change_stewardship = -1
	}
}

# Character gains diplomacy
character_event = {
	id = ancrel.1249
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1249
	picture = GFX_evt_council

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = { has_character_flag = attending_tailteann_dip }
	}
	
	immediate = {
		set_character_flag = attending_tailteann_dip
	}
	
	option = {
		name = EVTOPTA_ancrel_1249
		change_diplomacy = 1
	}
}

# Character loses diplomacy
character_event = {
	id = ancrel.1250
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1250
	picture = GFX_evt_council

	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = attending_tailteann
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_character_flag = tailteann_has_ended
		}
		NOT = { has_character_flag = attending_tailteann_dip }
	}
	
	immediate = {
		set_character_flag = attending_tailteann_dip
	}
	
	option = {
		name = EVTOPTA_ancrel_1250
		change_diplomacy = -1
	}
}

#  Game Phase
character_event = {
	id = ancrel.1251
	title = TAILTEANNTITLE
	desc = EVTDESC_ancrel_1251
	picture = GFX_evt_athlete
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_ancrel_1251
		character_event = { id = ancrel.1240 days = 1 random = 5}
	}
}

#looping trigger event
character_event = {
	id = ancrel.1240
	
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		has_character_flag = attending_tailteann
		top_liege = {
			has_character_flag = tailteann_game_phase
			NOT = {
				has_character_flag = tailteann_has_ended
			}
		}		
	}
	
	immediate = {
		random_list = {
			500 = {	#no event				
			}			
			1 = {	#character is killed
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_wound
				}
				modifier = {
					factor = 0.9
					martial = 20
				}
				modifier = {
					factor = 0.9
					martial = 19
				}
				modifier = {
					factor = 0.9
					martial = 18
				}
				modifier = {
					factor = 0.9
					martial = 17
				}
				modifier = {
					factor = 0.9
					martial = 16
				}
				modifier = {
					factor = 0.9
					martial = 15
				}
				modifier = {
					factor = 0.9
					martial = 14
				}
				modifier = {
					factor = 0.9
					martial = 13
				}
				modifier = {
					factor = 0.9
					martial = 12
				}
				modifier = {
					factor = 0.9
					martial = 11
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 10 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 9 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 8 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 7 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 6 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 5 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 4 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 3 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 2 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 1 }
				}
				modifier = {
					factor = 0.5
					trait = craven
				}
				modifier = {
					factor = 2
					trait = brave
				}
				modifier = {
					factor = 2
					is_maimed_trigger = yes
				}
				character_event = { id = ancrel.1230 }
			}
			2 = {   #character is maimed
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_wound
				}
				modifier = {
					factor = 0.9
					martial = 20
				}
				modifier = {
					factor = 0.9
					martial = 19
				}
				modifier = {
					factor = 0.9
					martial = 18
				}
				modifier = {
					factor = 0.9
					martial = 17
				}
				modifier = {
					factor = 0.9
					martial = 16
				}
				modifier = {
					factor = 0.9
					martial = 15
				}
				modifier = {
					factor = 0.9
					martial = 14
				}
				modifier = {
					factor = 0.9
					martial = 13
				}
				modifier = {
					factor = 0.9
					martial = 12
				}
				modifier = {
					factor = 0.9
					martial = 11
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 10 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 9 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 8 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 7 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 6 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 5 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 4 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 3 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 2 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 1 }
				}
				modifier = {
					factor = 0.5
					trait = craven
				}
				modifier = {
					factor = 2
					trait = brave
				}
				modifier = {
					factor = 2
					trait = wounded
				}
				character_event = { id = ancrel.1231 }
			}
			3 = {   #character is wounded
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_wound
				}
				modifier = {
					factor = 0.9
					martial = 20
				}
				modifier = {
					factor = 0.9
					martial = 19
				}
				modifier = {
					factor = 0.9
					martial = 18
				}
				modifier = {
					factor = 0.9
					martial = 17
				}
				modifier = {
					factor = 0.9
					martial = 16
				}
				modifier = {
					factor = 0.9
					martial = 15
				}
				modifier = {
					factor = 0.9
					martial = 14
				}
				modifier = {
					factor = 0.9
					martial = 13
				}
				modifier = {
					factor = 0.9
					martial = 12
				}
				modifier = {
					factor = 0.9
					martial = 11
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 10 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 9 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 8 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 7 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 6 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 5 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 4 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 3 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 2 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 1 }
				}
				modifier = {
					factor = 0.5
					trait = craven
				}
				modifier = {
					factor = 2
					trait = brave
				}
				character_event = { id = ancrel.1232 }
			}
			10 = { #character gets more fearful
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_fear
				}
				modifier = {
					factor = 0.9
					martial = 20
				}
				modifier = {
					factor = 0.9
					martial = 19
				}
				modifier = {
					factor = 0.9
					martial = 18
				}
				modifier = {
					factor = 0.9
					martial = 17
				}
				modifier = {
					factor = 0.9
					martial = 16
				}
				modifier = {
					factor = 0.9
					martial = 15
				}
				modifier = {
					factor = 0.9
					martial = 14
				}
				modifier = {
					factor = 0.9
					martial = 13
				}
				modifier = {
					factor = 0.9
					martial = 12
				}
				modifier = {
					factor = 0.9
					martial = 11
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 10 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 9 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 8 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 7 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 6 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 5 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 4 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 3 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 2 }
				}
				modifier = {
					factor = 1.1
					NOT = { martial = 1 }
				}
				character_event = { id = ancrel.1233 }
			}
			
			10 = {	#character gets braver
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_fear
				}
				modifier = {
					factor = 1.1
					martial = 20
				}
				modifier = {
					factor = 1.1
					martial = 19
				}
				modifier = {
					factor = 1.1
					martial = 18
				}
				modifier = {
					factor = 1.1
					martial = 17
				}
				modifier = {
					factor = 1.1
					martial = 16
				}
				modifier = {
					factor = 1.1
					martial = 15
				}
				modifier = {
					factor = 1.1
					martial = 14
				}
				modifier = {
					factor = 1.1
					martial = 13
				}
				modifier = {
					factor = 1.1
					martial = 12
				}
				modifier = {
					factor = 1.1
					martial = 11
				}
				modifier = {
					factor = 0.9
					NOT = { martial = 10 }
				}
				modifier = {
					factor = 0.9
					NOT = { martial = 9 }
				}
				modifier = {
					factor = 0.9
					NOT = { martial = 8 }
				}
				modifier = {
					factor = 0.9
					NOT = { martial = 7 }
				}
				modifier = {
					factor = 0.9
					NOT = { martial = 6 }
				}
				modifier = {
					factor = 0.9
					NOT = { martial = 5 }
				}
				modifier = {
					factor = 0.9
					NOT = { martial = 4 }
				}
				modifier = {
					factor = 0.9
					NOT = { martial = 3 }
				}
				modifier = {
					factor = 0.9
					NOT = { martial = 2 }
				}
				modifier = {
					factor = 0.9
					NOT = { martial = 1 }
				}
				character_event = { id = ancrel.1234 }
			}
			
			10 = { #character gains a Marttial Education level
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_martial
				}
				modifier = {
					factor = 0
					OR = {
						trait = brilliant_strategist
						NOR = {
							trait = misguided_warrior
							trait = tough_soldier
							trait = skilled_tactician
							trait = brilliant_strategist
						}
					}
				}
				character_event = { id = ancrel.1235 }				
			}
			10 = { #character loses a Martial Education level
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_martial
				}
				modifier = {
					factor = 0
					OR = {
						trait = misguided_warrior
						NOR ={
							trait = misguided_warrior
							trait = tough_soldier
							trait = skilled_tactician
							trait = brilliant_strategist
						}
					}
				}
				character_event = { id = ancrel.1238 }
			}
			2 = { #character becomes homosexual
				modifier = {
					factor = 0
					OR = {
						trait = homosexual
						trait = eunuch
						trait = celibate
						has_character_flag = attending_tailteann_gay
					}
				}
				modifier = {
					factor = 1.1
					trait = drunkard
				}
				modifier = {
					factor = 1.33
					trait = hedonist
				}
				modifier = {
					factor = 1.1
					trait = lustful
				}
				modifier = {
					factor = 0.5
					trait = temperate
				}
				modifier = {
					factor = 0.33
					trait = chaste
				}
				modifier = {
					factor = 0.33
					trait = zealous
				}
				character_event = { id = ancrel.1241 }				
			}
			2 = { #character becomes syphilitic
				modifier = {
					factor = 0
					OR = {
						has_character_flag = attending_tailteann_syph						
						trait = eunuch
						trait = celibate
						trait = syphilitic
					}
				}
				modifier = {
					factor = 1.1
					trait = drunkard
				}
				modifier = {
					factor = 2
					trait = hedonist
				}
				modifier = {
					factor = 1.33
					trait = lustful
				}
				modifier = {
					factor = 0.5
					trait = temperate
				}
				modifier = {
					factor = 0.33
					trait = chaste
				}
				modifier = {
					factor = 0.33
					trait = zealous
				}
				character_event = { id = ancrel.1242 }
			}
			3 = { #character becomes drunkard
				modifier = {
					factor = 0
					OR = {
						trait = drunkard
						has_character_flag = attending_tailteann_drunk
					}
				}
				modifier = {
					factor = 1.33
					trait = gluttonous
				}
				modifier = {
					factor = 1.1
					trait = lustful
				}
				modifier = {
					factor = 0.33
					trait = temperate
				}
				modifier = {
					factor = 0.5
					trait = chaste
				}
				character_event = { id = ancrel.1243 }
			}
			3 = { #character becomes duelist
				modifier = {
					factor = 0
					OR = {
						has_dlc = "Way of Life" 					
						has_character_flag = attending_tailteann_duelist
						NOT = { martial = 5 }					
						trait = content
						trait = kind
						trait = craven
						is_weak_trigger = yes
						lifestyle_traits = 1					
					}
				}
				modifier = {
					factor = 1.33
					trait = diligent
				}
				modifier = {
					factor = 1.33
					trait = wroth
				}
				modifier = {
					factor = 1.33
					trait = brave
				}
				modifier = {
					factor = 1.33
					is_strong_trigger = yes
				}
				modifier = {
					factor = 1.33
					martial = 10
				}
				modifier = {
					factor = 1.33
					martial = 15
				}
				modifier = {
					factor = 1.33
					martial = 20
				}
				character_event = { id = ancrel.1244 }
			}
			10 = { #character gains intrigue
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_intrigue
				}
				modifier = {
					factor = 1.5
					trait = elusive_shadow
				}
				modifier = {
					factor = 1.1
					trait = intricate_webweaver
				}
				modifier = {
					factor = 0.9
					trait = flamboyant_schemer
				}
				modifier = {
					factor = 0.8
					trait = amateurish_plotter
				}
				modifier = {
					factor = 1.5
					NOR = {
						trait = elusive_shadow
						trait = intricate_webweaver
						trait = flamboyant_schemer
						trait = amateurish_plotter
					}
				}
				modifier = {
					factor = 1.5
					trait = deceitful
				}
				modifier = {
					factor = 0.9
					trait = honest
				}
				modifier = {
					factor = 4
					martial = 10
				}
				modifier = {
					factor = 0.8
					NOT = {
						martial = 5
					}
				}
				character_event = { id = ancrel.1245 }
			}
			10 = { #character loses intrigue
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_intrigue
				}
				modifier = {
					factor = 0.8
					trait = elusive_shadow
				}
				modifier = {
					factor = 0.9
					trait = intricate_webweaver
				}
				modifier = {
					factor = 1.1
					trait = flamboyant_schemer
				}
				modifier = {
					factor = 1.5
					trait = amateurish_plotter
				}
				modifier = {
					factor = 1.5
					NOR = {
						trait = elusive_shadow
						trait = intricate_webweaver
						trait = flamboyant_schemer
						trait = amateurish_plotter					
					}
				}
				modifier = {
					factor = 0.9
					trait = deceitful
				}
				modifier = {
					factor = 1.5
					trait = honest
				}
				modifier = {
					factor = 4
					martial = 10
				}
				modifier = {
					factor = 0.8
					NOT = {
						martial = 5
					}
				}
				character_event = { id = ancrel.1246 }
			}
			10 = { #character gains stewardship
				modifier = {
					factor = 0 
					OR = {
						has_character_flag = attending_tailteann_stew						
						is_ruler = no
					}
				}
				modifier = {
					factor = 1.5
					trait = midas_touched
				}
				modifier = {
					factor = 1.1
					trait = fortune_builder
				}
				modifier = {
					factor = 0.9
					trait = thrifty_clerk
				}
				modifier = {
					factor = 0.8
					trait = indulgent_wastrel
				}
				modifier = {
					factor = 1.5
					NOR = {
						trait = midas_touched
						trait = fortune_builder
						trait = thrifty_clerk
						trait = indulgent_wastrel						
					}
				}
				modifier = {
					factor = 1.5
					trait = diligent
				}
				modifier = {
					factor = 0.9
					trait = slothful
				}
				modifier = {
					factor = 4
					martial = 10
				}
				modifier = {
					factor = 0.8
					NOT = {
						martial = 5
					}
				}
				character_event = { id = ancrel.1247 }
			}
			10 = { #character loses stewardship				
				modifier = {
					factor = 0 
					OR = {
						has_character_flag = attending_tailteann_stew						
						is_ruler = no
					}
				}
				modifier = {
					factor = 0.8
					trait = midas_touched
				}
				modifier = {
					factor = 0.9
					trait = fortune_builder
				}
				modifier = {
					factor = 1.1
					trait = thrifty_clerk
				}
				modifier = {
					factor = 1.5
					trait = indulgent_wastrel
				}
				modifier = {
					factor = 1.5
					NOR = {
						trait = midas_touched
						trait = fortune_builder
						trait = thrifty_clerk
						trait = indulgent_wastrel
					}
				}
				modifier = {
					factor = 0.9
					trait = diligent
				}
				modifier = {
					factor = 1.5
					trait = slothful
				}
				modifier = {
					factor = 4
					martial = 10
				}
				modifier = {
					factor = 0.8
					NOT = {
						martial = 5
					}
				}
				character_event = { id = ancrel.1248 }
			}
			10 = { #character gains diplomacy
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_dip
				}
				modifier = {
					factor = 1.5
					trait = grey_eminence
				}
				modifier = {
					factor = 1.1
					trait = charismatic_negotiator
				}
				modifier = {
					factor = 0.9
					trait = underhanded_rogue
				}
				modifier = {
					factor = 0.8
					trait = naive_appeaser
				}
				modifier = {
					factor = 1.5
					NOR = {
						trait = grey_eminence
						trait = charismatic_negotiator
						trait = underhanded_rogue
						trait = naive_appeaser					
					}
				}
				modifier = {
					factor = 1.5
					trait = gregarious
				}
				modifier = {
					factor = 0.9
					trait = shy
				}
				modifier = {
					factor = 4
					martial = 10
				}
				modifier = {
					factor = 0.8
					NOT = {
						martial = 5
					}
				}
				character_event = { id = ancrel.1249 }
			}
			10 = { #character loses diplomacy
				modifier = {
					factor = 0
					has_character_flag = attending_tailteann_dip
				}
				modifier = {
					factor = 0.8
					trait = grey_eminence
				}
				modifier = {
					factor = 0.9
					trait = charismatic_negotiator
				}
				modifier = {
					factor = 1.1
					trait = underhanded_rogue
				}
				modifier = {
					factor = 1.5
					trait = naive_appeaser
				}
				modifier = {
					factor = 1.5
					NOR = {
						trait = grey_eminence
						trait = charismatic_negotiator
						trait = underhanded_rogue
						trait = naive_appeaser						
					}
				}
				modifier = {
					factor = 0.9
					trait = gregarious
				}
				modifier = {
					factor = 1.5
					trait = shy
				}
				modifier = {
					factor = 4
					martial = 10
				}
				modifier = {
					factor = 0.8
					NOT = {
						martial = 5
					}
				}
				character_event = { id = ancrel.1250 }
			}
		}
		#repeat_event = { id = ancrel.1261 days = 5 random = 5 }
	}
}

### CHANGELINGS

## Warnings
# Druid Warns About Child (AI Spouse)
character_event = {
	id = ancrel.242
	hide_window = yes
	
	only_women = yes
	min_age = 16
	prisoner = no
	has_dlc = "The Old Gods"
	
	trigger = {
		NOT = {
			has_game_rule = {
				name = supernatural_events
				value = off
			}
		}
		OR = {
			ai = no
			spouse = { ai = no }
			AND = {
				has_game_rule = {
					name = supernatural_events
					value = unrestricted
				}
				OR = {
					is_playable = yes
					spouse = { is_playable = yes }
				}
			}
		}
		is_pregnant = yes
		OR = {
			any_courtier = { 
				trait = druid 
			}
			spouse = {				
				any_courtier = { 
					trait = druid 
				}
			}
		}
		NOT = { has_character_flag = child_stolen_sidhe }
	}
	
	mean_time_to_happen = {
		months = 550
	}
	
	immediate = {
		set_character_flag = child_stolen_sidhe
		if = {
			limit = { 
				OR = {
					is_ruler = no 
					AND = {
						is_ruler = yes
						is_married_matrilineally = no
					}
				}
			}
			spouse = {
				random_courtier = { 
					limit = { trait = druid }
					character_event = { id = ancrel.243 }
				}
			}
			break = yes
		}
		random_courtier = { 
			limit = { trait = druid }
			character_event = { id = ancrel.243 }
		}
	}
}

# Druid Warns About Child (AI Druid)
character_event = {
	id = ancrel.243
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		liege = {
			character_event = { id = ancrel.244 }
		}
	}
}

# Druid Warns About Child
character_event = {
	id = ancrel.244
	picture = GFX_evt_pregnancy
	border = GFX_event_normal_frame_religion
	
	desc = {
		text = EVTDESC_ancrel_0244
		trigger = { is_female = no }
	}
	
	desc = {
		text = EVTDESCB_ancrel_0244
		trigger = { is_female = yes }
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0244
		trigger = { is_female = no }
		FROM = {
			opinion = {
				modifier = opinion_disappointed
				years = 1
				who = ROOT
			}
		}
	}
	option = {
		name = EVTOPTB_ancrel_0244
		trigger = { is_female = no }
		FROMFROM = {
			opinion = {
				modifier = opinion_disappointed
				years = 1
				who = ROOT
			}
		}
	}
	
	option = {
		name = EVTOPTB_ancrel_0244
		trigger = { is_female = yes }		
	}
}

## Changeling events

# Child is stolen by Sidhe
character_event = {
	id = ancrel.215
	hide_window = yes
	
	is_triggered_only = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		mother = { has_character_flag = child_stolen_sidhe }
	}
	
	immediate = {
		random_list = {
			50 = { set_character_flag = changeling_child }
			50 = { set_character_flag = changeling_child_fake }
		}
		mother = { clr_character_flag = child_stolen_sidhe }
	}
}

# Child acts strange I (AI Child)
character_event = {
	id = ancrel.216
	hide_window = yes
	
	min_age = 4
	max_age = 16
	ai = yes
	has_character_flag = changeling_child
	is_triggered_only = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = changeling_child_strange_1 }		
	}	
	
	immediate = {
		set_character_flag = changeling_child_strange_1
		host = { character_event = { id = ancrel.217 } }		
	}
}

# Child acts strange I (Parent)
character_event = {
	id = ancrel.217
	desc = EVTDESC_ancrel_0217
	picture = GFX_evt_child_play
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0217
		custom_tooltip = { text = changeling_child_acts_strange }
	}
}

# Child acts strange II (AI Child)
character_event = {
	id = ancrel.218
	hide_window = yes
	
	min_age = 4
	max_age = 16
	ai = yes
	has_character_flag = changeling_child
	is_triggered_only = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = changeling_child_strange_2 }		
	}
	
	immediate = {
		set_character_flag = changeling_child_strange_2
		host = { character_event = { id = ancrel.219 } }		
	}
}

# Child acts strange II (Parent)
character_event = {
	id = ancrel.219
	desc = EVTDESC_ancrel_0219
	picture = GFX_evt_child_play
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0219
		custom_tooltip = { text = changeling_child_acts_strange }
	}
}

# Child acts strange III (AI Child)
character_event = {
	id = ancrel.220
	hide_window = yes
	
	min_age = 4
	max_age = 16
	ai = yes
	has_character_flag = changeling_child
	is_triggered_only = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = changeling_child_strange_3 }		
	}	
	
	immediate = {
		set_character_flag = changeling_child_strange_3
		host = { character_event = { id = ancrel.221 } }		
	}
}

# Child acts strange III (Parent)
character_event = {
	id = ancrel.221
	desc = EVTDESC_ancrel_0221
	picture = GFX_evt_child_play
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0221
		custom_tooltip = { text = changeling_child_acts_strange }
	}
}

# Child kills Courtier I (AI Child)
character_event = {
	id = ancrel.222
	hide_window = yes
	
	min_age = 4
	max_age = 16
	ai = yes
	has_character_flag = changeling_child
	is_triggered_only = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = changeling_child_kills_1 }		
		OR = {
			has_character_flag = changeling_child_strange_1
			has_character_flag = changeling_child_strange_2
			has_character_flag = changeling_child_strange_3
		}
		host = {
			any_courtier = {
				NOR = { 
					character = ROOT
					is_close_relative = ROOT 
				}
				host = { 
					character = liege
					prisoner = no
				}
				ai = yes
				is_primary_heir = no
				is_pretender = no
				prisoner = no
				age = 13
				in_command_trigger = no
				NOT = { spouse = { character = host } }
			}
		}
	}	
	
	immediate = {
		set_character_flag = changeling_child_kills_1
		host = { 
			random_courtier = {
				limit = {
					NOR = { 
						character = ROOT
						is_close_relative = ROOT 
					}
					host = { 
						character = liege
						prisoner = no
					}
					ai = yes
					is_primary_heir = no
					is_pretender = no
					prisoner = no
					age = 13
					in_command_trigger = no
					NOT = { spouse = { character = host } }
				}
				character_event = { id = ancrel.223 } 
			}
		}
	}
}

# Child kills Courtier I (AI Courtier)
character_event = {
	id = ancrel.223
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		liege = { character_event = { id = ancrel.224 } }
	}
}

#Child kills Courtier I (Parent)
character_event = {
	id = ancrel.224
	desc = EVTDESC_ancrel_0224
	picture = GFX_evt_viking_funeral_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0224
		FROM = {
			death = {
				death_reason = death_murder_unknown
			}
		}
	}
}

# Child kills Courtier II (AI Child)
character_event = {
	id = ancrel.225
	hide_window = yes
	
	min_age = 4
	max_age = 16
	ai = yes
	has_character_flag = changeling_child
	is_triggered_only = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = changeling_child_kills_2 }		
		OR = {
			has_character_flag = changeling_child_strange_1
			has_character_flag = changeling_child_strange_2
			has_character_flag = changeling_child_strange_3
		}
		host = {
			any_courtier = {
				NOR = { 
					character = ROOT
					is_close_relative = ROOT 
				}
				host = { 
					character = liege
					prisoner = no
				}
				ai = yes
				is_primary_heir = no
				is_pretender = no
				prisoner = no
				age = 13
				in_command_trigger = no
				NOT = { spouse = { character = host } }
			}
		}
	}	
	
	immediate = {
		set_character_flag = changeling_child_kills_2
		host = { 
			random_courtier = {
				limit = {
					NOR = { 
						character = ROOT
						is_close_relative = ROOT 
					}
					host = { 
						character = liege
						prisoner = no
					}
					ai = yes
					is_primary_heir = no
					is_pretender = no
					prisoner = no
					age = 13
					in_command_trigger = no
					NOT = { spouse = { character = host } }
				}
				character_event = { id = ancrel.226 } 
			}
		}
	}
}

# Child kills Courtier II (AI Courtier)
character_event = {
	id = ancrel.226
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		liege = { character_event = { id = ancrel.227 } }
	}
}

#Child kills Courtier II (Parent)
character_event = {
	id = ancrel.227
	desc = EVTDESC_ancrel_0227
	picture = GFX_evt_viking_funeral_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0227
		FROM = {
			death = {
				death_reason = death_murder_unknown
			}
		}
	}
}

# Child kills Courtier III (AI Child)
character_event = {
	id = ancrel.228
	hide_window = yes
	
	min_age = 4
	max_age = 16
	ai = yes
	has_character_flag = changeling_child
	is_triggered_only = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = changeling_child_kills_3 }		
		OR = {
			has_character_flag = changeling_child_strange_1
			has_character_flag = changeling_child_strange_2
			has_character_flag = changeling_child_strange_3
		}
		host = {
			any_courtier = {
				NOR = { 
					character = ROOT
					is_close_relative = ROOT 
				}
				host = { 
					character = liege
					prisoner = no
				}
				ai = yes
				is_primary_heir = no
				is_pretender = no
				prisoner = no
				age = 13
				in_command_trigger = no
				NOT = { spouse = { character = host } }
			}
		}
	}
		
	immediate = {
		set_character_flag = changeling_child_kills_3
		father = { 
			random_courtier = {
				limit = {
					NOR = { 
						character = ROOT
						is_close_relative = ROOT 
					}
					host = { 
						character = liege
						prisoner = no
					}
					ai = yes
					is_primary_heir = no
					is_pretender = no
					prisoner = no
					age = 13
					in_command_trigger = no
					NOT = { spouse = { character = host } }
				}
				character_event = { id = ancrel.229 } 
			}
		}
	}
}

# Child kills Courtier III (AI Courtier)
character_event = {
	id = ancrel.229
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		liege = { character_event = { id = ancrel.230 } }
	}
}

#Child kills Courtier III (Parent)
character_event = {
	id = ancrel.230
	desc = EVTDESC_ancrel_0230
	picture = GFX_evt_viking_funeral_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0230
		FROM = {
			death = {
				death_reason = death_murder_unknown
			}
		}
	}
}

# Druid offers to save child (AI Child)
character_event = {
	id = ancrel.231
	hide_window = yes
	
	ai = yes
	min_age = 4
	max_age = 15
	religion_group = pagan_group
	is_triggered_only = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = changeling_trade }		
		OR = {
			has_character_flag = changeling_child
			has_character_flag = changeling_child_fake
		}
		host = {
			any_courtier = {
				trait = druid
			}
		}
	}	
	
	immediate = {
		set_character_flag = changeling_trade
		host = {			
			random_courtier = {
				limit = { trait = druid }
				save_event_target_as = changeling_trade_druid				
			}
		}
		if = {
			limit = {
				father_even_if_dead = {
					is_alive = yes					
					OR = {
						#not married to the child's mother
						NOT = { 
							any_spouse = {
								any_child = {
									character = ROOT
								}
							}
						}
						#patrilineally married to the child's mother
						any_spouse = {
							any_child = {
								character = ROOT
							}
							is_married_matrilineally = no
						}
						#is a player and mother is not
						AND = {
							ai = no						
							ROOT = {
								mother = {
									ai = yes
								}
							}
						}
					}
				}
			}
			father = {
				save_event_target_as = changeling_trade_parent
			}
		}
		if = {
			limit = {
				NOT = { event_target:changeling_trade_parent = { always = yes } }
				mother_even_if_dead = {					
					is_alive = yes					
					OR = {
						#not married to the child's father
						NOT = { 
							any_spouse = {
								any_child = {
									character = ROOT
								}
							}
						}
						#matrilineally married to the child's father
						any_spouse = {
							any_child = {
								character = ROOT
							}
							is_married_matrilineally = yes
						}
						#is a player and father is not
						AND = {
							ai = no						
							ROOT = {
								father = {
									ai = yes
								}
							}
						}
					}
				}
			}
			mother = {
				save_event_target_as = changeling_trade_parent
			}
		}
		event_target:changeling_trade_druid = {
			if = {
				limit = {
					NOT = {
						event_target:changeling_trade_parent = {
							always = yes
						}
					}
				}
				#if neither parent is alive then host can make the choice
				liege = { save_event_target_as = changeling_trade_parent }
			}
			character_event = { id = ancrel.232 }
		}		
	}
}

# Druid offers to save child (AI Druid)
character_event = {
	id = ancrel.232
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		event_target:changeling_trade_parent = {
			character_event = { id = ancrel.233 }
		}
	}
}

# Druid offers to save child
character_event = {
	id = ancrel.233
	desc = EVTDESC_ancrel_0233
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0233
		hidden_tooltip = {
			character_event = { id = ancrel.234 days = 7 }
		}
		custom_tooltip = { text = changeling_trade_approved }
	}
	option = {
		name = EVTOPTB_ancrel_0233
		FROM = {
			opinion = {
				modifier = opinion_very_disappointed
				years = 2
				who = ROOT
			}
		}
		custom_tooltip = { text = changeling_trade_denied }
	}
}

# Changeling Trade Begins
character_event = {
	id = ancrel.234
	desc = EVTDESC_ancrel_0234
	picture = GFX_evt_pagan
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0234
		
		custom_tooltip = {
			text = changeling_trade_begins
			hidden_tooltip = {
				random_child = {
					limit = { has_character_flag = changeling_trade }
					character_event = { id = ancrel.235 days = 3 }
				}
			}
		}
	}
}

# Changeling Trade Begins (AI Child)
character_event = {
	id = ancrel.235
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		event_target:changeling_trade_druid = {				
			character_event = { id = ancrel.236 }
		}		
	}
}

# Changeling Trade Begins (AI Druid)
character_event = {
	id = ancrel.236
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		event_target:changeling_trade_parent = {
			random_list = {
				20 = { character_event = { id = ancrel.237 days = 3 } }
				20 = { character_event = { id = ancrel.238 days = 3 } }
				40 = { character_event = { id = ancrel.239 days = 3 } }
				20 = { character_event = { id = ancrel.240 days = 3 } }
			}
		}
	}
}

# Changeling Trade Completed - Druid Dies
character_event = {
	id = ancrel.237
	desc = EVTDESC_ancrel_0237
	picture = GFX_evt_child_play
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0237
		FROM = {
			death = {
				death_reason = death_murder_unknown
			}
		}
		FROMFROM = { # Flags removed, no more events
			clr_character_flag = changeling_trade
		}
	}
}

# Changeling Trade Completed - Child Dies
character_event = {
	id = ancrel.238
	desc = EVTDESC_ancrel_0238
	picture = GFX_evt_viking_funeral_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0238
		FROMFROM = {
			death = {
				death_reason = death_sacrificed
			}
		}
		FROM = {
			death = {
				death_reason = death_execution
				killer = ROOT
			}
		}
	}
	option = {
		name = EVTOPTB_ancrel_0238
		FROMFROM = {
			death = {
				death_reason = death_sacrificed
			}
		}
		FROM = {
			banish = yes
		}
	}
	option = {
		name = EVTOPTC_ancrel_0238
		FROMFROM = {
			death = {
				death_reason = death_sacrificed
			}
		}
	}
}

# Changeling Trade Completed - Child is Unharmed
character_event = {
	id = ancrel.239
	desc = EVTDESC_ancrel_0239
	picture = GFX_evt_pagan
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0239
		FROMFROM = {
			remove_possessed_effect = yes
		}
	}
}

# Changeling Trade Completed - Child is Hurt
character_event = {
	id = ancrel.240
	desc = EVTDESC_ancrel_0240
	picture = GFX_evt_pagan
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTB_ancrel_0238
		FROMFROM = {
			remove_possessed_effect = yes
		}
		FROM = {
			banish = yes
		}
	}
	option = {
		name = EVTOPTC_ancrel_0238
		FROMFROM = {
			remove_possessed_effect = yes
		}
	}
}

#[on_adulthood] Changeling child becomes an adult (Trait makes character more keen to go on adventures and harder to kill)
character_event = {
	id = ancrel.241
	desc = EVTDESC_ancrel_0241
	picture = GFX_evt_the_changeling_fuseli
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	has_character_flag = changeling_child
	
	immediate = {
		clr_character_flag = changeling_child
		clr_character_flag = changeling_child_fake
		clr_character_flag = changeling_trade
	}
	
	option = {
		name = EVTOPTA_ancrel_0241
		add_trait = changeling
		hidden_tooltip = {
			random_list = {
				50 = {    # Born from Fomorian
					remove_trait = chaste
					remove_trait = kind
					remove_trait = honest
					remove_trait = content
					remove_trait = charitable
					remove_trait = just
					remove_trait = humble
					remove_trait = slow
					remove_trait = dull
					remove_trait = imbecile
					remove_trait = weak
					remove_trait = feeble
					remove_trait = shy
					remove_trait = trusting
					add_trait = lustful
					add_trait = imposing
					add_trait = powerful_voice
					add_trait = envious
					add_trait = deceitful
					add_trait = ambitious
					add_trait = cruel
					add_trait = wroth
					add_trait = lunatic
				}
				50 = { 		# Born from Sidhe
					remove_trait = cruel
					remove_trait = wroth
					remove_trait = envious
					remove_trait = content
					remove_trait = slow
					remove_trait = dull
					remove_trait = imbecile
					remove_trait = weak
					remove_trait = feeble
					remove_trait = shy
					remove_trait = trusting
					add_trait = melodious_voice
					add_trait = fair
					add_trait = kind
					add_trait = patient
					add_trait = lunatic
					add_trait = charitable
					add_trait = lustful
					add_trait = deceitful
				}
			}
		}
	}
}


### DIVINATION EVENTS
# Written by Patrick Marchand

# You summon your vassals to the divination
character_event = {
	id = ancrel.20
	desc = EVTDESC_ancrel_0020
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	hide_from = yes
	
	only_rulers = yes
	religion_group = pagan_group
	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = planning_divination
	war = no
	
	trigger = {
		month = 5
		NOT = { month = 11 }
		OR = {
			religion = celtic_pagan_reformed
			religion = celtic_pagan
		}
		is_not_busy_trigger = yes
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = EVTOPTA_ancrel_0020
		clr_character_flag = planning_divination
		set_character_flag = holding_divination
		any_vassal = {
			limit = {
				OR = {
					religion = celtic_pagan
					religion = celtic_pagan_reformed
				}
				is_adult = yes
				prisoner = no
				war = no
				NOT = { trait = incapable }
				is_not_busy_trigger = yes
				NOT = { is_inaccessible_trigger = yes }
			}
			character_event = { id = ancrel.21 tooltip = EVTTOOLTIP_ancrel_0021 }
			hidden_tooltip = { character_event = { id = ancrel.25 days = 10 } }
		}
		any_vassal = {
			limit = {
				NOR = {
					religion = celtic_pagan
					religion = celtic_pagan_reformed
				}
				is_adult = yes
				prisoner = no
				war = no
				NOT = { trait = incapable }
			}
			character_event = { id = ancrel.22 tooltip = EVTTOOLTIP_ancrel_0022 }
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				days = 100
				hidden = yes
			}
			character_event = { id = ancrel.24 days = 10 }
		}
	}
}

# Summoned to divination (Vassal)
character_event = {
	id = ancrel.21
	desc = EVTDESC_ancrel_0021
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0021
		set_character_flag = attending_divination
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				days = 100
				hidden = yes
			}
		}
	}
}

# Non-Celtic Pagans pay to skip divination
character_event = {
	id = ancrel.22
	desc = EVTDESC_ancrel_0022
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = { # Pay
		name = EVTOPTA_ancrel_0022
		trigger = {
			wealth = 20
		}
		FROM = {
			character_event = { id = ancrel.23 tooltip = EVTTOOLTIP_ancrel_0023 }
		}
		wealth = -20
	}
	option = { # Don't pay
		name = EVTOPTB_ancrel_0022
		FROM = {
			character_event = { id = ancrel.56 tooltip = EVTTOOLTIP_ancrel_0056 }
		}
		tooltip = {
			FROM = {
				opinion = {
					modifier = opinion_refused_divination
					who = ROOT
				}
				any_vassal = {
					limit = { has_character_flag = attending_divination }
					opinion = {
						modifier = opinion_refused_divination
						who = ROOT
					}
				}
			}
		}
	}
}

# Non-Celtic Pagans pay to skip divination (Liege)
character_event = {
	id = ancrel.23
	desc = EVTDESC_ancrel_0023
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0023
		wealth = 20
	}
}

# Non-Celtic Pagans refuse to pay to skip divination (Liege)
character_event = {
	id = ancrel.56
	desc = EVTDESC_ancrel_0056
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0056
	}
}

# Divination Begin! (Liege)
character_event = {
	id = ancrel.24
	desc = EVTDESC_ancrel_0024
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0024
		custom_tooltip = {
			text = divination_begin
			hidden_tooltip = {
				if = {
					limit = { 
						any_courtier = {
							prisoner = yes
							host = { character = ROOT }
							is_adult = yes
						}
					}
					random_courtier = {
						limit = { 
							prisoner = yes 
							host = { character = ROOT }
							is_adult = yes
						}
						character_event = { id = ancrel.26 days = 5 }
					}
				}
				if = {
					limit = { 
						NOT = {
							any_courtier = {
								prisoner = yes
								host = { character = ROOT }
								is_adult = yes
							}
						}
					}
					character_event = { id = ancrel.54 days = 5 }
				}
			}
		}
	}
}

# Divination Begin! (Vassal)
character_event = {
	id = ancrel.25
	desc = EVTDESC_ancrel_0025
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0025
	}
}

# Sacrifice Prisoner 1 (Prisoner)
character_event = {
	id = ancrel.26
	desc = EVTDESC_ancrel_0026
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0026
		hidden_tooltip = {
			if = {
				limit = { # Generic
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
						religion_group = christian
						religion_group = muslim
					}
				}
				random_list = {
					25 = { FROM = { character_event = { id = ancrel.30 } } }
					25 = { FROM = { character_event = { id = ancrel.100 } } }
					25 = { FROM = { character_event = { id = ancrel.101 } } }
					25 = { FROM = { character_event = { id = ancrel.102 } } }
				}
			}
			if = {
				limit = { # Christian
					religion_group = christian
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.31 } }
			}
			if = {
				limit = { # Muslim
					religion_group = muslim
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.32 } }
			}
			if = {
				limit = { # Brother
					sibling = FROM
					is_female = no
				}
				FROM = { character_event = { id = ancrel.33 } }
			}
			if = {
				limit = { # Sister
					sibling = FROM
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.34 } }
			}
			if = {
				limit = { # Father
					any_child = { character = FROM }
					is_female = no
				}
				FROM = { character_event = { id = ancrel.35 } }
			}
			if = {
				limit = { # Mother
					any_child = { character = FROM }
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.36 } }
			}
			if = {
				limit = { # Son
					OR = {
						father = { character = FROM }
						mother = { character = FROM }
					}
					is_female = no
				}
				FROM = { character_event = { id = ancrel.37 } }
			}
			if = {
				limit = { # Daughter
					OR = {
						father = { character = FROM }
						mother = { character = FROM }
					}
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.38 } }
			}
			if = {
				limit = { # Kin
					any_dynasty_member = { character = FROM}
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
					}
				}
				FROM = { character_event = { id = ancrel.39 } }
			}
			if = {
				limit = { # Spouse
					any_spouse = { character = FROM }
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.40 } }
			}
			if = {
				limit = { # Aztec
					religion = aztec
					culture = nahuatl
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.41 } }
			}
			FROM = { character_event = { id = ancrel.103 } }
		}
	}
}

# Sacrifice Prisoner 2 (Prisoner)
character_event = {
	id = ancrel.27
	desc = EVTDESC_ancrel_0026
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0026
		hidden_tooltip = {
			if = {
				limit = { # Generic
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
						religion_group = christian
						religion_group = muslim
					}
				}
				random_list = {
					25 = { FROM = { character_event = { id = ancrel.30 } } }
					25 = { FROM = { character_event = { id = ancrel.100 } } }
					25 = { FROM = { character_event = { id = ancrel.101 } } }
					25 = { FROM = { character_event = { id = ancrel.102 } } }
				}
			}
			if = {
				limit = { # Christian
					religion_group = christian
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.31 } }
			}
			if = {
				limit = { # Muslim
					religion_group = muslim
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.32 } }
			}
			if = {
				limit = { # Brother
					sibling = FROM
					is_female = no
				}
				FROM = { character_event = { id = ancrel.33 } }
			}
			if = {
				limit = { # Sister
					sibling = FROM
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.34 } }
			}
			if = {
				limit = { # Father
					any_child = { character = FROM }
					is_female = no
				}
				FROM = { character_event = { id = ancrel.35 } }
			}
			if = {
				limit = { # Mother
					any_child = { character = FROM }
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.36 } }
			}
			if = {
				limit = { # Son
					OR = {
						father = { character = FROM }
						mother = { character = FROM }
					}
					is_female = no
				}
				FROM = { character_event = { id = ancrel.37 } }
			}
			if = {
				limit = { # Daughter
					OR = {
						father = { character = FROM }
						mother = { character = FROM }
					}
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.38 } }
			}
			if = {
				limit = { # Kin
					any_dynasty_member = { character = FROM}
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
					}
				}
				FROM = { character_event = { id = ancrel.39 } }
			}
			if = {
				limit = { # Spouse
					any_spouse = { character = FROM }
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.40 } }
			}
			if = {
				limit = { # Aztec
					religion = aztec
					culture = nahuatl
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.41 } }
			}
			FROM = { character_event = { id = ancrel.104 } }
		}
	}
}

# Sacrifice Prisoner 3 (Prisoner)
character_event = {
	id = ancrel.28
	desc = EVTDESC_ancrel_0026
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0026
		hidden_tooltip = {
			if = {
				limit = { # Generic
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
						religion_group = christian
						religion_group = muslim
					}
				}
				random_list = {
					25 = { FROM = { character_event = { id = ancrel.30 } } }
					25 = { FROM = { character_event = { id = ancrel.100 } } }
					25 = { FROM = { character_event = { id = ancrel.101 } } }
					25 = { FROM = { character_event = { id = ancrel.102 } } }
				}
			}
			if = {
				limit = { # Christian
					religion_group = christian
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.31 } }
			}
			if = {
				limit = { # Muslim
					religion_group = muslim
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.32 } }
			}
			if = {
				limit = { # Brother
					sibling = FROM
					is_female = no
				}
				FROM = { character_event = { id = ancrel.33 } }
			}
			if = {
				limit = { # Sister
					sibling = FROM
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.34 } }
			}
			if = {
				limit = { # Father
					any_child = { character = FROM }
					is_female = no
				}
				FROM = { character_event = { id = ancrel.35 } }
			}
			if = {
				limit = { # Mother
					any_child = { character = FROM }
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.36 } }
			}
			if = {
				limit = { # Son
					OR = {
						father = { character = FROM }
						mother = { character = FROM }
					}
					is_female = no
				}
				FROM = { character_event = { id = ancrel.37 } }
			}
			if = {
				limit = { # Daughter
					OR = {
						father = { character = FROM }
						mother = { character = FROM }
					}
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.38 } }
			}
			if = {
				limit = { # Kin
					any_dynasty_member = { character = FROM}
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
					}
				}
				FROM = { character_event = { id = ancrel.39 } }
			}
			if = {
				limit = { # Spouse
					any_spouse = { character = FROM }
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.40 } }
			}
			if = {
				limit = { # Aztec
					religion = aztec
					culture = nahuatl
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.41 } }
			}
			FROM = { character_event = { id = ancrel.105 } }
		}
	}
}

# Sacrifice Prisoner 4 (Prisoner)
character_event = {
	id = ancrel.29
	desc = EVTDESC_ancrel_0026
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0026
		hidden_tooltip = {
			if = {
				limit = { # Generic
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
						religion_group = christian
						religion_group = muslim
						religion = norse_pagan
						religion = norse_pagan_reformed
					}
				}
				random_list = {
					25 = { FROM = { character_event = { id = ancrel.30 } } }
					25 = { FROM = { character_event = { id = ancrel.100 } } }
					25 = { FROM = { character_event = { id = ancrel.101 } } }
					25 = { FROM = { character_event = { id = ancrel.102 } } }
				}
			}
			if = {
				limit = { # Christian
					religion_group = christian
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.31 } }
			}
			if = {
				limit = { # Muslim
					religion_group = muslim
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.32 } }
			}
			if = {
				limit = { # Brother
					sibling = FROM
					is_female = no
				}
				FROM = { character_event = { id = ancrel.33 } }
			}
			if = {
				limit = { # Sister
					sibling = FROM
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.34 } }
			}
			if = {
				limit = { # Father
					any_child = { character = FROM }
					is_female = no
				}
				FROM = { character_event = { id = ancrel.35 } }
			}
			if = {
				limit = { # Mother
					any_child = { character = FROM }
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.36 } }
			}
			if = {
				limit = { # Son
					OR = {
						father = { character = FROM }
						mother = { character = FROM }
					}
					is_female = no
				}
				FROM = { character_event = { id = ancrel.37 } }
			}
			if = {
				limit = { # Daughter
					OR = {
						father = { character = FROM }
						mother = { character = FROM }
					}
					is_female = yes
				}
				FROM = { character_event = { id = ancrel.38 } }
			}
			if = {
				limit = { # Kin
					any_dynasty_member = { character = FROM}
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
					}
				}
				FROM = { character_event = { id = ancrel.39 } }
			}
			if = {
				limit = { # Spouse
					any_spouse = { character = FROM }
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.40 } }
			}
			if = {
				limit = { # Aztec
					religion = aztec
					culture = nahuatl
					NOR = {
						sibling = FROM
						father = { character = FROM }
						mother = { character = FROM }
						any_spouse = { character = FROM }
						any_child = { character = FROM }
						any_dynasty_member = { character = FROM}
					}
				}
				FROM = { character_event = { id = ancrel.41 } }
			}
			FROM = { 
				if = {
					limit = {
						NOT = {
							has_character_modifier = sidhe_offerings_bad
						}
					}
					random_list = {
						20 = { character_event = { id = ancrel.60 days = 5 } }
						20 = { character_event = { id = ancrel.61 days = 5 } }
						20 = { character_event = { id = ancrel.64 days = 5 } }
						20 = { character_event = { id = ancrel.65 days = 5 } }
						20 = { character_event = { id = ancrel.66 days = 5 } }
					}
				}
				if = {
					limit = {
						has_character_modifier = sidhe_offerings_bad
					}
				random_list = {
						15 = { character_event = { id = ancrel.60 days = 5 } }
						15 = { character_event = { id = ancrel.61 days = 5 } }
						15 = { character_event = { id = ancrel.64 days = 5 } }
						27 = { character_event = { id = ancrel.65 days = 5 } }
						28 = { character_event = { id = ancrel.66 days = 5 } }
					}
				}
			}
		}
	}
}

# Sacrifice Generic 1 (Liege)
character_event = {
	id = ancrel.30
	desc = EVTDESC_ancrel_0030
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0030
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.44 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0030
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Christian (Liege)
character_event = {
	id = ancrel.31
	desc = EVTDESC_ancrel_0031
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0031
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.43 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 50
		piety = 25
	}
	option = {
		name = EVTOPTB_ancrel_0031
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -50
	}
}

# Sacrifice Muslim (Liege)
character_event = {
	id = ancrel.32
	desc = EVTDESC_ancrel_0032
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0032
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.44 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 50
		piety = 25
	}
	option = {
		name = EVTOPTB_ancrel_0032
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -50
	}
}

# Sacrifice Brother (Liege)
character_event = {
	id = ancrel.33
	desc = EVTDESC_ancrel_0033
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0033
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		FROM = { save_event_target_as = kinslayer_target }
		add_kinslayer_trait_effect = yes
		hidden_tooltip = {
			character_event = { id = 38287 } #Notify Kinslayer
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.45 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0033
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Sister (Liege)
character_event = {
	id = ancrel.34
	desc = EVTDESC_ancrel_0034
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0034
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		FROM = { save_event_target_as = kinslayer_target }
		add_kinslayer_trait_effect = yes
		hidden_tooltip = {
			character_event = { id = 38287 } #Notify Kinslayer
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.46 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0034
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Father (Liege)
character_event = {
	id = ancrel.35
	desc = EVTDESC_ancrel_0035
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0035
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		FROM = { save_event_target_as = kinslayer_target }
		add_kinslayer_trait_effect = yes
		hidden_tooltip = {
			character_event = { id = 38287 } #Notify Kinslayer
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.47 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0035
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Mother (Liege)
character_event = {
	id = ancrel.36
	desc = EVTDESC_ancrel_0036
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0036
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		FROM = { save_event_target_as = kinslayer_target }
		add_kinslayer_trait_effect = yes
		hidden_tooltip = {
			character_event = { id = 38287 } #Notify Kinslayer
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.48 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0036
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Son (Liege)
character_event = {
	id = ancrel.37
	desc = EVTDESC_ancrel_0037
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0037
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		FROM = { save_event_target_as = kinslayer_target }
		add_kinslayer_trait_effect = yes
		hidden_tooltip = {
			character_event = { id = 38287 } #Notify Kinslayer
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.49 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0037
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Daughter (Liege)
character_event = {
	id = ancrel.38
	desc = EVTDESC_ancrel_0038
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0038
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		FROM = { save_event_target_as = kinslayer_target }
		add_kinslayer_trait_effect = yes
		hidden_tooltip = {
			character_event = { id = 38287 } #Notify Kinslayer
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.50 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0038
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Other Kinsman (Liege)
character_event = {
	id = ancrel.39
	desc = EVTDESC_ancrel_0039
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0039
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.51 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0039
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Spouse/Consort (Liege)
character_event = {
	id = ancrel.40
	desc = EVTDESC_ancrel_0040
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0040
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.52 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0040
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Aztec (Liege)
character_event = {
	id = ancrel.41
	desc = EVTDESC_ancrel_0041
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0041
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.53 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 50
		piety = 25
	}
	option = {
		name = EVTOPTB_ancrel_0041
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -50
	}
}

# Sacrifice Generic (Vassal)
character_event = {
	id = ancrel.42
	desc = EVTDESC_ancrel_0042
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Christian (Vassal)
character_event = {
	id = ancrel.43
	desc = EVTDESC_ancrel_0043
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Muslim (Vassal)
character_event = {
	id = ancrel.44
	desc = EVTDESC_ancrel_0044
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Brother (Vassal)
character_event = {
	id = ancrel.45
	desc = EVTDESC_ancrel_0045
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Sister (Vassal)
character_event = {
	id = ancrel.46
	desc = EVTDESC_ancrel_0046
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Father (Vassal)
character_event = {
	id = ancrel.47
	desc = EVTDESC_ancrel_0047
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Mother (Vassal)
character_event = {
	id = ancrel.48
	desc = EVTDESC_ancrel_0048
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Son (Vassal)
character_event = {
	id = ancrel.49
	desc = EVTDESC_ancrel_0049
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Daughter (Vassal)
character_event = {
	id = ancrel.50
	desc = EVTDESC_ancrel_0050
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Other Kinsman (Vassal)
character_event = {
	id = ancrel.51
	desc = EVTDESC_ancrel_0051
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Spouse/Consort (Vassal)
character_event = {
	id = ancrel.52
	desc = EVTDESC_ancrel_0052
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# Sacrifice Aztec (Vassal)
character_event = {
	id = ancrel.53
	desc = EVTDESC_ancrel_0053
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0042
		tooltip = {
			FROMFROM = {
				death = {
					death_reason = death_sacrificed
					killer = FROM
				}
			}
		}
	}
}

# No Prisoners, Slaves sacrificed instead (Liege)
character_event = {
	id = ancrel.54
	desc = EVTDESC_ancrel_0054
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0054
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.55 }
			}
			if = {
				limit = {
					NOR = {
						has_character_modifier = sidhe_offerings_bad
					}
				}
				random_list = {
					20 = { character_event = { id = ancrel.60 days = 5 } }
					20 = { character_event = { id = ancrel.61 days = 5 } }
					20 = { character_event = { id = ancrel.64 days = 5 } }
					20 = { character_event = { id = ancrel.65 days = 5 } }
					20 = { character_event = { id = ancrel.66 days = 5 } }
				}
			}
			if = {
				limit = {
					has_character_modifier = sidhe_offerings_bad
				}
				random_list = {
					15 = { character_event = { id = ancrel.60 days = 5 } }
					15 = { character_event = { id = ancrel.61 days = 5 } }
					15 = { character_event = { id = ancrel.64 days = 5 } }
					27 = { character_event = { id = ancrel.65 days = 5 } }
					28 = { character_event = { id = ancrel.66 days = 5 } }
				}
			}
		}
		wealth = -50
		prestige = 50
		piety = 50
	}
}

# No Prisoners, Slaves sacrificed instead (Vassal)
character_event = {
	id = ancrel.55
	desc = EVTDESC_ancrel_0055
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0055
	}
}

# Liege changed his mind about sacrifice (prisoner)
character_event = {
	id = ancrel.57
	desc = EVTDESC_ancrel_0057
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0057
	}
}

# Prisoner 2 (Liege invisible)
character_event = {
	id = ancrel.103
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		if = {
			limit = { 
				any_courtier = {
					prisoner = yes
					host = { character = ROOT }
					is_adult = yes
					NOT = { character = FROM }
				}
			}
			random_courtier = {
				limit = { 
					prisoner = yes 
					host = { character = ROOT }
					is_adult = yes
					NOT = { character = FROM }
				}
				character_event = { id = ancrel.27 days = 5 }
			}
		}
		if = {
			limit = {
				NOT = { 
					any_courtier = {
						prisoner = yes
						host = { character = ROOT }
						is_adult = yes
						NOT = { character = FROM }
					}
				}
			}
			if = {
				limit = {
					NOR = {
						has_character_modifier = sidhe_offerings_bad
					}
				}
				random_list = {
					20 = { character_event = { id = ancrel.60 days = 5 } }
					20 = { character_event = { id = ancrel.61 days = 5 } }
					20 = { character_event = { id = ancrel.64 days = 5 } }
					20 = { character_event = { id = ancrel.65 days = 5 } }
					20 = { character_event = { id = ancrel.66 days = 5 } }
				}
			}
			if = {
				limit = {
					has_character_modifier = sidhe_offerings_bad
				}
				random_list = {
					15 = { character_event = { id = ancrel.60 days = 5 } }
					15 = { character_event = { id = ancrel.61 days = 5 } }
					15 = { character_event = { id = ancrel.64 days = 5 } }
					27 = { character_event = { id = ancrel.65 days = 5 } }
					28 = { character_event = { id = ancrel.66 days = 5 } }
				}
			}
		}
	}
}

# Prisoner 3 (Liege invisible)
character_event = {
	id = ancrel.104
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		if = {
			limit = { 
				any_courtier = {
					prisoner = yes
					host = { character = ROOT }
					is_adult = yes
					NOT = { character = FROM }
				}
			}
			random_courtier = {
				limit = { 
					prisoner = yes 
					host = { character = ROOT }
					is_adult = yes
					NOT = { character = FROM }
				}
				character_event = { id = ancrel.28 days = 5 }
			}
		}
		if = {
			limit = {
				NOT = { 
					any_courtier = {
						prisoner = yes
						host = { character = ROOT }
						is_adult = yes
						NOT = { character = FROM }
					}
				}
			}
			if = {
				limit = {
					NOR = {
						has_character_modifier = sidhe_offerings_bad
					}
				}
				random_list = {
					20 = { character_event = { id = ancrel.60 days = 5 } }
					20 = { character_event = { id = ancrel.61 days = 5 } }
					20 = { character_event = { id = ancrel.64 days = 5 } }
					20 = { character_event = { id = ancrel.65 days = 5 } }
					20 = { character_event = { id = ancrel.66 days = 5 } }
				}
			}
			if = {
				limit = {
					has_character_modifier = sidhe_offerings_bad
				}
				random_list = {
					15 = { character_event = { id = ancrel.60 days = 5 } }
					15 = { character_event = { id = ancrel.61 days = 5 } }
					15 = { character_event = { id = ancrel.64 days = 5 } }
					27 = { character_event = { id = ancrel.65 days = 5 } }
					28 = { character_event = { id = ancrel.66 days = 5 } }
				}
			}
		}
	}
}

# Prisoner 4 (Liege invisible)
character_event = {
	id = ancrel.105
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		if = {
			limit = { 
				any_courtier = {
					prisoner = yes
					host = { character = ROOT }
					is_adult = yes
					NOT = { character = FROM }
				}
			}
			random_courtier = {
				limit = { 
					prisoner = yes 
					host = { character = ROOT }
					is_adult = yes
					NOT = { character = FROM }
				}
				character_event = { id = ancrel.29 days = 5 }
			}
		}
		if = {
			limit = {
				NOT = { 
					any_courtier = {
						prisoner = yes
						host = { character = ROOT }
						is_adult = yes
						NOT = { character = FROM }
					}
				}
			}
			if = {
				limit = {
					NOR = {
						has_character_modifier = sidhe_offerings_bad
					}
				}
				random_list = {
					20 = { character_event = { id = ancrel.60 days = 5 } }
					20 = { character_event = { id = ancrel.61 days = 5 } }
					20 = { character_event = { id = ancrel.64 days = 5 } }
					20 = { character_event = { id = ancrel.65 days = 5 } }
					20 = { character_event = { id = ancrel.66 days = 5 } }
				}
			}
			if = {
				limit = {
					has_character_modifier = sidhe_offerings_bad
				}
				random_list = {
					15 = { character_event = { id = ancrel.60 days = 5 } }
					15 = { character_event = { id = ancrel.61 days = 5 } }
					15 = { character_event = { id = ancrel.64 days = 5 } }
					27 = { character_event = { id = ancrel.65 days = 5 } }
					28 = { character_event = { id = ancrel.66 days = 5 } }
				}
			}
		}
	}
}

# Divination Glory (Liege)
character_event = {
	id = ancrel.60
	desc = EVTDESC_ancrel_0060
	picture = GFX_evt_ollamh_laws
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0060
		prestige = 200
		piety = 50
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.67 }
			}
			character_event = { id = ancrel.62 days = 1 }
		}
		set_character_flag = divination
		any_vassal = {
			limit = { has_character_flag = attending_divination }
			opinion = {
				modifier = opinion_held_divination
				who = ROOT
			}
		}
	}
}

# Divination Victory (Liege)
character_event = {
	id = ancrel.61
	desc = EVTDESC_ancrel_0061
	picture = GFX_evt_ollamh_laws
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0061
		custom_tooltip = {
			text = divination_victory
			hidden_tooltip = {
				add_character_modifier = {
					name = promised_victory
					duration = 1095
				}
				any_vassal = {
					limit = { has_character_flag = attending_divination }
					character_event = { id = ancrel.68 }
				}
				character_event = { id = ancrel.62 days = 1 }
			}
			set_character_flag = divination
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				opinion = {
					modifier = opinion_held_divination
					who = ROOT
				}
			}
		}
	}
}

# Divination Ends (Liege)
character_event = {
	id = ancrel.62
	desc = EVTDESC_ancrel_0062
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0062
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.63 }
			}
		}
		add_character_modifier = {
			name = held_divination_timer
			duration = 2550
			hidden = yes
		}
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			clr_character_flag = holding_divination
			clr_character_flag = divination
		}
	}
}

# Divination Ends (Vassal)
character_event = {
	id = ancrel.63
	desc = EVTDESC_ancrel_0063
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0062
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			clr_character_flag = attending_divination
			clr_character_flag = divination_vassal
		}
	}
}

# Divination Wealth (Liege)
character_event = {
	id = ancrel.64
	desc = EVTDESC_ancrel_0064
	picture = GFX_evt_ollamh_laws
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0064
		custom_tooltip = {
			text = divination_wealth
			hidden_tooltip = {
				add_character_modifier = {
					name = promised_riches
					duration = 1095
				}
				any_vassal = {
					limit = { has_character_flag = attending_divination }
					character_event = { id = ancrel.69 }
				}
				character_event = { id = ancrel.62 days = 1 }
			}
			set_character_flag = divination
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				opinion = {
					modifier = opinion_held_divination
					who = ROOT
				}
			}
		}
	}
}

# Divination Loss (Liege)
character_event = {
	id = ancrel.65
	desc = EVTDESC_ancrel_0065
	picture = GFX_evt_ollamh_laws
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0065		
		custom_tooltip = {
			text = divination_bad
		prestige = -200
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
					character_event = { id = ancrel.70 }
			}
				character_event = { id = ancrel.62 days = 1 }
		}
		set_character_flag = divination
		any_vassal = {
				limit = { 
					has_character_flag = attending_divination
					NOT = { trait = cynical }
				}
			opinion = {
					modifier = opinion_held_bad_divination
				who = ROOT
			}
		}
	}
	}
}

# Divination Anger (Liege)
character_event = {
	id = ancrel.66
	desc = EVTDESC_ancrel_0066
	picture = GFX_evt_ollamh_laws
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0066
		custom_tooltip = {
			text = divination_bad
		piety = -50
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
					character_event = { id = ancrel.71 }
			}
				character_event = { id = ancrel.62 days = 1 }
		}
		set_character_flag = divination
		any_vassal = {
				limit = { 
					has_character_flag = attending_divination
					NOT = { trait = cynical }
				}
			opinion = {
					modifier = opinion_held_bad_divination
				who = ROOT
			}
		}
	}
	}
}

# Divination Glory (Vassal)
character_event = {
	id = ancrel.67
	desc = EVTDESC_ancrel_0067
	picture = GFX_evt_ollamh_laws
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0067
		set_character_flag = divination_vassal
	}
}

# Divination Victory (Vassal)
character_event = {
	id = ancrel.68
	desc = EVTDESC_ancrel_0068
	picture = GFX_evt_ollamh_laws
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0068
		set_character_flag = divination_vassal
	}
}

# Divination Wealth (Vassal)
character_event = {
	id = ancrel.69
	desc = EVTDESC_ancrel_0069
	picture = GFX_evt_ollamh_laws
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0069
		set_character_flag = divination_vassal
	}
}

# Divination Loss (Vassal)
character_event = {
	id = ancrel.70
	desc = EVTDESC_ancrel_0070
	picture = GFX_evt_ollamh_laws
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0070
		set_character_flag = divination_vassal
	}
}

# Divination Anger (Vassal)
character_event = {
	id = ancrel.71
	desc = EVTDESC_ancrel_0071
	picture = GFX_evt_ollamh_laws
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0071
		set_character_flag = divination_vassal
	}
}

# Sacrifice Generic 2 (Liege)
character_event = {
	id = ancrel.100
	desc = EVTDESC_ancrel_0100
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0030
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.42 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0030
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Generic 3 (Liege)
character_event = {
	id = ancrel.101
	desc = EVTDESC_ancrel_0101
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0030
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.42 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0030
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

# Sacrifice Generic 4 (Liege)
character_event = {
	id = ancrel.102
	desc = EVTDESC_ancrel_0102
	picture = GFX_evt_druidic_sacrifice
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0030
		FROM = {
			death = {
				death_reason = death_sacrificed
				killer = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_divination }
				character_event = { id = ancrel.42 }
			}
		}
		if = {
			limit = {
				FROM = {
					controls_religion = yes
					NOT = { religion = celtic_pagan_reformed }
				}
			}
			prestige = 250
			piety = 100
			religion_authority = { modifier = sacrificed_head_good years = 20 }
			FROM = { religion_authority = { modifier = sacrificed_head_bad years = 20 } }
			break = yes
		}
		prestige = 25
		piety = 15
	}
	option = {
		name = EVTOPTB_ancrel_0030
		FROM = { character_event = { id = ancrel.57 tooltip = EVTTOOLTIP_ancrel_0057 } }
		piety = -25
	}
}

### CELTIC FLAVOUR EVENTS
# Written by Patrick Marchand

# Meeting a Bard
character_event = {
	id = ancrel.150
	desc = EVTDESC_ancrel_0150
	picture = GFX_evt_thebard
	border = GFX_event_normal_frame_religion
	
	ai = no
	only_rulers = yes
	religion_group = pagan_group
	war = no
	min_age = 16
	is_triggered_only = yes
	
	trigger = {
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		is_landed = yes
		NOT = { is_inaccessible_trigger = yes }
	}
	
	weight_multiplier = {		
		days = 1
		modifier = {
			factor = 2
			trait = zealous
		}
		modifier = {
			factor = 0.5
			trait = cynical
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
		modifier = {
			factor = 2
			trait = mystic
		}
		modifier = {
			factor = 2
			trait = ambitious
		}
		modifier = {
			factor = 0.75
			trait = content
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_0150
		piety = 25

		random_list = {
			10 = {
				change_learning = 1
			}
			90 = {}
		}
	}
	
	option = {
		name = EVTOPTB_ancrel_0150
		trigger = {
			trait = poet
		}
		tooltip_info = poet
		custom_tooltip = {
			text = sing_poetry
			piety = 25
			prestige = 25
			random_list = {
				50 = {
					change_learning = 2
				}
				50 = {}
			}
		}
	}
}

# The Afanc
character_event = {
	id = ancrel.151
	desc = EVTDESC_ancrel_0151
	picture = GFX_evt_lakeside
	border = GFX_event_normal_frame_religion
	
	ai = no
	religion_group = pagan_group
	war = no
	min_age = 16
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_game_rule = {
				name = supernatural_events
				value = off
			}
		}
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		NOT = { is_inaccessible_trigger = yes }
	}
	
	weight_multiplier = {
		days = 1

		modifier = {
			factor = 2.5
			trait = zealous
		}
		modifier = {
			factor = 0.5
			trait = cynical
		}
		modifier = {
			factor = 3.3
			trait = paranoid
		}
		modifier = {
			factor = 1.66
			trait = brave
		}
		modifier = {
			factor = 2
			trait = proud
		}
		modifier = {
			factor = 0.45
			trait = content
		}
		modifier = {
			factor = 2
			trait = ill
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_0151
		piety = 20
		prestige = 20
		random_list = {
			20 = {
				add_trait = brave
			}
			20 = {
				add_trait = wounded
			}
			5 = {
				add_maimed_trait_effect = yes
			}
			5 = {
				death = {
					death_reason = death_accident
				}
			}
			50 = { prestige = 20 }
		}
	}
	option = {
		name = EVTOPTB_ancrel_0151
		piety = 20
		prestige = -25
		remove_trait = brave
	}
}

# The banshee
character_event = {
	id = ancrel.1252
	desc = EVTDESC_ancrel_1252
	picture = GFX_evt_banshee
	border = GFX_event_normal_frame_religion
	
	ai = no
	only_rulers = yes
	religion_group = pagan_group
	war = no
	min_age = 16
	is_triggered_only = yes
	
	trigger = {
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		is_landed = yes
		NOT = { is_inaccessible_trigger = yes }
	}
	
	weight_multiplier = {
		days = 1

		modifier = {
			factor = 2
			trait = zealous
		}
		modifier = {
			factor = 0.5
			trait = cynical
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
		modifier = {
			factor = 2
			trait = brave
		}
		modifier = {
			factor = 2
			trait = humble
		}
		modifier = {
			factor = 0.75
			trait = content
		}
		modifier = {
			factor = 2.5
			trait = wounded
		}
		modifier = {
			factor = 2.5
			trait = ill
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_1252
		trigger = { NOT = { trait = cynical } }
		piety = 75
		random_list = {
			10 = {
				add_trait = depressed
			}
			10 = {
				add_trait = stressed
			}
			10 = {
				modifier = {
					factor = 0
					trait = zealous
				}
				add_trait = zealous
			}
			70 = {}
		}
		hidden_tooltip = {
			health = -1
		}
	}
	option = {
		name = EVTOPTB_ancrel_1252
		trigger = { NOT = { trait = zealous }}
		prestige = 50
		random_list = {
			20 = {
				modifier = {
					factor = 0
					trait = cynical
				}
				add_trait = cynical
			}
			80 = {}
		}
		hidden_tooltip = {
			health = -1
		}
	}
}


# Bran's Voyage
character_event = {
	id = ancrel.1253
	desc = EVTDESC_ancrel_1253
	picture = GFX_evt_boatcoast
	border = GFX_event_normal_frame_religion
	
	ai = no
	only_rulers = yes
	religion_group = pagan_group
	war = no
	min_age = 16
	is_triggered_only = yes
	
	trigger = {
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		is_landed = yes
		location = { 
			region = custom_ireland
			port = yes
		}
		NOT = { is_inaccessible_trigger = yes }
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 2
			trait = zealous
		}
		modifier = {
			factor = 0.5
			trait = cynical
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
		modifier = {
			factor = 2
			trait = mystic
		}
		modifier = {
			factor = 2
			trait = ambitious
		}
		modifier = {
			factor = 0.75
			trait = content
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_1253
		trigger = { NOT = {trait = cynical } }
		piety = 20
		random_list = {
			10 = {
				modifier = {
					factor = 0
					trait = zealous
				}
				add_trait = zealous
			}
			90 = {}
		}
	}
	
	option = {
		name = EVTOPTB_ancrel_1253
		trigger = { NOT = {trait = zealous}}
		prestige = 25
		random_list = {
			10 = {
				modifier = {
					factor = 0
					trait = cynical
				}
				add_trait = cynical
			}
			90 = {}
		}
	}
}

#######################################
#
# - Journey to St Kilda
#
#######################################

# Written by Jacob Hodge

#Character Sick, Rumor of Celts on St Kilda

character_event = {
	id = ancrel.208
	desc = EVTDESC_ancrel_0208
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_religion

	ai = no
	only_rulers = yes
	culture_group = celtic
	min_age = 16
	prisoner = no
	has_dlc = "The Old Gods"
	is_sick = yes

	trigger = {
		NOT = {
			has_game_rule = {
				name = supernatural_events
				value = off
			}
		}
		OR = {
			ai = no
			has_game_rule = {
				name = supernatural_events
				value = unrestricted
			}
		}
		OR = {
			has_landed_title = c_innse_gall  
			any_vassal = { has_landed_title = c_innse_gall }
		}
		#is_ill = yes
		is_pagan_religion = no
		NOT = { is_inaccessible_trigger = yes }
	}

	mean_time_to_happen = {
		months = 40
		modifier = {
			factor = 2.0
			trait = cynical
		}
		modifier = {
			factor = 2.0
			trait = zealous
		}
		modifier = {
			factor = 0.7
			trait = sympathy_pagans
		}
	}

	option = {
		name = EVTOPTA_ancrel_0208
		ai_chance = {
			factor = 50
		}
		custom_tooltip = {
			text = travel_island
			character_event = { id = ancrel.209 days=5}
		}
	}
	option = {
		name = EVTOPTB_ancrel_0208
		ai_chance = {
			factor = 50
		}
		custom_tooltip = {
			text = ignore_rumors
		}
	}	
}

# Arrival at St Kilda
character_event = {
	id = ancrel.209
	desc = EVTDESC_ancrel_0209
	picture = GFX_evt_merchant_ship_at_sea_republic

	min_age = 16
	prisoner = no

	is_triggered_only = yes

	option = {	 #Accept the healing/conversion
		name = EVTOPTA_ancrel_0209
		ai_chance = {
			factor = 50
		}
		hidden_tooltip = {
			character_event = { id = ancrel.210 days=2}
		}
	}
	option = {
		name = EVTOPTB_ancrel_0209
		ai_chance = {
			factor = 50
		}
		if = {
			limit = {
				NOT = {trait = zealous}
				NOT = {trait = cynical}
			}
			add_trait = zealous 
		}
	}
}

# Accept their faith
character_event = {
	id = ancrel.210
	desc = EVTDESC_ancrel_0210
	picture = GFX_evt_Pagan_dolmen

	min_age = 16
	prisoner = no

	is_triggered_only = yes

	option = { #Character healed/converted
		name = EVTOPTA_ancrel_0210

		custom_tooltip = {
			text = MIRACLE_STKILDA
			cure_illness = yes

			if = {
				limit = { religion_group = christian }
				add_trait = sympathy_christendom
			}
			if = {
				limit = { religion_group = muslim }
				add_trait = sympathy_islam
			}
			if = {
				limit = { religion_group = zoroastrian_group }
				add_trait = sympathy_zoroastrianism
			}
			if = {
				limit = { religion_group = indian_group }
				add_trait = sympathy_indian
			}
			if = {
				limit = { religion_group = jewish_group }
				add_trait = sympathy_judaism
			}
		
			religion = celtic_pagan
			add_character_modifier = { name = recently_converted duration = 730}
		}
	}
}

########################################
#
# - First Celtic Emperor
#
#######################################

# Y Mab Darogan
narrative_event = {
	id = ancrel.256
	title = "EVTNAME_ancrel_0256"
	desc = "EVTDESC_ancrel_0256"
	picture = GFX_evt_y_mab_darogan
	
	only_rulers = yes
	religion_group = pagan_group
	culture_group = celtic
	major = yes	
	hide_from = yes
	show_ROOT = yes

	trigger = {
		NOR = {
			has_character_flag = first_brythonic_emperor
			trait = uncrowned
		}
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		OR = {
			culture = welsh
			culture = cornish
			culture = breton
		}
		OR = {
			has_landed_title = e_britannia
			AND = {
				completely_controls_region = custom_england
				completely_controls_region = custom_wales
				completely_controls_region = custom_cornwall
			}
		}
		NOT = {
			any_demesne_title = {
				any_previous_holder = { #Will only fire for first emperor
					OR = {
						has_character_flag = first_brythonic_emperor
						has_nickname = nick_pendragon						
					}
				}
			}
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = EVTOPTA_ancrel_0256 #Ok
		trigger = { character = ROOT }					
		give_nickname = nick_pendragon
		set_character_flag = first_brythonic_emperor
		prestige = 200
		piety = 100
	}
	option = {
		trigger = { NOT = { character = ROOT } }
		name = {
			text = EVTOPTA_ancrel_0256 #Praise!
			trigger = { 
				NOT = { character = ROOT }				
				OR = { 
					religion = celtic_pagan
					religion = celtic_pagan_reformed
				}
			}
		}
		
		name = {
			text = EVTOPTB200 #No concern of ours
			trigger = { 
				NOT = { character = ROOT }
				NOR = { 
					religion = celtic_pagan
					religion = celtic_pagan_reformed
				}
				NOT = {
					culture_group = west_germanic
				}
			}
		}
		
		name = {
			text = EVTOPTE200 #Terrible News
			trigger = { 
				NOT = { character = ROOT }
				NOR = { 
					religion = celtic_pagan
					religion = celtic_pagan_reformed
				}
				culture_group = west_germanic				
			}
		}
	}	
}

# Spirits are angry
narrative_event = {
	id = ancrel.247
	title = "EVTNAME_ancrel_0247"
	desc = EVTDESC_ancrel_0247
	picture = GFX_evt_Pagan_dolmen
	title = EVTTITLE_ancrel_0247
	
	ai = no
	only_playable = yes
	min_age = 20
	max_age = 100
	capable_only = yes
	prisoner = no
	war = no
	religion_group = pagan_group
	
	trigger = {
		in_command = no
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		primary_title = { temporary = no }
		NOT = { is_inaccessible_trigger = yes }
		NOR = {
			has_character_modifier = angry_sidhe
			has_character_flag = denied_sidhe
			has_character_flag = calming_sidhe_failed
		}
	}
	
	mean_time_to_happen = {
		months = 10000
		
		modifier = {
			factor = 0.8
			trait = cynical
		}
		modifier = {
			factor = 1.2
			trait = zealous
		}
		modifier = {
			factor = 0.8
			trait = greedy
		}
		modifier = {
			factor = 1.2
			trait = charitable
		}
		modifier = {
			factor = 0.8
			trait = cruel
		}
		modifier = {
			factor = 1.2
			trait = kind
		}
		modifier = {
			factor = 0.8
			trait = proud
		}
		modifier = {
			factor = 1.2
			trait = humble
		}
		modifier = {
			factor = 0.8
			trait = slothful
		}
		modifier = {
			factor = 1.2
			trait = diligent
		}
	}
	
	immediate = {
		add_character_modifier = {
			name = angry_sidhe
			duration = -1
		}
	}
	
	option = { #They must be appeased!
		name = EVTOPTA_ancrel_0247
		trigger = { NOT = { trait = cynical } }
		character_event = { id = ancrel.248 }
	}
	
	option = { #Nonsense!
		name = EVTOPTB_ancrel_0247
		trigger = { NOT = { trait = zealous } }
		remove_character_modifier = angry_sidhe
		set_character_flag = denied_sidhe
	}
}

# Spirits are calmed
character_event = {
	id = ancrel.254
	desc = EVTDESC_ancrel_0254
	picture = GFX_evt_Pagan_dolmen
	
	notification = yes
	
	is_triggered_only = yes
	
	immediate = {
		remove_character_modifier = angry_sidhe
		clr_character_flag = calming_sidhe_failed
	}
	
	option = {
		name = EVTOPTA_ancrel_0254		
	}
}

##################################################################
# Offerings
##################################################################

#Offerings start
character_event = {
	id = ancrel.248
	desc = EVTDESC_ancrel_0248
	picture = GFX_evt_Pagan_dolmen
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0248
		scaled_wealth = -0.25
		hidden_tooltip = {
			character_event = { id = ancrel.253 days = 5 }
		}
	}
	option = {
		name = EVTOPTB_ancrel_0248
		trigger = {
			any_realm_character = {
				vassal_of = ROOT
				has_minor_title = title_court_bard
			}
		}
		hidden_tooltip = {
			character_event = { id = ancrel.249 days = 5 }
		}
	}
	
}

#Offerings middle (Poem)
character_event = {
	id = ancrel.249
	desc = EVTDESC_ancrel_0249
	picture = GFX_evt_Pagan_dolmen
	
	is_triggered_only = yes
	
	immediate = {
		random_realm_character = {
			limit = {
				vassal_of = ROOT
				has_minor_title = title_court_bard
			}
			save_event_target_as = my_bard
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_0249
		random_list = {
			50 = {
				modifier = {
					factor = 0.6
					event_target:my_bard = {
						OR = {
							learning = 16
							trait = poet
						}
					}
				}
				modifier = {
					factor = 1.4
					event_target:my_bard = { NOT = { learning = 8 } }
				}
				character_event = { id = ancrel.250 days = 2 tooltip = "EVTTOOLTIP_ancrel_0250" } #bad
			}
			50 = {
				modifier = {
					factor = 1.4
					event_target:my_bard = {
						OR = {
							learning = 16
							trait = poet
						}
					}
				}
				modifier = {
					factor = 0.6
					event_target:my_bard = { NOT = { learning = 8 } }
				}
				character_event = { id = ancrel.252 days = 2 tooltip = "EVTTOOLTIP_ancrel_0252" } #good
			}
		}
	}
	
}

#Offerings middle (Gold)
character_event = {
	id = ancrel.253
	desc = EVTDESC_ancrel_0253
	picture = GFX_evt_Pagan_dolmen
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0253
		hidden_tooltip = {
			random_list = {
				50 = { character_event = { id = ancrel.250 days = 2 } } #bad
				50 = { character_event = { id = ancrel.252 days = 2 } } #good
			}
		}
	}
	
}

#Offerings bad
character_event = {
	id = ancrel.250
	desc = EVTDESC_ancrel_0250
	picture = GFX_evt_Pagan_dolmen
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0250
		prestige = -25
		piety = -15
		clr_character_flag = sidhe_offerings_giving
		add_character_modifier = {
			name = sidhe_offerings_bad
			duration = 730
		}
		set_character_flag = calming_sidhe_failed
	}
	
}

#Offerings good
character_event = {
	id = ancrel.252
	desc = EVTDESC_ancrel_0252
	picture = GFX_evt_Pagan_dolmen
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0252
		prestige = 25
		piety = 15
		character_event = { id = ancrel.254 }
	}
	
}

### DRUIDIC CASTE EVENTS
# Written by Patrick Marchand

# Druidic priest get the druid trait as well
character_event = {
	id = ancrel.260
	
	hide_window = yes
	is_triggered_only = yes
	
	only_rulers = yes
	religion_group = pagan_group
	
	trigger = {
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		is_theocracy = yes
		NOR = {
			trait = druid
			trait = bad_druid
		}
	}	
	
	immediate = {
		add_trait = druid	
	}
}

# Druid can become known as wicked, if he can't hide his sins
character_event = {
	id = ancrel.261
	desc = EVTDESC_ancrel_0261
	picture = GFX_evt_scandal
	
	religion_group = pagan_group
	capable_only = yes
	prisoner = no
	has_dlc = "Sons of Abraham"
	
	trigger = {
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		trait = druid
		NOR = {
			trait = bad_druid
			intrigue = 3
			diplomacy = 5
		}
		OR = {
			trait = deceitful 
			trait = cruel
			trait = arbitrary 
			trait = envious
			trait = craven
			trait = slothful
			trait = paranoid
		}
	}

	mean_time_to_happen = {
		months = 24
		modifier = {
			factor = 0.5
			trait = ambitious
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_0261
		add_trait = bad_druid
		remove_trait = druid
		if = {
			limit = {
				is_ruler = yes
				has_nickname = no
			}
			give_nickname = nick_the_wicked
		}
	}
}

# Remove druidic traits on conversion
# Note: using religious = yes is not suitable as it also removes the trait on reformation
character_event = {
	id = ancrel.258
	
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		NOR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		OR = {
			trait = head1
			trait = head2
			trait = head3
			trait = head4
			trait = head5
			trait = druid
			trait = bad_druid
			trait = fian
			trait = changeling
			trait = learning_druidic_arts
			trait = wolf
		}
	}
	
	immediate = {	
		remove_trait = head1
		remove_trait = head2
		remove_trait = head3
		remove_trait = head4
		remove_trait = head5		
		remove_trait = druid
		remove_trait = bad_druid
		remove_trait = fian
		remove_trait = changeling
		remove_trait = learning_druidic_arts
		remove_trait = wolf
	}
}

##### Coming of age ceremony - father's event
character_event = {
	id = ancrel.183
	title = EVTNAME_ancrel_0183
	desc = EVTDESC_ancrel_0183
	picture = GFX_evt_guardian
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0183 # Send him on the path of the warrior
		
		custom_tooltip = {
			text = path_of_the_warriors
		
			FROM = { 
				prestige = 20 
				change_martial = 1 
				change_learning = -1 
				set_character_flag = celtic_warrior_training
				hidden_tooltip = {
					#Fire tombola event in the future
					character_event = {
						id = ancrel.187
						days = 730
						random = 200
					}
				}
			}
		}
	}

	option = {
		name = EVTOPTB_ancrel_0183 # Send him to the druids
		trigger = {
			OR = {
				trait = zealous
				trait = diligent
				trait = patient
				trait = ambitious
				trait = scholar
				trait = poet
				trait = mystic
				trait = druid
				trait = content
			}
			OR = {
				FROM = { NOT = { is_ruler = yes } }
				FROM = { is_theocracy = yes }
			}
		}
		custom_tooltip = {
			text = path_of_the_druids
			FROM = { piety = 50 }
			FROM = { change_learning = 1 }
			FROM = { change_martial = -1 }
			hidden_tooltip = {
				FROM = {
					narrative_event = {
						id = ancrel.185
						days = 3
					}
					#Fire tombola event in the future
					character_event = {
						id = ancrel.186
						days = 730
						random = 200
					}
				}
			}
		}
	}
}

##### Coming of age ceremony - child's event
character_event = {
	id = ancrel.184
	
	is_triggered_only = yes
	hide_window = yes
	
	religion_group = pagan_group
	prisoner = no

	trigger = {
		OR = {		
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}		
		OR = {		
			father_even_if_dead = { is_alive = yes }
			mother_even_if_dead = { is_alive = yes }
		}
		NOT = { trait = incapable }
	}
	
	immediate = {
		if = {
			limit = {
				father = {
					is_alive = yes
					any_child = {
						character = ROOT
						mother_even_if_dead = {
							OR = {
								is_alive = no
								NOT = { higher_real_tier_than = PREVPREV }
							}
						}
					}
				}
			}
			father = { character_event = { id = ancrel.183 days = 3 } }
			break = yes
		}
		if = {
			limit = {
				mother = {
					is_alive = yes
					any_child = {
						character = ROOT
						father_even_if_dead = {
							OR = {
								is_alive = no
								NOT = { higher_real_tier_than = PREVPREV }
							}
						}
					}
				}
			}
			mother = { character_event = { id = ancrel.183 days = 3 } }
			break = yes
		}
	}
}

# Training about to begin
narrative_event = {
	id = ancrel.185
	title = "EVTNAME_ancrel_0185"
	desc = "EVTDESC_ancrel_0185"
	picture = GFX_evt_monk
	
	is_triggered_only = yes

	option = { # Training starts
		name = "EVTOPTA_ancrel_0185"	
		add_trait = learning_druidic_arts
		set_character_flag = druidic_training
		clr_character_flag = wants_druidic_training
		opinion = {
			who = FROM
			modifier = sent_druidic_training
			years = 100
		}
	}
}

# Druidic training tombola event
character_event = {
	id = ancrel.186
	
	is_triggered_only = yes
	hide_window = yes

	immediate = {
		hidden_tooltip = {
			random_list = {
				15 = { #scarred but learned
					modifier = {
						factor = 0
						trait = scarred
					}
					modifier = {
						factor = 1.5
						trait = brave
					}
					modifier = {
						factor = 0.8
						trait = craven
					}
					character_event = { id = ancrel.188 }
				}
				7 = { #maimed
					modifier = {
						factor = 0
						NOT = { can_be_maimed_trigger = yes }
					}
					character_event = { id = ancrel.190 }
				}
				15 = { #learning education upgrade
					modifier = {
						factor = 2
						trait = genius
					}
					modifier = {
						factor = 1.5
						trait = diligent
					}
					modifier = {
						factor = 1.5
						OR = {
							trait = quick
							trait = shrewd
						}
					}
					modifier = {
						factor = 0.66
						is_dumb_trigger = yes
					}
					modifier = {
						factor = 0
						trait = mastermind_theologian
					}
					modifier = {
						factor = 0
						NOR = {
							trait = detached_priest
							trait = martial_cleric
							trait = scholarly_theologian
						}
					}
					character_event = { id = ancrel.192 }
				}
				7 = { #lunatic
					modifier = {
						factor = 0
						trait = lunatic
					}
					character_event = { id = ancrel.194 }
				}
				15 = { #changeling child
					modifier = {
						factor = 1.33
						trait = lustful
					}
					character_event = { id = ancrel.196 }
				}
				15 = { #zealot
					modifier = {
						factor = 0
						trait = zealous
					}
					modifier = {
						factor = 0.5
						trait = cynical
					}
					character_event = { id = ancrel.198 }
				}
				15 = { #patience
					modifier = {
						factor = 1.33
						trait = brave
					}
					modifier = {
						factor = 1.33
						trait = diligent
					}
					modifier = {
						factor = 1.33
						OR = {
							trait = quick
							trait = shrewd
						}
					}
					modifier = {
						factor = 2
						trait = genius
					}
					modifier = {
						factor = 0.66
						trait = slothful
					}
					modifier = {
						factor = 0.66
						is_dumb_trigger = yes
					}
					modifier = {
						factor = 0
						trait = patient
					}
					character_event = { id = ancrel.200 }
				}
				3 = { #death
					modifier = {
						factor = 1.33
						trait = brave
					}
					modifier = {
						factor = 1.33
						trait = wroth
					}
					modifier = {
						factor = 1.33
						trait = head3
					}
					modifier = {
						factor = 1.33
						trait = head5
					}
					modifier = {
						factor = 0.8
						trait = craven
					}
					modifier = {
						factor = 1.33
						trait = drunkard
					}
					modifier = {
						factor = 1.33
						trait = has_tuberculosis
					}
					modifier = {
						factor = 1.33
						trait = has_typhoid_fever
					}
					modifier = {
						factor = 1.33
						trait = has_typhus
					}
					modifier = {
						factor = 1.33
						trait = has_bubonic_plague
					}
					modifier = {
						factor = 1.33
						trait = has_measles
					}		
					modifier = {
						factor = 1.33
						trait = has_small_pox
					}
					modifier = {
						factor = 1.33
						trait = wounded
					}
					modifier = {
						factor = 2
						trait = infirm
					}
					modifier = {
						factor = 2
						trait = incapable
					}
					character_event = { id = ancrel.202 }
				}
				15 = { #gifts
					modifier = {
						factor = 1.33
						trait = greedy
					}
					modifier = {
						factor = 1.33
						stewardship = 10
					}
					character_event = { id = ancrel.204 }
				}
			}
		}
	}
}

##################################################################
#
# Druidic training - fired via coming of age event
#
# There can be a variety of results
#
##################################################################

# Child returns scarred but learned (Child)
character_event = {
	id = ancrel.188
	
	hide_window = yes
	has_character_flag = druidic_training
	has_dlc = "The Old Gods"
	
	trigger = {
		trait = learning_druidic_arts
		NOT = { trait = scarred }
		had_character_flag = { flag = druidic_training days = 365 }
	}
	
	is_triggered_only = yes
	
	immediate = {
		add_trait = scarred
		remove_trait = learning_druidic_arts
		random_list = {
			10 = { add_trait = scholar }
			10 = { add_trait = mystic }
			40 = { add_trait = poet }
			40 = { add_trait = druid }
		}
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = sent_druidic_training } }
			character_event = { id = ancrel.189 }
		}
	}
}

# Child returns scarred but learned in the ways of the druids
character_event = {
	id = ancrel.189
	desc = EVTDESC_ancrel_0189
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0189
		FROM = {
			tooltip = { add_trait = scarred }
			custom_tooltip = { text = return_from_druidic_training }
		}
	}
}

# Child returns maimed (Child)
character_event = {
	id = ancrel.190
	hide_window = yes
	has_character_flag = druidic_training
	has_dlc = "The Old Gods"
	
	trigger = {
		trait = learning_druidic_arts
		can_be_maimed_trigger = yes
		had_character_flag = { flag = druidic_training days = 365 }
	}
	
	is_triggered_only = yes
				
	immediate = {
		add_maimed_trait_effect = yes
		remove_trait = learning_druidic_arts
		random_list = {
			10 = { add_trait = scholar }
			10 = { add_trait = mystic }
			40 = { add_trait = poet }
			40 = { add_trait = druid }
		}
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = sent_druidic_training } }
			character_event = { id = ancrel.191 }
		}
	}
}

# Child returns maimed
character_event = {
	id = ancrel.191
	desc = EVTDESC_ancrel_0191
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0191
		FROM = {
			tooltip = { add_maimed_trait_effect = yes }
			custom_tooltip = { text = return_from_druidic_training }
		}
	}
}

# Child returns as excellent theologian (Child)
character_event = {
	id = ancrel.192
	hide_window = yes
	has_character_flag = druidic_training
	has_dlc = "The Old Gods"
	
	trigger = {
		trait = learning_druidic_arts
		NOT = { trait = mastermind_theologian }
		OR = {
			trait = detached_priest
			trait = martial_cleric
			trait = scholarly_theologian
		}
		had_character_flag = { flag = druidic_training days = 365 }
	}
	
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { trait = scholarly_theologian }
			add_trait = mastermind_theologian
		}
		if = {
			limit = {
				OR = {
					trait = detached_priest
					trait = martial_cleric
				}
			}
			hidden_tooltip = { 
				remove_trait = detached_priest
				remove_trait = martial_cleric
			}
			add_trait = scholarly_theologian
		}
		remove_trait = learning_druidic_arts
		random_list = {
			10 = { add_trait = scholar }
			10 = { add_trait = mystic }
			40 = { add_trait = poet }
			40 = { add_trait = druid }
		}
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = sent_druidic_training } }
			character_event = { id = ancrel.193 }
		}
	}
}

# Child returns as excellent theologian
character_event = {
	id = ancrel.193
	desc = EVTDESC_ancrel_0193
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0193
		FROM = {
			custom_tooltip = { 
				text = return_from_druidic_training
			}
		}
	}
}

# Child is touched by the gods (Child)
character_event = {
	id = ancrel.194
	
	hide_window = yes
	has_character_flag = druidic_training
	
	trigger = {		
		has_dlc = "The Old Gods"
		trait = learning_druidic_arts
		NOT = { trait = lunatic }
		had_character_flag = { flag = druidic_training days = 365 }
	}
	
	is_triggered_only = yes
		
	immediate = {
		add_trait = lunatic
		remove_trait = learning_druidic_arts
		random_list = {
			10 = { add_trait = scholar }
			10 = { add_trait = mystic }
			40 = { add_trait = poet }
			40 = { add_trait = druid }
		}
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = sent_druidic_training } }
			character_event = { id = ancrel.195 }
		}
	}
}

# Child is touched by the gods
character_event = {
	id = ancrel.195
	desc = EVTDESC_ancrel_0195
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0195
		FROM = {
			tooltip = { add_trait = lunatic }
			custom_tooltip = { text = return_from_druidic_training }
		}
	}
}

# Child returns home with strange child (Child)
character_event = {
	id = ancrel.196
	
	hide_window = yes
	has_character_flag = druidic_training
	has_dlc = "The Old Gods"
	
	trigger = {
		trait = learning_druidic_arts
		had_character_flag = { flag = druidic_training days = 365 }
	}
	
	is_triggered_only = yes
	
	immediate = {
		create_character = {
			random_traits = yes
			
			age = 1
			culture = ROOT
			religion = ROOT
		}
		new_character = {
			add_trait = bastard
			if = { 
				limit = { ROOT = { is_female = no } }
				set_father = ROOT
			}
			if = { 
				limit = { ROOT = { is_female = yes } }
				set_mother = ROOT
			}
			set_character_flag = changeling_child
		}
		remove_trait = learning_druidic_arts
		random_list = {
			10 = { add_trait = scholar }
			10 = { add_trait = mystic }
			40 = { add_trait = poet }
			40 = { add_trait = druid }
		}
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = sent_druidic_training } }
			character_event = { id = ancrel.197 }
		}
	}
}

# Child returns home with strange child
character_event = {
	id = ancrel.197
	desc = EVTDESC_ancrel_0197
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0197
		FROM = { 
			custom_tooltip = { text = return_from_druidic_training }
			random_child = {
				limit = {
					has_character_flag = changeling_child
					NOT = { age = 2 }
				}
				reverse_opinion = { who = ROOT modifier = opinion_grandchild }
				opinion = { who = ROOT modifier = opinion_grandfather }
			}
		}
	}
}

# Child returns home as a zealot (Child)
character_event = {
	id = ancrel.198
	hide_window = yes
	has_character_flag = druidic_training
	has_dlc = "The Old Gods"
	
	trigger = {
		trait = learning_druidic_arts
		NOT = { trait = zealous }
		had_character_flag = { flag = druidic_training days = 365 }
	}
	
	is_triggered_only = yes
	
	immediate = {
		add_trait = zealous
		remove_trait = learning_druidic_arts
		random_list = {
			10 = { add_trait = scholar }
			10 = { add_trait = mystic }
			40 = { add_trait = poet }
			40 = { add_trait = druid }
		}
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = sent_druidic_training } }
			character_event = { id = ancrel.199 }
		}
	}
}

# Child returns home as a zealot
character_event = {
	id = ancrel.199
	desc = EVTDESC_ancrel_0199
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0199
		FROM = {
			tooltip = { add_trait = zealous }
			custom_tooltip = { text = return_from_druidic_training }
		}
	}
}

# Child returns home with the patience of an oak tree (Child)
character_event = {
	id = ancrel.200
	
	hide_window = yes
	has_character_flag = druidic_training
	has_dlc = "The Old Gods"
	
	trigger = {
		trait = learning_druidic_arts
		NOT = { trait = patient }
		had_character_flag = { flag = druidic_training days = 365 }
	}
	
	is_triggered_only = yes

	immediate = {
		add_trait = patient
		remove_trait = learning_druidic_arts
		random_list = {
			10 = { add_trait = scholar }
			10 = { add_trait = mystic }
			40 = { add_trait = poet }
			40 = { add_trait = druid }
		}
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = sent_druidic_training } }
			character_event = { id = ancrel.201 }
		}
	}
}

# Child returns home with the patience of an oak tree
character_event = {
	id = ancrel.201
	desc = EVTDESC_ancrel_0201
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0201
		FROM = {
			tooltip = { add_trait = patient }
			custom_tooltip = { text = return_from_druidic_training }
		}
	}
}

# Child dies in training (Child)
character_event = {
	id = ancrel.202
	
	hide_window = yes
	has_character_flag = druidic_training
	has_dlc = "The Old Gods"
	
	trigger = {
		trait = learning_druidic_arts
		had_character_flag = { flag = druidic_training days = 365 }
	}
	
	is_triggered_only = yes
	
	immediate = {
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = sent_druidic_training } }
			character_event = { id = ancrel.203 }
		}
		death = { death_reason = death_battle }
	}
}

# Child dies in training
character_event = {
	id = ancrel.203
	desc = EVTDESC_ancrel_0203
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0203
		FROM = {
			tooltip = { death = { death_reason = death_battle } }
		}
	}
}

# Child returns with gifts (Child)
character_event = {
	id = ancrel.204
	
	hide_window = yes
	has_character_flag = druidic_training
	has_dlc = "The Old Gods"
	
	trigger = {
		trait = learning_druidic_arts
		had_character_flag = { flag = druidic_training days = 365 }
	}
	
	is_triggered_only = yes

	immediate = {
		wealth = 100
		remove_trait = learning_druidic_arts
		random_list = {
			10 = { add_trait = scholar }
			10 = { add_trait = mystic }
			40 = { add_trait = poet }
			40 = { add_trait = druid }
		}
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = sent_druidic_training } }
			character_event = { id = ancrel.205 }
		}
	}
}

# Child returns with gifts
character_event = {
	id = ancrel.205
	desc = EVTDESC_ancrel_0205
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0205
		FROM = {
			custom_tooltip = { text = return_from_druidic_training }
			hidden_tooltip = { wealth = -100 }
		}
		wealth = 100
	}
}

# Parent dies while child is off learning druidic arts
# called on_death (so succession has not yet resolved, so ping to child needs to be delayed )
character_event = {
	id = ancrel.206
	
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		any_child = {
			is_alive = yes
			trait = learning_druidic_arts
			has_opinion_modifier = { who = ROOT modifier = sent_druidic_training }
		}
	}
	
	immediate = {
		any_child = {
			limit = {
				is_alive = yes
				trait = learning_druidic_arts
				has_opinion_modifier = { who = ROOT modifier = sent_druidic_training }
			}
			character_event = { id = ancrel.207 days = 1 }
		}
	}
}

# Parent dies, Child gets training traits
character_event = {
	id = ancrel.207
	desc = EVTDESC_ancrel_0207
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = OK
		clr_character_flag = wants_druidic_training
		clr_character_flag = druidic_training
		remove_trait = learning_druidic_arts
		random_list = {
			20 = { add_trait = scholar }
			20 = { add_trait = mystic }
			20 = { add_trait = poet }
			40 = { change_learning = 1 }
		}
		if = {
			limit = { is_ruler = yes }
			prestige = 100
			piety = 100
			wealth = 50
		}
	}
}

### Warrior Training - The Wandering Orders

# Warrior training tombola event
character_event = {
	id = ancrel.187
	
	is_triggered_only = yes
	hide_window = yes
	
	immediate = {
		hidden_tooltip = {
			random_list = {
				12 = { #wants to join
					modifier = {
						factor = 2
						trait = ambitious
					}
					modifier = {
						factor = 2
						trait = zealous
					}
					modifier = {
						factor = 2
						trait = brave
					}
					modifier = {
						factor = 1.33
						OR = {
							trait = head1
							trait = head2
							trait = head3
							trait = head4
							trait = head5
						}
					}
					modifier = {
						factor = 1.33
						trait = proud
					}
					modifier = {
						factor = 1.33
						trait = impaler
					}
					modifier = {
						factor = 0.66
						trait = slothful
					}
					modifier = {
						factor = 0.66
						trait = content
					}
					modifier = {
						factor = 0.66
						is_primary_heir = yes
					}
					modifier = {
						factor = 0.5
						trait = craven
					}
					modifier = {
						factor = 0.5
						NOR = {
							trait = misguided_warrior
							trait = tough_soldier
							trait = skilled_tactician
							trait = brilliant_strategist
							trait = martial_cleric
							trait = duelist
							trait = poor_warrior
							trait = trained_warrior
							trait = skilled_warrior
							trait = master_warrior				
						}
					}
					modifier = {
						factor = 0
						NOR = {
							culture = welsh
							culture = cornish
							culture = breton
							culture = irish
							culture = scottish
							culture = pictish
							culture = gallawa
						}
					}
					modifier = {
						factor = 0
						AND = {
							NOT = { has_global_flag = gwydion_founded }
							OR = {
								culture = welsh
								culture = cornish
								culture = breton
							}
						}
					}
					modifier = {
						factor = 0
						AND = {
							NOT = { has_global_flag = fianna_founded }
							OR = {
								culture = irish
								culture = scottish
								culture = pictish
								culture = gallawa
							}
						}
					}
					modifier = {
						factor = 0
						OR = {
							is_landed = yes
							in_command_trigger = yes
							trait = wolf 
							trait = fian
							is_inaccessible_trigger = yes
							has_character_flag = wants_gwydion
							has_character_flag = wants_fianna
							prisoner = yes
						}
					}
					modifier = {
						factor = 0
						NOR = {
							religion = celtic_pagan
							religion = celtic_pagan_reformed
						}
					}
					modifier = {
						factor = 0
						NOR = {
							father = {
								is_alive = yes
								culture_group = celtic
								is_ruler = yes
								is_liege_of = ROOT
								prisoner = no
								NOT = { trait = incapable }
								ROOT = { host = { character = PREVPREV } }
							}
							mother = {
								is_alive = yes
								culture_group = celtic
								is_ruler = yes
								is_liege_of = ROOT
								prisoner = no
								NOT = { trait = incapable }
								ROOT = { host = { character = PREVPREV } }
							}
						}
					}
					character_event = { id = ancrel.119 }
				}
				12 = { #scarred and seasoned
					modifier = {
						factor = 1.33
						trait = brave
					}
					modifier = {
						factor = 0.8
						trait = craven
					}
					modifier = {
						factor = 0
						trait = scarred
					}
					character_event = { id = ancrel.124 }
				}
				6 = { #maimed
					modifier = {
						factor = 0
						NOT = { can_be_maimed_trigger = yes }
					}
					character_event = { id = ancrel.128 }
				}
				12 = { #martial
					modifier = {
						factor = 0
						trait = brilliant_strategist
					}
					modifier = {
						factor = 0
						NOR = {
							trait = misguided_warrior
							trait = tough_soldier
							trait = skilled_tactician
						}
					}
					modifier = {
						factor = 2
						trait = genius
					}
					modifier = {
						factor = 1.33
						trait = diligent
					}
					modifier = {
						factor = 1.33
						OR = {
							trait = quick
							trait = shrewd
						}
					}
					modifier = {
						factor = 0.66
						is_dumb_trigger = yes
					}
					character_event = { id = ancrel.130 }
				}
				6 = { #PTSD
					modifier = {
						factor = 1.33
						trait = kind
					}
					modifier = {
						factor = 1.33
						trait = poet
					}
					modifier = {
						factor = 1.33
						trait = just
					}
					modifier = {
						factor = 0
						trait = depressed
					}
					character_event = { id = ancrel.132 }
				}
				12 = { #wife
					modifier = {
						factor = 1.33
						trait = lustful
					}
					modifier = {
						factor = 0
						is_married = yes
					}
					character_event = { id = ancrel.134 }
				}
				12 = { #zealot
					modifier = {
						factor = 0.5
						trait = cynical
					}
					modifier = {
						factor = 0
						trait = zealous
					}
					character_event = { id = ancrel.136 }
				}
				12 = { #seasoned
					modifier = {
						factor = 1.33
						trait = brave
					}
					modifier = {
						factor = 1.33
						is_strong_trigger = yes
					}
					modifier = {
						factor = 1.33
						OR = {
							trait = quick
							trait = shrewd
						}
					}
					modifier = {
						factor = 1.33
						trait = genius
					}
					modifier = {
						factor = 0.66
						trait = slothful
					}
					modifier = {
						factor = 0.66
						is_dumb_trigger = yes
					}
					character_event = { id = ancrel.138 }
				}
				3 = { #death
					modifier = {
						factor = 1.33
						trait = brave
					}
					modifier = {
						factor = 1.33
						trait = wroth
					}
					modifier = {
						factor = 1.33
						trait = head1
					}
					modifier = {
						factor = 1.33
						trait = head2
					}
					modifier = {
						factor = 1.33
						trait = head3
					}
					modifier = {
						factor = 1.33
						trait = head4
					}
					modifier = {
						factor = 1.33
						trait = head5
					}
					modifier = {
						factor = 0.8
						trait = craven
					}
					modifier = {
						factor = 1.33
						trait = drunkard
					}
					modifier = {
						factor = 1.33
						trait = has_tuberculosis
					}
					modifier = {
						factor = 1.33
						trait = has_typhoid_fever
					}
					modifier = {
						factor = 1.33
						trait = has_typhus
					}
					modifier = {
						factor = 1.33
						trait = has_bubonic_plague
					}
					modifier = {
						factor = 1.33
						trait = has_measles
					}		
					modifier = {
						factor = 1.33
						trait = has_small_pox
					}
					modifier = {
						factor = 1.33
						trait = wounded
					}
					modifier = {
						factor = 2
						trait = infirm
					}
					modifier = {
						factor = 2
						trait = incapable
					}
					character_event = { id = ancrel.140 }
				}
				12 = { #loot
					modifier = {
						factor = 1.33
						trait = greedy
					}
					modifier = {
						factor = 1.33
						stewardship = 10
					}
					character_event = { id = ancrel.142 }
				}
			}
		}
	}

}

# Son wants to train with a wandering order (Son)
character_event = {
	id = ancrel.119
	hide_window = yes

	religion_group = pagan_group
	culture_group = celtic	
	min_age = 16
	max_age = 40
	only_men = yes
	capable_only = yes
	prisoner = no
	ai = yes
	has_dlc = "The Old Gods"
	has_character_flag = celtic_warrior_training
	
	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				has_global_flag = gwydion_founded
				OR = {
					culture = welsh
					culture = cornish
					culture = breton
				}
			}
			set_character_flag = wants_gwydion
		}
		if = {
			limit = {
				has_global_flag = fianna_founded
				OR = {
					culture = irish
					culture = scottish
					culture = pictish
					culture = gallawa
				}
			}
			set_character_flag = wants_fianna
		}
		if = {
			limit = { 
				father = { 
					is_alive = yes
					any_child = {
						character = ROOT
						mother = { 
							OR = {
								is_alive = no
								NOT = { higher_tier_than = PREVPREV } 
							}
						}
					}
				}
			}
			father = { character_event = { id = ancrel.120 } }			
		}
		if = {
			limit = { 
				mother = { 
					is_alive = yes
					any_child = {
						character = ROOT
						father = { 
							OR = {
								is_alive = no
								lower_tier_than = PREVPREV 
							}
						}
					}
				}
			}
			mother = { character_event = { id = ancrel.120 } }			
		}
	}
}

# Son wants to join a wandering order (Parent)
character_event = {
	id = ancrel.120	
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	desc = {
		text = EVTDESC_ancrel_0120
		trigger = {
			FROM = {
				has_character_flag = wants_gwydion
			}
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1160
		trigger = {
			FROM = {
				has_character_flag = wants_fianna
			}
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0120
		FROM = {
			opinion = {
				modifier = opinion_very_disappointed
				years = 1
				who = ROOT
			}
		}
		prestige = -100
	}
	option = {
		name = EVTOPTB_ancrel_0120
		prestige = 100
		reverse_opinion = {
			who = FROM
			modifier = allowed_to_serve_holy_order
			years = 100
		}
		hidden_tooltip = {
			FROM = { 
				character_event = { id = ancrel.121 days = 1460 }
			}
		}
		if = {
			limit = { FROM = { has_character_flag = wants_gwydion } }
			d_gwydion = {
				holder_scope = {
					FROM = {
						move_character = PREV
					}
				}
			}			
			break = yes
		}
		if = {
			limit = { FROM = { has_character_flag = wants_fianna } }
			d_fianna = {
				holder_scope = {
					FROM = {
						move_character = PREV
					}
				}
			}			
			break = yes
		}
	}
}

# Son has served a few years
character_event = {
	id = ancrel.121
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {		
		if = { 
			limit = { has_character_flag = wants_gwydion } 			
			clr_character_flag = wants_gwydion
			set_character_flag = serving_celtic_order
			add_trait = wolf
		}
		if = { 
			limit = { has_character_flag = wants_fianna } 			
			clr_character_flag = wants_fianna
			set_character_flag = serving_celtic_order
			add_trait = fian
		}
	}
}

# Son returns scarred but seasoned (Son)
character_event = {
	id = ancrel.124
	
	hide_window = yes
	has_character_flag = serving_celtic_order
	has_dlc = "The Old Gods"
	
	is_triggered_only = yes
	
	immediate = {
		clr_character_flag = serving_celtic_order		
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = allowed_to_serve_holy_order } }
			character_event = { id = ancrel.125 } 
		}							
	}
}

# Son returns scarred but seasoned
character_event = {
	id = ancrel.125	
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	desc = {
		text = EVTDESC_ancrel_0125
		trigger = {
			FROM = { trait = wolf }
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1165
		trigger = {
			FROM = { trait = fian }
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0125		
		FROM = {
			move_character = ROOT
			add_trait = scarred			
			change_martial = 4
		}
	}
}

# Son returns maimed (Son)
character_event = {
	id = ancrel.128
	
	hide_window = yes
	has_character_flag = serving_celtic_order
	has_dlc = "The Old Gods"

	is_triggered_only = yes	
	
	immediate = {
		add_maimed_trait_effect = yes		
		clr_character_flag = serving_celtic_order
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = allowed_to_serve_holy_order } }
			character_event = { id = ancrel.129 } 
		}
	}
}

# Son returns maimed
character_event = {
	id = ancrel.129	
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	desc = {
		text = EVTDESC_ancrel_0129
		trigger = {
			FROM = { trait = wolf }
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1169
		trigger = {
			FROM = { trait = fian }
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0129
		trigger = {
			FROM = { employer = { has_landed_title = d_gwydion } }
		}
		FROM = {
			move_character = ROOT
			tooltip = { 
				add_maimed_trait_effect = yes 
				add_trait = wolf
			}
		}
	}
	option = {
		name = EVTOPTA_ancrel_1169
		trigger = {
			FROM = { employer = { has_landed_title = d_fianna } }
		}
		FROM = {
			move_character = ROOT
			tooltip = { 
				add_maimed_trait_effect = yes 
				add_trait = fian
			}
		}
	}
}

# Son returns as excellent strategist (Son)
character_event = {
	id = ancrel.130
	
	hide_window = yes
	has_character_flag = serving_celtic_order
	has_dlc = "The Old Gods"

	is_triggered_only = yes

	immediate = {
		clr_character_flag = serving_celtic_order
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = allowed_to_serve_holy_order } }
			character_event = { id = ancrel.131 } 
		}
	}
}

# Son returns as excellent strategist
character_event = {
	id = ancrel.131	
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	desc = {
		text = EVTDESC_ancrel_0131
		trigger = {
			FROM = { trait = wolf }
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1171
		trigger = {
			FROM = { trait = fian }
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0131
		if = {
			limit = {
				FROM = {
					trait = skilled_tactician
				}
			}
			FROM = {
				hidden_tooltip = { remove_trait = skilled_tactician }
				add_trait = brilliant_strategist
			}
		}
		if = {
			limit = {
				FROM = {
					OR = {
						trait = misguided_warrior
						trait = tough_soldier
					}	
				}
			}
			FROM = {
				hidden_tooltip = { 
					remove_trait = misguided_warrior
					remove_trait = tough_soldier
				}
				add_trait = skilled_tactician
			}
		}
		FROM = {
			change_martial = 2			
			move_character = ROOT
		}
	}
}

# Son returns with PTSD (Son)
character_event = {
	id = ancrel.132
	
	hide_window = yes
	has_character_flag = serving_celtic_order
	has_dlc = "The Old Gods"
	
	is_triggered_only = yes
	
	immediate = {		
		clr_character_flag = serving_celtic_order
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = allowed_to_serve_holy_order } }
			character_event = { id = ancrel.133 } 
		}
	}
}

# Son returns with PTSD
character_event = {
	id = ancrel.133	
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	desc = {
		text = EVTDESC_ancrel_0133
		trigger = {
			FROM = { trait = wolf }
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1173
		trigger = {
			FROM = { trait = fian }
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0133
		FROM = {
			move_character = ROOT
			add_trait = depressed			
		}
	}
}

# Son returns home with wife (Son)
character_event = {
	id = ancrel.134
	
	hide_window = yes
	has_character_flag = serving_celtic_order
	has_dlc = "The Old Gods"
	
	is_triggered_only = yes

	immediate = {		
		clr_character_flag = serving_celtic_order
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = allowed_to_serve_holy_order } }
			character_event = { id = ancrel.135 } 
		}
	}
}

# Son returns home with wife
character_event = {
	id = ancrel.135	
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	desc = {
		text = EVTDESC_ancrel_0135
		trigger = {
			FROM = { trait = wolf }
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1175
		trigger = {
			FROM = { trait = fian }
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0135
		create_character = {
			random_traits = yes
			dynasty = NONE
			female = yes
			age = 26
			religion = FROM
			culture = FROM
		}
		new_character = {
			add_spouse = FROM
		}
		FROM = {			
			move_character = ROOT
		}
	}
}

# Son returns home as a zealot (Son)
character_event = {
	id = ancrel.136
	
	hide_window = yes
	has_character_flag = serving_celtic_order
	has_dlc = "The Old Gods"
	
	is_triggered_only = yes

	immediate = {		
		clr_character_flag = serving_celtic_order
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = allowed_to_serve_holy_order } }
			character_event = { id = ancrel.137 } 
		}
	}
}

# Son returns home as a zealot
character_event = {
	id = ancrel.137	
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	desc = {
		text = EVTDESC_ancrel_0137
		trigger = {
			FROM = { trait = wolf }
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1177
		trigger = {
			FROM = { trait = fian }
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0137
		FROM = {
			move_character = ROOT
			add_trait = zealous			
		}
	}
}

# Son returns home as a seasoned warrior (Son)
character_event = {
	id = ancrel.138
	
	hide_window = yes
	has_character_flag = serving_celtic_order
	has_dlc = "The Old Gods"

	is_triggered_only = yes
	
	immediate = {		
		clr_character_flag = serving_celtic_order
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = allowed_to_serve_holy_order } }
			character_event = { id = ancrel.139 } 
		}
	}
}

# Son returns home as a seasoned warrior
character_event = {
	id = ancrel.139	
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	desc = {
		text = EVTDESC_ancrel_0139
		trigger = {
			FROM = { trait = wolf }
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1179
		trigger = {
			FROM = { trait = fian }
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0139
		FROM = {
			move_character = ROOT
			add_trait = brave			
			change_martial = 2
		}
	}
}

# Son dies in battle (Son)
character_event = {
	id = ancrel.140
	
	hide_window = yes
	has_character_flag = serving_celtic_order
	has_dlc = "The Old Gods"

	is_triggered_only = yes

	immediate = {
		clr_character_flag = serving_celtic_order
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = allowed_to_serve_holy_order } }
			character_event = { id = ancrel.141 } 
		}
	}
}

# Son dies in battle
character_event = {
	id = ancrel.141	
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
	
	desc = {
		text = EVTDESC_ancrel_0141
		trigger = {
			FROM = { trait = wolf }
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1181
		trigger = {
			FROM = { trait = fian }
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_0141
		FROM = { death = { death_reason = death_battle } }
	}
}

# Son returns with loot (Son)
character_event = {
	id = ancrel.142
	
	hide_window = yes
	has_character_flag = serving_celtic_order
	has_dlc = "The Old Gods"

	is_triggered_only = yes

	immediate = {
		clr_character_flag = serving_celtic_order
		random_opinion_modifier_target = {
			limit = { reverse_has_opinion_modifier = { who = ROOT modifier = allowed_to_serve_holy_order } }
			character_event = { id = ancrel.143 } 
		}
	}
}

# Son returns with loot
character_event = {
	id = ancrel.143	
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	desc = {
		text = EVTDESC_ancrel_0143
		trigger = {
			FROM = { trait = wolf }
		}
	}
	
	desc = {
		text = EVTDESC_ancrel_1183
		trigger = {
			FROM = { trait = fian }
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0143
		FROM = {
			move_character = ROOT			
		}
		wealth = 300
	}
}

# Cleanup for Fian/Son of Gwydion that inherits a title
character_event = {
	id = ancrel.144
	desc = EVTDESC_ancrel_0144
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes
		
	has_dlc = "The Old Gods"
	
	trigger = {
		OR = {
			has_character_flag = wants_gwydion
			has_character_flag = wants_fianna
			has_character_flag = serving_celtic_order
		}		
	}
		
	immediate = {
		clr_character_flag = serving_celtic_order
	}
	
	option = {
		name = EVTOPTA_ancrel_0144
		trigger = { is_ruler = yes }
		if = {
			limit = {
				OR = {
					has_character_flag = wants_fianna
					trait = fian
				}
			}
			clr_character_flag = wants_fianna
			add_trait = fian			
		}
		if = {
			limit = {
				OR = {
					has_character_flag = wants_gwydion
					trait = wolf
				}
			}
			clr_character_flag = wants_gwydion
			add_trait = wolf		
		}
		prestige = 200
		wealth = 200
	}	
}


### SONS OF GWYDION
# Written by Patrick Marchand

# The Sons of Gwydion Founded (Celtic King)
narrative_event = {
	id = ancrel.110
	title = EVTNAME_ancrel_0110
	desc = EVTDESC_ancrel_0110
	picture = GFX_evt_celtic_warriors
	border = GFX_event_narrative_frame_war
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_0110
		hidden_tooltip = {
			any_playable_ruler = {
				limit = {
					ai = no
					OR = {
						religion = celtic_pagan
						religion = celtic_pagan_reformed
					}
				}
				narrative_event = { id = ancrel.111 }
			}
		}
	}
}

# The sons of Gwydion Founded (Druidic)
narrative_event = {
	id = ancrel.111
	title = EVTNAME_ancrel_0110
	desc = EVTDESC_ancrel_0111
	picture = GFX_evt_celtic_warriors
	border = GFX_event_narrative_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_0111
		custom_tooltip = { text = gwydion_organized }
	}
}

# Sons of Gwydion Chief gets Wolf trait or Fianna Chief gets Fian trait
character_event = {
	id = ancrel.115
	hide_window = yes
	
	religion_group = pagan_group
	only_rulers = yes
	
	is_triggered_only = yes
	
	trigger = {
		OR = {
			AND = {
				has_landed_title = d_gwydion
				NOT = { trait = wolf }
			}
			AND = {
				has_landed_title = d_fianna
				NOT = { trait = fian }
			}
		}
	}
	
	immediate = {
		if = {
			limit = { has_landed_title = d_gwydion }
			add_trait = wolf
		}
		if = {
			limit = { has_landed_title = d_fianna }
			add_trait = fian
		}
	}
}

#Wolf visiting
character_event = {
	id = ancrel.154
	desc = EVTDESC_ancrel_0154	
	
	is_triggered_only = yes
	
	only_playable = yes
	religion_group = pagan_group
	prisoner = no
	
	picture = GFX_evt_emissary

	trigger = {
		war = no
		in_command_trigger = no
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		OR = {
			culture = welsh
			culture = cornish
			culture = breton
		}		
		has_global_flag = gwydion_founded
		NOT = { has_character_flag = wolf_band_visiting }
		NOT = { has_character_flag = hates_gwydion }
		NOT = { is_inaccessible_trigger = yes }
		any_courtier = {
			has_job_title = job_chancellor
		}
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 1.5
			trait = gregarious
		}
		modifier = {
			factor = 2.0
			prestige = 100
		}
		modifier = {
			factor = 2.0
			tier = count
		}
		modifier = {
			factor = 0.5
			tier = king
		}
		modifier = {
			factor = 0.2
			tier = emperor
		}
		modifier = {
			factor = 0.8
			trait = stressed
		}
		modifier = {
			factor = 0.8
			trait = depressed
		}
		modifier = {
			factor = 0.75
			trait = lunatic
		}
		modifier = {
			factor = 0.75
			trait = possessed
		}
		modifier = {
			factor = 0.9
			trait = ill
		}
		modifier = {
			factor = 0.8
			trait = pneumonic
		}
		modifier = {
			factor = 0.8
			trait = syphilitic
		}
		modifier = {
			factor = 0.5
			trait = leper
		}
		modifier = {
			factor = 0.9
			trait = wounded
		}
		modifier = {
			factor = 0.8
			is_maimed_trigger = yes
		}
		modifier = {
			factor = 0.5
			trait = infirm
		}
		modifier = {
			factor = 0.4
			trait = incapable
		}
		modifier = {
			factor = 0.5
			trait = drunkard
		}
		modifier = {
			factor = 0.5
			trait = has_tuberculosis
		}
		modifier = {
			factor = 0.5
			trait = has_typhoid_fever
		}
		modifier = {
			factor = 0.5
			trait = has_typhus
		}
		modifier = {
			factor = 0.5
			trait = has_bubonic_plague
		}
		modifier = {
			factor = 0.5
			trait = has_measles
		}		
		modifier = {
			factor = 0.5
			trait = has_small_pox
		}
				
	}	
	
	option = {
		name = EVTOPTA_ancrel_0154 #Welcome them with a lavish feast
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				trait = gregarious
			}
			modifier = {
				factor = 2
				trait = charitable
			}
			modifier = {
				factor = 0
				trait = greedy
			}
			modifier = {
				factor = 0
				trait = shy
			}
		}
		set_character_flag = wolf_band_visiting
		prestige = 10
		if = {
			limit = {
				NOT = { trait = gregarious }
			}
			add_trait = gregarious
		}
		if = {
			limit = {
				NOT = { trait = greedy }
			}
			scaled_wealth = -0.2
		}
		if = {
			limit = {
				trait = greedy
			}
			scaled_wealth = -0.4
			remove_trait = greedy
		}
		
	}
	option = {
		name = EVTOPTB_ancrel_0154 #Welcome them reluctantly
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					trait = gregarious
					trait = proud
					trait = ambitious
					trait = charitable
				}
			}
			
		}
		prestige = 1
		scaled_wealth = -0.05
		set_character_flag = wolf_band_visiting
	}
	option = {
		name = EVTOPTC_ancrel_0154 #Refuse them Access
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { trait = greedy }
			}
		}
		prestige = -5
		any_courtier = {
			opinion = {
				modifier = tight_ruler
				who = ROOT
			}
		}
	}
}
	
#Minor brawl, wolf warrior Injured
character_event = {
	id = ancrel.155
	desc = EVTDESC_ancrel_0155	
	
	only_playable = yes
	prisoner = no
	has_character_flag = wolf_band_visiting
	
	picture = GFX_evt_joust
	trigger = {
		NOT = {	has_character_flag = wolf_recruited }
		NOT = {	has_character_flag = wolf_woman_seduced	}
	}

	mean_time_to_happen = {
		days = 20
	}	
	
	immediate = {
		clr_character_flag = wolf_band_visiting
		clr_character_flag = wolf_recruited	
		clr_character_flag = wolf_woman_seduced
	}
	
	option = {
		name = EVTOPTA_ancrel_0155 	# pay for their expenses, and send them on their way
		scaled_wealth = -0.05
		piety = 5
		
	}
	option = {
		name = EVTOPTB_ancrel_0155 #let them stay at the castle while recovering.
		prestige = -5
		piety = 5
		if = {
			limit = { NOT = { personality_traits = 5 } }
			add_trait = just
		}
	}
}	

#One wolf warrior distinguishes himself
character_event = {
	id = ancrel.156
	desc = EVTDESC_ancrel_0156	
	
	only_playable = yes
	prisoner = no
	has_character_flag = wolf_band_visiting
	
	picture = GFX_evt_joust
	
	trigger =  {
		NOT = {	has_character_flag = wolf_recruited }
		NOT = {	has_character_flag = wolf_woman_seduced	}
	}
	immediate = {
		set_character_flag = wolf_recruited	
	}

	mean_time_to_happen = {
		days = 100
		modifier = {
			factor = 0.5
			trait = gregarious
		}
	}	
	
	option = {
		name = EVTOPTA_ancrel_0156  #take him in your service.
		create_character = {
			random_traits = no
			dynasty = random
			female = no
			age = 16
			culture = ROOT
			religion = ROOT
			trait = brave
			trait = ambitious
			trait = humble
			trait = wolf
			health = 10
			attributes = {
				martial = 10
			}
		}	
		scaled_wealth = -0.1
	}
	option = {
		name = EVTOPTB_ancrel_0156 #give him lavish praise.
		prestige = 5
	}
}	

#Male courtier insulted by wolf warrior
character_event = {
	id = ancrel.157
	desc = EVTDESC_ancrel_0157	
	
	
	only_playable = yes
	prisoner = no
	has_character_flag = wolf_band_visiting
	
	picture = GFX_evt_joust
	trigger = {
	 	any_courtier = {
	 		age = 16
	 		is_female = no
	 		OR = {
	 			trait = cruel
	 			trait = proud
	 			trait = wroth
	 			trait = zealous
	 			trait = envious
	 			prestige = 100
	 		}
	 	}
	}	

	mean_time_to_happen = {
		days = 30
		modifier = {
			factor = 0.9
			trait = arbitrary
		}
		
		modifier = {
			factor = 5
			has_character_flag = wolf_recruited	
		}
		
		modifier = {
			factor = 5
			has_character_flag = wolf_woman_seduced	
		}		
		
	}	
	option = {
		name = EVTOPTA_ancrel_0157  #Throw them out.
		clr_character_flag = wolf_band_visiting
		clr_character_flag = wolf_recruited	
		clr_character_flag = wolf_woman_seduced
		piety = -10 
	}
	option = {
		name = EVTOPTB_ancrel_0157 #Ignore the complaints
	 	random_courtier = {
	 		limit = {
	 			age = 16
	 			is_female = no
	 			OR = {
		 			trait = cruel
		 			trait = proud
		 			trait = wroth
		 			trait = zealous
		 			trait = envious
		 			prestige = 100
		 		}
		 	}
			opinion = {
				modifier = ruler_not_respect_rank
				who = ROOT
				months = 60
			}
	 	}		
	}
	
}	

#A young woman has been seduced by a wolf warrior
character_event = {
	id = ancrel.158
	desc = EVTDESC_ancrel_0158	
	
	only_playable = yes
	prisoner = no
	has_character_flag = wolf_band_visiting
	
	picture = GFX_evt_lovers
	
	trigger = {
		has_lover = no
		NOT = {	has_character_flag = wolf_recruited }
		NOT = {	has_character_flag = wolf_woman_seduced	}
		any_courtier = {
	 		age = 16
	 		not = { age = 20 }
	 		is_female = yes	
	 		is_married = no
	 		is_pregnant = no
			fertility = 0.3
	 	}	 	
	}	
	
	immediate = {
		set_character_flag = wolf_woman_seduced
	}

	mean_time_to_happen = {
		days = 20
		
		modifier = {
			factor = 5
			has_character_flag = wolf_recruited	
		}		
	}	
	option = {
		name = EVTOPTA_ancrel_0158 #stay
 		
 		
		random_courtier = {
	 		limit = {
	 			age = 16
	 			not = { age = 20 }
	 			is_female = yes	
	 			is_married = no
	 			is_pregnant = no
				has_lover = no
	 		}
	 		add_trait = lustful
	 		create_character = {
				random_traits = yes
				culture = ROOT
				religion = ROOT
				dynasty = random
				trait  = wolf
				fertility = 0.6
				female = no
				age = 24
	 		}
			new_character = {
	 			impregnate = PREV
	 			add_lover = PREV
				add_trait = lustful
	 		}
	 	}
	 	piety = -10
	}
	option = {
		name = EVTOPTB_ancrel_0158 #dungeon
		ai_chance = {
			factor = 1
			modifier = {
				factor = 100
				OR = {
					trait = cruel
					trait = zealous
				 }
			}
		}
		random_courtier = {
	 		limit = {
	 			age = 16
	 			not = { age = 20 }
	 			is_female = yes	
	 			is_married = no
	 			is_pregnant = no
	 		}
	 		add_trait = lustful
			create_character = {
				random_traits = yes
				culture = ROOT
				religion = ROOT
				dynasty = random
				fertility = 0.6
				trait = wolf
				female = no
				age = 24
	 		}
			new_character = {
	 			impregnate = PREV
	 			add_lover = PREV
				add_trait = lustful
				imprison = root
	 		}
	 	}		
	}
}

#Wolf leaving
character_event = {
	id = ancrel.159
	desc = EVTDESC_ancrel_0159	
	
	only_playable = yes
	prisoner = no
	has_character_flag = wolf_band_visiting
	
	trigger = {
	 	always = yes
	}
	
	immediate = {
		clr_character_flag = wolf_band_visiting
		clr_character_flag = wolf_woman_seduced
		clr_character_flag = wolf_recruited	
	}
	
	picture = GFX_evt_feast

	mean_time_to_happen = {
		days = 40
		modifier = {
			factor = 0.1
			has_character_flag = wolf_recruited	
		}		
	}	
	option = {
		name = EVTOPTA_ancrel_0159 #give them a farewell feast
		prestige = 10
		scaled_wealth = -0.05

	}
	option = {
		name = EVTOPTB_ancrel_0159 #let them leave quietly
		prestige = -5
	}
}

#Marshal has arrested a wolf warrior
character_event = {
	id = ancrel.160
	desc = EVTDESC_ancrel_0160	
	
	is_triggered_only = yes
	
	only_playable = yes
	prisoner = no
	religion_group = pagan_group
	
	picture = GFX_evt_melee
	
	trigger = {
		war = no
		in_command_trigger = no
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		has_global_flag = gwydion_founded
		NOT = { has_character_flag = wolf_band_visiting }
		any_courtier = {
			has_job_title = job_marshal
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_0160  #order him released
		job_marshal = {
			opinion = {
				modifier = marshal_overruled
				who = ROOT
			}
		}
		piety = 5
		clr_character_flag = hates_gwydion
	}
	option = {
		name = EVTOPTB_ancrel_0160 #it is not my concern
		job_marshal = {
			prestige = 10
		}
		prestige = -5
		set_character_flag = hates_gwydion
	}
}	

### THE FIANNA
# Written by Superskierpat

# The Fianna Founded (Celtic King)
narrative_event = {
	id = ancrel.1150
	title = EVTNAME_ancrel_1150
	desc = EVTDESC_ancrel_1150
	picture = GFX_evt_celtic_warriors
	border = GFX_event_narrative_frame_war
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_ancrel_1150
		hidden_tooltip = {
			any_playable_ruler = {
				limit = {
					ai = no
					OR = {
						religion = celtic_pagan
						religion = celtic_pagan_reformed
					}					
				}
				narrative_event = { id = ancrel.1151 }
			}
		}
	}
}

# The Fianna Founded (Celtic)
narrative_event = {
	id = ancrel.1151
	title = EVTNAME_ancrel_1150
	desc = EVTDESC_ancrel_1151
	picture = GFX_evt_celtic_warriors
	border = GFX_event_narrative_frame_war
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_ancrel_1151
		custom_tooltip = {
			text = fianna_organized
		}
	}
}

#Fian visiting
character_event = {
	id = ancrel.1254
	desc = EVTDESC_ancrel_1254	
	
	is_triggered_only = yes
	
	only_playable = yes
	religion_group = pagan_group
	prisoner = no
	
	picture = GFX_evt_emissary

	trigger = {
		war = no
		in_command_trigger = no
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		OR = {
			culture = irish
			culture = scottish
			culture = gallawa
		}
		has_global_flag = fianna_founded
		NOT = { has_character_flag = fian_band_visiting }
		NOT = { has_character_flag = hates_fianna }
		any_courtier = {
			has_job_title = job_chancellor
		}
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 1.5
			trait = gregarious
		}
		modifier = {
			factor = 2.0
			prestige = 100
		}
		modifier = {
			factor = 2.0
			tier = count
		}
		modifier = {
			factor = 0.5
			tier = king
		}
		modifier = {
			factor = 0.2
			tier = emperor
		}
		modifier = {
			factor = 0.8
			trait = stressed
		}
		modifier = {
			factor = 0.8
			trait = depressed
		}
		modifier = {
			factor = 0.75
			trait = lunatic
		}
		modifier = {
			factor = 0.75
			trait = possessed
		}
		modifier = {
			factor = 0.9
			trait = ill
		}
		modifier = {
			factor = 0.8
			trait = pneumonic
		}
		modifier = {
			factor = 0.8
			trait = syphilitic
		}
		modifier = {
			factor = 0.5
			trait = leper
		}
		modifier = {
			factor = 0.9
			trait = wounded
		}
		modifier = {
			factor = 0.8
			is_maimed_trigger = yes
		}
		modifier = {
			factor = 0.5
			trait = infirm
		}
		modifier = {
			factor = 0.4
			trait = incapable
		}
		modifier = {
			factor = 0.5
			trait = drunkard
		}
		modifier = {
			factor = 0.5
			trait = has_tuberculosis
		}
		modifier = {
			factor = 0.5
			trait = has_typhoid_fever
		}
		modifier = {
			factor = 0.5
			trait = has_typhus
		}
		modifier = {
			factor = 0.5
			trait = has_bubonic_plague
		}
		modifier = {
			factor = 0.5
			trait = has_measles
		}		
		modifier = {
			factor = 0.5
			trait = has_small_pox
		}
				
	}	
	
	option = {
		name = EVTOPTA_ancrel_1254 #Welcome them with a lavish feast
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				trait = gregarious
			}
			modifier = {
				factor = 2
				trait = charitable
			}
			modifier = {
				factor = 0
				trait = greedy
			}
			modifier = {
				factor = 0
				trait = shy
			}
		}
		set_character_flag = fian_band_visiting
		prestige = 10
		if = {
			limit = {
				not = { trait = gregarious }
			}
			add_trait = gregarious
		}
		if = {
			limit = {
				NOT = { trait = greedy }
			}
			scaled_wealth = -0.2
		}
		if = {
			limit = {
				trait = greedy
			}
			scaled_wealth = -0.4
			remove_trait = greedy
		}
		
	}
	option = {
		name = EVTOPTB_ancrel_1254 #Welcome them reluctantly
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					trait = gregarious
					trait = proud
					trait = ambitious
					trait = charitable
				}
			}
			
		}
		prestige = 1
		scaled_wealth = -0.05
		set_character_flag = fian_band_visiting
	}
	option = {
		name = EVTOPTC_ancrel_1254 #Refuse them Access
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { trait = greedy }
			}
		}
		prestige = -5
		any_courtier = {
			opinion = {
				modifier = tight_ruler
				who = ROOT
			}
		}
	}
}
	
#Minor brawl fennid Injured
character_event = {
	id = ancrel.1255
	desc = EVTDESC_ancrel_1255	
	
	only_playable = yes
	prisoner = no
	has_character_flag = fian_band_visiting
	
	picture = GFX_evt_joust
	trigger = {
		NOT = {	has_character_flag = fian_recruited }
		NOT = {	has_character_flag = fian_woman_seduced	}
	}

	mean_time_to_happen = {
		days = 20
	}	
	
	immediate = {
		clr_character_flag = fian_band_visiting
		clr_character_flag = fian_recruited	
		clr_character_flag = fian_woman_seduced
	}
	
	option = {
		name = EVTOPTA_ancrel_1255 	# pay for their expenses, and send them on their way
		scaled_wealth = -0.05
		piety = 5
		
	}
	option = {
		name = EVTOPTB_ancrel_1255 #let them stay at the castle while recovering.
		prestige = -5
		piety = 5
		if = {
			limit = { NOT = { personality_traits = 5 } }
			add_trait = just
		}
	}
}	

#One fennid distinguishes himself
character_event = {
	id = ancrel.1256
	desc = EVTDESC_ancrel_1256	
	
	only_playable = yes
	prisoner = no
	has_character_flag = fian_band_visiting
	
	picture = GFX_evt_joust
	
	trigger =  {
		NOT = {	has_character_flag = fian_recruited }
		NOT = {	has_character_flag = fian_woman_seduced	}
	}
	immediate = {
		set_character_flag = fian_recruited	
	}

	mean_time_to_happen = {
		days = 100
		modifier = {
			factor = 0.5
			trait = gregarious
		}
	}	
	
	option = {
		name = EVTOPTA_ancrel_1256  #take him in your service.
		create_character = {
			culture = ROOT
			religion = ROOT
			random_traits = no
			dynasty = random
			female = no
			age = 16
			trait = brave
			trait = ambitious
			trait = humble
			trait = fian
			health = 10
			attributes = {
				martial = 10
			}
		}	
		scaled_wealth = -0.1
	}
	option = {
		name = EVTOPTB_ancrel_1256 #give him lavish praise.
		prestige = 5
	}
}	

#Male courtier insulted by fennid
character_event = {
	id = ancrel.1257
	desc = EVTDESC_ancrel_1257	
	
	only_playable = yes
	prisoner = no
	has_character_flag = fian_band_visiting
	
	picture = GFX_evt_joust
	trigger = {
	 	any_courtier = {
	 		age = 16
	 		is_female = no
	 		OR = {
	 			trait = cruel
	 			trait = proud
	 			trait = wroth
	 			trait = zealous
	 			trait = envious
	 			prestige = 100
	 		}
	 	}
	}	

	mean_time_to_happen = {
		days = 30
		modifier = {
			factor = 0.9
			trait = arbitrary
		}
		
		modifier = {
			factor = 5
			has_character_flag = fian_recruited	
		}
		
		modifier = {
			factor = 5
			has_character_flag = fian_woman_seduced	
		}		
		
	}	
	option = {
		name = EVTOPTA_ancrel_1257  #Throw them out.
		clr_character_flag = fian_band_visiting
		clr_character_flag = fian_recruited	
		clr_character_flag = fian_woman_seduced
		piety = -10 
	}
	option = {
		name = EVTOPTB_ancrel_1257 #Ignore the complaints
	 	random_courtier = {
	 		limit = {
	 			age = 16
	 			is_female = no
	 			OR = {
		 			trait = cruel
		 			trait = proud
		 			trait = wroth
		 			trait = zealous
		 			trait = envious
		 			prestige = 100
		 		}
		 	}
			opinion = {
				modifier = ruler_not_respect_rank
				who = ROOT
				months = 60
			}
	 	}		
	}
	
}	

#A young woman has been seduced by a fennid
character_event = {
	id = ancrel.1258
	desc = EVTDESC_ancrel_1258	
	
	only_playable = yes
	prisoner = no
	has_character_flag = fian_band_visiting
	
	picture = GFX_evt_lovers
	
	trigger = {
		has_lover = no
		NOT = {	has_character_flag = fian_recruited }
		NOT = {	has_character_flag = fian_woman_seduced	}
		any_courtier = {
	 		age = 16
	 		not = { age = 20 }
	 		is_female = yes	
	 		is_married = no
	 		is_pregnant = no
			fertility = 0.3
	 	}	 	
	}	
	
	immediate = {
		set_character_flag = fian_woman_seduced
	}

	mean_time_to_happen = {
		days = 20
		
		modifier = {
			factor = 5
			has_character_flag = fian_recruited	
		}		
	}	
	option = {
		name = EVTOPTA_ancrel_1258 #stay
 		
 		
		random_courtier = {
	 		limit = {
	 			age = 16
	 			not = { age = 20 }
	 			is_female = yes	
	 			is_married = no
	 			is_pregnant = no
				has_lover = no
	 		}
	 		add_trait = lustful
	 		create_character = {
				culture = ROOT
				religion = ROOT
				random_traits = yes
				dynasty = random
				trait  = fian
				fertility = 0.6
				female = no
				age = 24
	 		}
			new_character = {
	 			impregnate = PREV
	 			add_lover = PREV
				add_trait = lustful
	 		}
	 	}
	 	piety = -10
	}
	option = {
		name = EVTOPTB_ancrel_1258 #dungeon
		ai_chance = {
			factor = 1
			modifier = {
				factor = 100
				OR = {
					trait = cruel
					trait = zealous
				 }
			}
		}
		random_courtier = {
	 		limit = {
	 			age = 16
	 			not = { age = 20 }
	 			is_female = yes	
	 			is_married = no
	 			is_pregnant = no
	 		}
	 		add_trait = lustful
			create_character = {
				culture = ROOT
				religion = ROOT
				random_traits = yes
				dynasty = random
				fertility = 0.6
				trait = fian
				female = no
				age = 24
	 		}
			new_character = {
	 			impregnate = PREV
	 			add_lover = PREV
				add_trait = lustful
				imprison = root
	 		}
	 	}		
	}
}

#Fian leaving
character_event = {
	id = ancrel.1259
	desc = EVTDESC_ancrel_1259	
	
	only_playable = yes
	prisoner = no
	has_character_flag = fian_band_visiting
	
	trigger = {
	 	always = yes
	}
	
	immediate = {
		clr_character_flag = fian_band_visiting
		clr_character_flag = fian_woman_seduced
		clr_character_flag = fian_recruited	
	}
	
	picture = GFX_evt_feast

	mean_time_to_happen = {
		days = 40
		modifier = {
			factor = 0.1
			has_character_flag = fian_recruited	
		}		
	}	
	option = {
		name = EVTOPTA_ancrel_1259 #give them a farewell feast
		prestige = 10
		scaled_wealth = -0.05

	}
	option = {
		name = EVTOPTB_ancrel_1259 #let them leave quietly
		prestige = -5
	}
}

#Marshal has arrested a fennid
character_event = {
	id = ancrel.1260
	desc = EVTDESC_ancrel_1260	
	
	is_triggered_only = yes
	
	only_playable = yes
	religion_group = pagan_group
	prisoner = no
	
	picture = GFX_evt_melee
	
	trigger = {
		war = no
		in_command_trigger = no
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
		has_global_flag = fianna_founded
		NOT = { has_character_flag = fian_band_visiting }
		any_courtier = {
			has_job_title = job_marshal
		}
	}
	
	option = {
		name = EVTOPTA_ancrel_1260  #order him released
		job_marshal = {
			opinion = {
				modifier = marshal_overruled
				who = ROOT
			}
		}
		piety = 5
		clr_character_flag = hates_fianna
	}
	option = {
		name = EVTOPTB_ancrel_1260 #it is not my concern
		job_marshal = {
			prestige = 10
		}
		prestige = -5
		set_character_flag = hates_fianna
	}
}	

### CELTIC HEADHUNTER EVENTS

# Celtic character takes first enemy head
character_event = {
	id = Plus.800 #formerly 1000182167
	desc = EVTDESC_Plus_800
	picture = GFX_evt_headhunter
	border = GFX_event_normal_frame_war

	is_triggered_only = yes

	option = {
		name = EVTOPTA_Plus_800
		if = {
			limit = { trait = head3 }
			remove_trait = head3
			add_trait = head4
		}
		if = {
			limit = { trait = head2 }
			remove_trait = head2
			add_trait = head3
		}
		if = {
			limit = { trait = head1 }
			remove_trait = head1
			add_trait = head2
		}
		if = {
			limit = {
				NOR = {
					trait = head1
					trait = head2
					trait = head3
					trait = head4
					trait = head5
				}
			}
			add_trait = head1
		}
	}
}

# Celtic character takes fifth enemy head and becomes a legend
character_event = {
	id = Plus.801 #formerly 1000182171
	desc = EVTDESC_Plus_801
	picture = GFX_evt_headhunter
	border = GFX_event_normal_frame_war

	is_triggered_only = yes

	option = {
		name = EVTOPTA_Plus_801
		remove_trait = head4
		add_trait = head5
	}
}

# Celtic hero takes a enemy head
character_event = {
	id = Plus.802 #formerly 1000182172
	desc = EVTDESC_Plus_800
	picture = GFX_evt_headhunter
	border = GFX_event_normal_frame_war

	is_triggered_only = yes

	option = {
		name = EVTOPTA_Plus_800
		prestige = 5
		piety = 2
	}
}

# The birth of the Red Dragon Knights
narrative_event = {
	id = ancrel.1319
	title = EVTTITLEancrel.1319
	desc = EVTDESCancrel.1319
	picture = GFX_evt_celtic_warriors
	border = GFX_event_narrative_frame_religion

	major = yes
	hide_from = yes
	
	only_rulers = yes
	religion = celtic_pagan_reformed
	has_dlc = "The Old Gods"
	
	trigger = {
		has_global_flag = celtic_reformation
		NOT = { is_title_active = d_red_dragons }
		controls_religion = yes # Let it happen for the Arch Druid, they'll always be around
	}
	
	mean_time_to_happen = {
		months = 240
	}
	
	immediate = {
		activate_title = { title = d_red_dragons status = yes }
		create_character = {
			random_traits = no
			dynasty = random
			religion = celtic_pagan_reformed
			culture = welsh
			female = no
			age = 28
		}
		new_character = {
			wealth = 500
			d_red_dragons = {
				grant_title = PREV
			}
			create_character = {
				random_traits = yes
				dynasty = random
				religion = celtic_pagan_reformed
				culture = welsh
				female = no
				age = 16
			}
			create_character = {
				random_traits = yes
				dynasty = random
				religion = celtic_pagan_reformed
				culture = welsh
				female = no
				age = 18
			}
			create_character = {
				random_traits = yes
				dynasty = random
				religion = celtic_pagan_reformed
				culture = welsh
				female = no
				age = 18
			}
			create_character = {
				random_traits = yes
				dynasty = random
				religion = celtic_pagan_reformed
				culture = welsh
				female = no
				age = 20
			}
			create_character = {
				random_traits = yes
				dynasty = random
				religion = celtic_pagan_reformed
				culture = welsh
				female = no
				age = 25
			}
			create_character = {
				random_traits = yes
				dynasty = random
				religion = celtic_pagan_reformed
				culture = welsh
				female = no
				age = 26
			}
			create_character = {
				random_traits = yes
				dynasty = random
				religion = celtic_pagan_reformed
				culture = welsh
				female = no
				age = 28
			}
			create_character = {
				random_traits = yes
				dynasty = random
				religion = celtic_pagan_reformed
				culture = welsh
				female = yes
				age = 16
			}
			create_character = {
				random_traits = yes
				dynasty = random
				religion = celtic_pagan_reformed
				culture = welsh
				female = yes
				age = 17
			}
		}
	}

	option = {
		name = OK
	}
}

