add_namespace = boris

###bul_hun 1-6
#bul_hun decision event
country_event = {
	id = boris.1
	title = boris.1.t
	desc = boris.1.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = { # intive to alliance
		name = boris.1.a
		ai_chance = {
			base = 40
		}
		
		BUL = { country_event = { hours = 2 id = boris.2 } }
	}
	
	option = { # ignore hungary
		name = boris.1.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		
		HUN = { set_country_flag = ignores_bulgaria }
	}
	
	option = { # antagonize hungary
		name = boris.1.c
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		
		HUN = {
			clr_country_flag = ignores_bulgaria
			set_country_flag = opposes_bulgaria
		}
		custom_effect_tooltip = bul_hun_opposes
	}
	
	option = { # use secret power
		name = boris.1.e
		trigger = {
			has_completed_focus = bul_will_projection
		}
		ai_chance = {
			base = 50	
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		
		BUL = { country_event = { id = boris.5 } }
	}
}

#BUL prepares alliance offer
country_event = {
	id = boris.2
	title = boris.2.t
	desc = boris.2.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = { #nothing
		name = boris.2.a
		
		HUN = { country_event = { hours = 2 id = boris.3 } }
	}
	
	option = { #northern transyl + voevodina
		name = boris.2.b
		
		BUL = { set_country_flag = promised_minor_concessions_hun }
		HUN = { country_event = { hours = 2 id = boris.3 } }
	}
	
	option = { #great hungary
		name = boris.2.c
		
		BUL = { set_country_flag = promised_major_concessions_hun }
		HUN = { country_event = { hours = 2 id = boris.3 } }
	}

}

#HUN recives offer from BUL
country_event = {
	id = boris.3
	title = boris.3.t
	desc = {
		name = boris.3.d
		trigger = {
			NOT = {
				has_country_flag = promised_minor_concessions_hun
				has_country_flag = promised_major_concessions_hun
			} 
		}
	}
	desc = {
		name = boris.3.d2
		trigger = { has_country_flag = promised_minor_concessions_hun }
	}
	desc = {
		name = boris.3.d3
		trigger = { has_country_flag = promised_major_concessions_hun  }
	}
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = { # accept alliance
		name = boris.3.a
		ai_chance = {
			base = 70
		}
		HUN = {
			clr_country_flag = ignores_bulgaria
			set_country_flag = supports_bulgaria
		}
		BUL = { 
			country_event = { hours = 2 id = boris.4 }
			add_to_variable = { diplomatic_success_times = 1 }
		}
	}
	
	option = { # reject alliance
		name = boris.3.b
		ai_chance = {
			base = 15
		}
		BUL = {
			country_event = { hours = 2 id = boris.4 }
			add_to_variable = { diplomatic_failure_times = 1 }
		}
	}
	
	option = { # oppose bulgaria
		name = boris.3.c
		ai_chance = {
			base = 15
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		HUN = {
			clr_country_flag = ignores_bulgaria
			set_country_flag = opposes_bulgaria
		}
		BUL = {
			country_event = { hours = 2 id = boris.4 }
			add_to_variable = { diplomatic_failure_times = 1 }
		}
	}

}

#BUL recives answer from HUN
country_event = {
	id = boris.4
	title = boris.4.t
	desc = {
		text = boris.4.d
		trigger = {
			HUN = {
				has_country_flag = supports_bulgaria
				NOT = { has_country_flag = subjugated_by_secret_energy }
			}
		}
	}
	desc = {
		text = boris.4.d2
		trigger = { HUN = { has_country_flag = ignores_bulgaria } }
	}
	desc = {
		text = boris.4.d3
		trigger = { HUN = { has_country_flag = opposes_bulgaria } }
	}
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = boris.4.a
		trigger = { HUN = { has_country_flag = supports_bulgaria } }
	}
	option = {
		name = boris.4.b
		trigger = {  HUN = { has_country_flag = ignores_bulgaria } }
	}
	option = {
		name = boris.4.c
		trigger = {  HUN = { has_country_flag = ignores_bulgaria } }
		clr_country_flag = ignores_bulgaria
		set_country_flag = opposes_bulgaria
		custom_effect_tooltip = bul_hun_opposes
	}
	option = {
		name = boris.4.e
		trigger = { HUN = { has_country_flag = opposes_bulgaria } }
	}
	option = {
		name = boris.4.f
		trigger = { HUN = { has_country_flag = subjugated_by_secret_energy } }
	}
}

#bul secret power decision
country_event = {
	id = boris.5
	title = boris.5.t
	desc = boris.5.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	immediate = {
		BUL = {
			add_to_variable = { used_secret_energy_times = 1 }
		}
	}
	
	option = { #force ally
		name = boris.5.a
		
		HUN = {
			clr_country_flag = ignores_bulgaria
			set_country_flag = supports_bulgaria
		}
		BUL = {
			country_event = { hours = 2 id = boris.3 }
		}
	}
	
	option = { #force puppet
		name = boris.5.b
		
		add_threat = 5
		HUN = { set_country_flag = subjugated_by_secret_energy }
		BUL = {
			country_event = { hours = 2 id = boris.6 }
			puppet = {
				target = HUN
				end_civil_wars = no
				end_wars = no
			}
		}
	}
	
	option = { #force enemy
		name = boris.5.c
		
		HUN = {
			clr_country_flag = ignores_bulgaria
			set_country_flag = opposes_bulgaria
		}
		BUL = {
			country_event = { hours = 2 id = boris.3 }
		}
		
	}
	
}

news_event = {
	id = boris.6
	title = boris.6.t
	desc = boris.6.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	major = yes
	is_triggered_only = yes
	
	option = {
		name = boris.6.a
		trigger = {	TAG = BUL}
	}
	
	option = {
		name = boris.6.b
		trigger = {	TAG = HUN}
	}
	
	option = {
		name = boris.6.c
		trigger = {	NOT = { TAG = HUN TAG = BUL} }
	}
	
}

#bul_alb 7-20
#BUL sends demands to ALB
country_event = {
	id = boris.7
	title = boris.7.t
	desc = boris.7.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = { #invite albania
		name = boris.7.a
		ALB = {
			country_event = { hours = 2 id = boris.8 }
		}
	}
	
	option = { #ask italy
		name = boris.7.b
		ITA = {
			country_event = { hours = 2 id = boris.13 }
		}
	}
	
	option = {# oppose albania
		name = boris.7.c
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		
		ALB = {
			clr_country_flag = ignores_bulgaria
			set_country_flag = opposes_bulgaria
		}
		custom_effect_tooltip = bul_alb_opposes
	}
	
	option = {# use secret power
		name = boris.7.e
		trigger = {
			has_completed_focus = bul_will_projection
		}
		
		BUL = { country_event = { id = boris.18} }
	}
}

#ALB recives suggestion from BUL
country_event = {
	id = boris.8
	title = boris.8.t
	desc = boris.8.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = { #accept invitation
		name = boris.8.a
		ALB = {
			clr_country_flag = ignores_bulgaria
			set_country_flag = supports_bulgaria
		}
		ITA = {
			country_event = { hours = 2 id = boris.9}
			diplomatic_relation = {
				country = ALB
				relation = guarantee
				active = no
			}
		}
		BUL = {
			diplomatic_relation = {
				country = ALB
				relation = guarantee
				active = yes
			}
			country_event = { hours = 2 id = boris.10}
		}
	}
	
	option = { #refuse invitation
		name = boris.8.b
		BUL = {
			country_event = { hours = 2 id = boris.11}
		}
	}
	
	option = { #oppose bulgaria
		name = boris.8.c
		ALB = {
			clr_country_flag = ignores_bulgaria
			set_country_flag = opposes_bulgaria
			}
		BUL = {
			country_event = { hours = 2 id = boris.12}
		}
	}
	
}

country_event = {
	id = boris.9
	title = boris.9.t
	desc = boris.9.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = boris.9.a
		ITA = {
			add_opinion_modifier = {
			target = ALB
			modifier = albanian_betrayal
			}
		}
	}
	
	option = {
		name = boris.9.b
	}
}

country_event = { #alb accepts alliance
	id = boris.10
	title = boris.10.t
	desc = boris.10.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = boris.10.a
	}
}

country_event = { #alb rejects alliance
	id = boris.11
	title = boris.11.t
	desc = boris.11.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = boris.11.a
		ALB = {
			clr_country_flag = ignores_bulgaria
			set_country_flag = opposes_bulgaria
		}
	}
	
	option = {
		name = boris.11.b
		custom_effect_tooltip = bul_alb_ignored
	}
	
	option = {
		name = boris.11.c
		ITA = { country_event = { id = boris.13 } }
	}
	
}

country_event = { #alb opposes alliance
	id = boris.12
	title = boris.12.t
	desc = boris.12.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = boris.12.a
	}
}



country_event = { #Ask italy
	id = boris.13
	title = boris.13.t
	desc = boris.13.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = { #italy accepts
		name = boris.13.a
		ai_chance = {
			base = 15
		}
		
		ALB = { set_country_flag = occupied_by_bulgaria }
		BUL = {
			puppet = {
				target = ALB
				end_civil_wars = no
				end_wars = no
			}
			country_event = { hours = 2 id = boris.14}
		}
		
	}
	
	option = {#italy offers deal
		name = boris.13.b
		ai_chance = {
			base = 70
		}
		BUL = {
			country_event = { hours = 2 id = boris.15}
		}
	}

	option = {#italy declines
		name = boris.13.c
		ai_chance = {
			base = 15
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		
		BUL = {
			country_event = { hours = 2 id = boris.16}
		}
	}
}

country_event = {
	id = boris.14
	title = boris.14.t
	desc = boris.14.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.14.a
	}
}

country_event = { #BUL gets deal from ITA
	id = boris.15
	title = boris.15.t
	desc = boris.15.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = { #BUL Accept deal
		name = boris.15.a
		ALB = { set_country_flag = occupied_by_bulgaria }
		ITA = {
			add_ideas =  { bul_bulgarian_deal }
			country_event = { hours = 2 id = boris.17}
		}
		BUL = {
			puppet = {
				target = ALB
				end_civil_wars = no
				end_wars = no
			}
		}
	}
	
	option = { #BUL decline deal
		name = boris.15.b
		ALB = { set_country_flag = ignores_bulgaria }
		ITA = {
			country_event = { hours = 2 id = boris.17}
		}
		custom_effect_tooltip = bul_alb_ignored
	}

	option = { #BUL prepares for war
		name = boris.15.c
		ALB = { set_country_flag = opposes_bulgaria }
		ITA = {
			country_event = { hours = 2 id = boris.17}
		}
		custom_effect_tooltip = bul_alb_opposes
	}
}

country_event = { #BUL gets rejected by ITA
	id = boris.16
	title = boris.16.t
	desc = boris.16.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.16.a
		ALB = { set_country_flag = ignores_bulgaria }
		custom_effect_tooltip = bul_alb_ignored
	}
	
	option = {
		name = boris.16.b
		ALB = { set_country_flag = opposes_bulgaria }
		custom_effect_tooltip = bul_alb_opposes
	}
}

country_event = { #ITA energy deal feedback
	id = boris.17
	title = boris.17.t
	desc = {
		text = boris.17.d
		trigger = { ITA = { has_idea = bul_bulgarian_deal } }
	}
	desc = {
		text = boris.17.d2
		trigger = { ITA = { NOT = { has_idea = bul_bulgarian_deal } } }	
	}
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {#Bulgaria has accepted deal
		name = boris.17.a
		trigger = { ITA = { has_idea = bul_bulgarian_deal } }

	}
	
	option = {#Bulgaria has declined deal
		name = boris.17.b
		trigger = { ITA = { NOT = { has_idea = bul_bulgarian_deal } } }	
		
	}
}

country_event = {
	id = boris.18
	title = boris.18.t
	desc = boris.18.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.18.a
		ALB = { set_country_flag = supports_bulgaria }
	}
	
	option = {
		name = boris.18.b
		ALB = {
			set_country_flag = supports_bulgaria
		}
		BUL = {
			puppet = {
				target = ALB
				end_civil_wars = no
				end_wars = no
			}
			set_autonomy = {
				target = ALB
				autonomy_state = autonomy_satellite
				end_wars = no
				end_civil_wars = no
			}
		}
	}
	
	option = {
		name = boris.18.c
		add_threat = 5
		ALB = {
			set_country_flag = supports_bulgaria
		}
		BUL = {
			puppet = {
				target = ALB
				end_civil_wars = no
				end_wars = no
			}
		}
	}
	
}

news_event = {
	id = boris.19
	title = boris.19.t
	desc = boris.19.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	major = yes
	is_triggered_only = yes
	
	option = {
		name = boris.19.a
		trigger = { TAG = ITA }
	}
	
	option = {
		name = boris.19.b
		trigger = { TAG = ALB }
	}
	
	option = {
		name = boris.19.c
		trigger = { TAG = BUL}
	}
	
	option = {
		name = boris.19.e
		trigger = { NOT = { OR = { TAG = BUL TAG = ITA TAG = ALB } } }
	}
}

country_event = { #Bulgaria declares war on guaranteed ALB
	id = boris.20
	title = boris.20.t
	desc = boris.20.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	immediate = {
		ITA = {
			diplomatic_relation = {
				country = ALB
				relation = guarantee
				active = no
			}
		}
	}
	
	option = {
		name = boris.20.a
	}
	
}

#bul_rom 21-28
country_event = { #bul_choose
	id = boris.21
	title = boris.21.t
	desc = boris.21.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = { #ally_romania
		name = boris.21.a
		ROM = { country_event = { hours = 2 id = boris.22 } }
	}
	
	option = { #stage monarchist coup in romania
		name = boris.21.b
		
		
		random_list = {
			30 = {
				hidden_effect = {
					ROM = {
						set_country_flag = succeed_coup
						country_event = { hours = 2 id = boris.23 }
					}
				}
				BUL = { country_event = { hours = 2 id = boris.23 } }
			}
			70 = {
				hidden_effect = {
					ROM = {
						set_country_flag = weak_coup
						country_event = { hours = 2 id = boris.24 }
					}
				}
				BUL = { country_event = { hours = 2 id = boris.24 } }
			}
		}
		custom_effect_tooltip = bul_rom_coup
	}
	
	option = { #economic vassalization
		name = boris.21.c
		trigger = {
			ic_ratio = {
				tag = ROM
				ratio > 1
			}
		} 
		
		ROM = { 
			country_event = { hours = 2 id = boris.26 }
		}
	}
	
	option = {
		name = boris.21.e
		trigger = { has_completed_focus = bul_will_projection }
		
		BUL = {
			country_event = { hours = 2 id = boris.27 }
		}
	}
}

country_event = {
	id = boris.22
	title = boris.22.t
	desc = boris.22.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.22.a
		clr_country_flag = opposes_bulgaria
		set_country_flag = supports_bulgaria
		BUL = { country_event = { hours = 2 id = boris.25 } }
	}
	
	option = {
		name = boris.22.b
		set_country_flag = opposes_bulgaria
		BUL = { country_event = { hours = 2 id = boris.25 } }
	}
}

country_event = {
	id = boris.23
	title = boris.23.t
	desc = boris.23.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.23.a
	
		trigger = { TAG = ROM }
	
		ROM = {
			clr_country_flag = opposes_bulgaria
			set_country_flag = supports_bulgaria
			set_politics = {
				ruling_party = neutrality
				}
		}
	}
	
	option = {
		name = boris.23.b
	
		trigger = { TAG = BUL }
		
	}
}

country_event = {
	id = boris.24
	title = boris.24.t
	desc = boris.24.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.24.a
		trigger = { TAG = ROM}
		
		ROM = { set_country_flag = opposes_bulgaria }
	}
	
	option = {
		name = boris.24.b
		trigger = { TAG = BUL}
	}
}

country_event = {
	id = boris.25
	title = boris.25.t
	desc = {
		text = boris.25.d
		trigger = { ROM = { has_country_flag = supports_bulgaria}}
	}
	desc = {
		text = boris.25.d2
		trigger = { ROM = { has_country_flag = opposes_bulgaria}}
	}
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.25.a
		trigger = { ROM = { has_country_flag = supports_bulgaria } }
	}
	
	option = {
		name = boris.25.b
		trigger = { ROM = { has_country_flag = opposes_bulgaria } }
		custom_effect_tooltip = bul_rom_opposes	
	}
}

country_event = {
	id = boris.26
	title = boris.26.t
	desc = boris.26.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.26.a
		trigger = { TAG = ROM }
		clr_country_flag = opposes_bulgaria
		set_country_flag = supports_bulgaria
	}
	
	option = {
		name = boris.26.b
		trigger = { TAG = BUL }
		
		BUL = {
			puppet = {
				target = ROM
				end_wars = no
			}
			set_autonomy = {
				target = ROM
				autonomy_state = autonomy_dominion
				end_wars = no
				end_civil_wars = no
			}
		}
		
	}
	
	option = {
		name = boris.26.c
		trigger = { TAG = BUL }
		
		BUL = {
			puppet = {
				target = ROM
				end_wars = no
			}
		}
	}
	
}

country_event = {
	id = boris.27
	title = boris.27.t
	desc = boris.27.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.27.a
		
		ROM = {
			set_country_flag = supports_bulgaria
		}
	}
	
	option = {
		name = boris.27.b
		
		BUL = {
			puppet = {
				target = ROM
				end_wars = no
			}
		}
	}
	
	option = {
		name = boris.27.c
		
		BUL = {
			puppet = {
				target = ROM
				end_wars = no
			}
			set_autonomy = {
				target = ROM
				autonomy_state = autonomy_satellite
				end_wars = no
				end_civil_wars = no
			}
		}
	}
	
}

news_event = {
	id = boris.28
	title = boris.28.t
	desc = boris.28.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	major = yes
	is_triggered_only = yes
	
	option = {
		name = boris.28.a
		trigger = { TAG = BUL }
	}
	
	option = {
		name = boris.28.b
		trigger = { TAG = ROM }
	}
	
	option = {
		name = boris.28.b
		trigger = { NOT = { OR = { TAG = ROM TAG = BUL} } }
	}
}

#bul_yug 29-35
country_event = { #send demands to yugoslavia
	id = boris.29
	title = boris.29.t
	desc = boris.29.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.29.a
		
		YUG = {
			set_country_flag = 29_ally
			country_event = { hours = 2 id = boris.31 }
		}
	}
	
	option = {
		name = boris.29.b
		
		YUG = {
			set_country_flag = promised_minor_concessions_yug
			country_event = { hours = 2 id = boris.31 }
		}
	}
	
	option = {
		name = boris.29.c
		
		BUL = { add_political_power = -300 }
		YUG = {
			set_country_flag = 29_coup
			country_event = { hours = 2 id = boris.32 }
		}
	}
	
	option = {
		name = boris.29.e
		trigger = { has_completed_focus = bul_will_projection }
	
		BUL = { country_event = { hours = 2 id = boris.30 } }
	}
}

country_event = {
	#target_country = YUG
	id = boris.30
	title = boris.30.t
	desc = boris.30.d

	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.30.a
		
		YUG = {
			clr_country_flag = opposes_bulgaria
			set_country_flag = supports_bulgaria
		}
		BUL = { country_event = { hours = 2 id = boris.33 } }
	}
	
	option = {
		name = boris.30.b
		
		YUG = { set_country_flag = opposes_bulgaria }
		BUL = { country_event = { hours = 2 id = boris.33 } }
	}

}

country_event = {
	#target_country = YUG
	id = boris.31
	title = boris.31.t
	desc = {
		text = boris.31.d
		trigger = { BUL = { NOT = { has_country_flag = promised_minor_concessions_yug } } }
	}
	desc = {
		text = boris.31.d2
		trigger = { BUL = { has_country_flag = promised_minor_concessions_yug } }
	}
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = {
			text = boris.31.a
			trigger = { BUL = { NOT = { has_country_flag = promised_minor_concessions_yug } } }
		}
		name = {
			text = boris.31.a2
			trigger = { BUL = { has_country_flag = promised_minor_concessions_yug } }
		}
		
		YUG = {
			clr_country_flag = opposes_bulgaria
			set_country_flag = supports_bulgaria
		}
		BUL = { country_event = { hours = 2 id = boris.33 } }
	}
	
	option = {
		name = {
			text = boris.31.b
			trigger = { BUL = { NOT = { has_country_flag = promised_minor_concessions_yug } } }
		}
		name = {
			text = boris.31.b2
			trigger = { BUL = { has_country_flag = promised_minor_concessions_yug } }
		}
		
		YUG = { set_country_flag = opposes_bulgaria}
		BUL = { country_event = { hours = 2 id = boris.33 } }
	}

}

country_event = {
	#target_country = YUG
	id = boris.32
	title = boris.32.t
	desc = boris.32.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.32.a
		
		YUG = {
			clr_country_flag = opposes_bulgaria
			set_country_flag = supports_bulgaria
		}
		BUL = { country_event = { hours = 2 id = boris.33 } }
	}
	
	option = {
		name = boris.32.b
		
		YUG = { set_country_flag = opposes_bulgaria}
		BUL = { country_event = { hours = 2 id = boris.33 } }
	}

}

country_event = { #Yugoslavian answer
	#target_country = BUL
	id = boris.33
	title = boris.33.t
	desc = boris.33.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.33.a
		trigger = { YUG = { has_country_flag = supports_bulgaria } }
	}
	
	option = {
		name = boris.33.b
		trigger = { YUG = { has_country_flag = opposes_bulgaria } }
	}
	
}

country_event = {
	id = boris.34
	title = boris.34.t
	desc = boris.34.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
		option = {
		name = boris.34.a
		
		YUG = {
			clr_country_flag = opposes_bulgaria
			set_country_flag = supports_bulgaria
		}
	}
	
	option = {
		name = boris.34.b
		hidden_effect = {
			BUL = {
				diplomatic_relation = {
					country = YUG
					relation = puppet
					active = yes
				}
			}
		}
		effect_tooltip = {
			BUL = {
				puppet = {
					target = YUG
					end_wars = no
				}
			}
		}
		add_threat = 5
	}
	
	option = { # sattelite yug
		name = boris.34.c
		hidden_effect = {
			YUG = {
				set_temp_variable = { temp_n = party_popularity_100@neutrality }
				set_temp_variable = { temp_d = party_popularity_100@democratic }
				set_temp_variable = { temp_f = party_popularity_100@fascism }
				set_temp_variable = { temp_c = party_popularity_100@communism }
			}
			BUL = {
				diplomatic_relation = {
					country = YUG
					relation = puppet
					active = yes
				}
				set_autonomy = {
					target = YUG
					autonomy_state = autonomy_dominion
					end_wars = no
					end_civil_wars = no
				}
			}
			YUG = {
				set_popularities = {
					democratic = temp_d
					neutrality = temp_n
					fascism = temp_f
					communism = temp_c
				}
			}
		}
		effect_tooltip = {
			set_autonomy = {
				target = YUG
				autonomy_state = autonomy_dominion
				end_wars = no
				end_civil_wars = no
			}
		}
	}
}

news_event = {
	id = boris.35
	title = boris.35.t
	desc = boris.35.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	major = yes
	is_triggered_only = yes
	
	option = {
		name = boris.35.a
		trigger = { TAG = BUL }
	}
	
	option = {
		name = boris.35.b
		trigger = { TAG = YUG }
	}
	
	option = {
		name = boris.35.c
		
		trigger = {
			NOT = {
				OR = {
					TAG = BUL
					TAG = YUG
				}
			}
		}
	}

}



#bul_gre 36-41
country_event = { #bul chooses what to do with greece
	id = boris.36
	title = boris.36.t
	desc = boris.36.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.36.a
		
		GRE = { country_event = { hours = 2 id = boris.37 } }
	}
	
	option = {
		name = boris.36.b
		
		GRE = { country_event = { hours = 2 id = boris.38 } }
	}
	
	option = {
		name = boris.36.c
		
		GRE = { country_event = { hours = 2 id = boris.39 } }
	}
	
	option = {
		name = boris.36.e
		trigger = {
			has_completed_focus = bul_will_projection
		}
		
		BUL = { country_event = { hours = 2 id = boris.42 } }
		
	}
	
}

country_event = { #bul offers alliance
	#target_country 
	id = boris.37
	title = boris.37.t
	desc = boris.37.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.37.a
		
		GRE = {
			clr_country_flag = opposes_bulgaria
			set_country_flag = supports_bulgaria
		}
		BUL = { country_event = { hours = 2 id = boris.40 } }
	}
	
	option = {
		name = boris.37.b
		
		GRE = { set_country_flag = opposes_bulgaria }
		BUL = { country_event = { hours = 2 id = boris.40 } }
	}
	
}

country_event = { #bul offers alliance and economic aid
	id = boris.38
	title = boris.38.t
	desc = boris.38.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.38.a
		GRE = {
			clr_country_flag = opposes_bulgaria
			set_country_flag = supports_bulgaria
			remove_ideas = { GRE_debt_to_the_ifc }
			add_ideas = { bul_bulgarian_monopolies }
		}
		
		BUL = {
			set_country_flag = promised_major_concessions_gre
			country_event = { hours = 2 id = boris.40 }
		}
	}
	
	option = {
		name = boris.38.b
		
		GRE = { set_country_flag = opposes_bulgaria }
		BUL = { country_event = { hours = 2 id = boris.40 } }
	}
	
}

country_event = { #bul sends ultimatum to gre
	#target_country = gre
	id = boris.39
	title = boris.39.t
	desc = boris.39.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = { #accept NAP
		name = boris.39.a
		
		GRE = {
			clr_country_flag = opposes_bulgaria
			set_country_flag = ignores_bulgaria
		}
		
		BUL = {
			
			diplomatic_relation = {
				country = GRE
				relation = guarantee
				active = yes
			}
			diplomatic_relation = {
				country = GRE
				relation = non_aggression_pact
				active = yes
			}
			
			transfer_state = 731
			transfer_state = 184
			
			country_event = { hours = 2 id = boris.41 }
		}
	}
	
	option = { #reject NAP
		name = boris.39.c
		
		GRE = { set_country_flag = opposes_bulgaria }
		
		BUL = { 
			country_event = { hours = 2 id = boris.41 }
		}
	}
}

country_event = { #Bul recives answer (GRE alliance)
	#target_country = BUL
	id = boris.40
	title = boris.40.t
	desc = boris.40.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.40.a
		trigger = { TAG = BUL NOT = { has_country_flag = promised_major_concessions_gre } }
	}
	
	option = {
		name = boris.40.b
		trigger = { TAG = BUL has_country_flag = promised_major_concessions_gre }
	}
	
	option = {
		name = boris.40.c
		trigger = { 
			TAG = GRE
			GRE = { has_country_flag = opposes_bulgaria } 
			}
	}
	
}

country_event = { #Bul recives answer (GRE ultimatum)
	#target_country = BUL
	id = boris.41
	title = boris.41.t
	desc = boris.41.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.41.a
		trigger = { GRE = { has_country_flag = supports_bulgaria } }
	}
	
	option = {
		name = boris.41.b
		trigger = { GRE = { has_country_flag = opposes_bulgaria } }
	}

}

country_event = {
	#target_country = bul
	id = boris.42
	title = boris.42.t
	desc = boris.42.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.42.a
		
		GRE = {
			clr_country_flag = opposes_bulgaria
			set_country_flag = supports_bulgaria
		}
	}
	
	option = {
		name = boris.42.b
		
		BUL = {
			puppet = {
				target = GRE
				end_wars = no
			}
		}
		add_threat = 10
	}
	
	option = {
		name = boris.42.c
		
		BUL = {
			puppet = {
				target = GRE
				end_wars = no
			}
			set_autonomy = {
				target = GRE
				autonomy_state = autonomy_satellite
				end_wars = no
				end_civil_wars = no
			}
		}
	}
	
}

news_event = {
	id = boris.43
	title = boris.43.t
	desc = boris.43.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	major = yes
	is_triggered_only = yes
	
	option = {
		name = boris.43.a
		trigger = { TAG = BUL }
	}
	
	option = {
		name = boris.43.b
		trigger = { TAG = GRE }
	}
	
	option = {
		name = boris.43.c
		
		trigger = {
			NOT = {
				OR = {
					TAG = BUL
					TAG = GRE
				}
			}
		}
	}

}



#bul_tur 44-53
country_event = { #bul_tur 
	#target_country = bul
	id = boris.44
	title = boris.44.t
	desc = boris.44.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.44.a
		
		TUR = { country_event = { hours = 2 id = boris.45 } }
	}
	
	option = {
		name = boris.44.b
		
		TUR = { country_event = { hours = 2 id = boris.47 } }
	}
	
	option = {
		name = boris.44.c
	}
	
	option = {
		name = boris.44.e
		trigger = { has_completed_focus = bul_will_projection }
		
		BUL = { country_event = { hours = 2 id = boris.50 } }
	}
}

country_event = { #bul - tur offer
	#target_country = tur
	id = boris.45
	title = boris.45.t
	desc = boris.45.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.45.a
		
		BUL = {
			set_state_owner = 341
			341 = { set_demilitarized_zone = no }
			country_event = { hours = 2 id = boris.46 }
			}
	}
	
	option = {
		name = boris.45.b
		
		BUL = { country_event = { hours = 2 id = boris.46 } }
	}
	
}

country_event = { #bul - tur offer answer
	#target_country = bul
	id = boris.46
	title = boris.46.t
	desc = {
		text = boris.46.d
		trigger = { 341 = { is_owned_by = BUL } }
	}
	desc = {
		text = boris.46.d2
		trigger = { 341 = { is_owned_by = TUR } }
	}
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		trigger = {	
			tag = BUL
			341 = { is_owned_by = BUL }
			}
		name = boris.46.a
		
		TUR = { country_event = { hours = 24 id = boris.55 } }
		
	}
	
	option = {
		trigger = {	
			always = no
			tag = BUL
			341 = { is_owned_by = BUL }
			}
		name = boris.46.b
		
		BUL = { add_political_power = -500 }
			
		TUR = { 
			country_event = { hours = 24 id = boris.55 }
			hidden_effect = {
				country_event = { days = 14 id = boris.49 }	
				BUL = { country_event = { days = 14 id = boris.49 } }
			}
		}

	}
	
	option = {
		trigger = {	
			tag = BUL
			341 = { is_owned_by = TUR }
			}
		name = boris.46.c
	}
	
}

country_event = { #bul - tur ultimatum
	#target_country = tur
	id = boris.47
	title = boris.47.t
	desc = boris.47.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.47.a
		
		BUL = { 
			set_state_owner = 341
			341 = { set_demilitarized_zone = no }
			country_event = { hours = 2 id = boris.48 }
			}
	}
	
	option = {
		name = boris.46.a
		
		BUL = { country_event = { hours = 2 id = boris.48 } }
	}
	
}

country_event = { #bul - tur ultimatum answer
	#target_country = bul
	id = boris.48
	title = boris.48.t
	desc = {
		text = boris.48.d
		trigger = { 341 = { is_owned_by = BUL } }
	}
	desc = {
		text = boris.48.d2
		trigger = { 341 = { is_owned_by = TUR } }
	}
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.48.a
		trigger = {	
			tag = BUL
			341 = { is_owned_by = BUL }
			}
	}
	
	option = {
		name = boris.48.b
		trigger = {	
			tag = BUL
			341 = { is_owned_by = BUL }
			}
		
		BUL = { country_event = { days = 3 id = boris.56 } }

	}
	
	option = {
		name = boris.48.c
		trigger = {	
			tag = BUL
			341 = { is_owned_by = TUR }
			}
	}
	
}

country_event = { #bul siezes 797 diplomaticly
	#target_country = bul
	id = boris.49
	title = boris.49.t
	desc = boris.49.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	immediate = { 797 = { transfer_state_to = BUL } }
	
	option = {
		name = boris.49.a
		trigger = { TAG = TUR }
	}
	
	option = {
		name = boris.49.b
		trigger = { TAG = BUL }
	}
}

country_event = {
	id = boris.50
	title = boris.50.t
	desc = boris.50.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
		option = {
		name = boris.50.a
		
		TUR = {
			set_country_flag = supports_bulgaria
		}
	}
	
	option = {
		name = boris.50.b
		hidden_effect = {
			BUL = {
				diplomatic_relation = {
					country = TUR
					relation = puppet
					active = yes
				}
			}
		}
		effect_tooltip = {
			BUL = {
				puppet = {
					target = TUR
					end_wars = no
				}
			}
		}
		add_threat = 5
	}
	
	option = {
		name = boris.50.c
		hidden_effect = {
			TUR = {
				set_temp_variable = { temp_n = party_popularity_100@neutrality }
				set_temp_variable = { temp_d = party_popularity_100@democratic }
				set_temp_variable = { temp_f = party_popularity_100@fascism }
				set_temp_variable = { temp_c = party_popularity_100@communism }
			}
			BUL = {
				diplomatic_relation = {
					country = TUR
					relation = puppet
					active = yes
				}
				set_autonomy = {
					target = TUR
					autonomy_state = autonomy_dominion
					end_wars = no
					end_civil_wars = no
				}
			}
			TUR = {
				set_popularities = {
					democratic = temp_d
					neutrality = temp_n
					fascism = temp_f
					communism = temp_c
				}
			}
		}
		effect_tooltip = {
			set_autonomy = {
				target = TUR
				autonomy_state = autonomy_satellite
				end_wars = no
				end_civil_wars = no
			}
		}
	}
}

news_event = {
	id = boris.51
	title = boris.51.t
	desc = boris.51.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	major = yes
	is_triggered_only = yes
	
	option = {
		name = boris.51.a
		trigger = { TAG = BUL }
	}
	
	option = {
		name = boris.51.b
		trigger = { TAG = TUR }
	}
	
	option = {
		name = boris.51.c
		
		trigger = {
			NOT = {
				OR = {
					TAG = BUL
					TAG = TUR
				}
			}
		}
	}

}

country_event = { #bulgaria wins
	id = boris.52
	title = boris.52.t
	desc = boris.52.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.52.c
		trigger = { TAG = BUL }
		
		797 = { transfer_state_to = BUL }
	}
	
	option = {
		name = boris.53.c
		trigger = { TAG = TUR }
	}

}

country_event = { #turkey wins
	id = boris.53
	title = boris.53.t
	desc = boris.53.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.53.c
		trigger = { TAG = BUL }
		
		BUL = {
			add_stability = -0.05
			add_war_support = -0.1
		}
	}
	
	option = {
		name = boris.53.c
		trigger = { TAG = TUR }
	}

}

country_event = { #stalemate
	id = boris.54
	title = boris.54.t
	desc = boris.54.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.54.c
		trigger = { TAG = BUL }
	}
	
	option = {
		name = boris.54.c
		trigger = { TAG = TUR }
	}

}

country_event = { #Secret energy stabilizes tur
	id = boris.55
	title = boris.55.t
	desc = boris.55.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.55.a
		
		TUR = {
			add_ideas = { }
			add_stability = 0.1
			add_war_support = 0.15
			
			add_state_core = 344
			add_state_core = 350
			add_state_core = 352
			add_state_core = 353
			add_state_core = 800
		}
	}

}

country_event = {
	id = boris.56
	title = boris.56.t
	desc = boris.56.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = {
		trigger = { TAG = BUL }
		name = boris.56.a
		
		797 = { set_demilitarized_zone = no }
		start_border_war = {
			change_state_after_war = no
			attacker = {
				state = 341
				num_provinces = 2
				on_win = boris.52
				on_lose = boris.53
				on_cancel = boris.54
				terrain_factor = 0
			}	
			defender = {
				state = 797
				num_provinces = 2
				on_win = boris.53
				on_lose = boris.52
				on_cancel = boris.54
				dig_in_factor = 0
			}
		}
		
	}
	
	option = {
		trigger = { TAG = TUR }
		name = boris.56.b
	}
	
	option = {
		trigger = { NOT = { TAG = BUL } NOT = { TAG = TUR } }
		name = boris.56.c
	}
}

###Initiate zero_hour
country_event = {
	id = boris.60
	title = boris.60.t
	desc = boris.60.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	hidden = yes

	immediate = {
	
		#add all supporting countries to bul
		every_country = {
			limit = { has_country_flag = supports_bulgaria }
			BUL = {
				add_to_faction = PREV
			}
		}
		
		#check balkan situation
		every_possible_country = {
			limit = {
				OR = {
					TAG = ROM
					TAG = YUG
					TAG = GRE
					TAG = HUN
					TAG = ALB
				}
				is_in_faction = no
				is_puppet = no
			}
			
			if = {
				limit = { exists = no }
				clr_country_flag = supports_bulgaria
				clr_country_flag = opposes_bulgaria
			}
			
			if = {
				limit = {
					has_country_flag = supports_bulgaria
				}
				BUL = {
					add_to_variable = {
						var = balkan_allies
						value = 1
						tooltip = balkan_allies_tt
					}
				}
			}
			
			if = {
				limit = {
					has_country_flag = opposes_bulgaria
				}
				BUL = {
					add_to_variable = {
						var = balkan_enemies
						value = 1
						tooltip = balkan_enemies_tt
					}
				}
			}
		}
		
		if = {
			limit = {
				check_variable = {
					var = BUL:balkan_enemies
					value = 1
					compare = equals
				}
			}
			BUL = { set_country_flag = last_resistance }
		}
		
		if = {
			limit = {
				check_variable = {
					var = BUL:balkan_enemies
					value = 0
					compare = equals
				}
			}
			BUL = { set_country_flag = complete_victory }
		}
		
		if = {
			limit = {
				check_variable = {
					var = BUL:balkan_enemies
					value = 2
					compare = greater_than_or_equals
				}
			}
			BUL = { set_country_flag = fighting_great_balkan_war }
		}
		
		#set coalition leader
		if = {
			limit = { ROM = { has_country_flag = opposes_bulgaria } }
			ROM = { country_event = { id = boris.61 } }
			BUL = { set_variable = { bul_coalition_faction_leader = ROM } }
		}
		else = {
		
			if = {
				limit = { YUG = { has_country_flag = opposes_bulgaria } }
				YUG = { country_event = { id = boris.61 } }
				BUL = { set_variable = { bul_coalition_faction_leader = YUG } }
			}
			else = {
			
				if = {
					limit = { GRE = { has_country_flag = opposes_bulgaria } }
					GRE = { country_event = { id = boris.61 } }
					BUL = { set_variable = { bul_coalition_faction_leader = GRE } }
				}
				else = {
				
					if = {
						limit = { HUN = { has_country_flag = opposes_bulgaria } }
						HUN = { country_event = { id = boris.61 } }
						BUL = { set_variable = { bul_coalition_faction_leader = HUN } }
					}
					else = {
					
						if = {
							limit = { ALB = { has_country_flag = opposes_bulgaria } }
							ALB = { country_event = { id = boris.61 } }
							BUL = { set_variable = { bul_coalition_faction_leader = ALB } }
						}
						else = {
							BUL = { country_event = { id = boris.67 } }
						}
					}
				}
			}
		}
		
		#remove AI ally limit
		every_country = {
			limit = { has_idea = bul_balkan_affairs }
			remove_ideas = bul_balkan_affairs
		}
		
	}
}

country_event = { #ROOT coalition leader recives check
	#target_country = ROOT
	id = boris.61
	title = boris.61.t
	desc = boris.61.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	hidden = yes
	
	immediate = {
	
		#remove unnescesarry guarantees
		every_country = {
			limit = { has_guaranteed = ROOT }
			diplomatic_relation = {
				country = ROOT
				relation = guarantee
				active = no
			}
		}
		
		#fire last resistance event if only opposing country, fire zero hour war event if has other opposes_bulgaria		
		if = {
			limit = { BUL = { has_country_flag = last_resistance } }
			set_country_flag = bul_last_resistance_country
			country_event = { hours = 1 id = boris.63 }
		}
		else = {
			country_event = { hours = 1 id = boris.62 }
		}

	}
}

country_event = { #start balkan war
	#target_country = bul_coalition_faction_leader
	id = boris.62
	title = boris.62.t
	desc = boris.62.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	hidden = yes
	
	immediate = {
	
		create_faction = bul_coalition_faction

		#bulgaria declares war
		BUL = {
			declare_war_on = {
				target = ROOT
				type = annex_everything
			}
		}
		
		#call bulgarian allies to war
		every_country = {
			limit = { is_ally_with = BUL }
			add_to_war = {
				targeted_alliance = BUL
				enemy = ROOT
				hostility_reason = asked_to_join
			}
		}
		
		#define coalition allies and invite to war
		every_country = {
			limit = { has_country_flag = opposes_bulgaria }
			ROOT = {
				add_to_faction = PREV
			}
			add_to_war = {
				targeted_alliance = ROOT
				enemy = BUL
				hostility_reason = asked_to_join
			}
		}
		
	}
}

country_event = { #send ultimatum to single resisting country
	id = boris.63
	title = boris.63.t
	desc = boris.63.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
	name = boris.63.a
		every_country = {
			limit = {
				has_country_flag = bul_last_resistance_country
			}
			country_event = { id = boris.64 hours = 2 }
		}
	}
}

country_event = { #fight for independence or support bulgaria
	id = boris.64
	title = boris.64.t
	desc = boris.64.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = { #subjugate to bulgaria (last country)
	name = boris.64.a
		BUL = { add_to_faction = ROOT }
		
		clr_country_flag = opposes_bulgaria
		set_country_flag = supports_bulgaria
		
		BUL = { 
			set_country_flag = last_resistance_extinguished
			country_event = { id = boris.65 }
		} 
	}
	
	option = { #oppose bulgaria (last country)
	name = boris.64.b
		declare_war_on = {
			target = BUL
			type = topple_government 
		}
		BUL = { 
			country_event = { id = boris.66 }
			set_country_flag = last_resistance_violence
		} 
	}
}

country_event = { #subjugate to bulgaria (last country)
	id = boris.65
	title = boris.65.t
	desc = boris.65.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.65.a
	}
	
}

country_event = { #oppose bulgaria (last country)
	id = boris.66
	title = boris.66.t
	desc = boris.66.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.66.a
	}
	
}

news_event = { #bulgaria unites balkans
	id = boris.67
	title = boris.67.t
	desc = {
		text = boris.67.d
		trigger = {
			BUL = { has_country_flag = no_allies }
		}
		
	}
	desc = {
		text = boris.67.d2
		trigger = {
			NOT = {
				has_country_flag = no_allies
				has_country_flag = last_resistance_extinguished
				has_country_flag = last_resistance_violence
				has_country_flag = complete_victory
			}
		}
	}
	desc = {
		text = boris.67.d3
		trigger = {
			BUL = { has_country_flag = last_resistance_violence }
		}
	}
	desc = {
		text = boris.67.d4
		trigger = {
			BUL = { has_country_flag = complete_victory }
		}
	}
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	major = yes
	
	immediate = {
		BUL = { set_country_flag = has_won_balkan_war }
	}
	
	option = {
		name = boris.67.a
		trigger = { OR = { TAG = BUL is_puppet_of = BUL } }
	}
	
	option = {
		name = boris.67.b
		trigger = { TAG = BUL }
		trigger = { NOT = { OR = { TAG = BUL is_puppet_of = BUL } } }
	}
	
}

country_event = {
	id = boris.69
	title = boris.69.t
	desc = boris.69.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = no
	hidden = yes
	
	trigger = {
		AND = {
			TAG = BUL:bul_coalition_faction_leader
			TAG = BUL
			BUL = { NOT = { has_country_flag = won_balkan_war } }
			BUL = { has_country_flag = fighting_great_balkan_war }
			surrender_progress > 0.8
		}
	}
	
	immediate = {
		BUL = { country_event = { id = boris.68 } }
	}
}

country_event = {
	id = boris.68
	title = boris.68.t
	desc = boris.68.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	#is_triggered_only = yes #any_war_score is piece of shit, white peace doesn't close peace conference
	hidden = yes
	
	trigger = {
		AND = {
			TAG = BUL
			NOT = { has_country_flag = won_balkan_war }
			has_country_flag = fighting_great_balkan_war
			has_capitulated = no
			OR = {
					any_war_score > 80
					is_in_peace_conference = yes
					BUL:bul_coalition_faction_leader = { surrender_progress > 0.9 }
			}
		}
	}
	
	immediate = {
		BUL = {
			news_event = { id = boris.67 }
			clr_country_flag = fighting_great_balkan_war
			white_peace = {
				tag = bul_coalition_faction_leader
				message = boris_68_tooltip
			}
		}
		every_country = {
			limit = {
				OR = {
					has_country_flag = supports_bulgaria
					has_country_flag = opposes_bulgaria
				}
			}
			THIS = {
				set_temp_variable = { temp_n = party_popularity_100@neutrality }
				set_temp_variable = { temp_d = party_popularity_100@democratic }
				set_temp_variable = { temp_f = party_popularity_100@fascism }
				set_temp_variable = { temp_c = party_popularity_100@communism }
			}
			BUL = {
				diplomatic_relation = {
					country = PREV
					relation = puppet
					active = yes
				}
				set_autonomy = {
					target = PREV
					autonomy_state = autonomy_dominion
					end_wars = no
					end_civil_wars = no
				}
			}
			THIS = {
				set_popularities = {
					democratic = temp_d
					neutrality = temp_n
					fascism = temp_f
					communism = temp_c
				}
			}
		}
	}
}



country_event = { #bulgaria sends ultimatum to TUR
	id = boris.100
	title = boris.100.t
	desc = boris.100.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	hidden = no

	option = { #accept
		name = boris.100.a
		
	}
	
	option = { #decline
		name = boris.100.a
	}
	
	
}



#bul_italian_question
country_event = {
	id = boris.301
	title = boris.301.t
	desc = boris.301.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = {
		name = boris.301.a
		ai_chance = {
			base = 10
		}
		
		BUL = { country_event = { hours = 2 id = boris.302 } }
	}
	
	option = {
		name = boris.301.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				has_idea = bul_bulgarian_deal
			}
			modifier = {
				factor = 0
				BUL = { has_completed_focus = bul_will_projection }
			}
			modifier = {
				factor = 0
				is_historical_focus_on = no
			}
		}
		
		BUL = { country_event = { hours = 2 id = boris.303 } }
	}

}

country_event = { #Italia agrees to transfer balkan states
	id = boris.302
	title = boris.302.t
	desc = boris.302.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			853 = { #istria
				owner = {
					if = {
						limit = { #Check if state belongs to BUL or puppet or ally (hopefully balkan country, not major power that seized bordergore state)
							OR = {
								is_puppet_of = BUL
								is_ally_with = BUL
								TAG = BUL
							}
						}
						736 = {
							if = {
								limit = { is_owned_by = ITA } #Check if recived state belongs to ITA or puppet
								transfer_state_to = PREV
							}
						}
					}
				}
			}
			
			103 = { #zara and litoral
				owner = {
					if = {
						limit = {
							OR = {
								is_puppet_of = BUL
								is_ally_with = BUL
								TAG = BUL
							}
						}
						852 = {
							if = {
								limit = { is_owned_by = ITA }
								transfer_state_to = PREV
							}
						}
						163 = {
							if = {
								limit = { is_owned_by = ITA }
								transfer_state_to = PREV
							}
						}
					}
				}
			}
			
			if = {	#dodecantes
				limit = {
					GRE = { is_puppet_of = BUL }
				}
				164 = { transfer_state_to = GRE }
			}
			else = {
				164 = { transfer_state_to = BUL }
			}
			
			#albania
			934 = {
				if = {
					limit = { is_owned_by = ITA }
					transfer_state_to = BUL
				}
			}
			44 = {
				if = {
					limit = { is_owned_by = ITA }
					transfer_state_to = BUL
				}
			}
			805 = {
				if = {
					limit = { is_owned_by = ITA }
					transfer_state_to = BUL
				}
			}
		}
	}
	
	option = {
		name = boris.302.a
	}
}

country_event = { #Italia refuses to transfer balkan states
	id = boris.303
	title = boris.303.t
	desc = boris.303.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = boris.303.a
	}
}

country_event = { #Italia recives
	id = boris.300
	title = boris.300.t
	desc = boris.300.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = { #agree to transfer
		name = boris.300.a
	
	}
}



###debug_events### 
country_event = { #debug 
	id = boris.1000
	title = boris.1000.t
	desc = boris.1000.d
	picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
	is_triggered_only = yes
	
	option = { #reset all
		name = boris.1000.a
		
		ROM = {
			clr_country_flag = supports_bulgaria
			clr_country_flag = subjugated_by_secret_energy
		}
		YUG = {
			clr_country_flag = supports_bulgaria
			clr_country_flag = subjugated_by_secret_energy
		}
		ALB = {
			clr_country_flag = supports_bulgaria
			clr_country_flag = ignores_bulgaria
			clr_country_flag = subjugated_by_secret_energy
		}
		HUN = {
			clr_country_flag = supports_bulgaria
			clr_country_flag = opposes_bulgaria
			clr_country_flag = subjugated_by_secret_energy
		}
		GRE = {
			clr_country_flag = supports_bulgaria
			clr_country_flag = ignores_bulgaria
			clr_country_flag = subjugated_by_secret_energy
		}
		TUR = {
			clr_country_flag = subjugated_by_secret_energy
		}
		BUL = {
			diplomatic_relation = {
				country = ROM
				relation = puppet
				active = no
			}
		}
		BUL = {
			diplomatic_relation = {
				country = YUG
				relation = puppet
				active = no
			}
		}
		BUL = {
			diplomatic_relation = {
				country = GRE
				relation = puppet
				active = no
			}
		}
		BUL = {
			diplomatic_relation = {
				country = HUN
				relation = puppet
				active = no
			}
		}
		BUL = {
			diplomatic_relation = {
				country = ALB
				relation = puppet
				active = no
			}
		}
		BUL = {
			diplomatic_relation = {
				country = TUR
				relation = puppet
				active = no
			}
		}
	}
	
	option = { #support_all
		name = boris.1000.b
		
		ROM = {
			SET = supports_bulgaria
			clr_country_flag = subjugated_by_secret_energy
		}
		YUG = {
			clr_country_flag = supports_bulgaria
			clr_country_flag = subjugated_by_secret_energy
		}
		ALB = {
			clr_country_flag = supports_bulgaria
			clr_country_flag = ignores_bulgaria
			clr_country_flag = subjugated_by_secret_energy
		}
		HUN = {
			clr_country_flag = supports_bulgaria
			clr_country_flag = opposes_bulgaria
			clr_country_flag = subjugated_by_secret_energy
		}
		GRE = {
			clr_country_flag = supports_bulgaria
			clr_country_flag = ignores_bulgaria
			clr_country_flag = subjugated_by_secret_energy
		}
	}
	
	option = { #puppet all
		name = boris.1000.c
		puppet = ROM
		puppet = YUG
		puppet = GRE
		puppet = HUN
		puppet = ALB
		puppet = TUR
		
	}
}