###########################
# Chinese events (Covid)
###########################

add_namespace = covid
news_event = {
	id = covid.001
	title = covid.001.t
	desc = covid.001.d
	major = yes
	minor_flavor = yes
	picture = GFX_news_event_bose
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						has_idea = GEN_vaccine_found
						has_idea = GEN_covid
						has_country_flag = GEN_banned_entry
						has_country_flag = GEN_already_covided
					}	
				}
				set_country_flag = GEN_already_covided
				add_timed_idea = {
					idea = GEN_covid
					days = 365
				}
			}
			random_neighbor_country = {
				limit = {
					NOT = {
						has_country_flag = GEN_banned_entry
						has_idea = GEN_vaccine_found
						has_idea = GEN_covid
						has_country_flag = GEN_already_covided
					}
				}
				#set_country_flag = GEN_already_covided
				country_event = {
					id = covid.001
					days = 7
				}
			}
			if = {
				limit = {
					all_neighbor_country = {
						OR = {
							has_country_flag = GEN_banned_entry
							has_idea = GEN_vaccine_found
							has_idea = GEN_covid
							has_country_flag = GEN_already_covided
						}	
					}
				}
				random_country = {
					limit = {
						NOT = {
							has_country_flag = GEN_banned_entry
							has_idea = GEN_vaccine_found
							has_idea = GEN_covid
							has_country_flag = GEN_already_covided
						}
					}
					#set_country_flag = GEN_already_covided
					country_event = {
						id = covid.001
						days = 5
						random_days = 10
					}
				}
			}
		}
	}
	option = {
		name = covid.001.a
	}
}


###########################
# Chinese events (Mingsplosion)
###########################

add_namespace = cr_hk
country_event = {
	id = cr_hk.001
	title = cr_hk.001.t
	desc = cr_hk.001.d
	major = no
	picture = GFX_news_event_hitler_handshake
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			#set_country_flag = italy_responded
			country_event = {
				id = cr_hk.001
				days = 30
				random_days = 20
			}
			CRI = {
				add_to_variable = {
					var = chinese_hong_kong_influence
					value = 5
				}
			}
		}
	}
	option = {
		name = cr_hk.001.a
	}
}
news_event = {
	id = cr_hk.002
	title = cr_hk.002.t
	desc = cr_hk.002.d
	major = yes
	picture = GFX_news_event_generic_strike
	is_triggered_only = yes
	immediate = {
		hidden_effect = { 
			NIR = {
				add_opinion_modifier = {
					target = CRI
					modifier = hostile_status #You're not helping!!!
				}
			}
		}
	}
	option = {
		name = cr_hk.002.a
	}
}
news_event = {
	id = cr_hk.003
	title = cr_hk.003.t
	desc = cr_hk.003.d
	major = yes
	picture = GFX_news_event_ITA_grand_council
	is_triggered_only = yes
	option = {
		name = cr_hk.003.a
	}
}

add_namespace = cr_mc
country_event = {
	id = cr_mc.001
	title = cr_mc.001.t
	desc = cr_mc.001.d
	major = no
	picture = GFX_news_event_hitler_handshake
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			#set_country_flag = italy_responded
			country_event = {
				id = cr_mc.001
				days = 30
				random_days = 20
			}
			CRI = {
				add_to_variable = {
					var = chinese_macau_influence
					value = 5
				}
			}
		}
	}
	option = {
		name = cr_mc.001.a
	}
}
news_event = {
	id = cr_mc.002
	title = cr_mc.002.t
	desc = cr_mc.002.d
	major = yes
	picture = GFX_news_event_generic_strike
	is_triggered_only = yes
	immediate = {
		hidden_effect = { 
			AOI = {
				add_opinion_modifier = {
					target = CRI
					modifier = hostile_status #You're not helping!!!
				}
			}
		}
	}
	option = {
		name = cr_mc.002.a
	}
}
news_event = {
	id = cr_mc.003
	title = cr_mc.003.t
	desc = cr_mc.003.d
	major = yes
	picture = GFX_news_event_ITA_grand_council
	is_triggered_only = yes
	option = {
		name = cr_mc.003.a
	}
}

add_namespace = cr_qd
country_event = {
	id = cr_qd.001
	title = cr_qd.001.t
	desc = cr_qd.001.d
	major = no
	picture = GFX_news_event_hitler_handshake
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			#set_country_flag = italy_responded
			country_event = {
				id = cr_qd.001
				days = 30
				random_days = 20
			}
			CRI = {
				add_to_variable = {
					var = chinese_qingdao_influence
					value = 5
				}
			}
		}
	}
	option = {
		name = cr_qd.001.a
	}
}
news_event = {
	id = cr_qd.002
	title = cr_qd.002.t
	desc = cr_qd.002.d
	major = yes
	picture = GFX_news_event_generic_strike
	is_triggered_only = yes
	immediate = {
		#hidden_effect = { 
#			AOI = {
#				add_opinion_modifier = {
#					target = CRI
#					modifier = hostile_status #no need for hostilities xiongdi :D
#				}
#			}
#		}
	}
	option = {
		name = cr_qd.002.a
	}
}
news_event = {
	id = cr_qd.003
	title = cr_qd.003.t
	desc = cr_qd.003.d
	major = yes
	picture = GFX_news_event_ITA_grand_council
	is_triggered_only = yes
	option = {
		name = cr_qd.003.a
	}
}

add_namespace = cr_dr
country_event = {
	id = cr_dr.001
	title = cr_dr.001.t
	desc = cr_dr.001.d
	major = no
	picture = GFX_news_event_hitler_handshake
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			#set_country_flag = italy_responded
			country_event = {
				id = cr_dr.001
				days = 30
				random_days = 20
			}
			CRI = {
				add_to_variable = {
					var = chinese_dalian_influence
					value = 5
				}
			}
		}
	}
	option = {
		name = cr_dr.001.a
	}
}
news_event = {
	id = cr_dr.002
	title = cr_dr.002.t
	desc = cr_dr.002.d
	major = yes
	picture = GFX_news_event_generic_strike
	is_triggered_only = yes
	immediate = {
		#hidden_effect = { 
#			AOI = {
#				add_opinion_modifier = {
#					target = CRI
#					modifier = hostile_status #no need for hostilities xiongdi :D
#				}
#			}
#		}
	}
	option = {
		name = cr_dr.002.a
	}
}
news_event = {
	id = cr_dr.003
	title = cr_dr.003.t
	desc = cr_dr.003.d
	major = yes
	picture = GFX_news_event_ITA_grand_council
	is_triggered_only = yes
	option = {
		name = cr_dr.003.a
	}
}
add_namespace = cr_zj
country_event = {
	id = cr_zj.001
	title = cr_zj.001.t
	desc = cr_zj.001.d
	major = no
	picture = GFX_news_event_hitler_handshake
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			#set_country_flag = italy_responded
			country_event = {
				id = cr_zj.001
				days = 30
				random_days = 20
			}
			CRI = {
				add_to_variable = {
					var = chinese_zhangjiang_influence
					value = 5
				}
			}
		}
	}
	option = {
		name = cr_zj.001.a
	}
}
news_event = {
	id = cr_zj.002
	title = cr_zj.002.t
	desc = cr_zj.002.d
	major = yes
	picture = GFX_news_event_generic_strike
	is_triggered_only = yes
	immediate = {
		#hidden_effect = { 
#			AOI = {
#				add_opinion_modifier = {
#					target = CRI
#					modifier = hostile_status #no need for hostilities xiongdi :D
#				}
#			}
#		}
	}
	option = {
		name = cr_zj.002.a
	}
}
news_event = {
	id = cr_zj.003
	title = cr_zj.003.t
	desc = cr_zj.003.d
	major = yes
	picture = GFX_news_event_ITA_grand_council
	is_triggered_only = yes
	option = {
		name = cr_zj.003.a
	}
}



#### STRAITS SETTLEMENTS

add_namespace = cranama
country_event = {
	id = cranama.001
	title = cranama.001.t
	desc = cranama.001.d
	major = no
	picture = GFX_news_event_hitler_handshake
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			#set_country_flag = italy_responded
			country_event = {
				id = cranama.001
				days = 30
				random_days = 20
			}
			CRI = {
				add_to_variable = {
					var = their_panama_influence
					value = 5
				}
			}
		}
	}
	option = {
		name = cranama.001.a
	}
}
news_event = {
	id = cranama.002
	title = cranama.002.t
	desc = cranama.002.d
	major = yes
	picture = GFX_news_event_generic_strike
	is_triggered_only = yes
	immediate = {
		hidden_effect = { 
			USA = {
				add_opinion_modifier = {
					target = CRI
					modifier = hostile_status #Meddled in the American affairs!
				}
			}
		}
	}
	option = {
		name = cranama.002.a
	}
}
news_event = {
	id = cranama.003
	title = cranama.003.t
	desc = cranama.003.d
	major = yes
	picture = GFX_news_event_074
	is_triggered_only = yes
	option = {
		name = cranama.003.a
	}
}

add_namespace = cregypt
country_event = {
	id = cregypt.001
	title = cregypt.001.t
	desc = cregypt.001.d
	major = no
	picture = GFX_news_event_hitler_handshake
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			#set_country_flag = italy_responded
			country_event = {
				id = cregypt.001
				days = 30
				random_days = 20
			}
			CRI = {
				add_to_variable = {
					var = their_suez_influence
					value = 5
				}
			}
		}
	}
	option = {
		name = cregypt.001.a
	}
}
news_event = {
	id = cregypt.002
	title = cregypt.002.t
	desc = cregypt.002.d
	major = yes
	picture = GFX_news_event_generic_strike
	is_triggered_only = yes
	immediate = {
		hidden_effect = { 
			EGY = {
				add_opinion_modifier = {
					target = CRI
					modifier = hostile_status #Meddled in the Egyptian politics!
				}
			}
		}
	}
	option = {
		name = cregypt.002.a
	}
}
news_event = {
	id = cregypt.003
	title = cregypt.003.t
	desc = cregypt.003.d
	major = yes
	picture = GFX_news_event_hol_polderen
	is_triggered_only = yes
	option = {
		name = cregypt.003.a
	}
}

add_namespace = cribraltar
country_event = {
	id = cribraltar.001
	title = cribraltar.001.t
	desc = cribraltar.001.d
	major = no
	picture = GFX_news_event_hitler_handshake
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			#set_country_flag = italy_responded
			country_event = {
				id = cribraltar.001
				days = 30
				random_days = 20
			}
			CRI = {
				add_to_variable = {
					var = their_gibraltar_influence
					value = 5
				}
			}
		}
	}
	option = {
		name = cribraltar.001.a
	}
}
news_event = {
	id = cribraltar.002
	title = cribraltar.002.t
	desc = cribraltar.002.d
	major = yes
	picture = GFX_news_event_052
	is_triggered_only = yes
	immediate = {
		hidden_effect = { 
			ENG = {
				add_opinion_modifier = {
					target = CRI
					modifier = hostile_status #Meddled in the British affairs!
				}
			}
		}
	}
	option = {
		name = cribraltar.002.a
	}
}
news_event = {
	id = cribraltar.003
	title = cribraltar.003.t
	desc = cribraltar.003.d
	major = yes
	picture = GFX_news_event_052
	is_triggered_only = yes
	option = {
		name = cribraltar.003.a
	}
}

add_namespace = cringapore
country_event = {
	id = cringapore.001
	title = cringapore.001.t
	desc = cringapore.001.d
	major = no
	picture = GFX_news_event_hitler_handshake
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			#set_country_flag = italy_responded
			country_event = {
				id = cringapore.001
				days = 30
				random_days = 20
			}
			CRI = {
				add_to_variable = {
					var = their_singapore_influence
					value = 5
				}
			}
		}
	}
	option = {
		name = cringapore.001.a
	}
}
news_event = {
	id = cringapore.002
	title = cringapore.002.t
	desc = cringapore.002.d
	major = yes
	picture = GFX_news_event_ast_transfer_singapore
	is_triggered_only = yes
	immediate = {
		hidden_effect = { 
			PRC = {
				add_opinion_modifier = {
					target = CRI
					modifier = hostile_status #Meddled in the Chinese trade flows!
				}
			}
		}
	}
	option = {
		name = cringapore.002.a
	}
}
news_event = {
	id = cringapore.003
	title = cringapore.003.t
	desc = cringapore.003.d
	major = yes
	picture = GFX_news_event_ast_transfer_singapore
	is_triggered_only = yes
	option = {
		name = cringapore.003.a
	}
}


add_namespace = crurkey
country_event = {
	id = crurkey.001
	title = crurkey.001.t
	desc = crurkey.001.d
	major = no
	picture = GFX_news_event_hitler_handshake
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			#set_country_flag = italy_responded
			country_event = {
				id = crurkey.001
				days = 30
				random_days = 20
			}
			CRI = {
				add_to_variable = {
					var = their_turkey_influence
					value = 5
				}
			}
		}
	}
	option = {
		name = crurkey.001.a
	}
}
news_event = {
	id = crurkey.002
	title = crurkey.002.t
	desc = crurkey.002.d
	major = yes
	picture = GFX_news_event_generic_strike
	is_triggered_only = yes
	immediate = {
		hidden_effect = { 
			TUR = {
				add_opinion_modifier = {
					target = CRI
					modifier = hostile_status #Lecherous traitors!
				}
			}
		}
	}
	option = {
		name = crurkey.002.a
	}
}
news_event = {
	id = crurkey.003
	title = crurkey.003.t
	desc = crurkey.003.d
	major = yes
	picture = GFX_news_event_spr_spanish_civil_war2
	is_triggered_only = yes
	option = {
		name = crurkey.003.a
	}
}

add_namespace = cribouti

news_event = {
	id = cribouti.003
	title = cribouti.003.t
	desc = cribouti.003.d
	major = yes
	picture = GFX_news_event_ITA_grand_council
	is_triggered_only = yes
	option = {
		name = cribouti.003.a
		CRI = {
			add_ideas = CRI_stamboli_idea
		}
	}
}

add_namespace = cranghai

news_event = {
	id = cranghai.003
	title = cranghai.003.t
	desc = cranghai.003.d
	major = yes
	picture = GFX_news_event_040
	is_triggered_only = yes
	option = {
		name = cranghai.003.a
	}
}