namespace = Plus

#reserved: Plus.3600 to Plus.3650

#############################################
# NESTORIAN EVENTS
# Adapted from Bad Copt, Good Copt by Rylock edited by Daniloy
#############################################

## ASSYRIAN CULTURE
# Nestorian Levant becomes Assyrian

character_event = {
	id = Plus.3600
	desc = EVTDESC_Plus_3600
	picture = GFX_evt_courtiers_talking
	border = GFX_event_normal_frame_religion

	culture = levantine_arabic
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no

	trigger = {
		OR = {
			independent = yes
			liege = {
				OR = {
						religion = nestorian
						religion = messalian
				}
				culture = levantine_arabic
			}
		}
		OR = {
			religion = nestorian
			religion = messalian
		}
		is_nomadic = no
		mercenary = no
		NOT = { has_character_flag = no_melting_pot }
	}

	mean_time_to_happen = {
		months = 150
		modifier = {
			factor = 0.5
			liege = { culture = assyrian }
		}
		modifier = {
			factor = 0.5
			location = { culture = assyrian }
		}
		modifier = {
			factor = 2
			location = { NOT = { region = world_middle_east } }
		}
	}

	option = {
		name = EVTOPTA_Plus_3600
		culture = assyrian
		if = {
			limit = { is_ruler = no }
			any_spouse = {
				limit = {
					is_adult = no
					is_ruler = no
					religion = ROOT
					culture = levantine_arabic
				}
				culture = assyrian
			}
			any_child = {
				limit = {
					is_adult = no
					is_ruler = no
					religion = ROOT
					culture = levantine_arabic
				}
				culture = assyrian
			}
			set_character_flag = converted_culture
		}
		if = {
			limit = { is_ruler = yes }
			hidden_tooltip = {
				any_courtier = {
					limit = {
						is_ruler = no
						religion = ROOT
						culture = levantine_arabic
						dynasty = ROOT
					}
					culture = assyrian
				}
			}
			set_character_flag = converted_culture
		}
	}
	option = {
		name = EVTOPTB_Plus_3600
		trigger = { ai = no }
		set_character_flag = no_melting_pot
	}
}

# Nestorian Levant province becomes Assyrian
province_event = {
	id = Plus.3601
	desc = EVTDESC_Plus_3601
	picture = GFX_evt_courtiers_talking
	border = GFX_event_normal_frame_religion
	
	trigger = {
		culture = levantine_arabic
		OR = {
			religion = nestorian
			religion = messalian
		}
		OR = {
			region = world_middle_east
			any_neighbor_province = { culture = assyrian }
		}
		owner = {
			OR = {
				religion = nestorian
				religion = messalian
			}
			OR = {
				culture = assyrian
				culture = levantine_arabic
			}
			NOT = { has_character_flag = no_melting_pot }
		}
		owner = {
			OR = {
				independent = yes
				top_liege = {
					OR = {
						religion = nestorian
						religion = messalian
					}
					OR = {
						culture = assyrian
						culture = levantine_arabic
					}
					NOT = { has_character_flag = no_melting_pot }
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 600
		modifier = {
			factor = 0.5
			any_neighbor_province = { culture = assyrian }
		}
		modifier = {
			factor = 0.5
			owner = { culture = assyrian }
		}
	}

	option = {
		name = OK
		culture = assyrian
		add_province_modifier = {
			name = recent_culture_change
			duration = -1
		}
	}
}

# Assyrian character stops being Nestorian

character_event = {
	id = Plus.3602
	desc = EVTDESC_Plus_3602
	picture = GFX_evt_courtiers_talking
	border = GFX_event_normal_frame_religion

	culture = assyrian
	min_age = 16
	capable_only = yes
	prisoner = no

	trigger = {
		NOT = { religion = nestorian }
		NOT = { religion = messalian }
		OR = {
			independent = yes
			liege = {
				NOR = {
					religion = nestorian
					religion = messalian
				}
				NOT = { culture = assyrian }
			}
		}
		is_nomadic = no
		mercenary = no
		NOT = { has_character_flag = no_melting_pot }
	}

	mean_time_to_happen = {
		months = 150
		modifier = {
			factor = 2
			liege = { culture = assyrian }
		}
		modifier = {
			factor = 2
			location = { culture = assyrian }
		}
		modifier = {
			factor = 0.5
			liege = { NOT = { culture = assyrian } }
		}
		modifier = {
			factor = 0.5
			location = { NOT = { culture = assyrian } }
		}
		modifier = {
			factor = 0.5
			location = { NOT = { region = world_middle_east } }
		}
	}
	option = {
		name = EVTOPTA_Plus_3602
		culture = levantine_arabic
		if = {
			limit = { is_ruler = no }
			any_spouse = {
				limit = {
					is_adult = no
					is_ruler = no
					religion = ROOT
					culture = assyrian
				}
				culture = levantine_arabic
			}
			any_child = {
				limit = {
					is_adult = no
					is_ruler = no
					religion = ROOT
					culture = assyrian
				}
				culture = levantine_arabic
			}
			set_character_flag = converted_culture
		}
		if = {
			limit = { is_ruler = yes }
			hidden_tooltip = {
				any_courtier = {
					limit = {
						is_ruler = no
						religion = ROOT
						culture = assyrian
						dynasty = ROOT
					}
					culture = levantine_arabic
				}
			}
			set_character_flag = converted_culture
		}
	}
	option = {
		name = EVTOPTB_Plus_3602
		trigger = { ai = no }
		set_character_flag = no_melting_pot
	}
}

# Assyrian province stops being Nestorian

province_event = {
	id = Plus.3603
	desc = EVTDESC_Plus_3603
	picture = GFX_evt_courtiers_talking
	border = GFX_event_normal_frame_religion

	trigger = {
		culture = assyrian
		NOT = { religion = nestorian }
		NOT = { religion = messalian }
		any_neighbor_province = { NOT = { culture = assyrian } }
		owner = {
			NOR = {
				religion = nestorian
				religion = messalian
			}
			NOT = { culture = assyrian }
			NOT = { has_character_flag = no_melting_pot }
			OR = {
				independent = yes
				top_liege = {
					NOR = {
						religion = nestorian
						religion = messalian
					}
					NOT = { culture = assyrian }
					NOT = { has_character_flag = no_melting_pot }
				}
			}
		}
	}
	mean_time_to_happen = {
		months = 450
		modifier = {
			factor = 0.5
			NOT = { any_neighbor_province = { culture = assyrian } }
		}
	}

	option = {
		name = OK
		culture = levantine_arabic
		add_province_modifier = {
			name = recent_culture_change
			duration = -1
		}
	}
}

