namespace = Plus

#reserved: Plus.1300 to Plus.1349

#######################################
# THEMATA EVENTS
# Original events by Athalcor
# Updates and re-writes by Rylock
#######################################

### STARTUP EVENTS

# Byzantine Empire is flourishing
narrative_event = {
	id = Plus.1300
	title = "EVTNAME_Plus_1300"
	desc = "EVTDESC_Plus_1300"
	picture = "GFX_evt_byzantine_throne"
	
	is_triggered_only = yes
	hide_from = yes
	
	has_global_flag = byz_empire_flourishes 
	only_independent = yes
	
	trigger = {
		has_landed_title = e_byzantium
	}
	
	immediate = {
		set_character_flag = was_byzantine_emperor
		if = {
			limit = { is_ironman = no }
			e_byzantium = { set_variable = { which = "imperial_decadence" value = 10 } }
		}
	}
	
	option = {
		name = "EVTOPTA_Plus_1300"
		clr_global_flag = byz_empire_flourishes
		if = {
			limit = { NOT = { trait = strong_basileus } }
			add_trait = weak_basileus
		}
		hidden_tooltip = {
			any_vassal = {
				limit = {
					tier = DUKE
					is_feudal = yes
					religion = ROOT
					dynasty = ROOT
					primary_title = { de_jure_liege_or_above = e_byzantium }
					NOT = { has_claim = e_byzantium }
				}
				add_weak_claim = e_byzantium
			}
		}
		# change the decadence modifier
		hidden_tooltip = { character_event = { id = Plus.1852 } }
	}
}

# Byzantine Empire is cracking
narrative_event = {
	id = Plus.1301
	title = "EVTNAME_Plus_1301"
	desc = "EVTDESC_Plus_1301"
	picture = "GFX_evt_byzantine_throne"
	
	is_triggered_only = yes
	hide_from = yes
	
	has_global_flag = byz_empire_cracking 
	only_independent = yes
	
	trigger = {
		has_landed_title = e_byzantium
	}
	
	immediate = {
		set_character_flag = was_byzantine_emperor
		if = {
			limit = { is_ironman = no }
			e_byzantium = { set_variable = { which = "imperial_decadence" value = 30 } }
		}
	}
	
	option = {
		name = "EVTOPTA_Plus_1300"
		clr_global_flag = byz_empire_cracking
		if = {
			limit = {
				is_ironman = no
				trait = strong_basileus
			}
			hidden_tooltip = {
				e_byzantium = { change_variable = { which = "imperial_decadence" value = -10 } }
			}
		}
		if = {
			limit = { NOT = { trait = strong_basileus } }
			add_trait = weak_basileus
		}
		hidden_tooltip = {
			any_vassal = {
				limit = {
					tier = DUKE
					is_feudal = yes
					religion = ROOT
					dynasty = ROOT
					primary_title = { de_jure_liege_or_above = e_byzantium }
					NOT = { has_claim = e_byzantium }
				}
				add_weak_claim = e_byzantium
			}
		}
		# change the decadence modifier
		hidden_tooltip = { character_event = { id = Plus.1852 } }
	}
}

# Byzantine Empire is falling
narrative_event = {
	id = Plus.1302
	title = "EVTNAME_Plus_1302"
	desc = "EVTDESC_Plus_1302"
	picture = "GFX_evt_byzantine_throne"
	
	is_triggered_only = yes
	hide_from = yes

	has_global_flag = byz_empire_falling 
	only_independent = yes
	
	trigger = {
		has_landed_title = e_byzantium
	}
	
	immediate = {
		set_character_flag = was_byzantine_emperor
		if = {
			limit = { is_ironman = no }
			e_byzantium = { set_variable = { which = "imperial_decadence" value = 50 } }
		}
	}
	
	option = {
		name = "EVTOPTA_Plus_1300"
		clr_global_flag = byz_empire_falling
		if = {
			limit = {
				is_ironman = no
				trait = strong_basileus
			}
			hidden_tooltip = {
				e_byzantium = { change_variable = { which = "imperial_decadence" value = -10 } }
			}
		}
		if = {
			limit = { NOT = { trait = strong_basileus } }
			add_trait = weak_basileus
		}
		hidden_tooltip = {
			any_vassal = {
				limit = {
					tier = DUKE
					is_feudal = yes
					religion = ROOT
					dynasty = ROOT
					primary_title = { de_jure_liege_or_above = e_byzantium }
					NOT = { has_claim = e_byzantium }
				}
				add_weak_claim = e_byzantium
			}
		}
		# change the decadence modifier
		hidden_tooltip = { character_event = { id = Plus.1852 } }
	}
}

# Byzantine Empire is shattered
narrative_event = {
	id = Plus.1303
	title = "EVTNAME_Plus_1303"
	desc = "EVTDESC_Plus_1303"
	picture = "GFX_evt_byzantine_throne"
	
	is_triggered_only = yes
	hide_from = yes
	
	has_global_flag = byz_empire_shattered 
	only_independent = yes
	
	trigger = {
		has_landed_title = e_byzantium
	}
	
	immediate = {
		set_character_flag = was_byzantine_emperor
		if = {
			limit = { is_ironman = no }
			e_byzantium = { set_variable = { which = "imperial_decadence" value = 70 } }
		}
	}
	
	option = {
		name = "EVTOPTA_Plus_1300"
		clr_global_flag = byz_empire_shattered
		if = {
			limit = {
				is_ironman = no
				trait = strong_basileus
			}
			hidden_tooltip = {
				e_byzantium = { change_variable = { which = "imperial_decadence" value = -10 } }
			}
		}
		if = {
			limit = { NOT = { trait = strong_basileus } }
			add_trait = weak_basileus
		}
		hidden_tooltip = {
			any_vassal = {
				limit = {
					tier = DUKE
					is_feudal = yes
					religion = ROOT
					dynasty = ROOT
					primary_title = { de_jure_liege_or_above = e_byzantium }
					NOT = { has_claim = e_byzantium }
				}
				add_weak_claim = e_byzantium
			}
		}
		# change the decadence modifier
		hidden_tooltip = { character_event = { id = Plus.1852 } }
	}
}

### COLLAPSE EVENTS

# Collapse through loss of Anatolia
narrative_event = {
	id = Plus.1305
	title = "EVTNAME_Plus_1305"
	desc = "EVTDESC_Plus_1305"
	picture = "GFX_evt_byzantine_throne"
	
	major = yes
	hide_from = yes

	only_independent = yes
	only_playable = yes
	war = no

	trigger = {
		has_landed_title = e_byzantium
		e_byzantium = { is_primary_holder_title = yes }
		NOT = { completely_controls = d_anatolia }
		NOT = { completely_controls = d_charsianon }
		NOT = { completely_controls = d_paphlagonia }
		NOT = { completely_controls = d_armeniacon }
		NOR = {
			has_global_flag = collapse_of_themata_system
			has_global_flag = 1066_start_byz
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "EVTOPTA_Plus_1305"
		trigger = { has_landed_title = e_byzantium }   
		set_global_flag = collapse_of_themata_system
		if = {
			limit = { trait = strong_basileus }
			add_trait = weak_basileus
		}
	}
    
	option = {
		name = "EVTOPTB_Plus_1305"
		trigger = { NOT = { has_landed_title = e_byzantium } }       
	}
}

# Collapse after the 1066 Seljuk invasion of Armenia
narrative_event = {
	id = Plus.1306
	title = "EVTNAME_Plus_1306"
	desc = "EVTDESC_Plus_1306"
	picture = "GFX_evt_byzantine_throne"
	
	major = yes
	hide_from = yes

	has_global_flag = 1066_start_byz
	only_independent = yes
	only_playable = yes
	war = no

	trigger = {
		has_landed_title = e_byzantium
		e_byzantium = { is_primary_holder_title = yes }
		k_persia = {
			holder_scope = { completely_controls = d_coloneia }
		}
		NOT = { has_global_flag = collapse_of_themata_system } 
		has_global_flag = 1066_start_byz
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "EVTOPTA_Plus_1305"
		trigger = {
			has_landed_title = e_byzantium
		}
		if = {
			limit = { trait = strong_basileus }
			add_trait = weak_basileus
		}
		hidden_tooltip = {
			set_global_flag = collapse_of_themata_system
			clr_global_flag = 1066_start_byz
			create_random_soldier = {
				random_traits = no
				dynasty = 613
				name = "Suleyman"
				religion = sunni
				culture = turkish
				female = no
				age = 31
				attributes = {
					martial = 4
					diplomacy = 8
					stewardship = 8
					intrigue = 7
					learning = 4
				}
				health = 6
				fertility = 0.7
				trait = tough_soldier
				trait = wroth
				trait = cruel
				trait = proud
				trait = zealous
			}
			new_character = {
				set_character_flag = centralize_without_penalties     
				d_anatolia = { usurp_title_plus_barony_if_unlanded = PREV } 
				k_rum = {
					add_law = succ_turkish_succession
					add_law = crown_authority_1
					gain_title = PREV
				}
				if = {
					limit = {
						d_paphlagonia = {
							holder_scope = {
								OR = {
									character = ROOT
									vassal_of = ROOT
								}
							}
						}
					}
					d_paphlagonia = { usurp_title_plus_barony_if_unlanded = PREV }
				}
				if = {
					limit = {
						d_charsianon = {
							holder_scope = {
								OR = {
									character = ROOT
									vassal_of = ROOT
								}
							}
						}
					}
					d_charsianon = { usurp_title_plus_barony_if_unlanded = PREV }
				}
				if = {
					limit = {
						d_armeniacon = {
							holder_scope = {
								OR = {
									character = ROOT
									vassal_of = ROOT
								}
							}
						}
					}
					d_armeniacon = { usurp_title_plus_barony_if_unlanded = PREV }
				}
				if = {
					limit = {
						d_thracesia = {
							holder_scope = {
								OR = {
									character = ROOT
									vassal_of = ROOT
								}
							}
						}
					}
					d_thracesia = { usurp_title_plus_barony_if_unlanded = PREV }
				}
				any_vassal = {
					abdicate_to = PREV
				}
				any_realm_character = {
					limit = { NOT = { religion = sunni } }
					banish = yes
				}
				ROOT = {
					remove_claim = d_anatolia
					remove_claim = c_dorylaion
					remove_claim = c_ikonion
				}
				clr_character_flag = centralize_without_penalties
				wealth = 300
				piety = 200
				prestige = 500
				# Some extra courtiers
				create_random_soldier = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = no
					age = 30
				}
				create_random_soldier = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = no
					age = 25
				}
				create_random_soldier = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = no
					age = 33
				}
				create_random_soldier = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = no
					age = 29
				}
				create_random_diplomat = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = no
					age = 30
				}
				create_random_intriguer = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = no
					age = 30
				}
				create_random_steward = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = no
					age = 25
				}
				create_character = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = no
					age = 28
				}
				create_character = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = yes
					age = 16
				}
				create_character = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = yes
					age = 17
				}
				create_character = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = yes
					age = 18
				}
				create_character = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = yes
					age = 18
				}
				create_character = {
					random_traits = yes
					dynasty = random
					religion = sunni
					culture = turkish
					female = yes
					age = 20
				}
			}
		}
	}
  
	option = {
		name = "EVTOPTB_Plus_1305"
		trigger = {
			NOT = { has_landed_title = e_byzantium }
		}       
	}
}

# The Byzantine Empire wins the 1066 war against the Seljuks
character_event = {
	id = Plus.1307
	desc = "EVTDESC_Plus_1307"
	picture = "GFX_evt_byzantine_throne"

	has_global_flag = 1066_start_byz	
	only_independent = yes
	only_playable = yes
	war = no 

	trigger = {
		has_landed_title = e_byzantium
		e_byzantium = { is_primary_holder_title = yes }
		k_persia = {
			holder_scope = { NOT = { completely_controls = d_coloneia } }
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "EVTOPTA_Plus_1307"
		clr_global_flag = 1066_start_byz
		hidden_tooltip = {
			if = {
				limit = { is_ironman = no }
				e_byzantium = { change_variable = { which = "imperial_decadence" value = -5 } }
			}
		}
   }
}

# A claimant against the empire arises (fired by 'Claim the Byzantine Throne' decision)
character_event = {
	id = Plus.1308
	desc = EVTDESC_Plus_1308
	picture = GFX_evt_byzantine_throne

	is_triggered_only = yes

	option = {
		name = EVTOPTA_Plus_1308
		prestige = -50
		reverse_opinion = {
			who = FROM
			modifier = opinion_basileus_claimant
		    months = 60
		}
		opinion = {
			who = FROM
			modifier = opinion_claimant_basileus
			months = 60
		}
	}
}

### BYZANTINE CORONATION EVENTS

# New Byzantine emperor ascends to the throne
character_event = {
	id = Plus.1320
	desc = "EVTDESC_Plus_1320"
	picture = "GFX_evt_byzantine_throne"
	
	only_playable = yes
	is_triggered_only = yes

	trigger = {
		FROM = {
			title = e_byzantium
			is_primary_holder_title = yes
		}
		OR = {
			religion = chalcedonian
			religion = orthodox
			religion = bogomilist
			religion = monothelite
			religion = iconoclast
			religion_group = hellenic_pagan_group
		}
		NOR = {
			has_character_flag = was_strong_basileus_byz 
			has_character_flag = was_weak_basileus_byz
		}	
	}
	
	immediate = {
		set_character_flag = was_byzantine_emperor
		FROMFROM = {
			if = {
				limit = {
					is_alive = yes
					OR = {
						trait = strong_basileus
						trait = weak_basileus	
					}
				}
				if = {
					limit = { trait = strong_basileus }
					set_character_flag = was_strong_basileus_byz 
					remove_trait = strong_basileus 
				}
				if = {
					limit = { trait = weak_basileus }
					set_character_flag = was_weak_basileus_byz  
					remove_trait = weak_basileus 
				}
			}
		}
	}

	option = {
		name = "EVTOPTA_Plus_1320" #OK, then
		e_byzantium = {
			if = {
				limit = { has_law = crown_authority_4 }
				ROOT = { set_character_flag = byzantium_had_centr_four }
			}       
			if = {
				limit = { has_law = crown_authority_3 }
				ROOT = { set_character_flag = byzantium_had_centr_three }
			}                
			if = {
				limit = { has_law = crown_authority_0 }
				ROOT = { set_character_flag = byzantium_had_centr_zero }
			} 
			ROOT = { set_character_flag = centralize_without_penalties }
			if = {
				limit = {
					NOR = {
						has_law = crown_authority_1
						has_law = crown_authority_0
					}
				}
				add_law = crown_authority_1
			}
		}
		clr_character_flag = centralize_without_penalties
	}
}

# Patriarch asked to do formal coronation (fired from decision)
character_event = {
	id = Plus.1321 #formerly 332021
	desc = "EVTDESC_Plus_1321"
	picture = "GFX_evt_throne_room_byzantine"

	is_triggered_only = yes  
    
	option = {
		name = "EVTOPTA_Plus_1321"         #Patriarch approves
		ai_chance = {
			factor = 100     
			modifier = {
				factor = 2
				opinion = { who = FROM value = 75 }
			}
			modifier = {
				factor = 2
				opinion = { who = FROM value = 50 }
			}
			modifier = {
				factor = 2
				opinion = { who = FROM value = 25 }
			}
			modifier = {
				factor = 3
				FROM = { trait = born_in_the_purple }
			}
			modifier = {
				factor = 3
				FROM = {
					OR = {
						father_even_if_dead = { trait = strong_basileus }
						mother_even_if_dead = { trait = strong_basileus }
					}
				}
			}
			modifier = {
				factor = 1.5
				FROM = {
					OR = {
						father_even_if_dead = { trait = weak_basileus }
						mother_even_if_dead = { trait = weak_basileus }
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					NOR = {
						father_even_if_dead = { trait = strong_basileus }
						mother_even_if_dead = { trait = strong_basileus }
						father_even_if_dead = { trait = weak_basileus }
						mother_even_if_dead = { trait = weak_basileus }
					}
				}
			}
			modifier = {
				factor = 2
				FROM = { trait = celibate }
			}
			modifier = {
				factor = 1.7
				FROM = { trait = chaste }
			}
			modifier = {
				factor = 1.5
				FROM = { trait = humble }
			}
			modifier = {
				factor = 2
				FROM = { trait = zealous }
			}
		}
		FROM = { character_event = { id = Plus.1322 } }
	}
	option = {
		name = "EVTOPTB_Plus_1321"         #Patriarch refuses
		ai_chance = {
			factor = 20  
			modifier = {
				factor = 2
				NOT = { opinion = { who = FROM value = -40 } }
			}
			modifier = {
				factor = 2
				NOT = { opinion = { who = FROM value = -60 } }
			}
			modifier = {
				factor = 2
				NOT = { opinion = { who = FROM value = -80 } }
			}
			modifier = {
				factor = 1.5
				FROM = { is_female = yes }
			}
			modifier = {
				factor = 2
				FROM = { NOT = { culture = greek } }
			}
			modifier = {
				factor = 3
				FROM = { trait = lunatic }
			}
			modifier = {
				factor = 4
				FROM = { trait = possessed }
			}
			modifier = {
				factor = 2
				FROM = { trait = infirm }
			}
			modifier = {
				factor = 2
				FROM = { trait = bastard }
			}
			modifier = {
				factor = 1.5
				FROM = { trait = legit_bastard }
			}
			modifier = {
				factor = 1.5
				FROM = { trait = imbecile }
			}
			modifier = {
				factor = 4
				FROM = { trait = inbred }
			}
			modifier = {
				factor = 1.5
				FROM = { trait = hedonist }
			}
			modifier = {
				factor = 1.5
				FROM = { trait = cynical }
			}
		}
		FROM = { character_event = { id = Plus.1328 } }
   }
} 

# The Patriarch agrees to the coronation
character_event = {
	id = Plus.1322
	desc = "EVTDESC_Plus_1322"
	picture = "GFX_evt_bishop_byzantine"

	is_triggered_only = yes

	option = {
		name = "EVTOPTA_Plus_1177" #Excellent, now invite all the lords
		scaled_wealth = -1.0
		hidden_tooltip = {
			any_realm_character = {
				limit = {
					has_regent = no
					OR = {
						is_ruler = yes
						spouse = { is_ruler = yes }
					}
					religion = ROOT
					NOT = { character = FROM }
					NOT = { trait = excommunicated }
				}
				letter_event = { id = Plus.1323 } # Invitation to coronation
			}
			FROM = { character_event = { id = Plus.1324 } }
		}
	}
}

# Invitation to the coronation
letter_event = {
	id = Plus.1323
	desc = "EVTDESC_Plus_1323"

	is_triggered_only = yes

	option = {
		name = "EVTOPTA_Plus_1179"	# I will attend the ceremony
		ai_chance = {
			factor = 80
			modifier = {
				factor = 1.2
				ROOT = {
					opinion = {
						who = FROM
						value = 20
					}
				}
			}
			modifier = {
				factor = 1.2
				ROOT = {
					opinion = {
						who = FROM
						value = 40
					}
				}
			}
			modifier = {
				factor = 1.6
				ROOT = {
					opinion = {
						who = FROM
						value = 60
					}
				}
			}
			modifier = {
				factor = 2.0
				ROOT = {
					opinion = {
						who = FROM
						value = 80
					}
				}
			}
			modifier = {
				factor = 2.0
				ROOT = {
					opinion = {
						who = FROM
						value = 100
					}
				}
			}
		}
		set_character_flag = attend_byzantine_coronation
	}
	option = {
		name = "EVTOPTB_Plus_1179"	# I have more important things to do
		ai_chance = {
			factor = 20
			modifier = {
				factor = 4.0
				ROOT = {
					has_opinion_modifier = {
						who = FROM
						modifier = attempted_murder
					}
				}
			}
			modifier = {
				factor = 2.0
				ROOT = {
					has_opinion_modifier = {
						who = FROM
						modifier = attempted_murder_of_spouse
					}
				}
			}
			modifier = {
				factor = 4.0
				ROOT = {
					has_opinion_modifier = {
						who = FROM
						modifier = attempted_murder_of_child
					}
				}
			}
			modifier = {
				factor = 1.5
				ROOT = {
					has_opinion_modifier = {
						who = FROM
						modifier = attempted_murder_of_vassal
					}
				}
			}
			modifier = {
				factor = 1.2
				ROOT = {
					NOT = {
						opinion = {
							who = FROM
							value = -20
						}
					}
				}
			}
			modifier = {
				factor = 1.2
				ROOT = {
					NOT = {
						opinion = {
							who = FROM
							value = -40
						}
					}
				}
			}
			modifier = {
				factor = 1.2
				ROOT = {
					NOT = {
						opinion = {
							who = FROM
							value = -60
						}
					}
				}
			}
			modifier = {
				factor = 1.2
				ROOT = {
					NOT = {
						opinion = {
							who = FROM
							value = -80
						}
					}
				}
			}
			modifier = {
				factor = 1.2
				ROOT = {
					NOT = {
						opinion = {
							who = FROM
							value = -99
						}
					}
				}
			}
		}
		if = {
			limit = { higher_tier_than = COUNT }
			FROM = {
				letter_event = { id = Plus.1180 days = 2 random = 8 }
			}
		}
	}
}

# The Patriarch decides whether the Basileus will be considered strong or weak
character_event = {
	id = Plus.1324
	desc = "EVTDESC_Plus_1324"
	picture = "GFX_evt_throne_room_byzantine"

	is_triggered_only = yes

	option = {
		name = "EVTOPTA_Plus_1324"         #Strong
		ai_chance = {
			factor = 75
			modifier = {
				factor = 2
				FROM = { martial = 18 }
			}   
			modifier = {
				factor = 2
				FROM = { martial = 15 }
			}         
			modifier = {
				factor = 2
				FROM = { martial = 12 }
			}    
			modifier = {
				factor = 2
				FROM = { diplomacy = 18 }
			}   
			modifier = {
				factor = 2
				FROM = { diplomacy = 15 }
			}         
			modifier = {
				factor = 2
				FROM = { diplomacy = 12 }
			}        
			modifier = {
				factor = 2
				FROM = { stewardship = 15 }
			}      
			modifier = {
				factor = 2
				FROM = { learning = 18 }
			}              
			modifier = {
				factor = 2
				FROM = { intrigue = 15 }
			}          
			modifier = {
				factor = 2
				FROM = { has_character_flag = byzantium_had_centr_three }
			}     
			modifier = {
				factor = 2
				FROM = { has_character_flag = byzantium_had_centr_four }
			}             
			modifier = {
				factor = 1.5
				FROM = { religion_authority = 0.8 }
			}    
			modifier = {
				factor = 2
				FROM = { father_even_if_dead = { trait = strong_basileus } }
			}
			modifier = {
				factor = 1.4
				FROM = { trait = tall }
			}                   
			modifier = {
				factor = 1.4
				FROM = { trait = martial_lady_pagan }
			}                    
			modifier = {
				factor = 1.3
				FROM = { trait = martial_lady }
			}
			modifier = {
				factor = 1.6
				FROM = { trait = zealous }
			}
			modifier = {
				factor = 1.3
				FROM = { trait = just }
			} 
			modifier = {
				factor = 1.4
				FROM = { trait = ambitious }
			} 
			modifier = {
				factor = 1.3
				FROM = { trait = gregarious }
			}
			modifier = {
				factor = 1.4
				FROM = { trait = brave }
			} 
			modifier = {
				factor = 1.2
				FROM = { trait = patient }
			}
			modifier = {
				factor = 1.3
				FROM = { trait = fair }
			}
			modifier = {
				factor = 2
				FROM = { trait = genius }
			}
			modifier = {
				factor = 1.8
				FROM = { trait = quick }
			}
			modifier = {
				factor = 1.8
				FROM = { trait = shrewd }
			}
			modifier = {
				factor = 2
				FROM = { is_strong_trigger = yes }
			}
			modifier = {
				factor = 1.3
				FROM = { trait = duelist }
			}
			modifier = {
				factor = 1.3
				FROM = { trait = hunter }
			} 
			modifier = {
				factor = 1.3
				FROM = { trait = temperate }
			}  
			modifier = {
				factor = 1.3
				FROM = { trait = falconer }
			} 
			modifier = {
				factor = 1.4
				FROM = { trait = diligent }
			}                                         
			modifier = {
				factor = 1.8
				FROM = { trait = born_in_the_purple }
			}
			modifier = {
				factor = 1.3  
				FROM = { realm_size = 200 }
			}          
			modifier = {
				factor = 1.6  
				FROM = { realm_size = 250 }
			}           
			modifier = {
				factor = 1.6  
				FROM = { realm_size = 300 }
			}            
			modifier = {
				factor = 1.5  
				FROM = { realm_size = 350 }
			}               
			modifier = {
				factor = 1.5  
				FROM = { realm_size = 400 }
			}            
			modifier = {
				factor = 1.4  
				FROM = { realm_size = 450 }
			}            
			modifier = {
				factor = 1.4  
				FROM = { realm_size = 500 }
			}
			modifier = {
				factor = 1.1
				FROM = { trait = tyrant1 }
			} 
			modifier = {
				factor = 1.2
				FROM = { trait = tyrant2 }
			}
			modifier = {
				factor = 1.3
				FROM = { trait = tyrant3 }
			}
			modifier = {
				factor = 1.4
				FROM = { trait = tyrant4 }
			}
			modifier = {
				factor = 1.5
				FROM = { trait = tyrant5 }
			}
			modifier = {
				factor = 1.6
				FROM = { trait = tyrant6 }
			} 
			modifier = {
				factor = 1.7
				FROM = { trait = tyrant7 }
			}
			modifier = {
				factor = 1.8
				FROM = { trait = tyrant8 }
			}
			modifier = {
				factor = 1.9
				FROM = { trait = tyrant9 }
			}
			modifier = {
				factor = 2
				FROM = { trait = tyrant10 }
			}   
			modifier = {
				factor = 2.1
				FROM = { trait = tyrant11 }
			} 
			modifier = {
				factor = 2.2
				FROM = { trait = tyrant12 }
			}
			modifier = {
				factor = 2.3
				FROM = { trait = tyrant13 }
			}
			modifier = {
				factor = 2.4
				FROM = { trait = tyrant14 }
			}
			modifier = {
				factor = 2.5
				FROM = { trait = tyrant15 }
			}
			modifier = {
				factor = 2.6
				FROM = { trait = tyrant16 }
			} 
			modifier = {
				factor = 2.7
				FROM = { trait = tyrant17 }
			}
			modifier = {
				factor = 2.8
				FROM = { trait = tyrant18 }
			}
			modifier = {
				factor = 2.9
				FROM = { trait = tyrant19 }
			}
			modifier = {
				factor = 3
				FROM = { trait = tyrant20 }
			}
		}
		FROM = { character_event = { id = Plus.1290 days = 30 } }
		FROM = { narrative_event = { id = Plus.1325 days = 31 } }
   }   
   
	option = {
		name = "EVTOPTB_Plus_1324"         #Weak
		ai_chance = {
			factor = 100  
			modifier = {
				factor = 2
				FROM = { NOT = { martial = 9 } }
			}   
			modifier = {
				factor = 2
				FROM = { NOT = { martial = 6 } }
			}         
			modifier = {
				factor = 2
				FROM = { NOT = { martial = 3 } }
			}    
			modifier = {
				factor = 2
				FROM = { NOT = { diplomacy = 9 } }
			}   
			modifier = {
				factor = 2
				FROM = { NOT = { diplomacy = 6 } }
			}         
			modifier = {
				factor = 2
				FROM = { NOT = { diplomacy = 3 } }
			}      
			modifier = {
				factor = 2
				FROM = { NOT = { stewardship = 5 } }
			}     
			modifier = {
				factor = 2
				FROM = { NOT = { intrigue = 5 } }
			}      
			modifier = {
				factor = 2
				FROM = { NOT = { learning = 5 } }
			}    
			modifier = {
				factor = 1.5
				FROM = { NOT = { culture = greek } }
			}   
			modifier = {
				factor = 2
				FROM = { is_female = yes }
			}
			modifier = {
				factor = 2
				FROM = { has_character_flag = byzantium_had_centr_zero }
			}     
			modifier = {
				factor = 1.5
				FROM = { has_character_flag = forced_patriarch_to_abdicate }
			}           
			modifier = {
				factor = 4
				FROM = { has_global_flag = collapse_of_themata_system }
			}           
			modifier = {
				factor = 2
				FROM = { NOT = { religion_authority = 0.4 } }
			}            
			modifier = {
				factor = 1.8
				NOT = { FROM = { owns = 496 } }
			}              
			modifier = {
				factor = 1.6
				FROM = { NOT = { realm_size = 50 } }
			}           
			modifier = {
				factor = 1.6
				FROM = { NOT = { realm_size = 100 } }
			}            
			modifier = {
				factor = 1.3  
				FROM = { NOT = { realm_size = 150 } }
			}
			modifier = {
				factor = 1.1
				FROM = { trait = dishonorable1 }
			} 
			modifier = {
				factor = 1.2
				FROM = { trait = dishonorable2 }
			}
			modifier = {
				factor = 1.3
				FROM = { trait = dishonorable3 }
			}
			modifier = {
				factor = 1.4
				FROM = { trait = dishonorable4 }
			}
			modifier = {
				factor = 1.5
				FROM = { trait = dishonorable5 }
			}
			modifier = {
				factor = 1.6
				FROM = { trait = dishonorable6 }
			} 
			modifier = {
				factor = 1.7
				FROM = { trait = dishonorable7 }
			}
			modifier = {
				factor = 1.8
				FROM = { trait = dishonorable8 }
			}
			modifier = {
				factor = 1.9
				FROM = { trait = dishonorable9 }
			}
			modifier = {
				factor = 2
				FROM = { trait = dishonorable10 }
			} 
			modifier = {
				factor = 1.1
				FROM = { trait = dyn_dishonorable1 }
			} 
			modifier = {
				factor = 1.2
				FROM = { trait = dyn_dishonorable2 }
			}
			modifier = {
				factor = 1.3
				FROM = { trait = dyn_dishonorable3 }
			}
			modifier = {
				factor = 1.4
				FROM = { trait = dyn_dishonorable4 }
			}
			modifier = {
				factor = 1.5
				FROM = { trait = dyn_dishonorable5 }
			}
			modifier = {
				factor = 1.6
				FROM = { trait = dyn_dishonorable6 }
			} 
			modifier = {
				factor = 1.7
				FROM = { trait = dyn_dishonorable7 }
			}
			modifier = {
				factor = 1.8
				FROM = { trait = dyn_dishonorable8 }
			}
			modifier = {
				factor = 1.9
				FROM = { trait = dyn_dishonorable9 }
			}
			modifier = {
				factor = 2
				FROM = { trait = dyn_dishonorable10 }
			}
			modifier = {
				factor = 1.3
				FROM = { age = 50 }
			}
			modifier = {
				factor = 1.5
				FROM = { age = 60 }
			}    
			modifier = {
				factor = 1.7
				FROM = { age = 70 }
			}
			modifier = {
				factor = 2
				FROM = { age = 80 }
			}  
			modifier = {
				factor = 2.5
				FROM = { age = 90 }
			}
			modifier = {
				factor = 1.3
				FROM = { trait = depressed }
			}  
			modifier = {
				factor = 2
				FROM = { trait = lunatic }
			} 
			modifier = {
				factor = 2
				FROM = { trait = possessed }
			}   
			modifier = {
				factor = 1.8
				FROM = { trait = infirm }
			} 
			modifier = {
				factor = 1.4
				FROM = { trait = drunkard }
			} 
			modifier = {
				factor = 1.5
				FROM = { trait = bastard }
			} 
			modifier = {
				factor = 1.3
				FROM = { trait = legit_bastard }
			}
			modifier = {
				factor = 2
				FROM = { is_kinslayer_trigger = yes }
			} 
			modifier = {
				factor = 1.2
				FROM = { trait = clubfooted }
			}  
			modifier = {
				factor = 1.2
				FROM = { trait = harelip }
			}
			modifier = {
				factor = 1.3
				FROM = { trait = hunchback }
			} 
			modifier = {
				factor = 1.2
				FROM = { trait = lisp }
			}   
			modifier = {
				factor = 1.3
				FROM = { trait = stutter }
			}     
			modifier = {
				factor = 1.2
				FROM = { trait = ugly }
			}                  
			modifier = {
				factor = 1.3
				FROM = { trait = dwarf }
			}   
			modifier = {
				factor = 1.8
				FROM = { trait = slow }
			}
			modifier = {
				factor = 1.8
				FROM = { trait = dull }
			}
			modifier = {
				factor = 2
				FROM = { trait = imbecile }
			}     
			modifier = {
				factor = 2.5
				FROM = { trait = inbred }
			}   
			modifier = {
				factor = 1.7
				FROM = { is_weak_trigger = yes }
			}       
			modifier = {
				factor = 1.4
				FROM = { trait = blinded }
			} 
			modifier = {
				factor = 2
				FROM = { trait = eunuch }
			}
			modifier = {
				factor = 1.4
				FROM = { trait = trusting }
			} 
			modifier = {
				factor = 1.4
				FROM = { trait = paranoid }
			}  
			modifier = {
				factor = 1.5
				FROM = { trait = arbitrary }
			} 
			modifier = {
				factor = 1.6
				FROM = { trait = content }
			} 
			modifier = {
				factor = 1.4
				FROM = { trait = shy }
			} 
			modifier = {
				factor = 1.7
				FROM = { trait = craven }
			}    
			modifier = {
				factor = 1.2
				FROM = { trait = deceitful }
			} 
			modifier = {
				factor = 1.2
				FROM = { trait = gluttonous }
			}      
			modifier = {
				factor = 1.2
				FROM = { trait = greedy }
			}
			modifier = {
				factor = 0
				FROM = {
					prestige = 2500
					piety = 500
					NOT = {
						any_vassal = {
							higher_tier_than = COUNT
							NOT = { opinion = { who = PREV value = 0 } }
						}
					}
				}
			}
		}
		FROM = { character_event = { id = Plus.1290 days = 30 } }
		FROM = { narrative_event = { id = Plus.1326 days = 31 } }
   }
}   

# Strong Basileus ascends
narrative_event = {
	id = Plus.1325
	title = "EVTNAME_Plus_1325"
	desc = "EVTDESC_Plus_1325"
	picture = "GFX_evt_coronation_orthodox"
	
	major = yes
	hide_from = yes
	show_ROOT = yes

	is_triggered_only = yes

	option = {
		name = "EVTOPTA_Plus_1325"
		trigger = {
			has_landed_title = e_byzantium
		}
		clr_character_flag = byzantium_had_centr_zero
		set_character_flag = centralize_without_penalties
		if = {
			limit = {
				OR = { 
					e_byzantium = { has_law = crown_authority_1 }
					e_byzantium = { has_law = crown_authority_0 } 
				}
				NOT = { has_character_flag = byzantium_had_centr_three }
				NOT = { has_character_flag = byzantium_had_centr_four }
			}
			e_byzantium = { add_law = crown_authority_2 }
		}
		if = {
			limit = {
				OR = { 
					e_byzantium = { has_law = crown_authority_1 }
					e_byzantium = { has_law = crown_authority_0 } 
				}
				has_character_flag = byzantium_had_centr_three
			}                             
			clr_character_flag = byzantium_had_centr_three
			e_byzantium = { add_law = crown_authority_3 }
		}
		if = {
			limit = {
				OR = { 
					e_byzantium = { has_law = crown_authority_1 }
					e_byzantium = { has_law = crown_authority_0 } 
				}
				has_character_flag = byzantium_had_centr_four
			}                             
			clr_character_flag = byzantium_had_centr_four
			e_byzantium = { add_law = crown_authority_4 }
		}
		clr_character_flag = centralize_without_penalties
		prestige = 200
		piety = 100
		add_trait = strong_basileus
		if = {
			limit = { NOT = { religion = chalcedonian } }
			religion_authority = {
				modifier = strong_emperor_byz
			}
		}
		hidden_tooltip = {
			if = {
				limit = { is_ironman = no }
				e_byzantium = { change_variable = { which = "imperial_decadence" value = -5 } }
			}
			character_event = { id = Plus.1852 } # change the decadence modifier
			any_realm_character = {
				limit = { has_character_flag = attend_byzantine_coronation }
				clr_character_flag = attend_byzantine_coronation
				opinion = {
					modifier = opinion_attended_ceremony
					who = ROOT
					years = 5
				}
			}
		}
	}	
	option = {
		name = "EVTOPTB_Plus_1325"
		trigger = {
			NOT = { has_landed_title = e_byzantium }
			any_liege = { has_landed_title = e_byzantium }
		}
	}
	option = {
		name = "OK"
		trigger = {
			NOT = { has_landed_title = e_byzantium }
			NOT = { any_liege = { has_landed_title = e_byzantium } }
		}
	}
}

# Weak Basileus ascends
narrative_event = {
	id = Plus.1326
	title = "EVTNAME_Plus_1325"
	desc = "EVTDESC_Plus_1326"
	picture = "GFX_evt_coronation_orthodox"
	

	is_triggered_only = yes

	option = {
		name = "EVTOPTA_Plus_1326" #OK
		piety = 100
		add_trait = weak_basileus
		if = {
			limit = { NOT = { religion = chalcedonian } }
			religion_authority = {
				modifier = weak_emperor_byz
			}
		}
		clr_character_flag = byzantium_had_centr_zero
		clr_character_flag = byzantium_had_centr_three
		clr_character_flag = byzantium_had_centr_four
		hidden_tooltip = {
			if = {
				limit = { is_ironman = no }
				e_byzantium = { change_variable = { which = "imperial_decadence" value = -1 } }
			}
			character_event = { id = Plus.1852 } # change the decadence modifier
			any_realm_character = {
				limit = { has_character_flag = attend_byzantine_coronation }
				narrative_event = { id = Plus.1327 }
			}
		}
	}
}

# Vassals notified of weak basileus's coronation
narrative_event = {
	id = Plus.1327
	title = "EVTNAME_Plus_1325"
	desc = "EVTDESC_Plus_1327"
	picture = "GFX_evt_coronation_orthodox"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA_Plus_1327"
		clr_character_flag = attend_byzantine_coronation
		opinion = {
			modifier = opinion_attended_ceremony
			who = FROM
			years = 5
		}
	}
}

# The Patriarch has refused to coronate -- do you depose him?
character_event = {
	id = Plus.1328
	desc = "EVTDESC_Plus_1328"
	picture = "GFX_evt_bishop_byzantine"

	is_triggered_only = yes

	option = {
		name = "EVTOPTA_Plus_1328"         #Force him to abdicate!
		ai_chance = {
			factor = 130  
			modifier = {
				factor = 1.8
				trait = born_in_the_purple
			}    
			modifier = {
				factor = 2
				trait = lunatic
			}     
			modifier = {
				factor = 2
				trait = possessed
			}     
			modifier = {
				factor = 1.5
				trait = paranoid
			}    
			modifier = {
				factor = 1.5
				trait = greedy
			}      
			modifier = {
				factor = 1.5
				is_strong_trigger = yes
			}               
			modifier = {
				factor = 1.5
				trait = deceitful
			}       
			modifier = {
				factor = 2
				trait = ambitious
			}       
			modifier = {
				factor = 1.7
				trait = arbitrary
			}       
			modifier = {
				factor = 1.3
				trait = hedonist
			}          
			modifier = {
				factor = 1.8
				trait = impaler
			}           
			modifier = {
				factor = 1.6
				trait = cynical
			}
			modifier = {
				factor = 0
				is_evil_tyrant_trigger = no
			}
		}  
		prestige = -200
		piety = -350
		FROM = { abdicate = yes }
		set_character_flag = forced_patriarch_to_abdicate  
		if = {
			limit = { any_vassal = { leads_faction = faction_tradition } }
			custom_tooltip = { text = TRADITIONFACTIONMOODMINUS }
			hidden_tooltip = {
				random_vassal = { limit = { leads_faction = faction_tradition } set_variable = { which = "faction_mood_decrease" value = 6 } }
				character_event = { id = PlusFaction.200 days = 1 }
			}
		}
		hidden_tooltip = {
			if = {
				limit = { NOT = { religion = chalcedonian } }
				religion_authority = {
					modifier = deposed_patriarch_byz
				}
			}
			any_vassal = {
				limit = {
					NOT = { has_landed_title = d_pentarch_constantinople }
					religion = ROOT
				}
				opinion = {
					who = ROOT
					modifier = opinion_basileus_patr_revoking
					months = 36
				}
			}
			any_realm_character = {
				limit = {
					has_regent = no
					OR = {
						is_ruler = yes
						spouse = { is_ruler = yes }
					}
					religion = ROOT
					NOT = { character = FROM }
					NOT = { has_landed_title = d_pentarch_constantinople }
					NOT = { trait = excommunicated }
				}
				letter_event = { id = Plus.1323 } # Invitation to coronation
			}
			d_pentarch_constantinople = {
				holder_scope = {
					character_event = { id = Plus.1324 }
					opinion = {
						who = ROOT
			            modifier = opinion_appointed_patriarch
		                months = 120
		            }
				}
			}
		}
		tyrant_plus_2_effect = yes
	}   
	option = {
		name = "EVTOPTB_Plus_1328" #OK
		ai_chance = {
			factor = 70  
			modifier = {
				factor = 1.7
				trait = depressed
			}    
			modifier = {
				factor = 1.7
				trait = stressed
			}     
			modifier = {
				factor = 1.2
				trait = scholar
			}     
			modifier = {
				factor = 1.8
				trait = infirm
			}    
			modifier = {
				factor = 1.4
				trait = chaste
			}      
			modifier = {
				factor = 1.8
				trait = humble
			}               
			modifier = {
				factor = 1.3
				trait = slothful
			}       
			modifier = {
				factor = 2
				is_weak_trigger = yes
			}       
			modifier = {
				factor = 1.6
				trait = trusting
			}       
			modifier = {
				factor = 2.4
				trait = zealous
			}          
			modifier = {
				factor = 1.8
				trait = craven
			}           
			modifier = {
				factor = 1.6
				trait = shy
			}            
			modifier = {
				factor = 2
				trait = content
			}           
			modifier = {
				factor = 1.3
				trait = just
			}   
		}
		prestige = -100       
		clr_character_flag = byzantium_had_centr_zero
		clr_character_flag = byzantium_had_centr_three
		clr_character_flag = byzantium_had_centr_four
		clr_character_flag = during_the_coronation
		d_pentarch_constantinople = {
			holder_scope = {
               set_character_flag = refused_to_coronate
			}
		}
		hidden_tooltip = {
			if = {
				limit = { is_ironman = no }
				e_byzantium = { change_variable = { which = "imperial_decadence" value = 1 } }
			}
			character_event = { id = Plus.1852 } #change decadence modifier
		}
	}
}  

### MAINTENANCE EVENTS

# Character becomes Byzantine Emperor once again
character_event = {
	id = Plus.1331
	
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		FROM = {
			title = e_byzantium
			is_primary_holder_title = yes
		}
		OR = {
			religion = chalcedonian
			religion = orthodox
			religion = bogomilist
			religion = monothelite
			religion = iconoclast
			religion_group = hellenic_pagan_group
		}
		OR = {
			has_character_flag = was_strong_basileus_byz 
			has_character_flag = was_weak_basileus_byz
		}
	}

	immediate = {
		if = {
			limit = { has_character_flag = was_weak_basileus_byz }
			add_trait = weak_basileus
			clr_character_flag = was_weak_basileus_byz
		}
		if = {
			limit = { has_character_flag = was_strong_basileus_byz }
			add_trait = strong_basileus 
			clr_character_flag = was_strong_basileus_byz  
		}
    }
}

# Ping decision to determine if new basileus is strong or weak
character_event = {
	id = Plus.1335
	desc = "AI_EVENT"
	picture = "GFX_evt_throne_room_byzantine"

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA_Plus_1324" #Strong
		ai_chance = {
			factor = 75
			modifier = {
				factor = 2
				liege = { martial = 18 }
			}   
			modifier = {
				factor = 2
				liege = { martial = 15 }
			}         
			modifier = {
				factor = 2
				liege = { martial = 12 }
			}    
			modifier = {
				factor = 2
				liege = { diplomacy = 18 }
			}   
			modifier = {
				factor = 2
				liege = { diplomacy = 15 }
			}         
			modifier = {
				factor = 2
				liege = { diplomacy = 12 }
			}        
			modifier = {
				factor = 2
				liege = { stewardship = 15 }
			}      
			modifier = {
				factor = 2
				liege = { learning = 18 }
			}              
			modifier = {
				factor = 2
				liege = { intrigue = 15 }
			}          
			modifier = {
				factor = 2
				liege = { has_character_flag = byzantium_had_centr_three }
			}     
			modifier = {
				factor = 2
				liege = { has_character_flag = byzantium_had_centr_four }
			}             
			modifier = {
				factor = 1.5
				liege = { religion_authority = 0.8 }
			}    
			modifier = {
				factor = 2
				liege = { father_even_if_dead = { trait = strong_basileus } }
			}
			modifier = {
				factor = 1.4
				liege = { trait = tall }
			}                   
			modifier = {
				factor = 1.4
				liege = { trait = martial_lady_pagan }
			}                    
			modifier = {
				factor = 1.3
				liege = { trait = martial_lady }
			}
			modifier = {
				factor = 1.6
				liege = { trait = zealous }
			}
			modifier = {
				factor = 1.3
				liege = { trait = just }
			} 
			modifier = {
				factor = 1.4
				liege = { trait = ambitious }
			} 
			modifier = {
				factor = 1.3
				liege = { trait = gregarious }
			}
			modifier = {
				factor = 1.4
				liege = { trait = brave }
			} 
			modifier = {
				factor = 1.2
				liege = { trait = patient }
			}
			modifier = {
				factor = 1.3
				liege = { trait = fair }
			}
			modifier = {
				factor = 2
				liege = { trait = genius }
			}
			modifier = {
				factor = 1.8
				liege = { trait = quick }
			}
			modifier = {
				factor = 1.8
				liege = { trait = shrewd }
			}
			modifier = {
				factor = 2
				liege = { is_strong_trigger = yes }
			}
			modifier = {
				factor = 1.3
				liege = { trait = duelist }
			}
			modifier = {
				factor = 1.3
				liege = { trait = hunter }
			} 
			modifier = {
				factor = 1.3
				liege = { trait = temperate }
			}  
			modifier = {
				factor = 1.3
				liege = { trait = falconer }
			} 
			modifier = {
				factor = 1.4
				liege = { trait = diligent }
			}                                         
			modifier = {
				factor = 1.8
				liege = { trait = born_in_the_purple }
			}
			modifier = {
				factor = 1.3  
				liege = { realm_size = 200 }
			}          
			modifier = {
				factor = 1.6  
				liege = { realm_size = 250 }
			}           
			modifier = {
				factor = 1.6  
				liege = { realm_size = 300 }
			}            
			modifier = {
				factor = 1.5  
				liege = { realm_size = 350 }
			}               
			modifier = {
				factor = 1.5  
				liege = { realm_size = 400 }
			}            
			modifier = {
				factor = 1.4  
				liege = { realm_size = 450 }
			}            
			modifier = {
				factor = 1.4  
				liege = { realm_size = 500 }
			}
		}
		liege = { character_event = { id = Plus.1336 } }
   }   
   
	option = {
		name = "EVTOPTB_Plus_1324" #Weak
		ai_chance = {
			factor = 100  
			modifier = {
				factor = 2
				liege = { NOT = { martial = 9 } }
			}   
			modifier = {
				factor = 2
				liege = { NOT = { martial = 6 } }
			}         
			modifier = {
				factor = 2
				liege = { NOT = { martial = 3 } }
			}    
			modifier = {
				factor = 2
				liege = { NOT = { diplomacy = 9 } }
			}   
			modifier = {
				factor = 2
				liege = { NOT = { diplomacy = 6 } }
			}         
			modifier = {
				factor = 2
				liege = { NOT = { diplomacy = 3 } }
			}      
			modifier = {
				factor = 2
				liege = { NOT = { stewardship = 5 } }
			}     
			modifier = {
				factor = 2
				liege = { NOT = { intrigue = 5 } }
			}      
			modifier = {
				factor = 2
				liege = { NOT = { learning = 5 } }
			}    
			modifier = {
				factor = 1.5
				liege = { NOT = { culture = greek } }
			}   
			modifier = {
				factor = 2
				liege = { is_female = yes }
			}
			modifier = {
				factor = 2
				liege = { has_character_flag = byzantium_had_centr_zero }
			}           
			modifier = {
				factor = 4
				liege = { has_global_flag = collapse_of_themata_system }
			}           
			modifier = {
				factor = 2
				liege = { NOT = { religion_authority = 0.4 } }
			}            
			modifier = {
				factor = 1.8
				NOT = { liege = { owns = 496 } }
			}              
			modifier = {
				factor = 1.6
				liege = { NOT = { realm_size = 50 } }
			}           
			modifier = {
				factor = 1.6
				liege = { NOT = { realm_size = 100 } }
			}            
			modifier = {
				factor = 1.3  
				liege = { NOT = { realm_size = 150 } }
			}
			modifier = {
				factor = 1.1
				liege = { trait = dishonorable1 }
			} 
			modifier = {
				factor = 1.2
				liege = { trait = dishonorable2 }
			}
			modifier = {
				factor = 1.3
				liege = { trait = dishonorable3 }
			}
			modifier = {
				factor = 1.4
				liege = { trait = dishonorable4 }
			}
			modifier = {
				factor = 1.5
				liege = { trait = dishonorable5 }
			}
			modifier = {
				factor = 1.6
				liege = { trait = dishonorable6 }
			} 
			modifier = {
				factor = 1.7
				liege = { trait = dishonorable7 }
			}
			modifier = {
				factor = 1.8
				liege = { trait = dishonorable8 }
			}
			modifier = {
				factor = 1.9
				liege = { trait = dishonorable9 }
			}
			modifier = {
				factor = 2
				liege = { trait = dishonorable10 }
			} 
			modifier = {
				factor = 1.1
				liege = { trait = dyn_dishonorable1 }
			} 
			modifier = {
				factor = 1.2
				liege = { trait = dyn_dishonorable2 }
			}
			modifier = {
				factor = 1.3
				liege = { trait = dyn_dishonorable3 }
			}
			modifier = {
				factor = 1.4
				liege = { trait = dyn_dishonorable4 }
			}
			modifier = {
				factor = 1.5
				liege = { trait = dyn_dishonorable5 }
			}
			modifier = {
				factor = 1.6
				liege = { trait = dyn_dishonorable6 }
			} 
			modifier = {
				factor = 1.7
				liege = { trait = dyn_dishonorable7 }
			}
			modifier = {
				factor = 1.8
				liege = { trait = dyn_dishonorable8 }
			}
			modifier = {
				factor = 1.9
				liege = { trait = dyn_dishonorable9 }
			}
			modifier = {
				factor = 2
				liege = { trait = dyn_dishonorable10 }
			}  
			modifier = {
				factor = 1.3
				liege = { age = 50 }
			}
			modifier = {
				factor = 1.5
				liege = { age = 60 }
			}    
			modifier = {
				factor = 1.7
				liege = { age = 70 }
			}
			modifier = {
				factor = 2
				liege = { age = 80 }
			}  
			modifier = {
				factor = 2.5
				liege = { age = 90 }
			}
			modifier = {
				factor = 1.3
				liege = { trait = depressed }
			}  
			modifier = {
				factor = 2
				liege = { trait = lunatic }
			} 
			modifier = {
				factor = 2
				liege = { trait = possessed }
			}   
			modifier = {
				factor = 1.8
				liege = { trait = infirm }
			} 
			modifier = {
				factor = 1.4
				liege = { trait = drunkard }
			} 
			modifier = {
				factor = 1.5
				liege = { trait = bastard }
			} 
			modifier = {
				factor = 1.3
				liege = { trait = legit_bastard }
			}
			modifier = {
				factor = 2
				liege = { is_kinslayer_trigger = yes }
			} 
			modifier = {
				factor = 1.2
				liege = { trait = clubfooted }
			}  
			modifier = {
				factor = 1.2
				liege = { trait = harelip }
			}
			modifier = {
				factor = 1.3
				liege = { trait = hunchback }
			} 
			modifier = {
				factor = 1.2
				liege = { trait = lisp }
			}   
			modifier = {
				factor = 1.3
				liege = { trait = stutter }
			}     
			modifier = {
				factor = 1.2
				liege = { trait = ugly }
			}                  
			modifier = {
				factor = 1.3
				liege = { trait = dwarf }
			}   
			modifier = {
				factor = 1.8
				liege = { trait = slow }
			}
			modifier = {
				factor = 1.8
				liege = { trait = dull }
			}
			modifier = {
				factor = 2
				liege = { trait = imbecile }
			}     
			modifier = {
				factor = 2.5
				liege = { trait = inbred }
			}   
			modifier = {
				factor = 1.7
				liege = { is_weak_trigger = yes }
			}       
			modifier = {
				factor = 1.4
				liege = { trait = blinded }
			} 
			modifier = {
				factor = 2
				liege = { trait = eunuch }
			}
			modifier = {
				factor = 1.4
				liege = { trait = trusting }
			} 
			modifier = {
				factor = 1.4
				liege = { trait = paranoid }
			}  
			modifier = {
				factor = 1.5
				liege = { trait = arbitrary }
			} 
			modifier = {
				factor = 1.6
				liege = { trait = content }
			} 
			modifier = {
				factor = 1.4
				liege = { trait = shy }
			} 
			modifier = {
				factor = 1.7
				liege = { trait = craven }
			}    
			modifier = {
				factor = 1.2
				liege = { trait = deceitful }
			} 
			modifier = {
				factor = 1.2
				liege = { trait = gluttonous }
			}      
			modifier = {
				factor = 1.2
				liege = { trait = greedy }
			}
			modifier = {
				factor = 0
				liege = {
					prestige = 2500
					piety = 500
					NOT = {
						any_vassal = {
							higher_tier_than = COUNT
							NOT = { opinion = { who = PREV value = 0 } }
						}
					}
				}
			}
		}
		liege = { character_event = { id = Plus.1337 } }
   }
}

# Strong Basileus ascends (non-Orthodox}
character_event = {
	id = Plus.1336
	
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		clr_character_flag = byzantium_had_centr_zero
		set_character_flag = centralize_without_penalties 
		if = {
			limit = {
				OR = { 
					e_byzantium = { has_law = crown_authority_1 }
					e_byzantium = { has_law = crown_authority_0 } 
				}
				NOT = { has_character_flag = byzantium_had_centr_three }
				NOT = { has_character_flag = byzantium_had_centr_four }
			}
			e_byzantium = { add_law = crown_authority_2 }
		}
		if = {
			limit = {
				OR = { 
					e_byzantium = { has_law = crown_authority_1 }
					e_byzantium = { has_law = crown_authority_0 } 
				}
				has_character_flag = byzantium_had_centr_three
			}                             
			clr_character_flag = byzantium_had_centr_three
			e_byzantium = { add_law = crown_authority_3 }
		}
		if = {
			limit = {
				OR = { 
					e_byzantium = { has_law = crown_authority_1 }
					e_byzantium = { has_law = crown_authority_0 } 
				}
				has_character_flag = byzantium_had_centr_four
			}                             
			clr_character_flag = byzantium_had_centr_four
			e_byzantium = { add_law = crown_authority_4 }
		}
		clr_character_flag = centralize_without_penalties
		add_trait = strong_basileus  
		hidden_tooltip = {
			if = {
				limit = { is_ironman = no }
				e_byzantium = { change_variable = { which = "imperial_decadence" value = -5 } }
			}
			character_event = { id = Plus.1852 } # change the decadence modifier
		}
	}	
}

# Weak Basileus ascends (non-Orthodox}
character_event = {
	id = Plus.1337

	hide_window = yes
	is_triggered_only = yes

	immediate = {
		add_trait = weak_basileus
		clr_character_flag = byzantium_had_centr_zero
		clr_character_flag = byzantium_had_centr_three
		clr_character_flag = byzantium_had_centr_four
		if = {
			limit = { is_ironman = no }
			e_byzantium = { change_variable = { which = "imperial_decadence" value = -1 } }
		}
		character_event = { id = Plus.1852 } # change the decadence modifier
	}
}

# Emperor becomes strong
narrative_event = {
	id = Plus.1338
	title = EVTNAME_Plus_1338
	desc = EVTDESC_Plus_1338
	picture = GFX_evt_byzantine_throne
	
	is_triggered_only = yes
	
	major = yes
	hide_from = yes
	show_ROOT = yes
	
	major_trigger = {
		OR = {
			character = ROOT
			same_realm = ROOT
			ai = no
		}
	}
	
	option = {
		name = EVTOPTA_Plus_1338
		trigger = { character = ROOT }
	}
	option = {
		name = EVTOPTA_Plus_1338
		trigger = {
			NOT = { character = ROOT }
			same_realm = ROOT
		}
	}
	option = {
		name = EVTOPTA_Plus_1338
		trigger = {
			NOT = { same_realm = ROOT }
		}
	}
}

