country_event = {
    id = 975000
    title = "EVTNAME975000" #Sovereign Authority in the Holy Land
    desc = "EVTDESC975000"
    picture = "frenchonc"

    trigger = { 
	tag = FRA
	year = 1853
	TUR = { is_greater_power = no }
	has_country_flag = coup_d'etat }

	fire_only_once = yes 
	mean_time_to_happen = { days = 30 }
	
    option = {
        name = "We demand our right to be the true protectors!"
        prestige = 10
        TUR = { country_event = 97500 }
    }
}
	country_event = {
    id = 97500
    title = "EVTNAME97500" #Sovereign Authority in the Holy Land
    desc = "EVTDESC97500"
    picture = "frenchonc"

    is_triggered_only = yes

    option = {
        name = "EVT97500OPTA"
        prestige = 10
        RUS = {
            prestige = 10
            relation = { who = FRA value = -50 }
        }
        FRA = { country_event = { id = 97501 days = 10 } }
        ai_chance = {
            factor = 80
            modifier = {
                factor = 0
                in_sphere = FRA
            }
            modifier = {
                factor = 0.5
                truce_with = RUS
            }
            modifier = {
                factor = 0.5
                is_secondary_power = no
            }
        }
    }

    option = {
        name = "EVT97500OPTB"
        set_global_flag = france_protector_of_eastern_christians
        prestige = -10
        FRA = { country_event = { id = 97504 days = 10 } } 
        RUS = { country_event = 97503 }
        create_alliance = ENG 
		create_alliance = FRA
        ai_chance = {
            factor = 20
            modifier = {
                factor = 0
                in_sphere = RUS
            }
            modifier = {
                factor = 0.5
                part_of_sphere = yes
                NOT = { in_sphere = RUS }
                NOT = { in_sphere = FRA }
            }
            modifier = {
                factor = 2
                is_secondary_power = no
            }
        }
    }
}

country_event = {
    id = 97501
    title = "EVTNAME97501" #Turks Refuse Our Claim
    desc = "EVTDESC97501"
    picture = "ottoman"

    is_triggered_only = yes

    option = {
        name = "EVT97501OPTA"
        TUR = { country_event = { id = 97502 days = 10 } }
        relation = { who = RUS value = -100 }
        leave_alliance = RUS
        ai_chance = {
            factor = 95
        }
    }

    option = {
        name = "EVT97501OPTB"
        prestige = -50
        relation = { who = TUR value = -50 }
        ai_chance = {
            factor = 5
        }
    }
}

country_event = {
    id = 97502
    title = "EVTNAME97502" #French Escalation
    desc = "EVTDESC97502"
    picture = "crimean_war_ships"

    is_triggered_only = yes

    option = {
        name = "EVT97502OPTA"
        set_global_flag = france_protector_of_eastern_christians
        prestige = -20
        create_alliance = FRA
        FRA = { country_event = { id = 97504 days = 10 } }
        RUS = { country_event = 97503 }
        create_alliance = ENG 
		create_alliance = FRA
        ai_chance = {
            factor = 90
            modifier = {
                factor = 0.5
                in_sphere = RUS
            }
        }
    }

    option = {
        name = "EVT97502OPTB"
        set_country_flag = refused_french_claim
        prestige = 5
        relation = { who = RUS value = 50 }
        FRA = {
            diplomatic_influence = { who = TUR value = -100 }
            relation = { who = TUR value = -200 }
            leave_alliance = TUR
            casus_belli = {
                target = TUR
                type = cut_down_to_size
                months = 24
            }
			war = {
                target = TUR
			attacker_goal = {
				casus_belli = cut_down_to_size
			} 
            }
        }
        ai_chance = {
            factor = 10
            modifier = {
                factor = 5
                in_sphere = RUS
            }
            modifier = {
                factor = 0
                part_of_sphere = no
            }
            modifier = {
                factor = 0.5
                is_secondary_power = no
            }
        }
    }
}

country_event = {
    id = 97503
    title = "EVTNAME97500" #Russian Response
    desc = "EVTDESC97503"
    news = yes
    news_desc_long = "EVTDESC97503_NEWS_LONG"
    news_desc_medium = "EVTDESC97503_NEWS_MEDIUM"
    news_desc_short = "EVTDESC97503_NEWS_SHORT"
    picture = "russian_claims_on_holy_land"

    is_triggered_only = yes

    option = {
        name = "EVT97503OPTA"
        diplomatic_influence = { who = TUR value = -400 }
        relation = { who = TUR value = -400 }
    }
}

country_event = {
    id = 97504
    title = "EVTNAME97504" #Ottomans Have Agreed
    desc = "EVTDESC97504"
    picture = "ottoman"

    is_triggered_only = yes

    option = {
        name = "EVT97504OPTA"
        prestige = 20
        random_country = {
            limit = {
                is_sphere_leader_of = TUR
                NOT = { tag = FRA }
                NOT = { tag = RUS }
            }
            diplomatic_influence = { who = TUR value = -100 }
            relation = { who = FRA value = -25 }
        }
        diplomatic_influence = { who = TUR value = 100 }
        relation = { who = TUR value = 300 }
        create_alliance = TUR
		add_country_modifier = {
				name = protector_of_eastern_christendom
				duration = -1
		ENG = { 
        create_alliance = TUR }
		RUS = { country_event = 97506 } }
    }
}

country_event = {
    id = 97505
    title = "EVTNAME97505" #French Authority in the Holy Land
    desc = "EVTDESC97505"
    picture = "french_on_crimean_war"

    trigger = {
        tag = TUR
        has_country_flag = refused_french_claim
        NOT = { has_global_flag = france_protector_of_eastern_christians }
        war = no
        owns = 917
        OR = {
            AND = {
                in_sphere = FRA
                ai = yes
            }
            AND = {
                truce_with = FRA
                is_disarmed = yes
            }
        }
    }

    mean_time_to_happen = {
        days = 10
    }

    immediate = {
        clr_country_flag = refused_french_claim
    }

    option = {
        name = "EVT97505OPTA"
        set_global_flag = france_protector_of_eastern_christians
        prestige = -10
        FRA = { country_event = 97504 }
        RUS = { country_event = 97503 }
        create_alliance = ENG 
		create_alliance = FRA
    }
}
country_event = {
    id = 97506
    title = "EVTNAME97506" #Russian declaration of war
    desc = "EVTDESC97506"
    picture = "crimean_war_ships"

    is_triggered_only = yes

    option = {
        name = "EVT97506OPTA"
        relation = { who = TUR value = -400 }
        prestige = -50
        
    }

    option = {
        name = "EVT97506OPTB"
        set_country_flag = crimean_war
        prestige = 5
        relation = { who = RUS value = 50 }
            casus_belli = {
                target = TUR
                type = crimean_war_russia
                months = 24
            }
        FRA = {
            casus_belli = {
                target = RUS
                type = crimean_war_france
                months = 24
            } }
			war = {
                target = TUR
			attacker_goal = {
				casus_belli = crimean_war_russia
			} 
			
			defender_goal = {
				casus_belli = crimean_war_france
			} 
        }
        ai_chance = {
            factor = 100
        }
    }
}

#Russia wins#
country_event = {
	id = 9750700
	title = "Russia decides our fate."
	desc = "Now that we have been defeated by our greatest enemy, we have to accept the concessions they decide for us."
	picture = "constantinople_conference"
	
	is_triggered_only = yes
	
	option = {
		name = "Now they will choose."
		RUS = { country_event = 975070 }
	}
}

#Russia wins#
country_event = {
	id = 975070
	title = "Russia decides the Ottoman fate."
	desc = "With all the Great Powers finally accepting our dominace over Eastern Europe, we have to decide by ourselves the fate of the Ottoman Empire."
	picture = "constantinople_conference"
	
	is_triggered_only = yes
	
	option = {
		name = "Treaty of San Stefano borders."
		TUR = { country_event = 975072 }
		set_country_flag = no_constantinople
	}
	option = {
		name = "Turn them into ashes."
		TUR = { country_event = 97507 }
		set_country_flag = no_constantinople
	}
	option = {
		name = "Be mild."
		TUR = { country_event = 975073 }
		set_country_flag = no_constantinople
	}
}

country_event = {
	id = 97507
	title = "EVTNAME97507"
	desc = "EVTDESC97507"
	picture = "constantinople_conference"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA100008"
		RUS = { set_country_flag = treaty_of_paris_russia }
		release_vassal = ROM
		any_owned = {
			limit = {
					owned_by = TUR }
			BUL = { all_core = { secede_province = BUL
						remove_core = TUR } }
			859 = { secede_province = RUS  }
			1096 = { secede_province = CAU  }
			865 = { secede_province = RUS  }
			863 = { secede_province = RUS  }
			862 = { secede_province = RUS  }
			858 = { secede_province = BUL  }
			828 = { secede_province = BUL }
			807 = { secede_province = BUL  }
			806 = { secede_province = BUL  }
			675 = { secede_province = BUL  }
			805 = { secede_province = BUL  }
		2655 = {
			secede_province = BUL
		}
			799 = { secede_province = BUL  }
			806 = { secede_province = BUL  }
			802 = { secede_province = SER  }
			BOS = { all_core = { secede_province = BOS
						remove_core = TUR } }
			KUR = { all_core = { secede_province = KUR
						remove_core = TUR } }
			ARM = { all_core = { secede_province = ARM
						remove_core = TUR } }
			917 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			918 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			916 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			919 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			920 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			921 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			909 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			908 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			915 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			911 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			910 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			922 = { secede_province = JER
						remove_core = TUR
						add_core = JER }
			BUL = { capital = 809 }
			
			MON = { all_core = { secede_province = MON
						remove_core = TUR } }
			ALB = { all_core = { secede_province = ALB
						remove_core = TUR } }
			ALB = { capital = 849 }
			SER = { all_core = { secede_province = SER
						remove_core = TUR } }
			GRE = { all_core = { secede_province = GRE
						remove_core = TUR } } }
			MOL = { all_core = { remove_core = RUS } }
			RUS = { create_vassal = BUL
			create_vassal = ROM 
			create_vassal = JER }
			860 = { secede_province = RUS  }
			861 = { secede_province = RUS  }
			BUL = { set_country_flag = search_for_independence }
			
		AUS = {
		diplomatic_influence = {
			who = BOS
			value = 400
				}
			}
		KUK = {
		diplomatic_influence = {
			who = BOS
			value = 400 }
				}
			RUS = { add_country_modifier = {
				name = protector_of_eastern_christendom
				duration = -1
			}
			FRA = { remove_country_modifier = protector_of_eastern_christendom } }
		ai_chance = {
			factor = 100 } 
	}
}


country_event = {
	id = 975072
	title = "EVTNAME97507"
	desc = "EVTDESC97507"
	picture = "constantinople_conference"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA100008"
		release_vassal = MOL
		release_vassal = WAL
		release_vassal = ROM
		any_owned = {
			limit = {
					owned_by = TUR }
		TUR_810 = {
			secede_province = BUL
		}
		798 = {
			secede_province = SER
		}
		818 = {
			secede_province = BUL
		}
		799 = {
			secede_province = BUL
		}
		2655 = {
			secede_province = BUL
		}
		823 = {
			secede_province = BUL
		}
		819 = {
			secede_province = BUL
		}
		674 = {
			secede_province = BUL
		}
		675 = {
			secede_province = BUL
		}
		674 = {
			secede_province = ROM
		}
		675 = {
			secede_province = ROM
		}
		800 = {
			secede_province = MON
		}
		804 = {
			secede_province = BOS
		}
		806 = {
			secede_province = BUL
		}
		805 = {
			secede_province = BUL
		}
		807 = {
			secede_province = BUL
		}
		2577 = {
			secede_province = BOS
		}
		885 = {
			secede_province = RUS
		}
			799 = { secede_province = BUL  }
			806 = { secede_province = BUL  }
			807 = { secede_province = BUL  }
			808 = { secede_province = BUL  }
			2590 = { secede_province = BUL  }
			2675 = { secede_province = BUL  }
			816 = { secede_province = BUL  }
			817 = { secede_province = BUL  }
		886 = {
			secede_province = RUS
		}
		1096 = {
			secede_province = RUS
		}
		2569 = {
			secede_province = MON
		}
		TUR_832 = {
			secede_province = GRE
		}
		TUR_788 = {
			secede_province = BOS
		}
						ROM = { country_event = 100010 }
		CYP = { all_core = { secede_province = CYP
					remove_core = TUR } }
		TUR_674 = { remove_core = TUR } # Dobrudja
        	TUR_788 = { remove_core = TUR } # Bosnia
        	TUR_810 = { remove_core = TUR } # Bulgaria
        	TUR_803 = { remove_core = TUR } # S.Serbia
        	MON_2582 = { remove_core = TUR } # Montenegro
        	TUR_853 = { remove_core = TUR } # Albania
        	TUR_832 = { remove_core = TUR } # Thessalia
        	847 = { remove_core = TUR } #Chania
        	848 = { remove_core = TUR } #Iraklion
        	1096 = { remove_core = TUR } } #Iraklion
		RUS = { create_vassal = BUL }
		AUS = {
		diplomatic_influence = {
			who = BOS
			value = 400
				}
			}
		KUK = {
		diplomatic_influence = {
			who = BOS
			value = 400
				}
			}

			FRA = { remove_country_modifier = protector_of_eastern_christendom }
		ai_chance = {
			factor = 100 } }
}

country_event = {
	id = 975073
	title = "EVTNAME97507"
	desc = "EVTDESC97507"
	picture = "constantinople_conference"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA100008"
		release_vassal = MOL
		release_vassal = WAL
		release_vassal = ROM
		any_owned = {
			limit = {
					owned_by = TUR }
		any_owned = {
			limit = {
					owned_by = TUR }
		TUR_810 = {
			secede_province = BUL
		}
		798 = {
			secede_province = SER
		}
		818 = {
			secede_province = BUL
		}
		799 = {
			secede_province = SER
		}
		794 = {
			secede_province = SER
		}
		795 = {
			secede_province = SER
		}
		796 = {
			secede_province = SER
		}
		797 = {
			secede_province = SER
		}
		674 = {
			secede_province = ROM
		}
		675 = {
			secede_province = ROM
		}
		800 = {
			secede_province = MON
		}
		2583 = {
			secede_province = MON
		}
		TUR_788 = {
			secede_province = BOS
		}
		804 = {
			secede_province = BOS
		}
		2577 = {
			secede_province = BOS
		}
		885 = {
			secede_province = RUS
		}
		886 = {
			secede_province = RUS
		}
		1096 = {
			secede_province = RUS
		}
		2569 = {
			secede_province = MON
		}
		2655 = {
			secede_province = BUL
		}
		831 = {
			secede_province = GRE
		}
		832 = {
			secede_province = GRE
		}
		833 = {
			secede_province = GRE
		}
		839 = {
			secede_province = GRE
		}
		840 = {
			secede_province = GRE
		}
		841 = {
			secede_province = GRE
		}
		842 = {
			secede_province = GRE
		}
		834 = {
			secede_province = GRE
		}
		825 = {
			secede_province = GRE
		}
						ROM = { country_event = 100010 }
		CYP = { all_core = { secede_province = FROM
					remove_core = TUR } }
		TUR_674 = { remove_core = TUR } # Dobrudja
        	TUR_788 = { remove_core = TUR } # Bosnia
        	TUR_810 = { remove_core = TUR } # Bulgaria
        	TUR_803 = { remove_core = TUR } # S.Serbia
        	MON_2582 = { remove_core = TUR } # Montenegro
        	TUR_853 = { remove_core = TUR } # Albania
        	TUR_832 = { remove_core = TUR } # Thessalia
        	847 = { remove_core = TUR } #Chania
        	848 = { remove_core = TUR } #Iraklion
        	1096 = { remove_core = TUR } } #Iraklion
		create_vassal = BUL
		AUS = {
		diplomatic_influence = {
			who = BOS
			value = 400
				}
			}
		KUK = {
		diplomatic_influence = {
			who = BOS
			value = 400
				}
			}

		ai_chance = {
			factor = 40 }
	}
}

#france wins#
country_event = {
	id = 97508
	title = "EVTNAME97508"
	desc = "EVTDESC97508"
	picture = "constantinople_conference"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA97508"
		FRA = { set_country_flag = treaty_of_paris }
		prestige = -100
		diplomatic_influence = {
			who = ROM
			value = -400 }
		
		AUS = { diplomatic_influence = {
			who = ROM
			value = 300 } }
			
		TUR = { diplomatic_influence = {
			who = ROM
			value = -400 }		}
			
		diplomatic_influence = {
			who = SER
			value = -400 }
		676 = { secede_province = ROM }
		2701 = { secede_province = ROM }
			add_country_modifier = {
				name = political_instability
				duration = 1400
		}
	}
}