###########################################
#
# Jewish Events for VIET
#
###########################################

namespace = VIETjewish
namespace = passover
namespace = exilarch
namespace = israel

#############################################
#Aliyah & Israel
#############################################

# VIETjewish.0 free

# Israel conquered by non-Jews
narrative_event = {
	id = VIETjewish.1
	title = VIETjewish.1.name
	desc = VIETjewish.1.desc
	picture = GFX_evt_holy_jerusalem
	
	only_rulers = yes
	has_global_flag = jewish_homeland_restored
	
	trigger = {
		has_landed_title = k_israel
		NOT = {
			religion_group = jewish_group
			religion = ebionites
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = VIETjewish.1.a
		if = {
			limit = {
				NOT = { has_landed_title = k_jerusalem }
			}
			k_jerusalem = {
				grant_title = ROOT
			}
		}
		k_israel = {
			any_direct_de_jure_vassal_title = {
				de_jure_liege = k_jerusalem
			}
		}
		k_jerusalem = {
			de_jure_liege = e_byzantium # Modified for start date
		}
		k_israel = {
			destroy_landed_title = THIS
		}
	}
}

# Jewish rulers notified of Israel being conquered by non-Jews
narrative_event = {
	id = VIETjewish.2
	title = VIETjewish.2.name
	desc = VIETjewish.2.desc
	picture = GFX_evt_holy_jerusalem
	
	is_triggered_only = yes
	
	option = {
		name = VIETjewish.2.a
	}
}

# Do I want to claim being of the House of David or not?
narrative_event = {
	id = VIETjewish.15
	title = VIETjewish.15.title
	desc = VIETjewish.15.desc
	picture = GFX_evt_holy_jerusalem
	
	is_triggered_only = yes
	
	option = { #claim it!
		name = VIETjewish.15.a
		add_trait = house_of_david
		set_dynasty_flag = claimed_descent_from_david
	}
	option = { #don't claim it!
		name = VIETjewish.15.b
		trigger = {
			ai = no
		}
		piety = 200
	}
}


# Kingdom of Israel can now recruit aliyah unit
character_event = {
	id = VIETjewish.3
	title = VIETjewish.3.name
	desc = VIETjewish.3.desc
	picture = GFX_evt_holy_jerusalem
	
	only_rulers = yes
	has_global_flag = jewish_homeland_restored
	
	trigger = {
		has_landed_title = k_israel
		NOT = { has_global_flag = israel_aliyah_sufficient }
	}
	
	mean_time_to_happen = {
		days = 1825
		modifier = {
			factor = 0.9
			OR = {
				trait = misguided_warrior
				trait = tough_soldier
				trait = skilled_tactician
				trait = brilliant_strategist
				martial = 16
			}
		}
		modifier = {
			factor = 0.9
			OR = {
				trait = diligent
				trait = ambitious
				trait = zealous
			}
		}
	}
	
	option = {
		name = VIETjewish.1.a
		set_global_flag = israel_aliyah_sufficient
		custom_tooltip = {
			text = israel_aliyah_can_now_recruit
		}
	}
}

# Aliyah - Ashkenazi Jews
character_event = {
	id = VIETjewish.4
	desc = VIETjewish.4.desc
	
	picture = GFX_evt_holy_jerusalem
	
	only_rulers = yes
	has_global_flag = jewish_homeland_restored
	
	trigger = {
		OR = {
			has_landed_title = k_israel
			has_landed_title = d_jerusalem
			has_landed_title = d_iudea
			top_liege = {
				has_landed_title = k_israel
			}
		}
		OR = {
			has_landed_title = k_israel
			has_landed_title = d_jerusalem
			any_demesne_province = {
				OR = {
					province_id = 723
					province_id = 769
					province_id = 770
					province_id = 771
					province_id = 772
					province_id = 773
					province_id = 774
					province_id = 775
					province_id = 776
					province_id = 777
					province_id = 778
					province_id = 779
					province_id = 780
					province_id = 781
					province_id = 782
				}
			}
		}
		OR = {
			religion_group = jewish_group
			religion = ebionites
		}
	}
	
	mean_time_to_happen = {
		years = 20

		modifier = {
			factor = 4
			is_patrician = yes
		}
		
		modifier = {
			factor = 2
			trait = cruel
		}
		
		modifier = {
			factor = 1.5
			trait = envious
		}
		
		modifier = {
			factor = 1.5
			trait = arbitrary
		}
		
		modifier = {
			factor = 0.9
			trait = cynical
		}
		
		modifier = {
			factor = 0.9
			trait = kind
		}
		
		modifier = {
			factor = 0.9
			trait = diligent
		}
		
		modifier = {
			factor = 0.9
			trait = scholar
		}
		
		modifier = {
			factor = 0.9
			trait = ambitious
		}
		
		modifier = {
			factor = 0.9
			trait = charitable
		}
		
		modifier = {
			factor = 0.9
			trait = trusting
		}
		
		modifier = {
			factor = 0.9
			trait = greedy
		}
		modifier = {
			factor = 0.8
			culture = ashkenazi
		}
		modifier = {
			factor = 8
			any_courtier = {
				has_character_flag = israel_aliyah
			}
		}
	}
	
	option = { #accept them
		name = VIETjewish.4.a
		scaled_wealth = -0.05
		create_character = {
			female = no
			random_traits = yes
			dynasty = culture
			religion = jewish
			culture = ashkenazi
		}
		new_character = {
			set_character_flag = israel_aliyah
			opinion = {
				modifier = opinion_patron
				who = ROOT
				years = 20
			}
			reverse_opinion = {
				modifier = opinion_new_courtier
				who = ROOT
				years = 5
			}
		}
		create_character = {
			female = yes
			random_traits = yes
			dynasty = culture
			religion = jewish
			culture = ashkenazi
		}
		new_character = {
			set_character_flag = israel_aliyah
			opinion = {
				modifier = opinion_patron
				who = ROOT
				years = 20
			}
			reverse_opinion = {
				modifier = opinion_new_courtier
				who = ROOT
				years = 5
			}
		}
		create_character = {
			female = no
			random_traits = yes
			dynasty = culture
			religion = jewish
			culture = ashkenazi
		}
		new_character = {
			set_character_flag = israel_aliyah
			opinion = {
				modifier = opinion_patron
				who = ROOT
				years = 20
			}
			reverse_opinion = {
				modifier = opinion_new_courtier
				who = ROOT
				years = 5
			}
		}

	}
	option = { #tell them to move elsewhere
		name = VIETjewish.4.b

	}
}

# Aliyah - sephardi Jews
character_event = {
	id = VIETjewish.5
	desc = VIETjewish.5.desc
	
	picture = GFX_evt_holy_jerusalem
	
	only_rulers = yes
	has_global_flag = jewish_homeland_restored
	
	trigger = {
		OR = {
			has_landed_title = k_israel
			has_landed_title = d_jerusalem
			has_landed_title = d_iudea
			top_liege = {
				has_landed_title = k_israel
			}
		}
		OR = {
			has_landed_title = k_israel
			has_landed_title = d_jerusalem
			any_demesne_province = {
				OR = {
					province_id = 723
					province_id = 769
					province_id = 770
					province_id = 771
					province_id = 772
					province_id = 773
					province_id = 774
					province_id = 775
					province_id = 776
					province_id = 777
					province_id = 778
					province_id = 779
					province_id = 780
					province_id = 781
					province_id = 782
				}
			}
		}
		OR = {
			religion_group = jewish_group
			religion = ebionites
		}
	}
	
	mean_time_to_happen = {
		years = 20

		modifier = {
			factor = 4
			is_patrician = yes
		}
		
		modifier = {
			factor = 2
			trait = cruel
		}

		modifier = {
			factor = 1.5
			trait = envious
		}
		
		modifier = {
			factor = 1.5
			trait = arbitrary
		}
		
		modifier = {
			factor = 0.9
			trait = cynical
		}
		
		modifier = {
			factor = 0.9
			trait = kind
		}
		
		modifier = {
			factor = 0.9
			trait = diligent
		}
		
		modifier = {
			factor = 0.9
			trait = scholar
		}
		
		modifier = {
			factor = 0.9
			trait = ambitious
		}
		
		modifier = {
			factor = 0.9
			trait = charitable
		}
		
		modifier = {
			factor = 0.9
			trait = trusting
		}
		
		modifier = {
			factor = 0.9
			trait = greedy
		}
		modifier = {
			factor = 0.8
			culture = sephardi
		}
		modifier = {
			factor = 8
			any_courtier = {
				has_character_flag = israel_aliyah
			}
		}
	}
	
	option = { #accept them
		name = VIETjewish.5.a
		scaled_wealth = -0.05
		create_character = {
			female = no
			random_traits = yes
			dynasty = culture
			religion = jewish
			culture = sephardi
		}
		new_character = {
			set_character_flag = israel_aliyah
			opinion = {
				modifier = opinion_patron
				who = ROOT
				years = 20
			}
			reverse_opinion = {
				modifier = opinion_new_courtier
				who = ROOT
				years = 5
			}
		}
		create_character = {
			female = yes
			random_traits = yes
			dynasty = culture
			religion = jewish
			culture = sephardi
		}
		new_character = {
			set_character_flag = israel_aliyah
			opinion = {
				modifier = opinion_patron
				who = ROOT
				years = 20
			}
			reverse_opinion = {
				modifier = opinion_new_courtier
				who = ROOT
				years = 5
			}
		}
		create_character = {
			female = no
			random_traits = yes
			dynasty = culture
			religion = jewish
			culture = sephardi
		}
		new_character = {
			set_character_flag = israel_aliyah
			opinion = {
				modifier = opinion_patron
				who = ROOT
				years = 20
			}
			reverse_opinion = {
				modifier = opinion_new_courtier
				who = ROOT
				years = 5
			}
		}
	}
	option = { #tell them to move elsewhere
		name = VIETjewish.5.b

	}
}

# VIETjewish.6 - 17 # Removed WtWSMS

# Other dynasty members get the House of David trait (only for characters who are alive unfortunately)
character_event = {
	id = VIETjewish.14
	desc = VIETjewish.14.desc
	picture = GFX_evt_holy_jerusalem
	
	is_triggered_only = yes
	
	option = { #ok
		name = VIETjewish.14.a
		add_trait = house_of_david
		prestige = 10
		piety = 10
	}
}

# Random courters in the Shield of the Third Temple
character_event = {
	id = VIETjewish.19
	desc = VIETjewish.19.desc
	picture = GFX_evt_holy_jerusalem
	
	is_triggered_only = yes
	
	option = { #ok
		name = VIETjewish.19.a
		hidden_tooltip = {
			#The likely suspects
			create_random_soldier = {
				random_traits = yes
				dynasty = culture
				religion = jewish
				culture = sephardi
				female = no
			}
			create_random_soldier = {
				random_traits = yes
				dynasty = culture
				religion = jewish
				culture = ashkenazi
				female = no
			}
			#One more likely suspect
			random_list = {
				33 = {
					create_random_soldier = {
						random_traits = yes
						dynasty = culture
						religion = jewish
						culture = ashkenazi
						female = no
					}
				}
				34 = {
					create_random_soldier = {
						random_traits = yes
						dynasty = culture
						religion = jewish
						culture = sephardi
						female = no
					}
				}
			}
			#Now everyone has a chance
			random_list = {
				16 = {
					create_random_soldier = {
						random_traits = yes
						dynasty = culture
						religion = jewish
						culture = ashkenazi
						female = no
					}
				}
				16 = {
					create_random_soldier = {
						random_traits = yes
						dynasty = culture
						religion = jewish
						culture = sephardi
						female = no
					}
				}
			}
			#And again
			random_list = {
				16 = {
					create_random_soldier = {
						random_traits = yes
						dynasty = culture
						religion = jewish
						culture = ashkenazi
						female = no
					}
				}
				16 = {
					create_random_soldier = {
						random_traits = yes
						dynasty = culture
						religion = jewish
						culture = sephardi
						female = no
					}
				}
			}
			#One more time
			random_list = {
				16 = {
					create_random_soldier = {
						random_traits = yes
						dynasty = culture
						religion = jewish
						culture = ashkenazi
						female = no
					}
				}
				16 = {
					create_random_soldier = {
						random_traits = yes
						dynasty = culture
						religion = jewish
						culture = sephardi
						female = no
					}
				}
			}
		}
	}
}

#############################################
#PASSOVER Main Events
#############################################

# Passover preparations
character_event = {
	id = passover.0
	desc = passover.0.desc
	picture = GFX_evt_holy_jerusalem
	
	is_triggered_only = yes
	
	option = {
		name = passover.0.a
		narrative_event = { id = passover.1 days = 6 random = 2 tooltip = "passover.1.tooltip" }
		hidden_tooltip = { #random chance of favoring one of the flavor events
			random_list = {
				60 = { }
				3 = { set_character_flag = passover_eat_chametz }
				3 = { set_character_flag = passover_foreign_jew }
				7 = { set_character_flag = passover_song_of_songs }
				10 = { set_character_flag = passover_matzo_matzo }
				10 = { set_character_flag = passover_bitter_herbs }
				7 = { set_character_flag = passover_zroa }
			}
		}
	}
	
}

#Passover about to begin
narrative_event = {
	id = passover.1
	title = passover.1.name
	desc = passover.1.desc
	picture = GFX_evt_nightmare
	
	is_triggered_only = yes
	
	option = {
		name = passover.1.a
		#character_event = { id = passover.2 days = 3 random = 2 tooltip = "passover.2.tooltip" }
		piety = 5
	}
	
}

#Passover meal of seder
character_event = {
	id = passover.2
	#title = passover.2.name
	desc = passover.2.desc
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = passover.2.a
		character_event = { id = passover.4 days = 2 random = 2 tooltip = "passover.4.tooltip" }
		if = {
			limit = {
				any_child = {
					is_alive = yes
					is_adult = no
					is_female = no
					age = 5
				}
			}
			character_event = { id = passover.3 days = 2 } #the questions
		}
		if = {
			limit = {
				NOT = { trait = temperate }
			}
			hidden_tooltip = { #eating chametz
				random_list = {
					85 = { }
					15 = {
						character_event = { id = passover.7 days = 2 random = 3 }
					}
				}
			}
		}
		hidden_tooltip = { #song of songs
			random_list = {
				75 = { }
				25 = { character_event = { id = passover.8 days = 2 random = 3 } }
			}
		}
		hidden_tooltip = { #matzo
			random_list = {
				75 = { }
				25 = { character_event = { id = passover.9 days = 2 random = 3 } }
			}
		}
		hidden_tooltip = { #zroa
			random_list = {
				75 = { }
				25 = { character_event = { id = passover.10 days = 2 random = 3 } }
			}
		}
		hidden_tooltip = { #different kosher laws
			random_list = {
				85 = { }
				15 = { character_event = { id = passover.11 days = 2 random = 3 } }
			}
		}
		hidden_tooltip = { #bitter herbs
			random_list = {
				75 = { }
				25 = { character_event = { id = passover.12 days = 2 random = 3 } }
			}
		}
	}
	
}

#The four questions
character_event = {
	id = passover.3
	desc = passover.3.desc
	picture = GFX_evt_the_torah
	
	is_triggered_only = yes
	
	option = {
		name = passover.3.a
		random_child = {
			limit = {
				is_alive = yes
				is_adult = no
				is_female = no
				age = 5
			}
			opinion = {
				modifier = opinion_gained_respect
				who = ROOT
				years = 1
			}
		}
		prestige = 5
		piety = 5
		custom_tooltip = { text = passover.3.tooltip }
	}
	
}

#Passover continues
character_event = {
	id = passover.4
	desc = passover.4.desc
	picture = GFX_evt_holy_jerusalem
	
	is_triggered_only = yes
	
	option = {
		name = passover.5.a
		narrative_event = { id = passover.5 days = 4 random = 2 tooltip = "passover.5.tooltip" }
		piety = 5
	}
}

#Passover seventh meal
narrative_event = {
	id = passover.5
	title = passover.5.name
	desc = passover.5.desc
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = passover.5.a
		narrative_event = { id = passover.6 days = 2 random = 2 tooltip = "passover.6.tooltip" }
	}
}

#Passover ends
narrative_event = {
	id = passover.6
	title = passover.6.name
	desc = passover.6.desc
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = passover.6.a
		piety = 40
		prestige = 20
		clr_character_flag = observing_passover
		clr_character_flag = passover_eat_chametz
		clr_character_flag = passover_foreign_jew
		clr_character_flag = passover_song_of_songs
		clr_character_flag = passover_matzo_matzo
		clr_character_flag = passover_bitter_herbs
		clr_character_flag = passover_zroa
		add_character_modifier = {
			name = observed_passover
			duration = 365
		}
		add_character_modifier = {
			name = passover_timer
			duration = 1460
			hidden = yes
		}
	}
}

#############################################
#PASSOVER Misc. Flavor Events
#############################################

#Passover glutton
character_event = {
	id = passover.7
	desc = passover.7.desc
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = passover.7.a #will resist
		ai_chance = {
			factor = 4
			modifier = {
				factor = 2
				trait = zealous
			}
			modifier = {
				factor = 0.1
				trait = gluttonous
			}
		}

		piety = 3
		if = {
			limit = {
				trait = gluttonous
			}
			random_list = {
				75 = { }
				25 = { remove_trait = gluttonous }
			}
		}
	}
	option = {
		name = passover.7.b #will not resist
		ai_chance = {
			factor = 4
			modifier = {
				factor = 2
				trait = zealous
			}
			modifier = {
				factor = 0.1
				trait = gluttonous
			}
		}

		piety = -5
		if = {
			limit = {
				NOT = { trait = gluttonous }
			}
			random_list = {
				67 = { }
				33 = { add_trait = gluttonous }
			}
		}
		add_character_modifier = {
			name = best_meal_in_ages
			duration = 180
		}
	}
}

#Passover Song of Songs
character_event = {
	id = passover.8
	desc = passover.8.desc
	picture = GFX_evt_the_torah
	
	is_triggered_only = yes
	
	option = {
		name = passover.8.a #ok
		piety = 2

	}
}

#Passover Matzo, Matzo, Matzo
character_event = {
	id = passover.9
	desc = passover.9.desc
	picture = GFX_evt_moorish_decor
	
	is_triggered_only = yes
	
	option = {
		name = passover.9.a #ok

		if = {
			limit = {
				NOT = { trait = humble }
				NOT = { trait = proud }
			}
			random_list = {
				75 = { }
				25 = { add_trait = humble }
			}
		}
		if = {
			limit = {
				trait = proud
			}
			random_list = {
				80 = { }
				20 = { remove_trait = proud }
			}
		}
	}
}

#Passover zroa
character_event = {
	id = passover.10
	desc = passover.10.desc
	picture = GFX_evt_moorish_decor
	
	is_triggered_only = yes
	
	option = {
		name = passover.10.a #ok
		piety = 2

	}
}

#Passover different laws
character_event = {
	id = passover.11
	desc = passover.11.desc
	picture = GFX_evt_moorish_decor
	
	is_triggered_only = yes
	
	option = {
		name = passover.11.a #Obey
		ai_chance = {
			factor = 2
			modifier = {
				factor = 2
				trait = zealous
			}
			modifier = {
				factor = 0.5
				trait = kind
			}
			modifier = {
				factor = 2
				trait = wroth
			}
			modifier = {
				factor = 0.5
				trait = patient
			}
			modifier = {
				factor = 2
				trait = proud
			}
			modifier = {
				factor = 0.5
				trait = humble
			}
			modifier = {
				factor = 2
				trait = paranoid
			}
			modifier = {
				factor = 0.5
				trait = content
			}
		}

		piety = 3
		any_courtier = {
			limit = {
				religion = ROOT
				culture = ROOT
				NOT = { trait = cynical }
				NOT = { trait = patient }
				NOT = { trait = kind }
				NOT = { trait = slothful }
				NOT = { trait = content }
			}
			opinion = {
				modifier = opinion_respected_kosher_laws
				who = ROOT
				years = 3
			}
		}
	}
	option = {
		name = passover.11.b #Respect
		ai_chance = {
			factor = 2
			modifier = {
				factor = 0.5
				trait = zealous
			}
			modifier = {
				factor = 2
				trait = kind
			}
			modifier = {
				factor = 0.5
				trait = wroth
			}
			modifier = {
				factor = 2
				trait = patient
			}
			modifier = {
				factor = 0.5
				trait = proud
			}
			modifier = {
				factor = 2
				trait = humble
			}
			modifier = {
				factor = 0.5
				trait = paranoid
			}
			modifier = {
				factor = 2
				trait = content
			}
		}

		prestige = 3
		any_courtier = {
			limit = {
				religion = ROOT
				culture = ROOT
				NOT = { trait = cynical }
				NOT = { trait = slothful }
			}
			opinion = {
				modifier = opinion_ignored_kosher_laws
				who = ROOT
				years = 3
			}
		}
		add_character_modifier = {
			name = tolerant_of_minor_religious_differences
			duration = 730
		}
	}
}

# The bitterness of herbs
character_event = {
	id = passover.12
	desc = passover.12.desc
	picture = GFX_evt_holy_jerusalem
	
	is_triggered_only = yes
	
	option = {
		name = passover.12.a # Oy vey

		piety = 4
	}
}

#############################################
# Exilarch Fun Fun Fun
#############################################

# Wives for Exilarch and family
character_event = {
	id = exilarch.0
	desc = exilarch.0.desc
	picture = GFX_evt_holy_jerusalem
	
	only_men = yes
	only_rulers = yes
	is_married = no
	ai = yes
	
	is_triggered_only = yes
	
	trigger = {
		OR = {
			has_landed_title = d_exilarch
			has_landed_title = d_exilarch_karaite
			father = {
				OR = {
					has_landed_title = d_exilarch
					has_landed_title = d_exilarch_karaite
				}
			}
		}
		is_adult = yes
	}
	
	option = {
		name = exilarch.0.a # Oy vey!
		create_character = {
			female = yes
			min_age = 16
			religion = ROOT
			culture = ROOT
			random_traits = yes
		}
		new_character = {
			remove_trait = celibate
			remove_trait = chaste
			add_spouse = ROOT
		}
	}
}

# End of the Exilarchy
narrative_event = {
	id = exilarch.1
	title = exilarch.1.title
	desc = exilarch.1.desc
	major = yes
	
	picture = GFX_evt_holy_jerusalem
	
	only_men = yes
	only_rulers = yes
	
	is_triggered_only = yes
	
	trigger = {
		has_landed_title = d_exilarch
		NOT = { trait = house_of_david }
	}
	
	immediate = {
		set_global_flag = VIET_end_of_exilarch
		activate_title = { title = d_exilarch status = no }
	}
	
	option = {
		name = exilarch.1.a # Oy vey!
		trigger = { has_landed_title = d_exilarch }
		d_exilarch = {
			destroy_landed_title = THIS
		}
	}
	option = {
		name = exilarch.1.b # Oy vey!
		trigger = {
			NOT = { has_landed_title = d_exilarch }
			religion_group = jewish_group
		}
	}
	option = {
		name = exilarch.1.c # Oy vey!
		trigger = {
			NOT = { has_landed_title = d_exilarch }
			NOT = { religion_group = jewish_group }
		}
	}
}

# End of the Karaite Exilarchy
narrative_event = {
	id = exilarch.2
	title = exilarch.2.title
	desc = exilarch.2.desc
	major = yes
	
	picture = GFX_evt_holy_jerusalem
	
	only_men = yes
	only_rulers = yes
	
	is_triggered_only = yes
	
	trigger = {
		has_landed_title = d_exilarch_karaite
		NOT = { trait = house_of_david }
	}
	
	immediate = {
		set_global_flag = VIET_end_of_exilarch_karaite
		activate_title = { title = d_exilarch_karaite status = no }
	}
	
	option = {
		name = exilarch.2.a # Oy vey!
		trigger = { has_landed_title = d_exilarch_karaite }
		d_exilarch_karaite = {
			destroy_landed_title = THIS
		}
	}
	option = {
		name = exilarch.2.b # Oy vey!
		trigger = {
			NOT = { has_landed_title = d_exilarch_karaite }
			religion_group = jewish_group
		}
	}
	option = {
		name = exilarch.2.c # Oy vey!
		trigger = {
			NOT = { has_landed_title = d_exilarch_karaite }
			NOT = { religion_group = jewish_group }
		}
	}
}

# Fix the exilarch's religion
character_event = {
	id = exilarch.4
	desc = exilarch.4.desc
	picture = GFX_evt_holy_jerusalem
	
	only_men = yes
	only_rulers = yes
	ai = yes
	
	is_triggered_only = yes
	
	trigger = {
		OR = {
			AND = {
				has_landed_title = d_exilarch
				NOT = { has_landed_title = d_exilarch_karaite }
				NOT = { religion = jewish }
			}
			AND = {
				has_landed_title = d_exilarch_karaite
				NOT = { has_landed_title = d_exilarch }
				NOT = { religion = karaite }
			}
			AND = {
				has_landed_title = d_exilarch
				has_landed_title = d_exilarch_karaite
				NOT = { religion = jewish }
				NOT = { religion = karaite }
			}
		}
	}
	
	option = {
		name = exilarch.4.a # Oy vey!
		trigger = {
			primary_title = {
				OR = {
					title = d_exilarch
					title = d_exilarch_karaite
				}
			}
		}
		if = {
			limit = {
				has_landed_title = d_exilarch
				NOT = { has_landed_title = d_exilarch_karaite }
			}
			religion = jewish
		}
		if = {
			limit = {
				has_landed_title = d_exilarch_karaite
				NOT = { has_landed_title = d_exilarch }
			}
			religion = karaite
		}
		if = {
			limit = {
				has_landed_title = d_exilarch
				has_landed_title = d_exilarch_karaite
			}
			religion = jewish
		}
	}
	option = {
		name = exilarch.4.b
		trigger = {
			primary_title = {
				NOR	 = {
					title = d_exilarch
					title = d_exilarch_karaite
				}
			}
		}
		if = {
			limit = {
				has_landed_title = d_exilarch
				NOT = { has_landed_title = d_exilarch_karaite }
			}
			activate_title = { title = d_exilarch status = no }
		}
		if = {
			limit = {
				has_landed_title = d_exilarch_karaite
				NOT = { has_landed_title = d_exilarch }
			}
			activate_title = { title = d_exilarch_karaite status = no }
		}
		if = {
			limit = {
				has_landed_title = d_exilarch
				has_landed_title = d_exilarch_karaite
			}
			activate_title = { title = d_exilarch_karaite status = no }
			activate_title = { title = d_exilarch status = no }
		}
	}
}

# Exilarch becomes vassal of Israel
character_event = {
	id = exilarch.5
	desc = exilarch.5.desc
	picture = GFX_evt_holy_jerusalem
	
	only_men = yes
	only_rulers = yes
	has_global_flag = jewish_homeland_restored
	
	is_triggered_only = yes
	
	trigger = {
		has_landed_title = k_israel
		NOT = { has_global_flag = the_exilarch_returns }
		NOT = { has_global_flag = the_karaite_exilarch_returns }
		OR = {
			d_exilarch = { has_holder = yes }
			d_exilarch_karaite = { has_holder = yes }
		}
	}
	
	option = {
		name = exilarch.5.a # Oy vey!
		if = {
			limit = {
				d_exilarch = { has_holder = yes }
			}
			set_global_flag = the_exilarch_returns
			custom_tooltip = {
				text = the_exilarch_returns
				hidden_tooltip = {
					d_exilarch = {
						holder_scope = {
							set_defacto_liege = ROOT
						}
					}
				}
			}
		}
		if = {
			limit = {
				d_exilarch_karaite = { has_holder = yes }
			}
			set_global_flag = the_karaite_exilarch_returns
			custom_tooltip = {
				text = the_karaite_exilarch_returns
				hidden_tooltip = {
					d_exilarch_karaite = {
						holder_scope = {
							set_defacto_liege = ROOT
						}
					}
				}
			}
		}
	}
}
# Exilarch gets free claim on Israel
character_event = {
	id = exilarch.6
	desc = exilarch.6.desc
	picture = GFX_evt_holy_jerusalem
	
	only_men = yes
	only_rulers = yes
	
	trigger = {
		OR = {
			has_landed_title = d_exilarch
			has_landed_title = d_exilarch_karaite
		}
		trait = house_of_david
		NOT = { has_character_flag = VIET_Israel_claim_given }
	}
	
	is_triggered_only = yes
	
	option = {
		name = exilarch.6.a # Oy vey!
		add_weak_claim = k_israel
		set_character_flag = VIET_Israel_claim_given
	}
}
# Exilarch destroys the karaite exilarchy
character_event = {
	id = exilarch.7
	desc = exilarch.7.desc
	picture = GFX_evt_holy_jerusalem

	only_men = yes
	only_rulers = yes
	
	is_triggered_only = yes
	
	trigger = {
		has_landed_title = d_exilarch
		has_landed_title = d_exilarch_karaite
		trait = house_of_david
		religion = jewish
	}
	
	immediate = {
		set_global_flag = VIET_end_of_exilarch_karaite
		activate_title = { title = d_exilarch_karaite status = no }
	}
	
	option = {
		name = exilarch.7.a
		d_exilarch_karaite = {
			destroy_landed_title = THIS
		}
	}
}
# Karaite exilarch destroy the other exilarch
character_event = {
	id = exilarch.8
	desc = exilarch.8.desc
	picture = GFX_evt_holy_jerusalem

	only_men = yes
	only_rulers = yes
	
	is_triggered_only = yes
	
	trigger = {
		has_landed_title = d_exilarch
		has_landed_title = d_exilarch_karaite
		trait = house_of_david
		religion = karaite
	}
	
	immediate = {
		set_global_flag = VIET_end_of_exilarch
		activate_title = { title = d_exilarch status = no }
	}
	
	option = {
		name = exilarch.8.a
		d_exilarch = {
			destroy_landed_title = THIS
		}
	}
}
# A new jewish exilarch rises
character_event = {
	id = exilarch.9
	desc = exilarch.9.desc

	picture = GFX_evt_holy_jerusalem

	only_men = yes
	religion = jewish
	has_global_flag = VIET_end_of_exilarch
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_landed_title = d_exilarch }
		NOT = { has_landed_title = d_exilarch_karaite }
		trait = house_of_david
		OR = {
			AND = {
				diplomacy = 15
				learning = 10
			}
			AND = {
				diplomacy = 10
				learning = 15
			}
		}
	}

	immediate = {
		clr_global_flag = VIET_end_of_exilarch
		activate_title = { title = d_exilarch status = yes }
	}

	option = {
		name = exilarch.9.a
		d_exilarch = {
			grant_title = PREV
		}
	}
}
# A new karaite exilarch rises
character_event = {
	id = exilarch.10
	desc = exilarch.10.desc
	picture = GFX_evt_holy_jerusalem

	only_men = yes
	religion = karaite
	has_global_flag = VIET_end_of_exilarch_karaite
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_landed_title = d_exilarch }
		NOT = { has_landed_title = d_exilarch_karaite }
		trait = house_of_david
		OR = {
			AND = {
				diplomacy = 15
				learning = 10
			}
			AND = {
				diplomacy = 10
				learning = 15
			}
		}
	}

	immediate = {
		clr_global_flag = VIET_end_of_exilarch_karaite
		activate_title = { title = d_exilarch_karaite status = yes }
	}

	option = {
		name = exilarch.9.a
		d_exilarch_karaite = {
			grant_title = PREV
		}
	}
}

#############################################
# Israel Minorities
#############################################

# Aramean Chain Cold Start - You take a stroll
character_event = {
	id = israel.100
	desc = israel.100.desc
	picture = GFX_evt_holy_jerusalem

	is_triggered_only = yes

	only_rulers = yes
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no

	trigger = {
		has_landed_title = k_israel
		OR = {
			religion_group = jewish_group
			religion = ebionites
		}
		NOT = { has_global_flag = aramean_integrated }
		NOT = { has_character_flag = aramean_village_visited }
		NOT = { has_character_flag = removed_arameans }
		has_disease_trigger = no
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 2
			trait = stressed
		}
		modifier = {
			factor = 0.5
			trait = depressed
		}
		modifier = {
			factor = 2
			trait = hedonist
		}
		modifier = {
			factor = 0.5
			trait = scholar
		}
		modifier = {
			factor = 2
			trait = gardener
		}
		modifier = {
			factor = 0.5
			trait = duelist
		}
		modifier = {
			factor = 5
			trait = hunter
		}
		modifier = {
			factor = 0.5
			trait = impaler
		}
		modifier = {
			factor = 2
			trait = poet
		}
		modifier = {
			factor = 2
			trait = falconer
		}
		modifier = {
			factor = 2
			trait = temperate
		}
		modifier = {
			factor = 0.5
			trait = gluttonous
		}
		modifier = {
			factor = 5
			trait = diligent
		}
		modifier = {
			factor = 0.1
			trait = slothful
		}
		modifier = {
			factor = 2
			trait = brave
		}
		modifier = {
			factor = 0.5
			trait = craven
		}
		modifier = {
			factor = 3
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = shy
		}
		modifier = {
			factor = 2
			trait = trusting
		}
		modifier = {
			factor = 0.5
			trait = paranoid
		}
	}

	option = {
		name = israel.100.a
		set_character_flag = aramean_village_visited
		character_event = { id = israel.101 days = 6 random = 4 tooltip = israel.100.tooltip }
	}
}

# Aramean village found

character_event = {
	id = israel.101
	desc = israel.101.desc
	picture = GFX_evt_holy_jerusalem

	is_triggered_only = yes

	option = {
		name = israel.101.a
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
					learning = 6
				}
			}
			opinion = {
				modifier = viet_opinion_welcome_minority
				who = ROOT
				years = 2
			}
		}
		piety = -10
		narrative_event = { id = israel.102 days = 2 random = 1 tooltip = israel.101.tooltip }
	}

	option = { #Decline to visit
		name = israel.101.b
		piety = 10
	}
}

narrative_event = {
	id = israel.102 #You are greeted by the elder
	title = israel.102.name
	desc = israel.102.desc
	picture = GFX_evt_holy_jerusalem

	is_triggered_only = yes

	option = { #meet the man
		name = israel.102.a
		random_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = wroth
					trait = proud
					trait = hunter
					trait = duelist
					NOT = { diplomacy = 7 }
				}
			}
			opinion = {
				modifier = viet_opinion_talk_minority
				who = ROOT
				years = 2
			}
		}
		narrative_event = { id = israel.103 days = 2 random = 1 tooltip = israel.102.tooltip }
	}
	option = { #Decline invitation
		name = israel.102.b
		piety = 15
	}
}

narrative_event = {
	id = israel.103 #You and the elder talk
	title = israel.103.name
	desc = israel.103.desc
	picture = GFX_evt_two_men_talking

	is_triggered_only = yes

	option = { #Maybe we have things in common
		name = israel.103.a
		trigger = {
			NOT = { trait = cruel }
		}
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
					learning = 6
				}
			}
			opinion = {
				modifier = viet_opinion_compare_minority
				who = ROOT
				years = 2
			}
		}
		narrative_event = { id = israel.104 days = 4 random = 2 tooltip = israel.103.tooltip }
	}
	option = { #Dismiss
		name = israel.103.b
		piety = 10
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
					learning = 6
				}
			}
		}
		opinion = {
			modifier = viet_opinion_dismiss_minority
			who = ROOT
			years = 2
		}
	}
}

narrative_event = {
	id = israel.104
	title = israel.104.name
	desc = israel.104.desc
	picture = GFX_evt_holy_jerusalem
	
	is_triggered_only = yes

	option = { #Accept arameans, no courtier malus
		name = israel.104.a
		trigger = {
			OR = {
				diplomacy = 12
				learning = 12
			}
		}
		set_global_flag = aramean_integrated
		set_character_flag = reaffirmed_arameans
		create_character = {
			female = no
			random_traits = yes
			dynasty = culture
			religion = ebionites
			culture = aramean
			attributes = {
				stewardship = 10
			}
		}
		new_character = {
			opinion = {
				modifier = opinion_patron
				who = ROOT
				years = 20
			}
			reverse_opinion = {
				modifier = opinion_new_courtier
				who = ROOT
				years = 5
			}
		}
		character_event = { id = israel.105 days = 30 random = 10 tooltip = israel.104.tooltip }
	}
	option = { #Accept arameans, courtier malus
		name = israel.104.b
		trigger = {
			AND = {
				NOT = { diplomacy = 12 }
				NOT = { learning = 12 }
			}
		}
		set_global_flag = aramean_integrated
		set_character_flag = reaffirmed_arameans
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
				}
			}
			opinion = {
				modifier = viet_opinion_accepted_arameans_first
				who = ROOT
				years = -1
			}
		}
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				NOT = { trait = zealous }
				NOT = { trait = martial_cleric }
				NOT = { trait = scholarly_theologian }
				NOT = { trait = mastermind_theologian }
			}
			opinion = {
				modifier = viet_opinion_accepted_arameans_first
				who = ROOT
				years = 2
			}
		}
		create_character = {
			female = no
			random_traits = yes
			dynasty = culture
			religion = ebionites
			culture = aramean
			attributes = {
				stewardship = 10
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			opinion = {
				modifier = opinion_patron
				who = ROOT
				years = 20
			}
			reverse_opinion = {
				modifier = opinion_new_courtier
				who = ROOT
				years = 5
			}
		}
		character_event = { id = israel.105 days = 30 random = 10 tooltip = israel.104.tooltip }
	}
	option = { #Do not accept arameans
		name = israel.104.c
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
				}
			}
			opinion = {
				modifier = viet_opinion_refused_arameans
				who = ROOT
				years = 5
			}
		}
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				NOT = { trait = zealous }
				NOT = { trait = martial_cleric }
				NOT = { trait = scholarly_theologian }
				NOT = { trait = mastermind_theologian }
			}
			opinion = {
				modifier = viet_opinion_refused_arameans
				who = ROOT
				years = 2
			}
		}
	}
}

character_event = {
	id = israel.105 #Vassals hear you accepted arameans
	desc = israel.105.desc
	picture = GFX_evt_holy_jerusalem

	is_triggered_only = yes

	option = { #My choice is made
		name = israel.105.a
		any_vassal = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
				}
			}
			opinion = {
				modifier = viet_opinion_accepted_arameans_first
				who = ROOT
				years = 100
			}
		}
		any_vassal = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				NOT = { trait = zealous }
				NOT = { trait = martial_cleric }
				NOT = { trait = scholarly_theologian }
				NOT = { trait = mastermind_theologian }
			}
			opinion = {
				modifier = viet_opinion_accepted_arameans_first
				who = ROOT
				years = 2
			}
		}
	}
}

character_event = { #New ruler has to reaffirm arameans
	id = israel.106
	desc = israel.106.desc
	picture = GFX_evt_holy_jerusalem
	
	is_triggered_only = yes
	
	only_rulers = yes
	has_global_flag = aramean_integrated
	
	trigger = {
		has_landed_title = k_israel
		OR = {
			religion_group = jewish_group
			religion = ebionites
		}
		NOT = { has_global_flag = aramean_law }
		NOT = { has_character_flag = reaffirmed_arameans }
		NOT = { has_character_flag = removed_arameans }
	}
	
	#mean_time_to_happen = {
	#	days = 1
	#}
	
	option = {
		name = israel.106.a
		set_character_flag = reaffirmed_arameans
		any_vassal = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
				}
			}
			opinion = {
				modifier = viet_opinion_accepted_arameans_again
				who = ROOT
				years = 100
			}
		}
		any_vassal = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				NOT = { trait = zealous }
				NOT = { trait = martial_cleric }
				NOT = { trait = scholarly_theologian }
				NOT = { trait = mastermind_theologian }
			}
			opinion = {
				modifier = viet_opinion_accepted_arameans_again
				who = ROOT
				years = 2
			}
		}
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
				}
			}
			opinion = {
				modifier = viet_opinion_accepted_arameans_again
				who = ROOT
				years = 5
			}
		}
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				NOT = { trait = zealous }
				NOT = { trait = martial_cleric }
				NOT = { trait = scholarly_theologian }
				NOT = { trait = mastermind_theologian }
			}
			opinion = {
				modifier = viet_opinion_accepted_arameans_again
				who = ROOT
				years = 1
			}
		}
		any_courtier = {
			limit = {
				culture = aramean
			}
			opinion = {
				modifier = opinion_patron
				who = ROOT
				years = 20
			}
		}
	}
	option = {
		name = israel.106.b
		set_character_flag = removed_arameans
		clr_global_flag = aramean_integrated
		any_vassal = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
				}
			}
			opinion = {
				modifier = viet_opinion_refused_arameans
				who = ROOT
				years = 100
			}
		}
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
				}
			}
			opinion = {
				modifier = viet_opinion_refused_arameans
				who = ROOT
				years = 100
			}
		}
		any_courtier = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				NOT = { trait = zealous }
				NOT = { trait = martial_cleric }
				NOT = { trait = scholarly_theologian }
				NOT = { trait = mastermind_theologian }
			}
			opinion = {
				modifier = viet_opinion_refused_arameans
				who = ROOT
				years = 1
			}
		}
		any_courtier = {
			limit = {
				culture = aramean
			}
			opinion = {
				modifier = opinion_betrayed_arameans
				who = ROOT
				years = 100
			}
		}
	}
}

narrative_event = { #Should I make the arameans equals permanently?
	id = israel.107
	title = israel.107.name
	desc = israel.107.desc
	picture = GFX_evt_holy_jerusalem
	
	only_rulers = yes
	has_global_flag = aramean_integrated
	has_character_flag = reaffirmed_arameans
	
	trigger = {
		has_landed_title = k_israel
		OR = {
			religion_group = jewish_group
			religion = ebionites
		}
		NOT = { has_global_flag = aramean_law }
		diplomacy = 12
		learning = 12
	}
	
	mean_time_to_happen = {
		years = 3
	}
	
	option = {
		name = israel.107.a
		set_global_flag = aramean_law
		any_vassal = {
			limit = {
				OR = {
					religion_group = jewish_group
					religion = ebionites
				}
				OR = {
					trait = zealous
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
				}
			}
			opinion = {
				modifier = viet_opinion_accepted_arameans_final
				who = ROOT
				years = 100
			}
		}
	}
	option = {
		name = israel.107.b
	}
}

character_event = { #aramean courtier spawn
	id = israel.108
	desc = israel.108.desc
	
	picture = GFX_evt_holy_jerusalem
	
	min_age = 16
	prisoner = no
	only_rulers = yes
	capable_only = yes
	has_global_flag = aramean_integrated
	
	trigger = {
		has_landed_title = k_israel
		OR = {
			has_character_flag = reaffirmed_arameans
			has_global_flag = arameans_law
		}
		OR = {
			religion_group = jewish_group
			religion = ebionites
		}
	}
	
	mean_time_to_happen = {
		years = 20

		modifier = {
			factor = 4
			is_patrician = yes
		}
		
		modifier = {
			factor = 2
			trait = cruel
		}

		modifier = {
			factor = 1.5
			trait = envious
		}
		
		modifier = {
			factor = 1.5
			trait = arbitrary
		}
		
		modifier = {
			factor = 0.9
			trait = cynical
		}
		
		modifier = {
			factor = 0.9
			trait = kind
		}
		
		modifier = {
			factor = 0.9
			trait = diligent
		}
		
		modifier = {
			factor = 0.9
			trait = scholar
		}
		
		modifier = {
			factor = 0.9
			trait = ambitious
		}
		
		modifier = {
			factor = 0.9
			trait = charitable
		}
		
		modifier = {
			factor = 0.9
			trait = trusting
		}
		
		modifier = {
			factor = 0.9
			trait = greedy
		}
		
		modifier = {
			factor = 8
			any_courtier = {
				has_character_flag = israel_aliyah
			}
		}
	}
	
	option = { #accept them
		name = israel.108.a
		random_list = {
			20 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						diplomacy = 10
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			10 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						diplomacy = 11
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			5 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						diplomacy = 12
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			5 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						diplomacy = 13
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			5 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						diplomacy = 14
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			5 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						diplomacy = 15
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			20 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						stewardship = 10
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			10 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						stewardship = 11
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			5 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						stewardship = 12
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			5 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						stewardship = 13
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			5 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						stewardship = 14
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
			5 = {
				create_character = {
					female = no
					random_traits = yes
					dynasty = culture
					religion = ebionites
					culture = aramean
					attributes = {
						stewardship = 15
					}
					flag = ai_flag_refuse_conversion
				}
				new_character = {
					opinion = {
						modifier = opinion_patron
						who = ROOT
						years = 100
					}
					reverse_opinion = {
						modifier = opinion_new_courtier
						who = ROOT
						years = 5
					}
				}
			}
		}
		create_character = {
			female = yes
			random_traits = yes
			dynasty = culture
			religion = ebionites
			culture = aramean
		}
		new_character = {
			opinion = {
				modifier = opinion_patron
				who = ROOT
				years = 100
			}
			reverse_opinion = {
				modifier = opinion_new_courtier
				who = ROOT
				years = 5
			}
		}
	}
	option = { #No need
		name = israel.108.b
	}
}