﻿namespace = brus_slavic_yearly

#########################
# Druzhina wants silver spoons
# by Artem Samarsky (owgrunt)
#########################

brus_slavic_yearly.0060 = {
	type = character_event
	title = brus_slavic_yearly.0060.t
	desc = brus_slavic_yearly.0060.desc
	theme = martial
	left_portrait = {
		character = scope:realm_marshal
		animation = personality_bold
	}

	trigger = {
		is_available_adult = yes
		NOT = { has_character_flag = had_brus_slavic_yearly_0060 }
		has_councillor_for_skill = martial
		has_government = tribal_government
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_0060
			years = 5
		}
		cp:councillor_marshal = { save_scope_as = realm_marshal }
		#Grab our capital for loc.
		capital_county = { save_scope_as = capital_county }
	}

	option = { #Give them silver spoons
		name = brus_slavic_yearly.0060.a
		remove_short_term_gold = medium_gold_value
		reverse_add_opinion = {
			target = scope:realm_marshal
			modifier = cop_slavic_yearly_0060_druzhina_positive
		}
		add_character_modifier = {
			modifier = cop_slavic_yearly_0060_druzhina_positive
			years = 5
		}
		stress_impact = {
			greedy = medium_stress_impact_gain
		}
		ai_chance = {
			base = 10
			ai_value_modifier = {
				ai_honor = 0.5
				ai_greed = -0.5
			}
		}
	}

	option = { #Refuse to give them silver spoons
		name = brus_slavic_yearly.0060.b
		reverse_add_opinion = {
			target = scope:realm_marshal
			modifier = cop_slavic_yearly_0060_druzhina_negative
		}
		add_character_modifier = {
			modifier = cop_slavic_yearly_0060_druzhina_negative
			years = 5
		}
		stress_impact = {
			generous = medium_stress_impact_gain
		}
		ai_chance = {
			base = 10
			ai_value_modifier = {
				ai_honor = -0.5
				ai_greed = 0.5
			}
		}
	}
}

#########################
# Dispute over Beekeeping Rights
# by Artem Samarsky
#########################

scripted_trigger brus_slavic_yearly_0091_offender_trigger = {
	tier = tier_county
	holder = root.cp:councillor_steward
	title_province = {
		OR = {
			terrain = taiga
			terrain = forest
		}
	}

	culture = { has_cultural_pillar = heritage_east_slavic }
	religion = religion:slavic_religion

}

scripted_trigger brus_slavic_yearly_0091_victim_trigger = {
	tier = tier_county
	NOR = {
		holder = root
		holder = root.cp:councillor_steward
	}
	title_province = {
		OR = {
			terrain = taiga
			terrain = forest
		}
	}

	culture = { has_cultural_pillar = heritage_east_slavic }
	religion = religion:slavic_religion

	any_neighboring_county = { brus_slavic_yearly_0091_offender_trigger = yes }
}

# Your steward's county is infringing on the beekeeping rights of another county
brus_slavic_yearly.0090 = {
	type = character_event
	title = brus_slavic_yearly.0090.t
	desc = brus_slavic_yearly.0090.desc
	theme = realm
	left_portrait = {
		character = scope:offender
		animation = personality_greedy
	}
	right_portrait = {
		character = scope:victim
		animation = disapproval
	}
	override_background = { reference = wilderness_forest_pine }

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes

		culture = { has_cultural_pillar = heritage_east_slavic }
		has_government = tribal_government

		has_councillor_for_skill = stewardship
		cp:councillor_steward = {
			is_performing_council_task = task_collect_taxes
			NOT = { has_trait = honest }
		}
		NOT = { has_character_flag = had_brus_slavic_yearly_0090 }
		# Ensure you have at least two counties that can fight with each other.
		any_realm_county = { brus_slavic_yearly_0091_victim_trigger = yes }
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 0.5
			cp:councillor_steward = { has_trait = deceitful }
		}
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_0090
			days = 1825
		}
		cp:councillor_steward = { save_scope_as = offender }
		# Grab the counties.
		random_realm_county = {
			limit = { brus_slavic_yearly_0091_victim_trigger = yes }
			save_scope_as = victim_county
			random_neighboring_county = {
				limit = { brus_slavic_yearly_0091_offender_trigger = yes }
				save_scope_as = offender_county
			}
		}
		scope:victim_county.holder = { save_scope_as = victim }
	}

	# Side with the steward
	option = {
		name = brus_slavic_yearly.0090.a

		add_character_modifier = {
			modifier = cop_slavic_yearly_0090_tax
			years = 1
		}

		stress_impact = {
			greedy = minor_stress_impact_loss
			just = minor_stress_impact_gain
		}

		scope:offender_county = {
			add_county_modifier = {
				modifier = cop_slavic_yearly_0090_honey_good
				years = 10
			}
		}
		scope:victim_county = {
			add_county_modifier = {
				modifier = cop_slavic_yearly_0090_honey_bad
				years = 10
			}
		}
		
		reverse_add_opinion = {
			target = scope:offender
			modifier = cop_slavic_yearly_0090_support_claim
		}
		reverse_add_opinion = {
			target = scope:victim
			modifier = cop_slavic_yearly_0090_deny_claim
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
				ai_honor = 0.25
			}
			modifier = {	# Weight up for stress.
				add = 10
				has_trait = greedy
			}
			modifier = {	# Weight down for stress.
				add = -10
				has_trait = just
			}
		}
	}
	
	# Side with the victim
	option = {
		name = brus_slavic_yearly.0090.b

		stress_impact = {
			just = minor_stress_impact_loss
			greedy = minor_stress_impact_gain
		}

		# Building cost county modifier.
		scope:victim_county = {
			add_county_modifier = {
				modifier = cop_slavic_yearly_0090_honey_good
				years = 10
			}
		}
		# And spurn the other county.
		scope:offender_county = {
			add_county_modifier = {
				modifier = cop_slavic_yearly_0090_honey_bad
				years = 10
			}
		}
		
		reverse_add_opinion = {
			target = scope:victim
			modifier = cop_slavic_yearly_0090_support_claim
		}
		reverse_add_opinion = {
			target = scope:offender
			modifier = cop_slavic_yearly_0090_deny_claim
		}

		scope:victim = {
			pay_short_term_gold = {
				target = root
				gold = minor_gold_value
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
				ai_honor = 0.25
			}
			modifier = {	# Weight up for stress.
				add = 10
				has_trait = just
			}
			modifier = {	# Weight down for stress.
				add = -10
				has_trait = greedy
			}
		}
	}

	# Let them fight it out.
	option = {
		name = brus_slavic_yearly.0090.c
		# Not princely to abstain from the decision
		add_prestige = minor_prestige_loss
		# Stress loss: not your problem, honestly.
		stress_impact = {
			base = major_stress_loss
			lazy = medium_stress_impact_loss
			diligent = medium_stress_impact_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_boldness = -0.25
				ai_energy = -0.75
			}
			modifier = {	# Weight up for stress.
				add = 20
				has_trait = lazy
			}
			modifier = {	# Weight down for stress.
				add = -20
				has_trait = diligent
			}
		}
	}
}

#Varangian Passing Through
brus_slavic_yearly.02 = {
	type = character_event
	title = brus_slavic_yearly.02.t
	desc = brus_slavic_yearly.02.desc
	theme = martial

	left_portrait = {
		character = scope:varangian
		animation = stress
	}

	trigger = {
		is_available_adult = yes
		NOT = { has_character_flag = had_brus_slavic_yearly_02 }
		has_government = tribal_government
		primary_title.empire = title:e_russia
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_02
			years = 15
		}

		create_character = {
			template = varangian_rus_character
			location = root.capital_province
			save_scope_as = varangian
		}
	}

	option = { #Recruit him
		name = brus_slavic_yearly.02.a
		stress_impact = {
			paranoid = medium_stress_impact_gain
			shy = minor_stress_impact_gain
			gregarious = minor_stress_impact_loss
		}

		add_courtier = scope:varangian

		reverse_add_opinion = {
			target = scope:varangian
			modifier = brus_recruited
		}

		ai_chance = {
			base = 15
			ai_value_modifier = {
				ai_honor = 0.5
				ai_greed = -0.5
			}
		}
	}

	option = { #Pay his way
		name = brus_slavic_yearly.02.b
		custom_tooltip = brus_slavic_yearly.02.b.tt
		stress_impact = {
			greedy = medium_stress_impact_gain
			generous = medium_stress_impact_loss
			compassionate = medium_stress_impact_loss
		}

		remove_short_term_gold = minor_gold_value
		add_prestige = 125

		hidden_effect = {
			scope:varangian = {
				death = {
					death_reason = death_vanished
				}
			}
		}

		ai_chance = {
			base = 5
			ai_value_modifier = {
				ai_honor = 0.5
				ai_greed = -0.5
			}
		}
	}

	option = { #IDC
	name = brus_slavic_yearly.02.c
	custom_tooltip = brus_slavic_yearly.02.c.tt
		stress_impact = {
			generous = medium_stress_impact_gain
			compassionate = medium_stress_impact_gain
			arrogant = minor_stress_impact_loss
		}

		hidden_effect = {
			scope:varangian = {
				death = {
					death_reason = death_vanished
				}
			}
		}

		ai_chance = {
			base = 10
			ai_value_modifier = {
				ai_honor = -0.5
				ai_greed = 0.5
			}
		}
	}
}
# Foreign Rituals Unnerve Peasants
brus_slavic_yearly.03 = {
	type = character_event
	title = brus_slavic_yearly.03.t
	desc = brus_slavic_yearly.03.desc
	theme = realm

	left_portrait = {
		character = root
		animation = personality_greedy
	}
	right_portrait = {
		character = scope:offensive_merchant
		animation = worry
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes

		has_government = tribal_government

		NOT = { has_character_flag = had_brus_slavic_yearly_03 }
		any_realm_county = {
			is_riverside_county = yes 
			title_province = { geographical_region = custom_brus_kievian_rus }
		} 
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_03
			years = 10
		}
		# Grab the county
		random_realm_county = {
			limit = { 
				is_riverside_county = yes 
				title_province = { geographical_region = custom_brus_kievian_rus } 
			}
			save_scope_as = offended_county
		}
		create_character = {
			template = random_offensive_merchant
			location = root.capital_province
			save_scope_as = offensive_merchant
		}
	}

	# Recruit the merchant
	option = {
		name = brus_slavic_yearly.03.a

		stress_impact = {
			greedy = minor_stress_impact_loss
		}

		scope:offended_county = {
			add_county_modifier = {
				modifier = brus_unnerved_peasants
				years = 5
			}
		}
		add_character_modifier = {
			modifier = brus_protected_merchants
			years = 10
		}
		reverse_add_opinion = {
			target = scope:offensive_merchant
			modifier = brus_recruited
		}

		add_courtier = scope:offensive_merchant

		ai_chance = {
			base = 20
			ai_value_modifier = {
				ai_energy = 0.2
				ai_honor = 0.2
			}
			modifier = {	# Weight up for stress.
				add = 10
				has_trait = greedy
			}
			modifier = {	# Weight down for stress.
				add = 30
				has_trait = just
			}
			
		}
	}

	# Side with the peasants
	option = {
		name = brus_slavic_yearly.03.b

		stress_impact = {
			just = medium_stress_impact_gain
		}

		scope:offended_county = {
			change_development_progress = -35
		}

		hidden_effect = {
			scope:offensive_merchant = {
				death = {
					death_reason = death_vanished
				}
			}
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight up for stress.
				add = -10
				has_trait = just
			}
			modifier = {	# Weight down for stress.
				add = -10
				has_trait = greedy
			}
			modifier = {	# Weight down for stress.
				add = 40
				has_trait = zealous
			}
			modifier = {	# Weight down for stress.
				add = 30
				has_trait = paranoid
			}
		}
	}
	# Make him pay a tax
	option = {
		name = brus_slavic_yearly.03.c
		stress_impact = {
			just = minor_stress_impact_loss
		}

		hidden_effect = {
			scope:offensive_merchant = {
				death = {
					death_reason = death_vanished
				}
			}
		}

		add_gold = minor_gold_value

		scope:offended_county = {
			add_county_modifier = {
				modifier = brus_unnerved_peasants
				years = 2
			}
		}
		add_character_modifier = {
			modifier = brus_protected_merchants
			years = 3
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight up for stress.
				add = -10
				has_trait = just
			}
			modifier = {	# Weight down for stress.
				add = 10
				has_trait = greedy
			}
			modifier = {	# Weight down for stress.
				add = 10
				has_trait = zealous
			}
		}
	}

}

# Volkhv Antagonizes County
brus_slavic_yearly.04 = {
	type = character_event
	title = brus_slavic_yearly.04.t
	desc = brus_slavic_yearly.04.desc
	theme = realm

	left_portrait = {
		character = root
		animation = shock
	}
	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes

		any_realm_county = {
			religion = religion:slavic_religion
			holder = root
		}

		NOT = { has_character_flag = had_brus_slavic_yearly_04 }
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_04
			years = 20
		}
		# Grab the county
		random_realm_county = {
			limit = { 
				holder = root
				religion = religion:slavic_religion
			}
			save_scope_as = harassed_county
		}
	}

	# Kill him
	option = {
		name = brus_slavic_yearly.04.a

		stress_impact = {
			just = minor_stress_impact_loss
			wrathful = minor_stress_impact_loss
		}

		scope:harassed_county = {
			change_development_progress = -10
		}
		add_piety = minor_piety_value
		add_prestige = minor_prestige_value

		ai_chance = {
			base = 20
			ai_value_modifier = {
				ai_energy = 0.2
				ai_honor = 0.2
			}
			modifier = {	# Weight down for stress.
				add = 30
				has_trait = just
			}
			
		}
	}

	# Side with the volkhv
	option = {
		name = brus_slavic_yearly.04.b

		stress_impact = {
			zealous = medium_stress_impact_loss
			compassionate = medium_stress_impact_gain
			just = minor_stress_impact_gain
		}

		trigger = {	
			# Must not have pagan or reformed slavic faith
			religion = {
				OR = {
					this = religion:slavic_religion
					any_faith = {
						has_doctrine = unreformed_faith_doctrine 
					}
				}
			}
		 }

		add_piety = medium_piety_value

		scope:harassed_county = {
			change_development_progress = -30
			change_county_control = -10
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight up for stress.
				add = -10
				has_trait = just
			}
			modifier = {	# Weight down for stress.
				add = 30
				has_trait = zealous
			}
			modifier = {	# Weight down for stress.
				add = 20
				has_trait = paranoid
			}
		}
	}
	# Crack down on paganism
	option = {
		name = brus_slavic_yearly.04.c
		trigger = {	
			# Must follow a reformed faith
			faith = {
				NOT = { has_doctrine = unreformed_faith_doctrine }
			}
		 }

		stress_impact = {
			just = minor_stress_impact_loss
			zealous = major_stress_impact_loss
		}

		add_piety = medium_piety_value

		scope:offended_county = {
			add_county_modifier = {
				modifier = county_forced_assimilation_modifier
				years = 3
			}
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight up for stress.
				add = -10
				has_trait = just
			}
			modifier = {	# Weight down for stress.
				add = 80
				has_trait = zealous
			}
		}
	}

}

# Idol Falls Overnight
brus_slavic_yearly.05 = {
	type = character_event
	title = brus_slavic_yearly.05.t
	desc = brus_slavic_yearly.05.desc
	theme = realm
	override_background = {
		reference = fp1_runestone_circle
	}

	left_portrait = {
		character = root
		animation = disapproval
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes

		religion = religion:slavic_religion

		OR = {
			has_character_modifier = bhakti_slavic_perun
			has_character_modifier = bhakti_slavic_veles
			has_character_modifier = bhakti_slavic_khors_dazhbog
			has_character_modifier = bhakti_slavic_stribog
			has_character_modifier = bhakti_slavic_simargl
			has_character_modifier = bhakti_slavic_mokosh
		}

		NOT = { has_character_flag = had_brus_slavic_yearly_05 }
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_05
			years = 15
		}
	}

	# Simply rebuild
	option = {
		name = brus_slavic_yearly.05.a

		stress_impact = {
			zealous = minor_stress_impact_loss
		}

		remove_short_term_gold = minor_gold_value
		add_piety = 50

		ai_chance = {
			base = 30
			modifier = {	# Weight down for stress.
				add = -10
				has_trait = greedy
			}
		}
	}

	# Invest even more
	option = {
		name = brus_slavic_yearly.05.b

		stress_impact = {
			zealous = medium_stress_impact_loss
			greedy = medium_stress_impact_gain
			cynical = minor_stress_impact_gain
		}

		remove_short_term_gold = medium_gold_value

		add_piety = medium_piety_value
		# Renew the idol modifier
		if = {
			limit = { has_character_modifier = bhakti_slavic_perun }
			add_character_modifier = {
				modifier = bhakti_slavic_perun
				years = 10
			}
		}
		else_if = {
			limit = { has_character_modifier = bhakti_slavic_veles }
			add_character_modifier = {
				modifier = bhakti_slavic_veles
				years = 10
			}
		}
		else_if = {
			limit = { has_character_modifier = bhakti_slavic_khors_dazhbog }
			add_character_modifier = {
				modifier = bhakti_slavic_khors_dazhbog
				years = 10
			}
		}
		else_if = {
			limit = { has_character_modifier = bhakti_slavic_stribog }
			add_character_modifier = {
				modifier = bhakti_slavic_stribog
				years = 10
			}
		}
		else_if = {
			limit = { has_character_modifier = bhakti_slavic_simargl }
			add_character_modifier = {
				modifier = bhakti_slavic_simargl
				years = 10
			}
		}
		else_if = {
			limit = { has_character_modifier = bhakti_slavic_mokosh }
			add_character_modifier = {
				modifier = bhakti_slavic_mokosh
				years = 10
			}
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight down for stress.
				add = 30
				has_trait = zealous
			}
			modifier = {	# Weight down for stress.
				add = -20
				has_trait = cynical
		}
	}

	}
	# Let it fall
	option = {
		name = brus_slavic_yearly.05.c

		stress_impact = {
			cynical = minor_stress_impact_loss
			zealous = medium_stress_impact_gain
		}

		add_piety = {
			subtract = minor_piety_value
		}

		if = {
			limit = { has_character_modifier = bhakti_slavic_perun }
			remove_character_modifier = bhakti_slavic_perun 
		}
		else_if = {
			limit = { has_character_modifier = bhakti_slavic_veles }
			remove_character_modifier = bhakti_slavic_veles 
		}
		else_if = {
			limit = { has_character_modifier = bhakti_slavic_khors_dazhbog }
			remove_character_modifier = bhakti_slavic_khors_dazhbog
		}
		else_if = {
			limit = { has_character_modifier = bhakti_slavic_stribog }
			remove_character_modifier = bhakti_slavic_stribog
		}
		else_if = {
			limit = { has_character_modifier = bhakti_slavic_simargl }
			remove_character_modifier = bhakti_slavic_simargl
		}
		else_if = {
			limit = { has_character_modifier = bhakti_slavic_mokosh }
			remove_character_modifier = bhakti_slavic_mokosh 
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight up for stress.
				add = -20
				has_trait = zealous
			}
			modifier = {	# Weight down for stress.
				add = 20
				has_trait = cynical
			}
		}
	}

}

# Pagan Idol Draws Ire
brus_slavic_yearly.06 = {
	type = character_event
	title = brus_slavic_yearly.06.t
	desc = brus_slavic_yearly.06.desc
	theme = realm
	override_background = {
		reference = fp1_runestone
	}

	left_portrait = {
		character = realm_priest
		animation = disapproval
	}
	right_portrait = {
		character = cp:councillor_steward
		animation = personality_rational
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes

		culture = { has_cultural_pillar = heritage_east_slavic }
		religion = {
			any_faith = {
				NOT = { has_doctrine = unreformed_faith_doctrine }
			}
		}
		NOT = { religion = religion:slavic_religion }

		NOT = { has_character_flag = had_brus_slavic_yearly_06 }
	}

	weight_multiplier = { base = 1 }

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_06
		}
		random_sub_realm_county = {
			limit = { holder = root }
			save_scope_as = idol_county
		}
	}

	# Destroy the idol
	option = {
		name = brus_slavic_yearly.06.a

		stress_impact = {
			zealous = medium_stress_impact_loss
			wrathful = minor_stress_impact_loss
		}

		add_piety = minor_piety_value

		scope:idol_county = {
			add_county_modifier = {
			modifier = brus_hunting_pagans
			years = 5
			}
		}
	
		ai_chance = {
			base = 20
			modifier = {	
				add = 20
				has_trait = zealous
			}
			modifier = {	
				add = 20
				has_trait = wrathful
			}
		}
	}

	# Build a shrine for your faith
	option = {
		name = brus_slavic_yearly.06.b

		stress_impact = {
			zealous = minor_stress_impact_loss
			greedy = medium_stress_impact_gain
			generous = minor_stress_impact_loss
			diligent = minor_stress_impact_loss
		}

		remove_short_term_gold = medium_gold_value

		add_piety = medium_piety_value
		
		scope:idol_county = {
			add_county_modifier = {
			modifier = reinvested_in_province_modifier
			years = 10
			}
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight down for stress.
				add = 30
				has_trait = zealous
			}
			modifier = {	# Weight down for stress.
				add = -20
				has_trait = cynical
		}
		}

	}
	# Ignore it
	option = {
		name = brus_slavic_yearly.06.c

		stress_impact = {
			cynical = minor_stress_impact_loss
			zealous = medium_stress_impact_gain
		}

		add_piety = { subtract = minor_piety_value }

		reverse_add_opinion = {
			target = realm_priest
			modifier = brus_idolire_ignore
		}
		reverse_add_opinion = {
			target = cp:councillor_steward
			modifier = brus_idolire_ignore
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight up for stress.
				add = -20
				has_trait = zealous
			}
			modifier = {	# Weight down for stress.
				add = 20
				has_trait = cynical
			}
		}
	}
}

# Greek Artisans Offer Services
brus_slavic_yearly.07 = {
	type = character_event
	title = brus_slavic_yearly.07.t
	desc = brus_slavic_yearly.07.desc
	theme = faith

	left_portrait = {
		character = root
		animation = personality_rational
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes

		culture = { has_cultural_pillar = heritage_east_slavic }
		
		OR = {
			title:e_byzantium.holder = {
			religion = religion:christianity_religion
			}
			any_independent_ruler = {
				religion = religion:christianity_religion
				has_culture = culture:greek
			}
		}
		
		religion = religion:christianity_religion
		NOT = { faith = faith:iconoclast }

		NOT = { has_character_flag = had_brus_slavic_yearly_07 }
	}

	weight_multiplier = { base = 1 }

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_07
		}
	}

	# Recruit them
	option = {
		name = brus_slavic_yearly.07.a

		stress_impact = {
			zealous = minor_stress_impact_loss
			diligent = minor_stress_impact_loss
			greedy = medium_stress_impact_gain
		}

		remove_short_term_gold = medium_gold_value
		# If they are tribal, temple construction bonus won't really make sense.
		if = {
			limit = {
				has_government = tribal_government
			}
			add_character_modifier = {
				modifier = brus_recruited_experts_tribal
				years = 5
			}
		}
		else = {
			add_character_modifier = {
				modifier = brus_recruited_experts
				years = 5
			}
		}

		ai_chance = {
			base = 20
			modifier = {	
				add = 20
				has_trait = zealous
			}
			modifier = {	
				add = -15
				has_trait = greedy
			}
		}
	}
	# Merely commission icon
	option = {
		name = brus_slavic_yearly.07.b

		stress_impact = {
			zealous = minor_stress_impact_loss
			greedy = minor_stress_impact_gain
		}

		remove_short_term_gold = minor_gold_value

		add_piety = medium_piety_value

		ai_chance = {
			base = 20
			modifier = {	# Weight down for stress.
				add = 30
				has_trait = zealous
			}
			modifier = {	# Weight down for stress.
				add = -20
				has_trait = cynical
		}
		}

	}
	# Not now
	option = {
		name = brus_slavic_yearly.07.c

		stress_impact = {
			cynical = minor_stress_impact_loss
			zealous = minor_stress_impact_gain
			diligent = minor_stress_impact_gain
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight up for stress.
				add = -20
				has_trait = zealous
			}
			modifier = {	# Weight down for stress.
				add = 20
				has_trait = cynical
			}
		}
	}
}

# Return of River Piracy
brus_slavic_yearly.08 = {
	type = character_event
	title = brus_slavic_yearly.08.t
	desc = brus_slavic_yearly.08.desc
	theme = corruption

	left_portrait = {
		character = root
		animation = worry
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes
		
		any_realm_county = {
			is_riverside_county = yes 
			title_province = { geographical_region = custom_brus_kievian_rus }
		} 

		OR = {
			capital_province = { geographical_region = custom_brus_kievian_rus }
			primary_title.empire = title:e_russia
		}

		NOT = { has_character_flag = had_brus_slavic_yearly_08 }
	}

	weight_multiplier = { base = 1 }

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_08
			years = 20
		}
		random_realm_county = {
			limit = { 
				is_riverside_county = yes 
				title_province = { geographical_region = custom_brus_kievian_rus }
			}
			save_scope_as = pirated_county
		}
	}

	# Kill them
	option = {
		name = brus_slavic_yearly.08.a

		stress_impact = {
			just = minor_stress_impact_loss
			wrathful = minor_stress_impact_loss
			craven = minor_stress_impact_gain
		}
		
		add_prestige = minor_prestige_value

		add_character_modifier = {
			modifier = brus_rooting_pirates
			years = 2
		}

		ai_chance = {
			base = 20
			modifier = {	
				add = 20
				has_trait = just
			}
			modifier = {	
				add = 10
				has_trait = wrathful
			}
		}
	}
	# Recruit pirates
	option = {
		name = brus_slavic_yearly.08.b

		stress_impact = {
			greedy = minor_stress_impact_gain
			deceitful = minor_stress_impact_loss
		}

		remove_short_term_gold = {
			value = minor_gold_value 
			add = 15
		}
		add_character_modifier = {
			modifier = brus_recruited_pirates
			years = 5
		}

		scope:pirated_county = {
			add_county_modifier = {
				modifier = released_criminal
				years = 3
			}
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight down for stress.
				add = 10
				has_trait = deceitful
			}
		}

	}
	# Not now
	option = {
		name = brus_slavic_yearly.08.c

		stress_impact = {
			wrathful = minor_stress_impact_gain
			diligent = minor_stress_impact_gain
			just = minor_stress_impact_gain
			craven = medium_stress_impact_loss
		}

		add_prestige = {
			subtract = minor_prestige_value
			subtract = 25
		}
		scope:pirated_county = {
			add_county_modifier = {
				modifier = brus_river_piracy
				years = 3
			}
		}

		ai_chance = {
			base = 10
			modifier = {	# Weight down for stress.
				add = -20
				has_trait = just
			}
			modifier = {	# Weight down for stress.
				add = 30
				has_trait = craven
			}
		}
	}
}

# Trade Dispute
brus_slavic_yearly.09 = {
	type = character_event
	title = brus_slavic_yearly.09.t
	desc = brus_slavic_yearly.09.desc
	theme = corruption

	left_portrait = {
		character = root
		animation = boredom
	}
	right_portrait = {
		character = scope:trade_disputer
		animation = personality_greedy 
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes
		NOT = { has_character_flag = had_brus_slavic_yearly_09 }
		
		any_independent_ruler = {
			in_diplomatic_range = root
			realm_size >= 5
			#Capital should be where trade flows
			capital_province = {
				NOT = { geographical_region = custom_brus_siberia }
				OR = {
					geographical_region = world_steppe	
					geographical_region = world_middle_east
					geographical_region = world_india
					geographical_region = ghw_region_anatolia 
					geographical_region = custom_brus_kievian_rus
				}
			}
			#Shouldn't be allied or at war with to have a peaceful trade dispute
			NOT = {
				is_at_war_with = root
				is_allied_to = root
				this = root
			}
		}
	}

	weight_multiplier = { base = 1 }

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_09
		}
		save_scope_as = trade_offended

		random_independent_ruler = {
			limit = {
				in_diplomatic_range = root
				realm_size >= 5
				#Capital should be where trade flows
				capital_province = {
					NOT = { geographical_region = custom_brus_siberia }
					OR = {
						geographical_region = world_steppe	
						geographical_region = world_middle_east
						geographical_region = world_india
						geographical_region = ghw_region_anatolia 
						geographical_region = custom_brus_kievian_rus
					}
				}
				#Shouldn't be allied or at war with to have a peaceful trade dispute
				NOT = {
					is_at_war_with = root
					is_allied_to = root
					this = root
				}
			}
			save_scope_as = trade_disputer
		}
	}

	# Threaten them
	option = {
		name = brus_slavic_yearly.09.a

		stress_impact = {
			wrathful = medium_stress_impact_loss
			craven = minor_stress_impact_gain
			forgiving = minor_stress_impact_gain
		}
		set_local_variable = {
			name = dispute_response
			value = 1 #Threat
		}
		scope:trade_disputer = {
			trigger_event = {
				id = brus_slavic_yearly.091
				days = 2
			}
		}
		ai_chance = {
			base = 20
			modifier = {	
				add = 10
				has_trait = wrathful
			}
		}
	}
	# Pay them
	option = {
		name = brus_slavic_yearly.09.b

		stress_impact = {
			greedy = medium_stress_impact_gain
			craven = medium_stress_impact_loss
			arrogant = minor_stress_impact_gain
		}
		set_local_variable = {
			name = dispute_response
			value = 2 #Pay
		}

		remove_short_term_gold = {
			value = medium_gold_value 
		}

		ai_chance = {
			base = 10
			modifier = {
				add = -20
				has_trait = greedy
			}
		}

		scope:trade_disputer = {
			trigger_event = {
				id = brus_slavic_yearly.091
				days = 2
			}
		}

	}
	# Offer a deal
	option = {
		name = brus_slavic_yearly.09.c

		stress_impact = {
			wrathful = medium_stress_impact_gain
			diligent = minor_stress_impact_loss
			forgiving = minor_stress_impact_loss
			gregarious = minor_stress_impact_loss
			compassionate = minor_stress_impact_loss
		}

		set_local_variable = {
			name = dispute_response
			value = 3 #Deal
		}

		scope:trade_disputer = {
			trigger_event = {
				id = brus_slavic_yearly.091
				days = 2
			}
		}

		ai_chance = {
			base = 10
			modifier = {	# Weight down for stress.
				add = 10
				has_trait = just
			}
			modifier = {	# Weight down for stress.
				add = 10
				has_trait = greedy
			}
			modifier = {	# Weight down for stress.
				add = 10
				has_trait = gregarious
			}
		}
	}
}

# Trade Dispute - Reply
brus_slavic_yearly.091 = {
	type = character_event
	title = brus_slavic_yearly.091.t
	desc = {
		desc = brus_slavic_yearly.091.desc
		first_valid = {
			#Threat issued
			triggered_desc = {
				trigger = { local_var:dispute_response = 1 }
				desc = brus_slavic_yearly.091.threatened
			}
			# Payment offered
			triggered_desc = {
				trigger = { local_var:dispute_response = 2 }
				desc = brus_slavic_yearly.091.paid
			}
			# Trade Deal offered
			triggered_desc = {
				trigger = { local_var:dispute_response = 3 }
				desc = brus_slavic_yearly.091.deal
			}
		}	
	}

	theme = corruption

	left_portrait = {
		character = scope:trade_offended
		animation = anger 
	}
	right_portrait = {
		character = scope:trade_disputer
		animation = boredom
	}

	trigger = {}

	immediate = {
		if = {
			limit = { local_var:dispute_response = 2 }
			add_gold = medium_gold_value
		}
	}

	# Compensate
	option = {
		name = brus_slavic_yearly.091.a

		trigger = {
			NOT = { local_var:dispute_response = 3 }
		}

		stress_impact = {
			greedy = medium_stress_impact_gain
		}
		set_local_variable = {
			name = dispute_response_2
			value = 1 # Compensate
		}

		remove_short_term_gold = medium_gold_value
		add_prestige = medium_prestige_value

		scope:trade_offended = {
			trigger_event = {
				id = brus_slavic_yearly.092
				days = 30
			}
		}

		reverse_add_opinion = {
			target = scope:trade_offended
			modifier = brus_trade_dispute_positive
			opinion = 35
		}

		ai_chance = {
			base = 20
			modifier = {	
				add = 20
				has_trait = just
			}
			modifier = {	
				add = -15
				has_trait = greedy
			}
			modifier = {	
				add = -10
				has_trait = deceitful
			}
			modifier = {
				local_var:dispute_response = 2
				add = 10
			}
		}
	}
	# Guarantee safety
	option = {
		name = brus_slavic_yearly.091.b

		trigger = {
			NOT = { local_var:dispute_response = 3 }
		}

		stress_impact = {
			greedy = minor_stress_impact_gain
			just = medium_stress_impact_loss
			arrogant = minor_stress_impact_gain
		}
		set_local_variable = {
			name = dispute_response_2
			value = 2 #Guarantee
		}
		add_prestige = minor_prestige_value

		reverse_add_opinion = {
			target = scope:trade_offended
			modifier = brus_trade_dispute_positive
			opinion = 20
		}

		ai_chance = {
			base = 15
			modifier = {	
				add = 10
				has_trait = just
			}
			modifier = {	
				add = -10
				has_trait = deceitful
			}
			modifier = {
				local_var:dispute_response = 2
				add = 15
			}
		}

		scope:trade_offended = {
			trigger_event = {
				id = brus_slavic_yearly.092
				days = 30
			}
		}

	}
	# Extort
	option = {
		name = brus_slavic_yearly.091.c

		stress_impact = {
			wrathful = medium_stress_impact_loss
			arrogant = medium_stress_impact_loss
			forgiving = minor_stress_impact_gain
			compassionate = minor_stress_impact_gain
		}

		set_local_variable = {
			name = dispute_response_2
			value = 3 #Extort
		}

		add_gold = {
			value = minor_gold_value
			add = 10
		}
		add_dread = 10

		scope:trade_offended = {
			trigger_event = {
				id = brus_slavic_yearly.092
				days = 30
			}
		}
		reverse_add_opinion = {
			target = scope:trade_offended
			modifier = brus_trade_dispute_negative
		}

		ai_chance = {
			base = 15
			modifier = {	
				add = -20
				has_trait = just
			}
			modifier = {	
				add = -10
				has_trait = craven
			}
			modifier = {	
				add = 10
				has_trait = greedy
			}
			modifier = {	
				add = 20
				has_trait = deceitful
			}
			modifier = {	
				add = 10
				has_trait = arrogant
			}
			modifier = {	
				add = -10
				has_trait = honest
			}
			modifier = {	
				add = -10
				has_trait = gregarious
			}
			modifier = {	
				add = 5
				has_trait = wrathful
			}
		}
	}
	# Accept deal
	option = {
		name = brus_slavic_yearly.091.d

		trigger = {
			local_var:dispute_response = 3
		}

		stress_impact = {
			wrathful = medium_stress_impact_gain
			diligent = minor_stress_impact_loss
			forgiving = minor_stress_impact_loss
			compassionate = minor_stress_impact_loss
		}

		add_character_modifier = {
			modifier = brus_equitable_deal
			years = 10
		}

		set_local_variable = {
			name = dispute_response_2
			value = 4 #Accept deal
		}
		
		reverse_add_opinion = {
			target = scope:trade_offended
			modifier = brus_trade_dispute_positive
			opinion = 30
		}
		scope:trade_offended = {
			trigger_event = {
				id = brus_slavic_yearly.092
				days = 30
			}
		}

		ai_chance = {
			base = 20
			modifier = {	
				add = 20
				has_trait = just
			}
			modifier = {	
				add = 10
				has_trait = gregarious
			}
			modifier = {	
				add = 10
				has_trait = honest
			}
			modifier = {	
				add = 10
				has_trait = diligent
			}
			modifier = {	
				add = 10
				has_trait = trusting
			}
		}
	}
}

# Trade Dispute - Conclusion
brus_slavic_yearly.092 = {
	type = character_event
	title = brus_slavic_yearly.092.t
	desc = {
		first_valid = {
			# Compensate
			triggered_desc = {
				trigger = { local_var:dispute_response_2 = 1 }
				desc = brus_slavic_yearly.092.compensated
			}
			# Gaurantee safety
			triggered_desc = {
				trigger = { local_var:dispute_response_2 = 2 }
				desc = brus_slavic_yearly.092.safety
			}
			# Extort
			triggered_desc = {
				trigger = { local_var:dispute_response_2 = 3 }
				desc = brus_slavic_yearly.092.extorted
			}
			# Accept deal
			triggered_desc = {
				trigger = { local_var:dispute_response_2 = 4 }
				desc = brus_slavic_yearly.092.deal
			}
		}	
	}

	theme = diplomacy 

	left_portrait = {
		character = scope:trade_offended
		animation = personality_honorable
	}
	right_portrait = {
		character = scope:trade_disputer
		animation = personality_bold
	}

	trigger = {}

	immediate = {}

	# Agreeable result
	option = {
		name = brus_slavic_yearly.092.a

		trigger = {
			OR = { 
			local_var:dispute_response_2 = 1
			local_var:dispute_response_2 = 2
			local_var:dispute_response_2 = 4
			}
		}

		reverse_add_opinion = {
			target = scope:trade_disputer
			modifier = brus_trade_dispute_positive
			opinion = 10
		}

		if = {
			limit = {
				local_var:dispute_response_2 = 4
			}
			add_character_modifier = {
				modifier = brus_equitable_deal
				years = 10
			}
		}
		else_if = {
			limit = { local_var:dispute_response_2 = 1 }
			add_gold = medium_gold_value
			add_prestige = minor_prestige_value
			add_character_modifier = {
				modifier = brus_merchants_protected
				years = 5
			}
		}
		else_if = {
			limit = { local_var:dispute_response_2 = 2 }
			add_prestige = minor_prestige_value
			add_character_modifier = {
				modifier = brus_merchants_protected
				years = 5
			}
		}

		stress_impact = {
			greedy = minor_stress_impact_loss
			gregarious = minor_stress_impact_loss
			honest = minor_stress_impact_loss
		}

	}
	# Got extorted
	option = {
		name = brus_slavic_yearly.092.b

		trigger = { local_var:dispute_response_2 = 3 }

		add_character_modifier = {
			modifier = brus_merchants_extorted
			years = 5
		}

		reverse_add_opinion = {
			target = scope:trade_disputer
			modifier = brus_trade_dispute_negative
		}

		add_prestige = -100

		stress_impact = {
			greedy = medium_stress_impact_gain
			arrogant = minor_stress_impact_gain
			wrathful = medium_stress_impact_gain
		}
	}
}

# Creating Coinage
brus_slavic_yearly.011 = {
	type = character_event
	title = brus_slavic_yearly.011.t
	desc = brus_slavic_yearly.011.desc
	theme = stewardship

	left_portrait = {
		character = root
		animation = personality_greedy
	}

	trigger = {
		# Has to be a large enough independent Kingdom
		is_available_even_at_war_adult = yes
		is_landed = yes
		is_independent_ruler = yes
		highest_held_title_tier >= tier_kingdom
		sub_realm_size >= 25

		OR = {
			capital_province = { geographical_region = custom_brus_kievian_rus }
			primary_title.empire = title:e_russia
		}
		NOT = { has_character_flag = had_brus_slavic_yearly_011 }
	}
	# More likely with high stewardship
	weight_multiplier = { 
		base = 1
		modifier = {
			stewardship >= 15
			add = 0.5
		}
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_011
		}

		if = {
			limit = {
				NOR = {
					religion = religion:islam_religion
					religion = religion:christianity_religion
					faith = { has_doctrine = unreformed_faith_doctrine }
				}
			}
			ordered_independent_ruler = {
				limit = {
					NOR = {
						religion = religion:islam_religion
						religion = religion:christianity_religion
						faith = { has_doctrine = unreformed_faith_doctrine }
						dynasty = root.dynasty
					}
					religion = root.religion
					highest_held_title_tier >= tier_kingdom
				}
				order_by = {
					value = "capital_province.squared_distance(root.capital_province)"
					multiply = -1
				}
				save_scope_as = third_coinage
			}
		}
	}

	# Roman coins
	option = {
		name = brus_slavic_yearly.011.a
		
		if = {
			limit = {
				OR = {
					religion = religion:christianity_religion
					religion = title:e_byzantium.holder.religion
				}
			}
			add_piety = minor_piety_value

			add_character_modifier = {
				modifier = brus_samefaith_coinage
				years = 20
			}
		}
		else = {
			add_piety = {
				subtract = medium_piety_value
			}
			add_character_modifier = {
				modifier = brus_infidel_coinage
				years = 20
			}
		}

		ai_chance = {
			base = 20
		}
	}
	# Muslim coins
	option = {
		name = brus_slavic_yearly.011.b

		if = {
			limit = {
				religion = religion:islam_religion
			}
			add_piety = minor_piety_value
			add_character_modifier = {
				modifier = brus_samefaith_coinage
				years = 20
			}
		}
		else = {
			add_piety = {
				subtract = medium_piety_value
			}
			add_character_modifier = {
				modifier = brus_infidel_coinage
				years = 20
			}
		}

		ai_chance = {
			base = 20
			modifier = {	# Weight down for stress.
				add = 30
				has_trait = zealous
			}
			modifier = {	# Weight down for stress.
				add = -20
				has_trait = cynical
			}
		}

	}
	# New coins
	option = {
		name = brus_slavic_yearly.011.c
		trigger = {
			stewardship >= 12
		}

		show_as_unavailable = { stewardship < 12 }

		stress_impact = {
			arrogant = medium_stress_impact_loss
			diligent = minor_stress_impact_loss
		}

		add_prestige = minor_prestige_value

		add_character_modifier = {
			modifier = brus_new_coinage
			years = 20
		}

		ai_chance = {
			base = 50
		}
	}

	# Another applicable faith
	option = {
		name = brus_slavic_yearly.011.d
		trigger = {
			NOR = {
				religion = religion:islam_religion
				religion = religion:christianity_religion
				faith = { has_doctrine = unreformed_faith_doctrine }
			}
			any_independent_ruler = {
				religion = root.religion
				highest_held_title_tier >= tier_kingdom
				NOT = { dynasty = root.dynasty }
			}
		}

		stress_impact = {
			arrogant = medium_stress_impact_loss
			diligent = minor_stress_impact_loss
		}

		add_piety = minor_piety_value
		add_character_modifier = {
			modifier = brus_samefaith_coinage
			years = 20
		}

		ai_chance = {
			base = 40
		}
	}
}

# Christian Competition
brus_slavic_yearly.012 = {
	type = character_event
	title = brus_slavic_yearly.012.t
	desc = brus_slavic_yearly.012.desc
	theme = faith

	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:visiting_christian
		animation = chaplain
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes
		is_independent_ruler = yes

		culture = { has_cultural_pillar = heritage_east_slavic }
		OR = {
			capital_province = { geographical_region = custom_brus_kievian_rus }
			primary_title.empire = title:e_russia
		}
		religion = religion:christianity_religion
		# Must have a religious head
		root.faith.religious_head = { exists = yes }

		NOT = { has_character_flag = had_brus_slavic_yearly_012 }
	}
	# More likely with high stewardship
	weight_multiplier = { 
		base = 1
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_012
			years = 20
		}

		if = {
			limit = {
				root.faith = faith:orthodox
			}
			create_character = {
				location = root.capital_province
				template = brus_visiting_christian
				faith = faith:catholic
				culture = culture:italian
				save_scope_as = visiting_christian
			}
		}
		else_if = {
			limit = {
				root.faith = faith:catholic
			}
			create_character = {
				location = root.capital_province
				template = brus_visiting_christian
				faith = faith:orthodox
				culture = culture:greek
				save_scope_as = visiting_christian
			}
		}
		else = {
			create_character = {
				location = root.capital_province
				template = brus_visiting_christian
				save_scope_as = visiting_christian
			}
		}
	}

	# Let him stay
	option = {
		name = brus_slavic_yearly.012.a

		stress_impact = {
			zealous = minor_stress_impact_gain
			arrogant = minor_stress_impact_loss
			compassionate = minor_stress_impact_loss
		}
		# if they're Catholic, make the Pope pleased and Patriarch/Emperor angry
		if = {
			limit = { scope:visiting_christian.faith = faith:catholic }
				reverse_add_opinion = {
					target = title:k_papal_state.holder
					modifier = brus_christian_competition
					opinion = 25
				}
				if = {
					limit = { 
						faith = faith:orthodox
						title:k_orthodox.holder = { top_liege = { has_title = title:e_byzantium } }
					}
					reverse_add_opinion = {
						target = title:e_byzantium.holder
						modifier = brus_christian_competition
						opinion = -15
					}
					reverse_add_opinion = {
						target = title:k_orthodox.holder
						modifier = brus_christian_competition
						opinion = -15
					}
				}
		}
		else_if = {
			limit = { scope:visiting_christian.faith = faith:orthodox }
			reverse_add_opinion = {
				target = title:k_papal_state.holder
				modifier = brus_christian_competition
				opinion = -20
			}
			if = {
				limit = { 
					faith = faith:orthodox
					title:k_orthodox.holder = { top_liege = { has_title = title:e_byzantium } }
				}
				reverse_add_opinion = {
					target = title:e_byzantium.holder
					modifier = brus_christian_competition
					opinion = 15
				}
				reverse_add_opinion = {
					target = title:k_orthodox.holder
					modifier = brus_christian_competition
					opinion = 15
				}
			}
			else = {
				reverse_add_opinion = {
					target = root.faith.religious_head
					modifier = brus_christian_competition
					opinion = 20
					}
				}
		}

		add_prestige = minor_prestige_value

		hidden_effect = {
			scope:visiting_christian = {
				death = {
					death_reason = death_vanished
				}
			}
		}

		ai_chance = {
			base = 20
			modifier = {	
				add = 10
				has_trait = cynical
			}
		}
	}
	# Invite him to court
	option = {
		name = brus_slavic_yearly.012.b

		stress_impact = {
			zealous = medium_stress_impact_gain
		}

		if = {
			limit = { scope:visiting_christian.faith = faith:catholic }
				reverse_add_opinion = {
					target = title:k_papal_state.holder
					modifier = brus_christian_competition
					opinion = 35
				}
				if = {
					limit = { 
						faith = faith:orthodox
						title:k_orthodox.holder = { top_liege = { has_title = title:e_byzantium } }
					}
					reverse_add_opinion = {
						target = title:e_byzantium.holder
						modifier = brus_christian_competition
						opinion = -25
					}
					reverse_add_opinion = {
						target = title:k_orthodox.holder
						modifier = brus_christian_competition
						opinion = -25
					}
				}
		}
		else_if = {
			limit = { scope:visiting_christian.faith = faith:orthodox }
			reverse_add_opinion = {
				target = title:k_papal_state.holder
				modifier = brus_christian_competition
				opinion = -30
			}
			if = {
				limit = { 
					faith = faith:orthodox
					title:k_orthodox.holder = { top_liege = { has_title = title:e_byzantium } }
				}
				reverse_add_opinion = {
					target = title:e_byzantium.holder
					modifier = brus_christian_competition
					opinion = 30
				}
				reverse_add_opinion = {
					target = title:k_orthodox.holder
					modifier = brus_christian_competition
					opinion = 30
				}
			}
			else = {
				reverse_add_opinion = {
					target = root.faith.religious_head
					modifier = brus_christian_competition
					opinion = 20
					}
				}
		}

		add_courtier = scope:visiting_christian
		reverse_add_opinion = {
			target = scope:visiting_christian
			modifier = brus_recruited
		}
		random_courtier = {
			limit = {
				NOT = { this.faith = scope:visiting_christian.faith }
			}
			set_character_faith = scope:visiting_christian.faith
		}

		add_prestige = medium_prestige_value
		add_piety = {
			subtract = minor_piety_value
		}

		ai_chance = {
			base = 20
		}
	}
	# Get him out
	option = {
		name = brus_slavic_yearly.012.c

		stress_impact = {
			arrogant = medium_stress_impact_loss
			diligent = minor_stress_impact_loss
		}

		if = {
			limit = { scope:visiting_christian.faith = faith:catholic }
				reverse_add_opinion = {
					target = title:k_papal_state.holder
					modifier = brus_christian_competition
					opinion = -20
				}
				if = {
					limit = { 
						faith = faith:orthodox
						title:k_orthodox.holder = { top_liege = { has_title = title:e_byzantium } }
					}
					reverse_add_opinion = {
						target = title:e_byzantium.holder
						modifier = brus_christian_competition
						opinion = 15
					}
					reverse_add_opinion = {
						target = title:k_orthodox.holder
						modifier = brus_christian_competition
						opinion = 15
					}
				}
		}
		else_if = {
			limit = { scope:visiting_christian.faith = faith:orthodox }
			reverse_add_opinion = {
				target = title:k_papal_state.holder
				modifier = brus_christian_competition
				opinion = 20
			}
			if = {
				limit = { 
					faith = faith:orthodox
					title:k_orthodox.holder = { top_liege = { has_title = title:e_byzantium } }
				}
				reverse_add_opinion = {
					target = title:e_byzantium.holder
					modifier = brus_christian_competition
					opinion = -20
				}
				reverse_add_opinion = {
					target = title:k_orthodox.holder
					modifier = brus_christian_competition
					opinion = -20
				}
			}
			else = {
			reverse_add_opinion = {
				target = root.faith.religious_head
				modifier = brus_christian_competition
				opinion = 20
				}
			}
		}

		hidden_effect = {
			scope:visiting_christian = {
				death = {
					death_reason = death_vanished
				}
			}
		}
		
		add_piety = minor_piety_value
		
		ai_chance = {
			base = 20
			modifier = {	# Weight up for stress.
				add = 20
				has_trait = zealous
			}
		}
	}
}

# Iconoclasts Strike Back
brus_slavic_yearly.013 = {
	type = character_event
	title = brus_slavic_yearly.013.t
	desc = brus_slavic_yearly.013.desc
	theme = faith

	left_portrait = {
		character = root
		animation = personality_rational
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes

		culture = { has_cultural_pillar = heritage_east_slavic }
		OR = {
			capital_province = { geographical_region = custom_brus_kievian_rus }
			primary_title.empire = title:e_russia
		}
		religion = religion:christianity_religion

		NOT = { has_character_flag = had_brus_slavic_yearly_013 }
	}

	weight_multiplier = { 
		base = 1
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_013
			years = 15
		}

		random_sub_realm_county = {
			change_development_progress = -10
			change_county_control = -10
			save_scope_as = iconoclast_county
		}
	}

	# Burn the heretic
	option = {
		name = brus_slavic_yearly.013.a

		stress_impact = {
			zealous = minor_stress_impact_loss
			wrathful = minor_stress_impact_loss
			forgiving = minor_stress_impact_gain
			compassionate = minor_stress_impact_gain
		}

		add_piety = minor_piety_value
		add_dread = 5
		scope:iconoclast_county = {
			change_county_control = 5
		}
		
		ai_chance = {
			base = 20
			modifier = {	
				add = 10
				has_trait = wrathful
			}
			modifier = {	
				add = 30
				has_trait = zealous
			}
		}
	}
	# Reduce the Church
	option = {
		name = brus_slavic_yearly.013.b

		stress_impact = {
			zealous = medium_stress_impact_gain
			cynical = minor_stress_impact_loss
			ambitious = minor_stress_impact_loss
		}
		add_piety = {
			subtract = medium_piety_value
		}
		add_character_modifier = {
			modifier = scorned_theocrats_modifier
			years = 2
		}
		scope:iconoclast_county = {
			add_county_modifier = {
				modifier = brus_weakened_church
				years = 5
			}
		}

		add_gold = {
			value = minor_gold_value
		}

		custom_tooltip = {
			text = brus_iconoclast_chance
			random_list = {
				1 = {
					scope:iconoclast_county = {
						set_county_faith = faith:iconoclast
					}
				}
				1 = {}
			}
		}
		ai_chance = {
			base = 10
			modifier = {	
				add = 10
				has_trait = cynical
			}
		}
	}
}

# Legal Drama
brus_slavic_yearly.014 = {
	type = character_event
	title = brus_slavic_yearly.014.t
	desc = {
		first_valid = {
			#Your steward reacts in your barony
			triggered_desc = {
				trigger = { scope:legal_dispute_barony.holder = root }
				desc = brus_slavic_yearly.014.desc_steward
			}
			# Different baron
			desc = brus_slavic_yearly.014.desc
		}	
	}

	theme = vassal

	left_portrait = {
		character = root
		animation = personality_rational
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes

		culture = { has_cultural_pillar = heritage_east_slavic }
		OR = {
			capital_province = { geographical_region = custom_brus_kievian_rus }
			primary_title.empire = title:e_russia
		}
		OR = {
			religion = title:e_byzantium.holder.religion
			game_start_date >= 1066.1.1
		}

		NOT = { has_character_flag = had_brus_slavic_yearly_014 }
	}

	weight_multiplier = { 
		base = 1
		modifier = {
			learning >= 10
			add = 0.5
		}
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_014
			years = 20
		}

		random_sub_realm_barony = {
			save_scope_as = legal_dispute_barony
		}
	}

	# Accept Byzantine Law
	option = {
		name = brus_slavic_yearly.014.a

		stress_impact = {
			arrogant = minor_stress_impact_gain
		}

		add_character_modifier = {
			modifier = brus_byzantine_law
			years = 15
		}

		ai_chance = {
			base = 20
			modifier = {	
				add = -10
				has_trait = arrogant
			}
		}
	}
	# Uphold Custom Law
	option = {
		name = brus_slavic_yearly.014.b

		add_character_modifier = {
			modifier = brus_custom_law
			years = 15
		}

		ai_chance = {
			base = 10
		}
	}
	
	# Merge both
	option = {
		name = brus_slavic_yearly.014.c

		trigger = {
			learning >= 12
		}

		show_as_unavailable = { learning < 12 }

		stress_impact = {
			lazy = minor_stress_impact_gain
		}

		add_prestige = minor_prestige_value

		add_character_modifier = {
			modifier = brus_merged_law
			years = 15
		}

		ai_chance = {
			base = 30
			modifier = {	
				add = -15
				has_trait = lazy
			}
		}
	}

}

# Christian Conversion in Court
brus_slavic_yearly.015 = {
	type = character_event
	title = brus_slavic_yearly.015.t
	desc = {
		first_valid = {
			#Your steward reacts in your barony
			triggered_desc = {
				trigger = { primary_spouse = { this = scope:court_convert } }
				desc = brus_slavic_yearly.015.desc_wife
			}
			# Different baron
			desc = brus_slavic_yearly.015.desc
		}	
	}

	theme = family 

	left_portrait = {
		character = scope:orthodox_priest
		animation = chaplain
	}

	right_portrait = {
		character = scope:court_convert
		animation = personality_zealous 
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes

		OR = {
			capital_province = { geographical_region = custom_brus_kievian_rus }
			primary_title.empire = title:e_russia
		}

		title:e_byzantium.holder = { faith = faith:orthodox }

		faith = { has_doctrine = unreformed_faith_doctrine }

		any_courtier = {
			NOT = { faith = faith:orthodox}
		}
		
		NOT = { has_character_flag = had_brus_slavic_yearly_015 }
	}

	weight_multiplier = { 
		base = 1
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_015
			years = 10
		}

		create_character = {
			location = root.capital_province
			template = brus_visiting_christian
			faith = faith:orthodox
			culture = culture:greek
			save_scope_as = orthodox_priest
		}

		# 50/50 chance of either converting a random courtier or, if exists, wife.
		random_list = {
			1 = {
				random_courtier = {
					limit = { NOT = { faith = faith:orthodox } }
					set_character_faith = faith:orthodox
					save_scope_as = court_convert
				}
			}
			1 = {
				if = {
					limit = { 
						primary_spouse = { exists = yes }
						NOT = { primary_spouse = { this.faith = faith:orthodox } }
						is_ai = yes
					}
					primary_spouse = {
						set_character_faith = faith:orthodox
						save_scope_as = court_convert
					}
				}
				else = {
					random_courtier = {
						set_character_faith = faith:orthodox
						save_scope_as = court_convert
					}
				}
			}
		}
	}

	# Imprison
	option = {
		name = brus_slavic_yearly.015.a

		stress_impact = {
			compassionate = medium_stress_impact_gain
			forgiving = medium_stress_impact_gain
			cynical = minor_stress_impact_gain
			calm = minor_stress_impact_gain
		}

		reverse_add_opinion = {
			target = scope:court_convert
			modifier = resisted_conversion_opinion
			opinion = -30
		}

		add_character_flag = {
			flag = had_brus_slavic_yearly_015
			years = 15
		}

		add_dread = 5
		add_piety = minor_piety_value

		imprison = {
			target = scope:orthodox_priest
			type = dungeon
		}

		ai_chance = {
			base = 20
			modifier = {	
				add = 20
				has_trait = zealous
			}
			modifier = {	
				add = -20
				has_trait = compassionate
			}
		}
	}
	# Fine
	option = {
		name = brus_slavic_yearly.015.b
		stress_impact = {
			paranoid = minor_stress_impact_gain
			wrathful = minor_stress_impact_gain
			zealous = minor_stress_impact_gain
		}

		hidden_effect = {
			scope:orthodox_priest = {
				death = {
					death_reason = death_vanished
				}
			}
		}

		ai_chance = {
			base = 25
			modifier = {	
				add = 10
				has_trait = calm
			}
			modifier = {	
				add = 20
				has_trait = cynical
			}
		}
	}
}

# Byzantine Trade Demands
brus_slavic_yearly.016 = {
	type = character_event
	title = brus_slavic_yearly.016.t
	desc = brus_slavic_yearly.016.desc

	theme = diplomacy

	left_portrait = {
		character = root
		animation = boredom
	}

	right_portrait = {
		character = title:e_byzantium.holder
		animation = personality_honorable
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes
		
		OR = {
			capital_province = { geographical_region = custom_brus_kievian_rus }
			primary_title.empire = title:e_russia
		}

		faith = title:e_byzantium.holder.faith

		NOT = { has_character_flag = had_brus_slavic_yearly_016 }
	}

	weight_multiplier = { 
		base = 1
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_016
			years = 15
		}
	}

	# Institute privileges
	option = {
		name = brus_slavic_yearly.016.a

		stress_impact = {
			greedy = minor_stress_impact_gain
			arrogant = minor_stress_impact_gain
			stubborn = minor_stress_impact_gain
		}

		reverse_add_opinion = {
			target = title:e_byzantium.holder
			modifier = brus_trade_privileges
			opinion = 15
		}

		add_character_modifier = {
			modifier = brus_greek_privileges
			years = 10
		}

		ai_chance = {
			base = 20
		}
	}
	# Deny
	option = {
		name = brus_slavic_yearly.016.b

		stress_impact = {
			generous = minor_stress_impact_gain
		}

		add_prestige = minor_prestige_value

		reverse_add_opinion = {
			target = title:e_byzantium.holder
			modifier = brus_trade_privileges
			opinion = -15
		}

		ai_chance = {
			base = 15
			modifier = {	
				add = 15
				has_trait = arrogant
			}
			modifier = {	
				add = 15
				has_trait = greedy
			}
		}
	}
}

# Problematic Artifact Gift
brus_slavic_yearly.017 = {
	type = character_event
	title = brus_slavic_yearly.017.t
	desc = brus_slavic_yearly.017.desc

	theme = diplomacy

	left_portrait = {
		character = root
		animation = boredom
	}

	artifact = {
		target = scope:pagan_trinket
		position = lower_right_portrait
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes
		
		OR = {
			capital_province = { geographical_region = custom_brus_kievian_rus }
			primary_title.empire = title:e_russia
		}
		
		NOT = { faith = { has_doctrine = unreformed_faith_doctrine } }
		NOT = { has_character_flag = had_brus_slavic_yearly_017 }
	}

	weight_multiplier = { 
		base = 1
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_017
			years = 15
		}
		
		create_artifact = {
			template = brus_pagan_trinket
			name = brus_pagan_trinket
			description = brus_pagan_trinket_desc
			type = miscellaneous
			visuals = pocket_fancy_case
			modifier = artifact_monthly_piety_3_modifier
            modifier = artifact_stress_gain_3_modifier
			rarity = common
			wealth = scope:wealth
			#quality = scope:quality
			save_scope_as = pagan_trinket
		  }

		random_sub_realm_county = {
			save_scope_as = flourishing_county
		}
	}

	# Accept it
	option = {
		name = brus_slavic_yearly.017.a

		stress_impact = {
			paranoid = minor_stress_impact_gain
			zealous = minor_stress_impact_gain
		}

		add_piety = {
			subtract = medium_piety_value
		}

		ai_chance = {
			base = 20
		}
	}

	# Destroy it
	option = {
		name = brus_slavic_yearly.017.b

		stress_impact = {
			greedy = minor_stress_impact_gain
			compassionate = minor_stress_impact_gain
		}

		add_piety = minor_piety_value
		add_prestige = -50

		scope:flourishing_county = {
			add_county_modifier = {
				modifier = brus_rejected_gifts
				years = 10
			}
		}

		ai_chance = {
			base = 15
			modifier = {	
				add = 15
				has_trait = zealous
			}
			modifier = {	
				add = -10
				has_trait = greedy
			}
		}
	}

	# Refashion it
	option = {
		name = brus_slavic_yearly.017.c

		stress_impact = {
			greedy = medium_stress_impact_gain
			diligent = minor_stress_impact_loss
		}

		remove_short_term_gold = {
			value = minor_gold_value
			add = 5
		}
		
		add_piety = {
			value = minor_piety_value
			add = 25
		}
		add_prestige = 25

		destroy_artifact = scope:pagan_trinket

		create_artifact = {
			template = brus_refashioned_trinket
			name = brus_refashioned_trinket
			description = brus_pagan_refashioned_trinket_desc
			type = miscellaneous
			visuals = pocket_fancy_case
			modifier = artifact_monthly_piety_3_modifier
            modifier = artifact_stress_gain_3_modifier
			rarity = common
			wealth = scope:wealth
			quality = scope:quality
		  }

		ai_chance = {
			base = 15
			modifier = {	
				add = -10
				has_trait = greedy
			}

		}
	}

}

# Smorokhs Mock Authorities
brus_slavic_yearly.018 = {
	type = character_event
	title = brus_slavic_yearly.018.t
	desc = brus_slavic_yearly.018.desc

	theme = realm

	left_portrait = {
		character = root
		animation = boredom
	}

	artifact = {
		target = scope:pagan_trinket
		position = lower_right_portrait
	}

	trigger = {
		is_available_even_at_war_adult = yes
		is_landed = yes
		
		OR = {
			capital_province = { geographical_region = custom_brus_kievian_rus }
			primary_title.empire = title:e_russia
		}
		
		NOT = { has_character_flag = had_brus_slavic_yearly_018 }
	}

	weight_multiplier = { 
		base = 1
	}

	immediate = {
		add_character_flag = {
			flag = had_brus_slavic_yearly_018
			years = 10
		}

		random_sub_realm_county = {
			save_scope_as = smorokh_county
		}
	}

	# Let them be
	option = {
		name = brus_slavic_yearly.018.a

		stress_impact = {
			paranoid = medium_stress_impact_gain
			arrogant = medium_stress_impact_gain
			wrathful = minor_stress_impact_gain
			vengeful = minor_stress_impact_gain
			gregarious = minor_stress_impact_loss
		}


		# if reformed, lose piety. if pagan, gain
		if = {
			limit = { NOT = { faith = { has_doctrine = unreformed_faith_doctrine } }	}
				add_piety = {
					subtract = minor_piety_value
				}
		}
		else = {
			add_piety = {
				value = minor_piety_value
			}
		}
		
		scope:smorokh_county = {
			add_county_modifier = {
				modifier = brus_smorokh_band
				years = 5
			}
		}

		ai_chance = {
			base = 15
			modifier = {	
				add = 10
				has_trait = wrathful
			}
			modifier = {	
				add = 10
				has_trait = arrogant
			}
			modifier = {	
				add = 10
				has_trait = paranoid
			}
		}
	}


	# Evict
	option = {
		name = brus_slavic_yearly.018.b

		stress_impact = {
			humble = minor_stress_impact_gain
			compassionate = minor_stress_impact_gain
			forgiving = minor_stress_impact_gain
			wrathful = minor_stress_impact_loss
		}

		# if reformed, gain piety. if pagan, lose it
		if = {
			limit = { NOT = { faith = { has_doctrine = unreformed_faith_doctrine } }	}
				add_piety = {
					value = minor_piety_value
				}
		}
		else = {
			add_piety = {
				subtract = minor_piety_value
			}
		}

		scope:smorokh_county = {
			add_county_modifier = {
				modifier = brus_rejected_gifts
				years = 5
			}
		}

		ai_chance = {
			base = 15
			modifier = {	
				add = -10
				has_trait = compassionate
			}
			modifier = {	
				add = -10
				has_trait = humble
			}

		}
	}

}