namespace = fob
narrative_event = {
	title = EVTNAMEfob01
	id = fob.01
	desc = EVTDESCfob01
	picture = GFX_evt_fob

	mean_time_to_happen = {
		days = 1
	}
	
	trigger = {
		e_byzantium = {
			holder_scope = {
				num_of_emperor_titles = 1
			}
		}
		
		e_byzantium = {
			has_holder = yes
		}
		k_nicaea = {
			NOT = {
				has_title_flag = fob
			}
		}
		c_byzantion = {
			holder_scope = {
				NOT = {
					OR = {
						has_landed_title = e_byzantium
						vassal_of = e_byzantium
					}
				}
			}
		}
		
		d_thrace = {
			holder_scope = {
				NOR = {
					has_landed_title = e_byzantium
					vassal_of = e_byzantium
				}
			}
		}
	}
	
	immediate = {
		activate_title = { title = k_nicaea status = yes }
		e_byzantium = {
			holder_scope = {
				k_nicaea = {
					grant_title = { target = PREV }
				}
			}
		}
		k_nicaea = {
			set_title_flag = fob
			copy_title_history = e_byzantium
			copy_title_laws = e_byzantium
		}
		e_byzantium = {
			set_title_flag = lost_thrace
		}
	}
	
	option = {
		name = EVTOPTAfob01
		
		hidden_tooltip = {
			k_nicaea = {
				holder_scope = {
					make_primary_title = yes
				}
			}
		}		
		any_title = {
			limit = {
				vassal_of = e_byzantium
				de_jure_liege = k_byzantium
			}
			set_title_flag = pre_collapse
		}
	}
	
	after = {
		any_title = {
			limit = {
				has_title_flag = pre_collapse
			}
			set_defacto_liege = k_nicaea
		}
		e_byzantium = {
			destroy_landed_title = THIS
		}
	}
}