﻿add_namespace = polska

#славяне поговаривают о каких то экспансиях. пока не понятно в какую сторону они собираются. но не исключено что к нам. Возможно стои нам начать налаживать дружбу с соседями. вместе то сильнее.
country_event = {
	id = polska.1
	title = polska.1.t
	desc = polska.1.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {
		name = polska.1.a
		ai_chance = { factor = 45 }
		if = {
			limit = {
				ZRU = {
					exists = yes
					NOT = {
						has_war = no
						is_subject = no
					}
				}
			}
			ZRU = {
				country_event = { days = 1 id = polska.2 }
			}
		}
		if = {
			limit = {
				ZGA = {
					exists = yes
					NOT = {
						has_war = no
						is_subject = no
					}
				}
			}
			ZGA = {
				country_event = { days = 1 id = polska.2 }
			}
		}
		if = {
			limit = {
				ZBA = {
					exists = yes
					NOT = {
						has_war = no
						is_subject = no
					}
				}
			}
			ZBA = {
				country_event = { days = 1 id = polska.2 }
			}
		}
		if = {
			limit = {
				ZDU = {
					exists = yes
					NOT = {
						has_war = no
						is_subject = no
					}
				}
			}
			ZDU = {
				country_event = { days = 1 id = polska.2 }
			}
		}
		hidden_effect = {
			country_event = { days = 4 id = polska.3 }
		}
		custom_effect_tooltip = polska.1.a.tt
	}
	option = {
		name = polska.1.b
		ai_chance = { factor = 4 }
	}
}

#Эвент соседям Короны о том что они зовут нас на форум по безопасности в восточной европе. Они боятся славян и предлагают нам загарантить друг друга. Поедем?
country_event = {
	id = polska.2
	title = polska.2.t
	desc = polska.2.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {
		name = polska.2.a
		ai_chance = { factor = 20 }	
		set_country_flag = we_support_polska_flag
		custom_effect_tooltip = polska.2.a.tt 
	}
	option = {	#нет
		name = polska.1.b
		ai_chance = {
			factor = 1
			modifier = {
				factor = 30
				tag = ZBA
				ZBA = {
					has_government = fascism
				}
			}
		}
	}
}

#Эвент короне о том что мы готовы начать форум. вот страны которые приехали (список стран) вопрос один и он ранее озвучне. Будем ли мы защищать друг друга?
country_event = {
	id = polska.3
	title = polska.3.t
	desc = polska.3.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	immediate = {
		if = {
			limit = {
				ZRU = {
					has_country_flag = we_support_polska_flag
				}
			}
			custom_effect_tooltip = polska.3.zru_tyt
		}
		if = {
			limit = {
				ZGA = {
					has_country_flag = we_support_polska_flag
				}
			}
			custom_effect_tooltip = polska.3.zga_tyt
		}
		if = {
			limit = {
				ZBA = {
					has_country_flag = we_support_polska_flag
				}
			}
			custom_effect_tooltip = polska.3.zba_tyt
		}
		if = {
			limit = {
				ZDU = {
					has_country_flag = we_support_polska_flag
				}
			}
			custom_effect_tooltip = polska.3.zdu_tyt
		}
	}
	option = {
		name = polska.3.a
		if = {
			limit = {
				ZRU = {
					has_country_flag = we_support_polska_flag
				}
			}
			give_guarantee = ZRU
			ZRU = {
				give_guarantee = ZPV
				every_other_country = {
					limit = {
						has_country_flag = we_support_polska_flag
					}
					give_guarantee = ZRU
				}				
			}			
		}
		if = {
			limit = {
				ZGA = {
					has_country_flag = we_support_polska_flag
				}
			}
			give_guarantee = ZGA
			ZGA = {
				give_guarantee = ZPV
				every_other_country = {
					limit = {
						has_country_flag = we_support_polska_flag
					}
					give_guarantee = ZGA
				}
			}			
		}
		if = {
			limit = {
				ZBA = {
					has_country_flag = we_support_polska_flag
				}
			}
			give_guarantee = ZBA
			ZBA = {
				give_guarantee = ZPV
				every_other_country = {
					limit = {
						has_country_flag = we_support_polska_flag
					}
					give_guarantee = ZBA
				}
			}			
		}
		if = {
			limit = {
				ZDU = {
					has_country_flag = we_support_polska_flag
				}
			}
			give_guarantee = ZDU
			ZDU = {
				give_guarantee = ZPV
				every_other_country = {
					limit = {
						has_country_flag = we_support_polska_flag
					}
					give_guarantee = ZDU
				}
			}			
		}
	}
	
}