###################################
#
# THE OLD GODS 
# - Pagan Feasts
#
###################################

# Written by Henrik Eklund

namespace = TOG

### Soumenusko Ukon juhla

# Invitations Sent (Liege)
character_event = {
	id = TOG.700
	desc = EVTDESC_TOG_700
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	hide_from = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	has_character_flag = planning_ukon_juhla
	
	trigger = {
		war = no
		NOT = { month = 7 }
		month = 4
		is_not_busy_trigger = yes
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = EVTOPTA_TOG_700
		clr_character_flag = planning_ukon_juhla
		set_character_flag = holding_ukon_juhla
		any_vassal = {
			limit = {
				has_regent = no
				war = no
				is_inaccessible_trigger = no
			}
			character_event = { id = TOG.701 tooltip = EVTTOOLTIP_TOG_701 }
		}
		hidden_tooltip = {
			character_event = { id = TOG.703 days = 10 }
			character_event = { id = TOG.899 days = 50 } # Safety catch flag clearing
			add_character_modifier = {
				name = do_not_disturb
				days = 45
				hidden = yes
			}
		}
		end_inaccessibility_effect = yes		
	}
}

# Invitations Received (Vassals)
character_event = {
	id = TOG.701
	desc = EVTDESC_TOG_701
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	trigger = { NOT = { is_inaccessible_trigger = yes } }
	
	option = {
		name = EVTOPTA_TOG_701
		trigger = {
			OR = {
				religion = finnish_pagan
				religion = finnish_pagan_reformed
			}
			is_not_busy_trigger = yes
		}
		set_character_flag = attending_ukon_juhla
		hidden_tooltip = {
			character_event = { id = TOG.899 days = 50 } # Safety catch flag clearing
			add_character_modifier = {
				name = do_not_disturb
				days = 45
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_TOG_701
		trigger = {
			OR = {
				is_not_busy_trigger = no
				NOT = {
					religion = finnish_pagan
					religion = finnish_pagan_reformed
				}
			}
		}
		FROM = {
			character_event = { id = TOG.702 days = 5 tooltip = DIPLOWINDOW_REJECT }
			opinion = {
				modifier = opinion_refused_ukon_juhla
				who = ROOT
			}
		}
	}
}

# Invitation Refused (Liege)
character_event = {
	id = TOG.702
	desc = EVTDESC_TOG_702
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_702
		tooltip = {
			opinion = {
				modifier = opinion_refused_ukon_juhla
				who = FROM
			}
		}
	}
}

# Celebration Begins (Liege)
character_event = {
	id = TOG.703
	desc = EVTDESC_TOG_703
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_TOG_703
		custom_tooltip = {
			text = ukon_juhla_begins
			hidden_tooltip = {
				any_vassal = {
					limit = { has_character_flag = attending_ukon_juhla }
					character_event = { id = TOG.704 }
				}
				character_event = { id = TOG.705 days = 10 }
			}
		}
	}
}

# Celebration Begins (Vassals)
character_event = {
	id = TOG.704
	desc = EVTDESC_TOG_704
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_703
		custom_tooltip = { text = ukon_juhla_begins }
	}
}

# Feast Begins (Liege)
character_event = {
	id = TOG.705
	desc = EVTDESC_TOG_705
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_TOG_705
		
		custom_tooltip = {
			text = feast_begins
			hidden_tooltip = {
				any_vassal = {
					limit = { has_character_flag = attending_ukon_juhla }
					character_event = { id = TOG.706 }
				}
				character_event = { id = TOG.707 days = 25 }
				random_list = {
					10 = { character_event = { id = TOG.741 days = 3 } } 
					10 = { character_event = { id = TOG.742 days = 3 } }
					10 = { character_event = { id = TOG.743 days = 3 } }
					10 = { character_event = { id = TOG.744 days = 3 } }
					10 = { character_event = { id = TOG.745 days = 3 } }
					10 = { character_event = { id = TOG.746 days = 3 } }
					10 = { character_event = { id = TOG.747 days = 3 } }
				}
				random_list = {
					10 = { character_event = { id = TOG.741 days = 8 } }
					10 = { character_event = { id = TOG.742 days = 8 } }
					10 = { character_event = { id = TOG.743 days = 8 } }
					10 = { character_event = { id = TOG.744 days = 8 } }
					10 = { character_event = { id = TOG.745 days = 8 } }
					10 = { character_event = { id = TOG.746 days = 8 } }
					10 = { character_event = { id = TOG.747 days = 8 } }
				}
				random_list = {
					10 = { character_event = { id = TOG.741 days = 13 } }
					10 = { character_event = { id = TOG.742 days = 13 } }
					10 = { character_event = { id = TOG.743 days = 13 } }
					10 = { character_event = { id = TOG.744 days = 13 } }
					10 = { character_event = { id = TOG.745 days = 13 } }
					10 = { character_event = { id = TOG.746 days = 13 } }
					10 = { character_event = { id = TOG.747 days = 13 } }
				}
				random_list = {
					10 = { character_event = { id = TOG.741 days = 18 } }
					10 = { character_event = { id = TOG.742 days = 18 } }
					10 = { character_event = { id = TOG.743 days = 18 } }
					10 = { character_event = { id = TOG.744 days = 18 } }
					10 = { character_event = { id = TOG.745 days = 18 } }
					10 = { character_event = { id = TOG.746 days = 18 } }
					10 = { character_event = { id = TOG.747 days = 18 } }
				}
			}
		}
	}
}

# Feast Begins (Vassals)
character_event = {
	id = TOG.706
	desc = EVTDESC_TOG_706
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_705
		set_character_flag = ukon_juhla_feast_vassal
		custom_tooltip = { text = feast_begins }
	}
}

# Feast Ends (Liege)
character_event = {
	id = TOG.707
	desc = EVTDESC_TOG_707
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_TOG_707
		any_vassal = {
			limit = { has_character_flag = attending_ukon_juhla }
			opinion = {
				modifier = opinion_ukon_juhla
				who = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_ukon_juhla }
				character_event = { id = TOG.708 }
			}
			add_character_modifier = {
				name = held_ukon_juhla_timer
				duration = 1825
				hidden = yes
			}
		}
		prestige = 100
		piety = 100
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			clr_character_flag = holding_ukon_juhla
			clr_character_flag = feast_drunkard
			clr_character_flag = feast_gluttonous
			clr_character_flag = feast_lunatic
			clr_character_flag = feast_lustful
			clr_character_flag = feast_homosexual
		}
	}
}

# Feast Ends (Vassals)
character_event = {
	id = TOG.708
	desc = EVTDESC_TOG_708
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_707
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			clr_character_flag = attending_ukon_juhla
			clr_character_flag = ukon_juhla_feast_vassal
			clr_character_flag = feast_drunkard
			clr_character_flag = feast_gluttonous
			clr_character_flag = feast_lunatic
			clr_character_flag = feast_lustful
			clr_character_flag = feast_friendship
			clr_character_flag = feast_homosexual
		}
	}
}

## Ukon juhla Feast Events

# Drunkard (Guest)
character_event = {
	id = TOG.720
	desc = EVTDESC_TOG_650
	picture = GFX_evt_drunk
	border = GFX_event_normal_frame_religion
	
	hide_from = yes
	is_triggered_only = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	has_character_flag = ukon_juhla_feast_vassal
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = feast_drunkard }
		liege = { 
			has_character_flag = holding_ukon_juhla
			NOT = { has_character_flag = feast_drunkard }
		}
		trait = drunkard
	}
	
	option = {
		name = EVTOPTA_TOG_650
		tooltip_info = drunkard
		set_character_flag = feast_drunkard
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_drunkard
				character_event = { id = TOG.721 }
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.721 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = drunkard } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = drunkard }
					opinion = {
						modifier = opinion_drinking_buddy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = drunkard }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
						trait = drunkard
					}
					opinion = {
						modifier = opinion_drinking_buddy
						who = ROOT
					}
				}
			}
		}
	}
}

# Drunkard (Host and Other Guests)
character_event = {
	id = TOG.721
	desc = EVTDESC_TOG_651
	picture = GFX_evt_drunk
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_651
		trigger = { 
			NOT = { trait = drunkard } 
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
	option = {
		name = EVTOPTB_TOG_651
		tooltip_info = drunkard
		trigger = { 
			trait = drunkard
		}
		opinion = {
			modifier = opinion_drinking_buddy
			who = FROM
		}
	}
}

# Gluttonous (Victim Hidden)
character_event = {
	id = TOG.722
	hide_window = yes
	is_triggered_only = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	has_character_flag = ukon_juhla_feast_vassal
	
	trigger = {
		has_dlc = "The Old Gods"
		liege = {
			has_character_flag = holding_ukon_juhla
			NOT = { has_character_flag = feast_gluttonous }
			any_vassal = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_gluttonous }
				trait = gluttonous
				NOT = { character = ROOT }
			}
		}
	}
	
	immediate = {
		liege = {
			set_character_flag = feast_gluttonous
			random_vassal = {
				limit = {
					has_character_flag = ukon_juhla_feast_vassal
					trait = gluttonous
					NOT = { character = ROOT }
				}
				character_event = { id = TOG.723 }
				set_character_flag = feast_gluttonous
			}
		}
	}
}

# Gluttonous (Guest)
character_event = {
	id = TOG.723
	desc = EVTDESC_TOG_653
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_653
		tooltip_info = gluttonous
		FROM = {
			character_event = { id = TOG.724 tooltip = EVTTOOLTIP_TOG_654 }
		}	
		hidden_tooltip = {
			liege = {
				character_event = { id = TOG.725 }
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { 
							character = ROOT 
							character = FROM
						}
					}
					character_event = { id = TOG.725 }
				}
			}
		}
		tooltip = {
			FROM = {
				opinion = {
					modifier = opinion_vomit
					who = ROOT
				}
			}
			liege = {
				opinion = {
					modifier = opinion_feast_scandal
					who = ROOT
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { 
							character = ROOT 
							character = FROM
						}
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
			}
		}
	}
}

# Gluttonous (Victim)
character_event = {
	id = TOG.724
	desc = EVTDESC_TOG_654
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_654
		opinion = {
			modifier = opinion_vomit
			who = FROM
		}
	}
}

# Gluttonous (Host and Other Guests)
character_event = {
	id = TOG.725
	desc = EVTDESC_TOG_655
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_655
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
}

# Lunatic (Guest)
character_event = {
	id = TOG.726
	desc = EVTDESC_TOG_656
	picture = GFX_evt_lunatic
	border = GFX_event_normal_frame_religion
	
	hide_from = yes
	is_triggered_only = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = ukon_juhla_feast_vassal
		NOT = { has_character_flag = feast_lunatic }
		liege = { 
			has_character_flag = holding_ukon_juhla 
			NOT = { has_character_flag = feast_lunatic }
		}
		trait = lunatic
	}
	
	option = {
		name = EVTOPTA_TOG_656
		tooltip_info = lunatic
		set_character_flag = feast_lunatic
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_lunatic
				character_event = { id = TOG.727 }
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.727 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = lunatic } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = lunatic }
					opinion = {
						modifier = opinion_feast_friend
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = lunatic }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
						trait = lunatic
					}
					opinion = {
						modifier = opinion_feast_friend
						who = ROOT
					}
				}
			}
		}	
	}
}

# Lunatic (Host and Other Guests)
character_event = {
	id = TOG.727
	desc = EVTDESC_TOG_657
	picture = GFX_evt_lunatic
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_657
		trigger = {
			NOT = { trait = lunatic }
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = ROOT
		}
	}
	option = {
		name = EVTOPTB_TOG_657
		tooltip_info = lunatic
		trigger = {
			trait = lunatic
		}
		opinion = {
			modifier = opinion_feast_friend
			who = ROOT
		}
	}
}

# Lustful (Guest)
character_event = {
	id = TOG.728
	desc = EVTDESC_TOG_658
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_religion
	
	hide_from = yes
	is_triggered_only = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = ukon_juhla_feast_vassal
		NOT = { has_character_flag = feast_lustful }
		liege = { 
			has_character_flag = holding_ukon_juhla 
			NOT = { has_character_flag = feast_lustful }
		}
		trait = lustful
		is_female = no
	}
	
	option = {
		name = EVTOPTA_TOG_658
		tooltip_info = lustful
		set_character_flag = feast_lustful
		trigger = {
			is_married = no
		}
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_lustful
				character_event = { id = TOG.729 }
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.729 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = lustful } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = lustful }
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = lustful }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
						trait = lustful
					}
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
			}
		}	
	}
	option = {
		name = EVTOPTB_TOG_658
		tooltip_info = lustful
		set_character_flag = feast_lustful
		trigger = {
			is_married = yes
		}
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_lustful
				character_event = { id = TOG.729 }
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.729 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = lustful } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = lustful }
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = lustful }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
						trait = lustful
					}
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
			}
			any_spouse = {
				opinion = {
					modifier = opinion_mad_as_hell
					who = ROOT
					years = 1
				}
			}
		}	
	}
}

# Lustful (Host and Other Guests)
character_event = {
	id = TOG.729
	desc = EVTDESC_TOG_659
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_659
		trigger = {
			NOT = { trait = lustful }
			NOT = { any_spouse = { character = FROM } }
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
	option = {
		name = EVTOPTB_TOG_659
		tooltip_info = lustful
		trigger = {
			trait = lustful
			NOT = { any_spouse = { character = FROM } }
		}
		opinion = {
			modifier = opinion_lustful_buddy
			who = FROM
		}
	}
	option = {
		name = EVTOPTC_TOG_659
		trigger = {
			any_spouse = { character = FROM }
		}
		opinion = {
			modifier = opinion_mad_as_hell
			who = FROM
			years = 1
		}
	}
}

# Friendship Formed (Guest 1 Hidden)
character_event = {
	id = TOG.730
	hide_window = yes
	is_triggered_only = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = ukon_juhla_feast_vassal
		NOT = { has_character_flag = feast_friendship }
		liege = { 
			has_character_flag = holding_ukon_juhla
			any_vassal = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_friendship }
				NOT = { character = ROOT }
				opinion = { who = ROOT value =  20 }
			}		
		}
	}
	
	immediate = {
		set_character_flag = feast_friendship
		liege = { 
			random_vassal = {
				limit = {
					has_character_flag = ukon_juhla_feast_vassal
					NOT = { character = ROOT }
					opinion = { who = ROOT value =  20 }
				}
				character_event = { id = TOG.731 }
				set_character_flag = feast_friendship
				opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
				reverse_opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
			}		
		}
	}
}

# Friendship Formed (Guest 2)
character_event = {
	id = TOG.731
	desc = EVTDESC_TOG_661
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_661
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.732 }
			}
		}
		tooltip = {
			FROM = {
				opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
			}
			opinion = {
				modifier = opinion_feast_friend
				who = FROM
			}
		}
	}
}

# Friendship Formed (Guest 1)
character_event = {
	id = TOG.732
	desc = EVTDESC_TOG_661
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_661
		tooltip = {
			FROM = {
				opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
			}
			opinion = {
				modifier = opinion_feast_friend
				who = FROM
			}
		}
	}
}

# Homosexual Male (Guest 1 Hidden)
character_event = {
	id = TOG.733
	hide_window = yes
	is_triggered_only = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = ukon_juhla_feast_vassal
		NOT = { has_character_flag = feast_homosexual }
		trait = homosexual
		is_female = no
		has_lover = no
		liege = { 
			has_character_flag = holding_ukon_juhla
			NOT = { has_character_flag = feast_homosexual }
			any_vassal = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				NOT = { character = ROOT }
				opinion = { who = ROOT value =  0 }
				trait = homosexual
				is_female = no
				has_lover = no
			}		
		}
	}
	
	immediate = {
		set_character_flag = feast_homosexual
		liege = { 
			set_character_flag = feast_homosexual
			random_vassal = {
				limit = {
					has_character_flag = ukon_juhla_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = ROOT }
					opinion = { who = ROOT value =  0 }
					trait = homosexual
					is_female = no
				}
				character_event = { id = TOG.734 }
				add_lover = ROOT
				set_character_flag = feast_homosexual
			}		
		}
	}
}

# Homosexual Male (Guest 2)
character_event = {
	id = TOG.734
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.735 }
			}
			liege = {
				character_event = { id = TOG.740 }
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = {
							character = ROOT
							character = FROM
						}
					}
					character_event = { id = TOG.740 }
				}
			}
		}
		tooltip = {
			random = {
				chance = 50
				character_event = { id = TOG.739 tooltip = EVTTOOLTIP_TOG_669 }
			}
			add_lover = FROM
		}
	}
}

# Homosexual Male (Guest 1)
character_event = {
	id = TOG.735
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		random = {
			chance = 50
			character_event = { id = TOG.739 tooltip = EVTTOOLTIP_TOG_669 }
			hidden_tooltip = {
				FROM = {
					character_event = { id = TOG.739 }
				}
			}
		}
		tooltip = {
			add_lover = FROM
		}
	}
}

# Homosexual Female (Guest 1 Hidden)
character_event = {
	id = TOG.736
	hide_window = yes
	is_triggered_only = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = ukon_juhla_feast_vassal
		NOT = { has_character_flag = feast_homosexual }
		trait = homosexual
		is_female = yes
		has_lover = no
		liege = { 
			has_character_flag = holding_ukon_juhla
			NOT = { has_character_flag = feast_homosexual }
			any_vassal = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				NOT = { character = ROOT }
				opinion = { who = ROOT value =  0 }
				trait = homosexual
				is_female = yes
				has_lover = no
			}		
		}
	}
	
	immediate = {
		set_character_flag = feast_homosexual
		liege = { 
			set_character_flag = feast_homosexual
			random_vassal = {
				limit = {
					has_character_flag = ukon_juhla_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = ROOT }
					opinion = { who = ROOT value =  0 }
					trait = homosexual
					is_female = yes
				}
				character_event = { id = TOG.737 }
				set_character_flag = feast_homosexual
				add_lover = ROOT
			}		
		}
	}
}

# Homosexual Female (Guest 2)
character_event = {
	id = TOG.737
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.738 }
			}
			liege = {
				character_event = { id = TOG.740 }
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = {
							character = ROOT
							character = FROM
						}
					}
					character_event = { id = TOG.740 }
				}
			}			
		}
		tooltip = {
			random = {
				chance = 50
				character_event = { id = TOG.739 tooltip = EVTTOOLTIP_TOG_669 }
			}
			add_lover = FROM
		}
	}
}

# Homosexual Female (Guest 1)
character_event = {
	id = TOG.738
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		random = {
			chance = 50
			character_event = { id = TOG.739 tooltip = EVTTOOLTIP_TOG_669 }
			hidden_tooltip = {
				FROM = {
					character_event = { id = TOG.739 }
				}
			}
		}
		tooltip = {
			add_lover = FROM
		}
	}
}

# Homosexual Caught
character_event = {
	id = TOG.739
	desc = EVTDESC_TOG_669
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_669
		out_homosexual_effect = yes
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = homosexual } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = homosexual }
					opinion = {
						modifier = opinion_homosexual_sympathy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = homosexual }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { character = ROOT }
						trait = homosexual
					}
					opinion = {
						modifier = opinion_homosexual_sympathy
						who = ROOT
					}
				}
			}
		}	
	}
}

# Homosexual Caught (Host and Other Guests)
character_event = {
	id = TOG.740
	desc = EVTDESC_TOG_670
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_670
		trigger = {
			NOT = { trait = homosexual }
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
	option = {
		name = EVTOPTB_TOG_670
		tooltip_info = homosexual
		trigger = {
			trait = homosexual
		}
		opinion = {
			modifier = opinion_homosexual_sympathy
			who = FROM
		}
	}
}

### Feast event bounces
character_event = { #feast_drunkard
	id = TOG.741
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_ukon_juhla
		NOT = { has_character_flag = feast_drunkard }
		any_vassal = {
			has_character_flag = ukon_juhla_feast_vassal
			NOT = { has_character_flag = feast_drunkard }
			trait = drunkard
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_drunkard }
				trait = drunkard
			}
			character_event = { id = TOG.720 }
		}
	}
}

character_event = {
	id = TOG.742 #feast_gluttonous
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_ukon_juhla
		NOT = { has_character_flag = feast_gluttonous }
		any_vassal = {
			has_character_flag = ukon_juhla_feast_vassal
			NOT = { has_character_flag = feast_gluttonous }
			trait = gluttonous
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_gluttonous }
				trait = gluttonous
			}
			character_event = { id = TOG.722 }
		}
	}
}

character_event = {
	id = TOG.743 #feast_lunatic
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_ukon_juhla
		NOT = { has_character_flag = feast_lunatic }
		any_vassal = {
			has_character_flag = ukon_juhla_feast_vassal
			NOT = { has_character_flag = feast_lunatic }
			trait = lunatic
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_lunatic }
				trait = lunatic
			}
			character_event = { id = TOG.726 }
		}
	}
}

character_event = {
	id = TOG.744 #feast_lustful
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_ukon_juhla
		NOT = { has_character_flag = feast_lustful }
		any_vassal = { 
			has_character_flag = ukon_juhla_feast_vassal
			NOT = { has_character_flag = feast_lustful }
			trait = lustful
			is_female = no
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_lustful }
				trait = lustful
				is_female = no
			}
			character_event = { id = TOG.728 }
		}
	}
}

character_event = {
	id = TOG.745 #feast_friendship
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_ukon_juhla
		NOT = { has_character_flag = feast_friendship }
		has_character_flag = ukon_juhla_feast_vassal
		any_vassal = {
			has_character_flag = ukon_juhla_feast_vassal
			NOT = { has_character_flag = feast_friendship }
			liege = { 
				any_vassal = {
					has_character_flag = ukon_juhla_feast_vassal
					NOT = { has_character_flag = feast_friendship }
					NOT = { character = PREVPREV }
					opinion = { who = PREVPREV value =  20 }
				}		
			}
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_friendship }
				liege = { 
					any_vassal = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { has_character_flag = feast_friendship }
						NOT = { character = PREVPREV }
						opinion = { who = PREVPREV value =  20 }
					}		
				}
			}
			character_event = { id = TOG.730 }
		}
	}
}

character_event = {
	id = TOG.746 #male_homosexual
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = feast_homosexual }
		has_character_flag = holding_ukon_juhla
		any_vassal = { 
			has_character_flag = ukon_juhla_feast_vassal
			NOT = { has_character_flag = feast_homosexual }
			trait = homosexual
			is_female = no
			has_lover = no
			liege = { 
				any_vassal = {
					has_character_flag = ukon_juhla_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = PREVPREV }
					opinion = { who = PREVPREV value =  0 }
					trait = homosexual
					is_female = no
					has_lover = no
				}		
			}
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				trait = homosexual
				is_female = no
				has_lover = no
				liege = { 
					any_vassal = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { has_character_flag = feast_homosexual }
						NOT = { character = PREVPREV }
						opinion = { who = PREVPREV value =  0 }
						trait = homosexual
						is_female = no
						has_lover = no
					}		
				}
			}
			character_event = { id = TOG.733 }
		}
	}
}

character_event = {
	id = TOG.747 #female_homosexual
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = feast_homosexual }
		has_character_flag = holding_ukon_juhla
		any_vassal = { 
			has_character_flag = ukon_juhla_feast_vassal
			NOT = { has_character_flag = feast_homosexual }
			trait = homosexual
			is_female = yes
			has_lover = no
			liege = { 
				any_vassal = {
					has_character_flag = ukon_juhla_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = PREVPREV }
					opinion = { who = PREVPREV value =  0 }
					trait = homosexual
					is_female = yes
					has_lover = no
				}		
			}
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = ukon_juhla_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				trait = homosexual
				is_female = yes
				has_lover = no
				liege = { 
					any_vassal = {
						has_character_flag = ukon_juhla_feast_vassal
						NOT = { has_character_flag = feast_homosexual }
						NOT = { character = PREVPREV }
						opinion = { who = PREVPREV value =  0 }
						trait = homosexual
						is_female = yes
						has_lover = no
					}		
				}
			}
			character_event = { id = TOG.736 }
		}
	}
}

### Romuva Užgavenes Festival

# Invitations Sent (Liege)
character_event = {
	id = TOG.750
	desc = EVTDESC_TOG_750
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	hide_from = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	has_character_flag = planning_uzgavenes
	
	trigger = {
		war = no
		NOT = { month = 7 }
		month = 4
		is_not_busy_trigger = yes
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = EVTOPTA_TOG_700
		clr_character_flag = planning_uzgavenes
		set_character_flag = holding_uzgavenes
		any_vassal = {
			limit = {
				has_regent = no
				war = no
				is_inaccessible_trigger = no
			}
			character_event = { id = TOG.751 tooltip = EVTTOOLTIP_TOG_751 }
		}
		hidden_tooltip = {
			character_event = { id = TOG.753 days = 10 }
			character_event = { id = TOG.899 days = 50 } # Safety catch flag clearing
			add_character_modifier = {
				name = do_not_disturb
				days = 45
				hidden = yes
			}
		}
	}
}

# Invitations Received (Vassals)
character_event = {
	id = TOG.751
	desc = EVTDESC_TOG_751
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	trigger = { NOT = { is_inaccessible_trigger = yes } }
	
	option = {
		name = EVTOPTA_TOG_701
		trigger = {
			OR = {
				religion = baltic_pagan
				religion = baltic_pagan_reformed
			}
			is_not_busy_trigger = yes
		}
		set_character_flag = attending_uzgavenes
		hidden_tooltip = {
			character_event = { id = TOG.899 days = 50 } # Safety catch flag clearing
			add_character_modifier = {
				name = do_not_disturb
				days = 45
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_TOG_701
		trigger = {
			OR = {
				is_not_busy_trigger = no
				NOT = {
					religion = baltic_pagan
					religion = baltic_pagan_reformed
				}
			}
		}
		FROM = {
			character_event = { id = TOG.752 days = 5 tooltip = DIPLOWINDOW_REJECT }
			opinion = {
				modifier = opinion_refused_uzgavenes
				who = ROOT
			}
		}
	}
}

# Invitation Refused (Liege)
character_event = {
	id = TOG.752
	desc = EVTDESC_TOG_752
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_702
		tooltip = {
			opinion = {
				modifier = opinion_refused_uzgavenes
				who = FROM
			}
		}
	}
}

# Celebration Begins (Liege)
character_event = {
	id = TOG.753
	desc = EVTDESC_TOG_753
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_TOG_753
		custom_tooltip = {
			text = uzgavenes_begins
			hidden_tooltip = {
				any_vassal = {
					limit = { has_character_flag = attending_uzgavenes }
					character_event = { id = TOG.754 }
				}
				character_event = { id = TOG.755 days = 10 }
			}
		}
	}
}

# Celebration Begins (Vassals)
character_event = {
	id = TOG.754
	desc = EVTDESC_TOG_754
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_753
		custom_tooltip = { text = uzgavenes_begins }
	}
}

# Feast Begins (Liege)
character_event = {
	id = TOG.755
	desc = EVTDESC_TOG_755
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_TOG_705
		custom_tooltip = { 
			text = feast_begins
			hidden_tooltip = {
				any_vassal = {
					limit = { has_character_flag = attending_uzgavenes }
					character_event = { id = TOG.756 }
				}
				character_event = { id = TOG.757 days = 25 }
				random_list = {
					10 = { character_event = { id = TOG.791 days = 3 } } 
					10 = { character_event = { id = TOG.792 days = 3 } }
					10 = { character_event = { id = TOG.793 days = 3 } }
					10 = { character_event = { id = TOG.794 days = 3 } }
					10 = { character_event = { id = TOG.795 days = 3 } }
					10 = { character_event = { id = TOG.796 days = 3 } }
					10 = { character_event = { id = TOG.797 days = 3 } }
				}
				random_list = {
					10 = { character_event = { id = TOG.791 days = 8 } }
					10 = { character_event = { id = TOG.792 days = 8 } }
					10 = { character_event = { id = TOG.793 days = 8 } }
					10 = { character_event = { id = TOG.794 days = 8 } }
					10 = { character_event = { id = TOG.795 days = 8 } }
					10 = { character_event = { id = TOG.796 days = 8 } }
					10 = { character_event = { id = TOG.797 days = 8 } }
				}
				random_list = {
					10 = { character_event = { id = TOG.791 days = 13 } }
					10 = { character_event = { id = TOG.792 days = 13 } }
					10 = { character_event = { id = TOG.793 days = 13 } }
					10 = { character_event = { id = TOG.794 days = 13 } }
					10 = { character_event = { id = TOG.795 days = 13 } }
					10 = { character_event = { id = TOG.796 days = 13 } }
					10 = { character_event = { id = TOG.797 days = 13 } }
				}
				random_list = {
					10 = { character_event = { id = TOG.791 days = 18 } }
					10 = { character_event = { id = TOG.792 days = 18 } }
					10 = { character_event = { id = TOG.793 days = 18 } }
					10 = { character_event = { id = TOG.794 days = 18 } }
					10 = { character_event = { id = TOG.795 days = 18 } }
					10 = { character_event = { id = TOG.796 days = 18 } }
					10 = { character_event = { id = TOG.797 days = 18 } }
				}
			}
		}
	}
}

# Feast Begins (Vassals)
character_event = {
	id = TOG.756
	desc = EVTDESC_TOG_756
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_705
		set_character_flag = uzgavenes_feast_vassal
		custom_tooltip = { text = feast_begins }
	}
}

# Feast Ends (Liege)
character_event = {
	id = TOG.757
	desc = EVTDESC_TOG_757
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_TOG_707
		any_vassal = {
			limit = { has_character_flag = attending_uzgavenes }
			opinion = {
				modifier = opinion_uzgavenes
				who = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_uzgavenes }
				character_event = { id = TOG.758 }
			}
			add_character_modifier = {
				name = held_uzgavenes_timer
				duration = 1825
				hidden = yes
			}
		}
		prestige = 100
		piety = 100
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			clr_character_flag = holding_uzgavenes
			clr_character_flag = feast_drunkard
			clr_character_flag = feast_gluttonous
			clr_character_flag = feast_lunatic
			clr_character_flag = feast_lustful
			clr_character_flag = feast_homosexual
		}
	}
}

# Feast Ends (Vassals)
character_event = {
	id = TOG.758
	desc = EVTDESC_TOG_758
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_707
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			clr_character_flag = attending_uzgavenes
			clr_character_flag = uzgavenes_feast_vassal
			clr_character_flag = feast_drunkard
			clr_character_flag = feast_gluttonous
			clr_character_flag = feast_lunatic
			clr_character_flag = feast_lustful
			clr_character_flag = feast_friendship
			clr_character_flag = feast_homosexual
		}
	}
}

## Užgavenes Feast Events

# Drunkard (Guest)
character_event = {
	id = TOG.770
	desc = EVTDESC_TOG_650
	picture = GFX_evt_drunk
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	hide_from = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = uzgavenes_feast_vassal
		NOT = { has_character_flag = feast_drunkard }
		liege = { 
			has_character_flag = holding_uzgavenes 
			NOT = { has_character_flag = feast_drunkard }
		}
		trait = drunkard
	}
	
	option = {
		name = EVTOPTA_TOG_650
		tooltip_info = drunkard
		set_character_flag = feast_drunkard
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_drunkard
				character_event = { id = TOG.771 }
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.771 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = drunkard } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = drunkard }
					opinion = {
						modifier = opinion_drinking_buddy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = drunkard }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
						trait = drunkard
					}
					opinion = {
						modifier = opinion_drinking_buddy
						who = ROOT
					}
				}
			}
		}
	}
}

# Drunkard (Host and Other Guests)
character_event = {
	id = TOG.771
	desc = EVTDESC_TOG_651
	picture = GFX_evt_drunk
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_651
		trigger = { 
			NOT = { trait = drunkard } 
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
	option = {
		name = EVTOPTB_TOG_651
		tooltip_info = drunkard
		trigger = { 
			trait = drunkard
		}
		opinion = {
			modifier = opinion_drinking_buddy
			who = FROM
		}
	}
}

# Gluttonous (Victim Hidden)
character_event = {
	id = TOG.772
	is_triggered_only = yes
	hide_window = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = uzgavenes_feast_vassal
		liege = {
			has_character_flag = holding_uzgavenes
			NOT = { has_character_flag = feast_gluttonous }
			any_vassal = {
				has_character_flag = uzgavenes_feast_vassal
				NOT = { has_character_flag = feast_gluttonous }
				trait = gluttonous
				NOT = { character = ROOT }
			}
		}
	}
	
	immediate = {
		liege = {
			set_character_flag = feast_gluttonous
			random_vassal = {
				limit = {
					has_character_flag = uzgavenes_feast_vassal
					trait = gluttonous
					NOT = { character = ROOT }
				}
				character_event = { id = TOG.773 }
				set_character_flag = feast_gluttonous
			}
		}
	}
}

# Gluttonous (Guest)
character_event = {
	id = TOG.773
	desc = EVTDESC_TOG_653
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_653
		tooltip_info = gluttonous
		FROM = {
			character_event = { id = TOG.774 tooltip = EVTTOOLTIP_TOG_654 }
		}	
		hidden_tooltip = {
			liege = {
				character_event = { id = TOG.775 }
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { 
							character = ROOT 
							character = FROM
						}
					}
					character_event = { id = TOG.775 }
				}
			}
		}
		tooltip = {
			FROM = {
				opinion = {
					modifier = opinion_vomit
					who = ROOT
				}
			}
			liege = {
				opinion = {
					modifier = opinion_feast_scandal
					who = ROOT
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { 
							character = ROOT 
							character = FROM
						}
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
			}
		}
	}
}

# Gluttonous (Victim)
character_event = {
	id = TOG.774
	desc = EVTDESC_TOG_654
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_654
		opinion = {
			modifier = opinion_vomit
			who = FROM
		}
	}
}

# Gluttonous (Host and Other Guests)
character_event = {
	id = TOG.775
	desc = EVTDESC_TOG_655
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_655
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
}

# Lunatic (Guest)
character_event = {
	id = TOG.776
	desc = EVTDESC_TOG_656
	picture = GFX_evt_lunatic
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	hide_from = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = uzgavenes_feast_vassal
		NOT = { has_character_flag = feast_lunatic }
		liege = { 
			has_character_flag = holding_uzgavenes
			NOT = { has_character_flag = feast_lunatic }
		}
		trait = lunatic
	}
	
	option = {
		name = EVTOPTA_TOG_656
		tooltip_info = lunatic
		set_character_flag = feast_lunatic
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_lunatic
				character_event = { id = TOG.777 }
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.777 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = lunatic } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = lunatic }
					opinion = {
						modifier = opinion_feast_friend
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = lunatic }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
						trait = lunatic
					}
					opinion = {
						modifier = opinion_feast_friend
						who = ROOT
					}
				}
			}
		}	
	}
}

# Lunatic (Host and Other Guests)
character_event = {
	id = TOG.777
	desc = EVTDESC_TOG_657
	picture = GFX_evt_lunatic
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_657
		trigger = {
			NOT = { trait = lunatic }
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = ROOT
		}
	}
	option = {
		name = EVTOPTB_TOG_657
		tooltip_info = lunatic
		trigger = {
			trait = lunatic
		}
		opinion = {
			modifier = opinion_feast_friend
			who = ROOT
		}
	}
}

# Lustful (Guest)
character_event = {
	id = TOG.778
	desc = EVTDESC_TOG_658
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	hide_from = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = uzgavenes_feast_vassal
		NOT = { has_character_flag = feast_lustful }
		liege = { 
			has_character_flag = holding_uzgavenes 
			NOT = { has_character_flag = feast_lustful }
		}
		trait = lustful
		is_female = no
	}
	
	option = {
		name = EVTOPTA_TOG_658
		tooltip_info = lustful
		set_character_flag = feast_lustful
		trigger = {
			is_married = no
		}
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_lustful
				character_event = { id = TOG.779 }
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.779 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = lustful } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = lustful }
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = lustful }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
						trait = lustful
					}
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
			}
		}	
	}
	option = {
		name = EVTOPTB_TOG_658
		tooltip_info = lustful
		set_character_flag = feast_lustful
		trigger = {
			is_married = yes
		}
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_lustful
				character_event = { id = TOG.779 }
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.779 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = lustful } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = lustful }
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = lustful }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
						trait = lustful
					}
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
			}
			any_spouse = {
				opinion = {
					modifier = opinion_mad_as_hell
					who = ROOT
					years = 1
				}
			}
		}	
	}
}

# Lustful (Host and Other Guests)
character_event = {
	id = TOG.779
	desc = EVTDESC_TOG_659
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_659
		trigger = {
			NOT = { trait = lustful }
			NOT = { any_spouse = { character = FROM } }
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
	option = {
		name = EVTOPTB_TOG_659
		tooltip_info = lustful
		trigger = {
			trait = lustful
			NOT = { any_spouse = { character = FROM } }
		}
		opinion = {
			modifier = opinion_lustful_buddy
			who = FROM
		}
	}
	option = {
		name = EVTOPTC_TOG_659
		trigger = {
			any_spouse = { character = FROM }
		}
		opinion = {
			modifier = opinion_mad_as_hell
			who = FROM
			years = 1
		}
	}
}

# Friendship Formed (Guest 1 Hidden)
character_event = {
	id = TOG.780
	is_triggered_only = yes
	hide_window = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = uzgavenes_feast_vassal
		NOT = { has_character_flag = feast_friendship }
		liege = { 
			has_character_flag = holding_uzgavenes
			any_vassal = {
				has_character_flag = uzgavenes_feast_vassal
				NOT = { has_character_flag = feast_friendship }
				NOT = { character = ROOT }
				opinion = { who = ROOT value =  20 }
			}		
		}
	}
	
	immediate = {
		set_character_flag = feast_friendship
		liege = { 
			random_vassal = {
				limit = {
					has_character_flag = uzgavenes_feast_vassal
					NOT = { character = ROOT }
					opinion = { who = ROOT value =  20 }
				}
				character_event = { id = TOG.781 }
				set_character_flag = feast_friendship
				opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
				reverse_opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
			}		
		}
	}
}

# Friendship Formed (Guest 2)
character_event = {
	id = TOG.781
	desc = EVTDESC_TOG_661
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_661
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.782 }
			}
		}
		tooltip = {
			FROM = {
				opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
			}
			opinion = {
				modifier = opinion_feast_friend
				who = FROM
			}
		}
	}
}

# Friendship Formed (Guest 1)
character_event = {
	id = TOG.782
	desc = EVTDESC_TOG_661
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_661
		tooltip = {
			FROM = {
				opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
			}
			opinion = {
				modifier = opinion_feast_friend
				who = FROM
			}
		}
	}
}

# Homosexual Male (Guest 1 Hidden)
character_event = {
	id = TOG.783
	is_triggered_only = yes
	hide_window = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	only_men = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = uzgavenes_feast_vassal
		NOT = { has_character_flag = feast_homosexual }
		trait = homosexual
		is_female = no
		has_lover = no
		liege = { 
			has_character_flag = holding_uzgavenes
			NOT = { has_character_flag = feast_homosexual }
			any_vassal = {
				has_character_flag = uzgavenes_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				NOT = { character = ROOT }
				opinion = { who = ROOT value =  0 }
				trait = homosexual
				is_female = no
				has_lover = no
			}		
		}
	}
	
	immediate = {
		set_character_flag = feast_homosexual
		liege = { 
			set_character_flag = feast_homosexual
			random_vassal = {
				limit = {
					has_character_flag = uzgavenes_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = ROOT }
					opinion = { who = ROOT value =  0 }
					trait = homosexual
					is_female = no
				}
				character_event = { id = TOG.784 }
				add_lover = ROOT
				set_character_flag = feast_homosexual
			}		
		}
	}
}

# Homosexual Male (Guest 2)
character_event = {
	id = TOG.784
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.785 }
			}
			liege = {
				character_event = { id = TOG.790 }
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = {
							character = ROOT
							character = FROM
						}
					}
					character_event = { id = TOG.790 }
				}
			}
		}
		tooltip = {
			random = {
				chance = 50
				character_event = { id = TOG.789 tooltip = EVTTOOLTIP_TOG_669 }
			}
			add_lover = FROM
		}
	}
}

# Homosexual Male (Guest 1)
character_event = {
	id = TOG.785
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		random = {
			chance = 50
			character_event = { id = TOG.789 tooltip = EVTTOOLTIP_TOG_669 }
			hidden_tooltip = {
				FROM = {
					character_event = { id = TOG.789 }
				}
			}
		}
		tooltip = {
			add_lover = FROM
		}
	}
}

# Homosexual Female (Guest 1 Hidden)
character_event = {
	id = TOG.786
	is_triggered_only = yes
	hide_window = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	only_women = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = uzgavenes_feast_vassal
		NOT = { has_character_flag = feast_homosexual }
		trait = homosexual
		is_female = yes
		has_lover = no
		liege = { 
			has_character_flag = holding_uzgavenes
			NOT = { has_character_flag = feast_homosexual }
			any_vassal = {
				has_character_flag = uzgavenes_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				NOT = { character = ROOT }
				opinion = { who = ROOT value =  0 }
				trait = homosexual
				is_female = yes
				has_lover = no
			}		
		}
	}
	
	immediate = {
		set_character_flag = feast_homosexual
		liege = { 
			set_character_flag = feast_homosexual
			random_vassal = {
				limit = {
					has_character_flag = uzgavenes_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = ROOT }
					opinion = { who = ROOT value =  0 }
					trait = homosexual
					is_female = yes
				}
				character_event = { id = TOG.787 }
				set_character_flag = feast_homosexual
				add_lover = ROOT
			}		
		}
	}
}

# Homosexual Female (Guest 2)
character_event = {
	id = TOG.787
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.788 }
			}
			liege = {
				character_event = { id = TOG.790 }
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = {
							character = ROOT
							character = FROM
						}
					}
					character_event = { id = TOG.790 }
				}
			}			
		}
		tooltip = {
			random = {
				chance = 50
				character_event = { id = TOG.789 tooltip = EVTTOOLTIP_TOG_669 }
			}
			add_lover = FROM
		}
	}
}

# Homosexual Female (Guest 1)
character_event = {
	id = TOG.788
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		random = {
			chance = 50
			character_event = { id = TOG.789 tooltip = EVTTOOLTIP_TOG_669 }
			hidden_tooltip = {
				FROM = {
					character_event = { id = TOG.789 }
				}
			}
		}
		tooltip = {
			add_lover = FROM
		}
	}
}

# Homosexual Caught
character_event = {
	id = TOG.789
	desc = EVTDESC_TOG_669
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_669
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = homosexual } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = homosexual }
					opinion = {
						modifier = opinion_homosexual_sympathy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = homosexual }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = uzgavenes_feast_vassal
						NOT = { character = ROOT }
						trait = homosexual
					}
					opinion = {
						modifier = opinion_homosexual_sympathy
						who = ROOT
					}
				}
			}
		}	
	}
}

# Homosexual Caught (Host and Other Guests)
character_event = {
	id = TOG.790
	desc = EVTDESC_TOG_670
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_670
		trigger = {
			NOT = { trait = homosexual }
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
	option = {
		name = EVTOPTB_TOG_670
		tooltip_info = homosexual
		trigger = {
			trait = homosexual
		}
		opinion = {
			modifier = opinion_homosexual_sympathy
			who = FROM
		}
	}
}

### Feast event bounces
character_event = { #feast_drunkard
	id = TOG.791
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_uzgavenes
		NOT = { has_character_flag = feast_drunkard }
		any_vassal = {
			has_character_flag = uzgavanes_feast_vassal
			NOT = { has_character_flag = feast_drunkard }
			trait = drunkard
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = uzgavanes_feast_vassal
				trait = drunkard
			}
			character_event = { id = TOG.770 }
		}
	}
}

character_event = {
	id = TOG.792 #feast_gluttonous
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_uzgavenes
		NOT = { has_character_flag = feast_gluttonous }
		any_vassal = {
			has_character_flag = uzgavanes_feast_vassal
			NOT = { has_character_flag = feast_gluttonous }
			trait = gluttonous
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = uzgavanes_feast_vassal
				trait = gluttonous
			}
			character_event = { id = TOG.772 }
		}
	}
}

character_event = {
	id = TOG.793 #feast_lunatic
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_uzgavenes
		NOT = { has_character_flag = feast_lunatic }
		any_vassal = {
			has_character_flag = uzgavanes_feast_vassal
			NOT = { has_character_flag = feast_lunatic }
			trait = lunatic
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = uzgavanes_feast_vassal
				trait = lunatic
			}
			character_event = { id = TOG.776 }
		}
	}
}

character_event = {
	id = TOG.794 #feast_lustful
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_uzgavenes
		NOT = { has_character_flag = feast_lustful }
		any_vassal = { 
			has_character_flag = uzgavanes_feast_vassal
			NOT = { has_character_flag = feast_lustful }
			trait = lustful
			is_female = no
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = uzgavanes_feast_vassal
				trait = lustful
				is_female = no
			}
			character_event = { id = TOG.778 }
		}
	}
}

character_event = {
	id = TOG.795 #feast_friendship
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_uzgavenes
		NOT = { has_character_flag = feast_friendship }
		has_character_flag = uzgavanes_feast_vassal
		any_vassal = {
			has_character_flag = uzgavanes_feast_vassal
			NOT = { has_character_flag = feast_friendship }
			liege = { 
				any_vassal = {
					has_character_flag = uzgavanes_feast_vassal
					NOT = { has_character_flag = feast_friendship }
					NOT = { character = PREVPREV }
					opinion = { who = PREVPREV value =  20 }
				}		
			}
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = uzgavanes_feast_vassal
				NOT = { has_character_flag = feast_friendship }
				liege = { 
					any_vassal = {
						has_character_flag = uzgavanes_feast_vassal
						NOT = { has_character_flag = feast_friendship }
						NOT = { character = PREVPREV }
						opinion = { who = PREVPREV value =  20 }
					}		
				}
			}
			character_event = { id = TOG.780 }
		}
	}
}

character_event = {
	id = TOG.796 #male_homosexual
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = feast_homosexual }
		has_character_flag = holding_uzgavenes
		any_vassal = { 
			has_character_flag = uzgavanes_feast_vassal
			NOT = { has_character_flag = feast_homosexual }
			trait = homosexual
			is_female = no
			has_lover = no
			liege = { 
				any_vassal = {
					has_character_flag = uzgavanes_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = PREVPREV }
					opinion = { who = PREVPREV value =  0 }
					trait = homosexual
					is_female = no
					has_lover = no
				}		
			}
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = uzgavanes_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				trait = homosexual
				is_female = no
				has_lover = no
				liege = { 
					any_vassal = {
						has_character_flag = uzgavanes_feast_vassal
						NOT = { has_character_flag = feast_homosexual }
						NOT = { character = PREVPREV }
						opinion = { who = PREVPREV value =  0 }
						trait = homosexual
						is_female = no
						has_lover = no
					}		
				}
			}
			character_event = { id = TOG.783 }
		}
	}
}

character_event = {
	id = TOG.797 #female_homosexual
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = feast_homosexual }
		has_character_flag = holding_uzgavenes
		any_vassal = { 
			has_character_flag = uzgavanes_feast_vassal
			NOT = { has_character_flag = feast_homosexual }
			trait = homosexual
			is_female = yes
			has_lover = no
			liege = { 
				any_vassal = {
					has_character_flag = uzgavanes_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = PREVPREV }
					opinion = { who = PREVPREV value =  0 }
					trait = homosexual
					is_female = yes
					has_lover = no
				}		
			}
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = uzgavanes_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				trait = homosexual
				is_female = yes
				has_lover = no
				liege = { 
					any_vassal = {
						has_character_flag = uzgavanes_feast_vassal
						NOT = { has_character_flag = feast_homosexual }
						NOT = { character = PREVPREV }
						opinion = { who = PREVPREV value =  0 }
						trait = homosexual
						is_female = yes
						has_lover = no
					}		
				}
			}
			character_event = { id = TOG.786 }
		}
	}
}

### Slavic Jarilo Festival

# Invitations Sent (Liege)
character_event = {
	id = TOG.800
	desc = EVTDESC_TOG_800
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	hide_from = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	has_character_flag = planning_jarilo
	
	trigger = {
		war = no
		NOT = { month = 7 }
		month = 4
		is_not_busy_trigger = yes
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = EVTOPTA_TOG_700
		clr_character_flag = planning_jarilo
		set_character_flag = holding_jarilo
		any_vassal = {
			limit = {
				has_regent = no
				war = no
				is_inaccessible_trigger = no
			}
			character_event = { id = TOG.801 tooltip = EVTTOOLTIP_TOG_801 }
		}
		hidden_tooltip = {
			character_event = { id = TOG.803 days = 10 }
			character_event = { id = TOG.899 days = 50 } # Safety catch flag clearing
			add_character_modifier = {
				name = do_not_disturb
				days = 45
				hidden = yes
			}
		}
	}
}

# Invitations Received (Vassals)
character_event = {
	id = TOG.801
	desc = EVTDESC_TOG_801
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	trigger = { NOT = { is_inaccessible_trigger = yes } }
	
	option = {
		name = EVTOPTA_TOG_701
		trigger = {
			OR = {
				religion = slavic_pagan
				religion = slavic_pagan_reformed
			}
			is_not_busy_trigger = yes
		}
		set_character_flag = attending_jarilo
		hidden_tooltip = {
			character_event = { id = TOG.899 days = 50 } # Safety catch flag clearing
			add_character_modifier = {
				name = do_not_disturb
				days = 45
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_TOG_701
		trigger = {
			OR = {
				is_not_busy_trigger = no
				NOT = {
					religion = slavic_pagan
					religion = slavic_pagan_reformed
				}
			}
		}
		FROM = {
			character_event = { id = TOG.802 days = 5 tooltip = DIPLOWINDOW_REJECT }
			opinion = {
				modifier = opinion_refused_jarilo
				who = ROOT
			}
		}
	}
}

# Invitation Refused (Liege)
character_event = {
	id = TOG.802
	desc = EVTDESC_TOG_802
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_702
		tooltip = {
			opinion = {
				modifier = opinion_refused_jarilo
				who = FROM
			}
		}
	}
}

# Celebration Begins (Liege)
character_event = {
	id = TOG.803
	desc = EVTDESC_TOG_803
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_TOG_803
		hidden_tooltip = {
			random_vassal = {
				limit = { 
					has_character_flag = attending_jarilo
					is_female = no
				}
				character_event = { id = TOG.845 days = 2 }
			}
			character_event = { id = TOG.805 days = 10 }
		}
		hidden_tooltip = {
			if = {
				limit = {
					NOT = {
						any_vassal = {
							has_character_flag = attending_jarilo
							is_female = no
						}
					}
				}
				character_event = { id = TOG.848 days = 2 }
			}
		}	
		custom_tooltip = { 
			text = jarilo_deliberations
			hidden_tooltip = {
				any_vassal = {
					limit = { has_character_flag = attending_jarilo }
					character_event = { id = TOG.804 }
				}
			}
		}
	}
}

# Vassal chosen to be Jarilo
character_event = {
	id = TOG.845
	desc = EVTDESC_TOG_845
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_845
		trigger = {
			NOT = { trait = cynical }
		}
		FROM = {
			if = {
				limit = {
					NOT = { trait = cynical }
				}
				opinion = {
					modifier = opinion_represented_jarilo
					who = ROOT
				}
			}
			any_vassal = {
				limit = { 
					has_character_flag = attending_jarilo 
					NOT = { character = ROOT }
					NOT = { trait = cynical }
				}
				opinion = {
					modifier = opinion_represented_jarilo
					who = ROOT
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.846 }
				any_vassal = {
					limit = { 
						has_character_flag = attending_jarilo 
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.847 }
				}
			}
		}	
	}
	option = {
		name = EVTOPTB_TOG_845
		tooltip_info = cynical
		trigger = {
			trait = cynical
		}
		FROM = {
			if = {
				limit = {
					NOT = { trait = cynical }
				}
				opinion = {
					modifier = opinion_represented_jarilo
					who = ROOT
				}
			}
			any_vassal = {
				limit = { 
					has_character_flag = attending_jarilo 
					NOT = { character = ROOT }
					NOT = { trait = cynical }
				}
				opinion = {
					modifier = opinion_represented_jarilo
					who = ROOT
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.846 }
				any_vassal = {
					limit = { 
						has_character_flag = attending_jarilo 
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.847 }
				}
			}
		}
	}
}

# Informed who will be Jarilo (Liege)
character_event = {
	id = TOG.846
	desc = EVTDESC_TOG_846
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_846
		trigger = {
			NOT = { trait = cynical }
		}
		tooltip = {
			opinion = {
				modifier = opinion_represented_jarilo
				who = FROM
			}
		}	
	}
	option = {
		name = EVTOPTB_TOG_846
		tooltip_info = cynical
		trigger = {
			trait = cynical
		}
	}
}

# Informed who will be Jarilo (Vassal)
character_event = {
	id = TOG.847
	desc = EVTDESC_TOG_846
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_846
		trigger = {
			NOT = { trait = cynical }
		}
		tooltip = {
			opinion = {
				modifier = opinion_represented_jarilo
				who = FROM
			}
		}	
	}
	option = {
		name = EVTOPTB_TOG_846
		tooltip_info = cynical
		trigger = {
			trait = cynical
		}
	}
}

# No vassals participating - Liege is Jarilo (Liege)
character_event = {
	id = TOG.848
	desc = EVTDESC_TOG_848
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_TOG_845
		trigger = {
			NOT = { trait = cynical }
		}
	}
	option = {
		name = EVTOPTB_TOG_845
		tooltip_info = cynical
		trigger = {
			trait = cynical
		}
	}
}

# Celebration Begins (Vassals)
character_event = {
	id = TOG.804
	desc = EVTDESC_TOG_804
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_803
		custom_tooltip = { text = jarilo_deliberations }
	}
}

# Feast Begins (Liege)
character_event = {
	id = TOG.805
	desc = EVTDESC_TOG_805
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_TOG_705
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_jarilo }
				character_event = { id = TOG.806 }
			}
			character_event = { id = TOG.807 days = 25 }
			random_list = {
				10 = { character_event = { id = TOG.841 days = 3 } } 
				10 = { character_event = { id = TOG.842 days = 3 } }
				10 = { character_event = { id = TOG.843 days = 3 } }
				10 = { character_event = { id = TOG.844 days = 3 } }
				10 = { character_event = { id = TOG.849 days = 3 } }
				10 = { character_event = { id = TOG.850 days = 3 } }
				10 = { character_event = { id = TOG.851 days = 3 } }
			}
			random_list = {
				10 = { character_event = { id = TOG.841 days = 8 } }
				10 = { character_event = { id = TOG.842 days = 8 } }
				10 = { character_event = { id = TOG.843 days = 8 } }
				10 = { character_event = { id = TOG.844 days = 8 } }
				10 = { character_event = { id = TOG.849 days = 8 } }
				10 = { character_event = { id = TOG.850 days = 8 } }
				10 = { character_event = { id = TOG.851 days = 8 } }
			}
			random_list = {
				10 = { character_event = { id = TOG.841 days = 13 } }
				10 = { character_event = { id = TOG.842 days = 13 } }
				10 = { character_event = { id = TOG.843 days = 13 } }
				10 = { character_event = { id = TOG.844 days = 13 } }
				10 = { character_event = { id = TOG.849 days = 13 } }
				10 = { character_event = { id = TOG.850 days = 13 } }
				10 = { character_event = { id = TOG.851 days = 13 } }
			}
			random_list = {
				10 = { character_event = { id = TOG.841 days = 18 } }
				10 = { character_event = { id = TOG.842 days = 18 } }
				10 = { character_event = { id = TOG.843 days = 18 } }
				10 = { character_event = { id = TOG.844 days = 18 } }
				10 = { character_event = { id = TOG.849 days = 18 } }
				10 = { character_event = { id = TOG.850 days = 18 } }
				10 = { character_event = { id = TOG.851 days = 18 } }
			}
		}
		custom_tooltip = { text = feast_begins }
	}
}

# Feast Begins (Vassals)
character_event = {
	id = TOG.806
	desc = EVTDESC_TOG_806
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_705
		set_character_flag = jarilo_feast_vassal
		custom_tooltip = { text = feast_begins }
	}
}

# Feast Ends (Liege)
character_event = {
	id = TOG.807
	desc = EVTDESC_TOG_807
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_TOG_707
		any_vassal = {
			limit = { has_character_flag = attending_jarilo }
			opinion = {
				modifier = opinion_jarilo
				who = ROOT
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = attending_jarilo }
				character_event = { id = TOG.808 }
			}
			add_character_modifier = {
				name = held_jarilo_timer
				duration = 1825
				hidden = yes
			}
		}
		prestige = 100
		piety = 100
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			clr_character_flag = holding_jarilo
			clr_character_flag = feast_drunkard
			clr_character_flag = feast_gluttonous
			clr_character_flag = feast_lunatic
			clr_character_flag = feast_lustful
			clr_character_flag = feast_homosexual
		}
	}
}

# Feast Ends (Vassals)
character_event = {
	id = TOG.808
	desc = EVTDESC_TOG_808
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_707
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			clr_character_flag = attending_jarilo
			clr_character_flag = jarilo_feast_vassal
			clr_character_flag = feast_drunkard
			clr_character_flag = feast_gluttonous
			clr_character_flag = feast_lunatic
			clr_character_flag = feast_lustful
			clr_character_flag = feast_friendship
			clr_character_flag = feast_homosexual
		}
	}
}

## Jarilo Feast Events

# Drunkard (Guest)
character_event = {
	id = TOG.820
	desc = EVTDESC_TOG_650
	picture = GFX_evt_drunk
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	hide_from = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = jarilo_feast_vassal
		NOT = { has_character_flag = feast_drunkard }
		liege = { 
			has_character_flag = holding_jarilo
			NOT = { has_character_flag = feast_drunkard }
		}
		trait = drunkard
	}
	
	option = {
		name = EVTOPTA_TOG_650
		tooltip_info = drunkard
		set_character_flag = feast_drunkard
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_drunkard
				character_event = { id = TOG.821 }
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.821 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = drunkard } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = drunkard }
					opinion = {
						modifier = opinion_drinking_buddy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = drunkard }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
						trait = drunkard
					}
					opinion = {
						modifier = opinion_drinking_buddy
						who = ROOT
					}
				}
			}
		}
	}
}

# Drunkard (Host and Other Guests)
character_event = {
	id = TOG.821
	desc = EVTDESC_TOG_651
	picture = GFX_evt_drunk
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_651
		trigger = { 
			NOT = { trait = drunkard } 
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
	option = {
		name = EVTOPTB_TOG_651
		tooltip_info = drunkard
		trigger = { 
			trait = drunkard
		}
		opinion = {
			modifier = opinion_drinking_buddy
			who = FROM
		}
	}
}

# Gluttonous (Victim Hidden)
character_event = {
	id = TOG.822
	is_triggered_only = yes
	hide_window = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = jarilo_feast_vassal
		liege = {
			has_character_flag = holding_jarilo
			NOT = { has_character_flag = feast_gluttonous }
			any_vassal = {
				has_character_flag = jarilo_feast_vassal
				NOT = { has_character_flag = feast_gluttonous }
				trait = gluttonous
				NOT = { character = ROOT }
			}
		}
	}
	
	immediate = {
		liege = {
			set_character_flag = feast_gluttonous
			random_vassal = {
				limit = {
					has_character_flag = jarilo_feast_vassal
					trait = gluttonous
					NOT = { character = ROOT }
				}
				character_event = { id = TOG.823 }
				set_character_flag = feast_gluttonous
			}
		}
	}
}

# Gluttonous (Guest)
character_event = {
	id = TOG.823
	desc = EVTDESC_TOG_653
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_653
		tooltip_info = gluttonous
		FROM = {
			character_event = { id = TOG.824 tooltip = EVTTOOLTIP_TOG_654 }
		}	
		hidden_tooltip = {
			liege = {
				character_event = { id = TOG.825 }
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { 
							character = ROOT 
							character = FROM
						}
					}
					character_event = { id = TOG.825 }
				}
			}
		}
		tooltip = {
			FROM = {
				opinion = {
					modifier = opinion_vomit
					who = ROOT
				}
			}
			liege = {
				opinion = {
					modifier = opinion_feast_scandal
					who = ROOT
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { 
							character = ROOT 
							character = FROM
						}
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
			}
		}
	}
}

# Gluttonous (Victim)
character_event = {
	id = TOG.824
	desc = EVTDESC_TOG_654
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_654
		opinion = {
			modifier = opinion_vomit
			who = FROM
		}
	}
}

# Gluttonous (Host and Other Guests)
character_event = {
	id = TOG.825
	desc = EVTDESC_TOG_655
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_655
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
}

# Lunatic (Guest)
character_event = {
	id = TOG.826
	desc = EVTDESC_TOG_656
	picture = GFX_evt_lunatic
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	hide_from = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = jarilo_feast_vassal
		NOT = { has_character_flag = feast_lunatic }
		liege = { 
			has_character_flag = holding_jarilo 
			NOT = { has_character_flag = feast_lunatic }
		}
		trait = lunatic
	}
	
	option = {
		name = EVTOPTA_TOG_656
		tooltip_info = lunatic
		set_character_flag = feast_lunatic
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_lunatic
				character_event = { id = TOG.827 }
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.827 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = lunatic } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = lunatic }
					opinion = {
						modifier = opinion_feast_friend
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = lunatic }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
						trait = lunatic
					}
					opinion = {
						modifier = opinion_feast_friend
						who = ROOT
					}
				}
			}
		}	
	}
}

# Lunatic (Host and Other Guests)
character_event = {
	id = TOG.827
	desc = EVTDESC_TOG_657
	picture = GFX_evt_lunatic
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_657
		trigger = {
			NOT = { trait = lunatic }
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = ROOT
		}
	}
	option = {
		name = EVTOPTB_TOG_657
		tooltip_info = lunatic
		trigger = {
			trait = lunatic
		}
		opinion = {
			modifier = opinion_feast_friend
			who = ROOT
		}
	}
}

# Lustful (Guest)
character_event = {
	id = TOG.828
	desc = EVTDESC_TOG_658
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	hide_from = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = jarilo_feast_vassal
		NOT = { has_character_flag = feast_lustful }
		liege = { 
			has_character_flag = holding_jarilo 
			NOT = { has_character_flag = feast_lustful }
		}
		trait = lustful
		is_female = no
	}
	
	option = {
		name = EVTOPTA_TOG_658
		tooltip_info = lustful
		set_character_flag = feast_lustful
		trigger = {
			is_married = no
		}
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_lustful
				character_event = { id = TOG.829 }
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.829 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = lustful } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = lustful }
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = lustful }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
						trait = lustful
					}
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
			}
		}	
	}
	option = {
		name = EVTOPTB_TOG_658
		tooltip_info = lustful
		set_character_flag = feast_lustful
		trigger = {
			is_married = yes
		}
		hidden_tooltip = {
			liege = {
				set_character_flag = feast_lustful
				character_event = { id = TOG.829 }
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
					}
					character_event = { id = TOG.829 }
				}
			}
		}
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = lustful } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = lustful }
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = lustful }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
						trait = lustful
					}
					opinion = {
						modifier = opinion_lustful_buddy
						who = ROOT
					}
				}
			}
			any_spouse = {
				opinion = {
					modifier = opinion_mad_as_hell
					who = ROOT
					years = 1
				}
			}
		}	
	}
}

# Lustful (Host and Other Guests)
character_event = {
	id = TOG.829
	desc = EVTDESC_TOG_659
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_659
		trigger = {
			NOT = { trait = lustful }
			NOT = { any_spouse = { character = FROM } }
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
	option = {
		name = EVTOPTB_TOG_659
		tooltip_info = lustful
		trigger = {
			trait = lustful
			NOT = { any_spouse = { character = FROM } }
		}
		opinion = {
			modifier = opinion_lustful_buddy
			who = FROM
		}
	}
	option = {
		name = EVTOPTC_TOG_659
		trigger = {
			any_spouse = { character = FROM }
		}
		opinion = {
			modifier = opinion_mad_as_hell
			who = FROM
			years = 1
		}
	}
}

# Friendship Formed (Guest 1 Hidden)
character_event = {
	id = TOG.830
	is_triggered_only = yes
	hide_window = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = jarilo_feast_vassal
		NOT = { has_character_flag = feast_friendship }
		liege = { 
			has_character_flag = holding_jarilo
			any_vassal = {
				has_character_flag = jarilo_feast_vassal
				NOT = { has_character_flag = feast_friendship }
				NOT = { character = ROOT }
				opinion = { who = ROOT value =  20 }
			}		
		}
	}
	
	immediate = {
		set_character_flag = feast_friendship
		liege = { 
			random_vassal = {
				limit = {
					has_character_flag = jarilo_feast_vassal
					NOT = { character = ROOT }
					opinion = { who = ROOT value =  20 }
				}
				character_event = { id = TOG.831 }
				set_character_flag = feast_friendship
				opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
				reverse_opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
			}		
		}
	}
}

# Friendship Formed (Guest 2)
character_event = {
	id = TOG.831
	desc = EVTDESC_TOG_661
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_661
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.832 }
			}
		}
		tooltip = {
			FROM = {
				opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
			}
			opinion = {
				modifier = opinion_feast_friend
				who = FROM
			}
		}
	}
}

# Friendship Formed (Guest 1)
character_event = {
	id = TOG.832
	desc = EVTDESC_TOG_661
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_661
		tooltip = {
			FROM = {
				opinion = {
					modifier = opinion_feast_friend
					who = ROOT
				}
			}
			opinion = {
				modifier = opinion_feast_friend
				who = FROM
			}
		}
	}
}

# Homosexual Male (Guest 1 Hidden)
character_event = {
	id = TOG.833
	is_triggered_only = yes
	hide_window = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	only_men = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = jarilo_feast_vassal
		NOT = { has_character_flag = feast_homosexual }
		trait = homosexual
		is_female = no
		has_lover = no
		liege = { 
			has_character_flag = holding_jarilo
			NOT = { has_character_flag = feast_homosexual }
			any_vassal = {
				has_character_flag = jarilo_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				NOT = { character = ROOT }
				opinion = { who = ROOT value =  0 }
				trait = homosexual
				is_female = no
				has_lover = no
			}		
		}
	}
	
	immediate = {
		set_character_flag = feast_homosexual
		liege = { 
			set_character_flag = feast_homosexual
			random_vassal = {
				limit = {
					has_character_flag = jarilo_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = ROOT }
					opinion = { who = ROOT value =  0 }
					trait = homosexual
					is_female = no
				}
				character_event = { id = TOG.834 }
				add_lover = ROOT
				set_character_flag = feast_homosexual
			}		
		}
	}
}

# Homosexual Male (Guest 2)
character_event = {
	id = TOG.834
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.835 }
			}
			liege = {
				character_event = { id = TOG.840 }
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = {
							character = ROOT
							character = FROM
						}
					}
					character_event = { id = TOG.840 }
				}
			}
		}
		tooltip = {
			random = {
				chance = 50
				character_event = { id = TOG.839 tooltip = EVTTOOLTIP_TOG_669 }
			}
			add_lover = FROM
		}
	}
}

# Homosexual Male (Guest 1)
character_event = {
	id = TOG.835
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		random = {
			chance = 50
			character_event = { id = TOG.839 tooltip = EVTTOOLTIP_TOG_669 }
			hidden_tooltip = {
				FROM = {
					character_event = { id = TOG.839 }
				}
			}
		}
		tooltip = {
			add_lover = FROM
		}
	}
}

# Homosexual Female (Guest 1 Hidden)
character_event = {
	id = TOG.836
	is_triggered_only = yes
	hide_window = yes
	
	only_rulers = yes
	min_age = 16
	only_capable = yes
	prisoner = no
	only_women = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = jarilo_feast_vassal
		NOT = { has_character_flag = feast_homosexual }
		trait = homosexual
		is_female = yes
		has_lover = no
		liege = { 
			has_character_flag = holding_jarilo
			NOT = { has_character_flag = feast_homosexual }
			any_vassal = {
				has_character_flag = jarilo_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				NOT = { character = ROOT }
				opinion = { who = ROOT value =  0 }
				trait = homosexual
				is_female = yes
				has_lover = no
			}		
		}
	}
	
	immediate = {
		set_character_flag = feast_homosexual
		liege = { 
			set_character_flag = feast_homosexual
			random_vassal = {
				limit = {
					has_character_flag = jarilo_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = ROOT }
					opinion = { who = ROOT value =  0 }
					trait = homosexual
					is_female = yes
				}
				character_event = { id = TOG.837 }
				set_character_flag = feast_homosexual
				add_lover = ROOT
			}		
		}
	}
}

# Homosexual Female (Guest 2)
character_event = {
	id = TOG.837
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		hidden_tooltip = {
			FROM = {
				character_event = { id = TOG.838 }
			}
			liege = {
				character_event = { id = TOG.840 }
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = {
							character = ROOT
							character = FROM
						}
					}
					character_event = { id = TOG.840 }
				}
			}			
		}
		tooltip = {
			random = {
				chance = 50
				character_event = { id = TOG.839 tooltip = EVTTOOLTIP_TOG_669 }
			}
			add_lover = FROM
		}
	}
}

# Homosexual Female (Guest 1)
character_event = {
	id = TOG.838
	desc = EVTDESC_TOG_664
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_664
		tooltip_info = homosexual
		random = {
			chance = 50
			character_event = { id = TOG.839 tooltip = EVTTOOLTIP_TOG_669 }
			hidden_tooltip = {
				FROM = {
					character_event = { id = TOG.839 }
				}
			}
		}
		tooltip = {
			add_lover = FROM
		}
	}
}

# Homosexual Caught
character_event = {
	id = TOG.839
	desc = EVTDESC_TOG_669
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_669
		tooltip = {
			liege = {
				if = {
					limit = { NOT = { trait = homosexual } }
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				if = {
					limit = { trait = homosexual }
					opinion = {
						modifier = opinion_homosexual_sympathy
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
						NOT = { trait = homosexual }
					}
					opinion = {
						modifier = opinion_feast_scandal
						who = ROOT
					}
				}
				any_vassal = {
					limit = {
						has_character_flag = jarilo_feast_vassal
						NOT = { character = ROOT }
						trait = homosexual
					}
					opinion = {
						modifier = opinion_homosexual_sympathy
						who = ROOT
					}
				}
			}
		}	
	}
}

# Homosexual Caught (Host and Other Guests)
character_event = {
	id = TOG.840
	desc = EVTDESC_TOG_670
	picture = GFX_evt_viking_throneroom_oldgods
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_TOG_670
		trigger = {
			NOT = { trait = homosexual }
		}
		opinion = {
			modifier = opinion_feast_scandal
			who = FROM
		}
	}
	option = {
		name = EVTOPTB_TOG_670
		tooltip_info = homosexual
		trigger = {
			trait = homosexual
		}
		opinion = {
			modifier = opinion_homosexual_sympathy
			who = FROM
		}
	}
}

### Feast event bounces
character_event = { #feast_drunkard
	id = TOG.841
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_jarilo
		NOT = { has_character_flag = feast_drunkard }
		any_vassal = {
			has_character_flag = jarilo_feast_vassal
			NOT = { has_character_flag = feast_drunkard }
			trait = drunkard
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = jarilo_feast_vassal
				trait = drunkard
			}
			character_event = { id = TOG.820 }
		}
	}
}

character_event = {
	id = TOG.842 #feast_gluttonous
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_jarilo
		NOT = { has_character_flag = feast_gluttonous }
		any_vassal = {
			has_character_flag = jarilo_feast_vassal
			NOT = { has_character_flag = feast_gluttonous }
			trait = gluttonous
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = jarilo_feast_vassal
				trait = gluttonous
			}
			character_event = { id = TOG.822 }
		}
	}
}

character_event = {
	id = TOG.843 #feast_lunatic
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_jarilo
		NOT = { has_character_flag = feast_lunatic }
		any_vassal = {
			has_character_flag = jarilo_feast_vassal
			NOT = { has_character_flag = feast_lunatic }
			trait = lunatic
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = jarilo_feast_vassal
				trait = lunatic
			}
			character_event = { id = TOG.826 }
		}
	}
}

character_event = {
	id = TOG.844 #feast_lustful
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_jarilo
		NOT = { has_character_flag = feast_lustful }
		any_vassal = { 
			has_character_flag = jarilo_feast_vassal
			NOT = { has_character_flag = feast_lustful }
			trait = lustful
			is_female = no
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = jarilo_feast_vassal
				trait = lustful
				is_female = no
			}
			character_event = { id = TOG.828 }
		}
	}
}

character_event = {
	id = TOG.849 #feast_friendship
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		has_character_flag = holding_jarilo
		NOT = { has_character_flag = feast_friendship }
		has_character_flag = jarilo_feast_vassal
		any_vassal = {
			has_character_flag = jarilo_feast_vassal
			NOT = { has_character_flag = feast_friendship }
			liege = { 
				any_vassal = {
					has_character_flag = jarilo_feast_vassal
					NOT = { has_character_flag = feast_friendship }
					NOT = { character = PREVPREV }
					opinion = { who = PREVPREV value =  20 }
				}		
			}
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = jarilo_feast_vassal
				NOT = { has_character_flag = feast_friendship }
				liege = { 
					any_vassal = {
						has_character_flag = jarilo_feast_vassal
						NOT = { has_character_flag = feast_friendship }
						NOT = { character = PREVPREV }
						opinion = { who = PREVPREV value =  20 }
					}		
				}
			}
			character_event = { id = TOG.830 }
		}
	}
}

character_event = {
	id = TOG.850 #male_homosexual
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = feast_homosexual }
		has_character_flag = holding_jarilo
		any_vassal = { 
			has_character_flag = jarilo_feast_vassal
			NOT = { has_character_flag = feast_homosexual }
			trait = homosexual
			is_female = no
			has_lover = no
			liege = { 
				any_vassal = {
					has_character_flag = jarilo_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = PREVPREV }
					opinion = { who = PREVPREV value =  0 }
					trait = homosexual
					is_female = no
					has_lover = no
				}		
			}
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = jarilo_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				trait = homosexual
				is_female = no
				has_lover = no
				liege = { 
					any_vassal = {
						has_character_flag = jarilo_feast_vassal
						NOT = { has_character_flag = feast_homosexual }
						NOT = { character = PREVPREV }
						opinion = { who = PREVPREV value =  0 }
						trait = homosexual
						is_female = no
						has_lover = no
					}		
				}
			}
			character_event = { id = TOG.833 }
		}
	}
}

character_event = {
	id = TOG.851 #female_homosexual
	
	is_triggered_only = yes
	
	hide_window = yes
	
	trigger = {
		has_dlc = "The Old Gods"
		NOT = { has_character_flag = feast_homosexual }
		has_character_flag = holding_jarilo
		any_vassal = { 
			has_character_flag = jarilo_feast_vassal
			NOT = { has_character_flag = feast_homosexual }
			trait = homosexual
			is_female = yes
			has_lover = no
			liege = { 
				any_vassal = {
					has_character_flag = jarilo_feast_vassal
					NOT = { has_character_flag = feast_homosexual }
					NOT = { character = PREVPREV }
					opinion = { who = PREVPREV value =  0 }
					trait = homosexual
					is_female = yes
					has_lover = no
				}		
			}
		}
	}
	
	immediate = {
		random_vassal = {
			limit = {
				has_character_flag = jarilo_feast_vassal
				NOT = { has_character_flag = feast_homosexual }
				trait = homosexual
				is_female = yes
				has_lover = no
				liege = { 
					any_vassal = {
						has_character_flag = jarilo_feast_vassal
						NOT = { has_character_flag = feast_homosexual }
						NOT = { character = PREVPREV }
						opinion = { who = PREVPREV value =  0 }
						trait = homosexual
						is_female = yes
						has_lover = no
					}		
				}
			}
			character_event = { id = TOG.836 }
		}
	}
}

###########################################
# Flag management                         #
###########################################

# Safety catch - clears character flags and modifiers
character_event = {
	id = TOG.899

	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		clr_character_flag = holding_ukon_juhla
		clr_character_flag = holding_jarilo
		clr_character_flag = holding_uzgavenes
		clr_character_flag = attending_ukon_juhla
		clr_character_flag = attending_jarilo
		clr_character_flag = attending_uzgavenes
		set_character_flag = jarilo_feast_vassal
		set_character_flag = ukon_juhla_feast_vassal
		set_character_flag = uzgavenes_feast_vassal
		clr_character_flag = feast_drunkard
		clr_character_flag = feast_gluttonous
		clr_character_flag = feast_lunatic
		clr_character_flag = feast_lustful
		clr_character_flag = feast_homosexual
		clr_character_flag = feast_friendship
	}
}

