add_namespace = cf

### The Fall of Rome
news_event = {
	id = cf.1
	title = cf.1.t
	desc = cf.1.d
	picture = GFX_news_event_fall_of_rome_by_gem
	
	major = yes
	
	trigger = {
		2 = { is_controlled_by = GEM }
		2 = { is_owned_by = WRE }
		GEM = { has_war_with = WRE }
		NOT = { has_global_flag = fall_of_romanis }
	}
	
	immediate = {
		set_global_flag = fall_of_romanis
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = cf.1.a
		trigger = {
            NOT = {
                tag = GEM
                is_in_faction_with = GEM
                is_subject_of = GEM
            }
            NOT = {
                tag = WRE
                is_in_faction_with = WRE
                is_subject_of = WRE
            }
		}
	}
	option = {
		name = cf.1.b
		trigger = { 
            OR = {
                tag = GEM
                is_in_faction_with = GEM
                is_subject_of = GEM
            }
		 }
	}
	option = {
		name = cf.1.c
		trigger = { 
            OR = {
                tag = WRE
                is_in_faction_with = WRE
                is_subject_of = WRE
            }
		 }
	}
}

### The Fall of Constantinople (Wallachia)
news_event = {
	id = cf.2
	title = cf.2.t
	desc = cf.2.d
	picture = GFX_news_event_fall_of_constantinople
	
	major = yes
	
	trigger = {
		797 = { is_controlled_by = WAI }
		797 = { is_owned_by = ERE }
		WAI = { has_war_with = ERE }
		NOT = { has_global_flag = fall_of_constantinople1 }
	}
	
	immediate = {
		set_global_flag = fall_of_constantinople1
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = cf.2.a
		trigger = {
            NOT = {
                tag = WAI
                is_in_faction_with = WAI
                is_subject_of = WAI
            }
            NOT = {
                tag = ERE
                is_in_faction_with = ERE
                is_subject_of = ERE
            }
		}
	}
	option = {
		name = cf.2.b
		trigger = { 
            OR = {
                tag = WAI
                is_in_faction_with = WAI
                is_subject_of = WAI
            }
		 }
	}
	option = {
		name = cf.2.c
		trigger = { 
            OR = {
                tag = ERE
                is_in_faction_with = ERE
                is_subject_of = ERE
            }
		 }
	}
}

### The Fall of Constantinople (Teutonic)
news_event = {
	id = cf.3
	title = cf.3.t
	desc = cf.3.d
	picture = GFX_news_event_fall_of_constantinople
	
	major = yes
	
	trigger = {
		797 = { is_controlled_by = GEM }
		797 = { is_owned_by = ERE }
		GEM = { has_war_with = ERE }
		NOT = { has_global_flag = fall_of_constantinople1 }
	}
	
	immediate = {
		set_global_flag = fall_of_constantinople1
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = cf.3.a
		trigger = {
            NOT = {
                tag = GEM
                is_in_faction_with = GEM
                is_subject_of = GEM
            }
            NOT = {
                tag = ERE
                is_in_faction_with = ERE
                is_subject_of = ERE
            }
		}
	}
	option = {
		name = cf.3.b
		trigger = {
			OR = {
                tag = GEM
                is_in_faction_with = GEM
                is_subject_of = GEM
			}
		}
	}
	option = {
		name = cf.3.c
		trigger = { 
            OR = {
                tag = ERE
                is_in_faction_with = ERE
                is_subject_of = ERE
            }
		 }
	}
}

### The Fall of Constantinople (Pannonia)
news_event = {
	id = cf.4
	title = cf.4.t
	desc = cf.4.d
	picture = GFX_news_event_fall_of_constantinople
	
	major = yes
	
	trigger = {
		797 = { is_controlled_by = PAM }
		797 = { is_owned_by = ERE }
		PAM = { has_war_with = ERE }
		NOT = { has_global_flag = fall_of_constantinople2 }
	}
	
	immediate = {
		set_global_flag = fall_of_constantinople2
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = cf.4.a
		trigger = {
			NOT = {
				TAG = ERE
				TAG = PAM
			}
		}
	}
	option = {
		name = cf.4.b
		trigger = {
			OR = {
                tag = PAM
                is_in_faction_with = PAM
                is_subject_of = PAM
			}
		 }
	}
	option = {
		name = cf.4.c
		trigger = { 
			OR = {
                tag = ERE
                is_in_faction_with = ERE
                is_subject_of = ERE
			}
		 }
	}
}

### The Fall of Guangzhou
news_event = {
	id = cf.5
	title = cf.5.t
	desc = cf.5.d
	picture = GFX_news_event_fall_of_guangzhou
	
	major = yes
	
	trigger = {
		592 = { is_controlled_by = MIG }
		592 = { is_owned_by = CRP }
		MIG = { has_war_with = CRP }
		NOT = { has_global_flag = fall_of_guangzhou }
	}
	
	immediate = {
		set_global_flag = fall_of_guangzhou
	}
	
	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = cf.5.a
		trigger = {
			NOT = {
				TAG = CRP
				TAG = MIG
			}
		}
	}
	option = {
		name = cf.5.b
		trigger = { TAG = MIG }
	}
	option = {
		name = cf.5.c
		trigger = { TAG = CRP }
	}
}

### The Fall of Constantinople (West Rome)
news_event = {
	id = cf.6
	title = cf.6.t
	desc = cf.6.d
	picture = GFX_news_event_fall_of_constantinople
	
	major = yes
	
	trigger = {
		797 = { is_controlled_by = WRE }
		797 = { is_owned_by = ERE }
		WRE = { has_war_with = ERE }
		NOT = { has_global_flag = fall_of_constantinople3 }
	}
	
	immediate = {
		set_global_flag = fall_of_constantinople3
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = cf.6.a
		trigger = {
            NOT = {
                tag = WRE
                is_in_faction_with = WRE
                is_subject_of = WRE
            }
            NOT = {
                tag = ERE
                is_in_faction_with = ERE
                is_subject_of = ERE
            }
		}
	}
	option = {
		name = cf.6.b
		trigger = { 
            OR = {
                tag = WRE
                is_in_faction_with = WRE
                is_subject_of = WRE
            }
		 }
	}
	option = {
		name = cf.6.c
		trigger = { 
            OR = {
                tag = ERE
                is_in_faction_with = ERE
                is_subject_of = ERE
            }
		 }
	}
}