
add_namespace = ITA_consolidation_event


#offer econ
country_event = {
	id = ITA_consolidation_event.1
	title = ITA_consolidation_event.1.t
	desc = ITA_consolidation_event.1.d
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	#fire_only_once = yes
	
	option = {
	name = ITA_consolidation_event.1.a
	
	ai_chance = {
	base = 1
	}
	
	FROM = {country_event = {id = ITA_consolidation_event.2 days = 1}}
	
	add_ideas = ITA_trade_customs_idea	
	}
	
	option = {
	name = ITA_consolidation_event.1.b
	
	ai_chance = {
	base = 0
	}	
		
	}
}
#offer econ yes
country_event = {
	id = ITA_consolidation_event.2
	title = ITA_consolidation_event.2.t
	desc = ITA_consolidation_event.2.d
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	#fire_only_once = yes
	
	option = {
	name = ITA_consolidation_event.2.a
	
	ai_chance = {
	base = 1
	}
	
	add_political_power = 5
	
	}	
		
}

#offer mil
country_event = {
	id = ITA_consolidation_event.3
	title = ITA_consolidation_event.3.t
	desc = ITA_consolidation_event.3.d
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	#fire_only_once = yes
	
	option = {
	name = ITA_consolidation_event.1.a
	
	ai_chance = {
	base = 0.9
	}
	
	FROM = {country_event = {id = ITA_consolidation_event.5 days = 1}}
	
	add_ideas = ITA_militarys_cooperation_idea
		
	}	
	option = {
	name = ITA_consolidation_event.1.b
	
	ai_chance = {
	base = 0.1
	}
	
	FROM = {country_event = {id = ITA_consolidation_event.4 days = 1}}
		
	}	
		
}
#offer mil GEN NO
country_event = {
	id = ITA_consolidation_event.4
	title = ITA_consolidation_event.4.t
	desc = ITA_consolidation_event.4.d
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	#fire_only_once = yes
	
	option = {
	name = ITA_consolidation_event.4.a
	
	ai_chance = {
	base = 1
	}
	
	add_political_power = 25
	
	}	
}


#offer mil yes
country_event = {
	id = ITA_consolidation_event.5
	title = ITA_consolidation_event.5.t
	desc = ITA_consolidation_event.5.d
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	#fire_only_once = yes
	
	option = {
	name = ITA_consolidation_event.5.a
	
	ai_chance = {
	base = 1
	}
	
	}	
}



#offer integration
country_event = {
	id = ITA_consolidation_event.6
	title = ITA_consolidation_event.6.t
	desc = ITA_consolidation_event.6.d
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	#fire_only_once = yes
	
	option = {
	name = ITA_consolidation_event.6.a
	
	ai_chance = {
	base = 1
	}
	
	set_country_flag = agreed_to_integrate_flag
	
	add_offsite_building = {type = industrial_compled level = 1}
	add_offsite_building = {type = arms_factory level = 1}
	
	FROM = {
	
	country_event = {id = ITA_consolidation_event.7 days = 1}
	
	upgrade_italian_col_emp = yes
	
		puppet = {
			target = ROOT
			end_wars = no
		}
	}
	
		if = {
		limit = {
		ROOT = {owns_state = 853}
		}
		853 = {transfer_state_to = FROM}
		}
		
		if = {
		limit = {
		ROOT = {owns_state = 1019}
		}
		1019 = {transfer_state_to = FROM}
		}
		
		if = {
		limit = {
		ROOT = {owns_state = 1018}
		}
		1018 = {transfer_state_to = FROM}
		}
		
		if = {
		limit = {
		ROOT = {owns_state = 1036}
		}
		1036 = {transfer_state_to = FROM}
		}
	
	}	
	option = { #это зашло слишком далеко!
	name = ITA_consolidation_event.6.b
	
	ai_chance = {
	base = 1
	}
	
	FROM = {
	country_event = {id = ITA_consolidation_event.8 days = 1}
	}
	
	}	
}
#offer integration yes
country_event = {
	id = ITA_consolidation_event.7
	title = ITA_consolidation_event.7.t
	desc = ITA_consolidation_event.7.d
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	#fire_only_once = yes
	
	option = {
	name = ITA_consolidation_event.6.a
	
	ai_chance = {
	base = 1
	}
	
	effect_tooltip = {
	
	ROOT = {
	
	upgrade_italian_col_emp = yes
	
		puppet = {
			target = FROM
			end_wars = no
		}
	}
	
	}
	
	}
}

#offer integration no
country_event = {
	id = ITA_consolidation_event.8
	title = ITA_consolidation_event.8.t
	desc = ITA_consolidation_event.8.d
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	#fire_only_once = yes
	
	option = {
	name = ITA_consolidation_event.8.a
	
	ai_chance = {
	base = 0.9
	}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = FROM
				}
	
	}
	
	option = {
	name = ITA_consolidation_event.8.a
	
	ai_chance = {
	base = 0.1
	}
	
	add_political_power = 25
	
	}
}

#offer annexation
country_event = {
	id = ITA_consolidation_event.9
	title = ITA_consolidation_event.9.t
	desc = ITA_consolidation_event.9.d
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	#fire_only_once = yes
	
	option = {
	name = ITA_consolidation_event.9.a
	
	ai_chance = {
	base = 1
	}
	
	FROM = {
	country_event = {id = ITA_consolidation_event.10 days = 1}
	}
	
	}
	
	option = {
	name = AOI_event.24.b
	
	ai_chance = {
	base = 0
	}
	
	FROM = {
				create_wargoal = {
					type = annex_everything
					target = ROOT
				}
	}
	
	}
}


#offer annexation
country_event = {
	id = ITA_consolidation_event.10
	title = ITA_consolidation_event.10.t
	desc = ITA_consolidation_event.10.d
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	#fire_only_once = yes
	
	option = {
	name = ITA_consolidation_event.10.a
	
	ai_chance = {
	base = 1
	}
	
	ROOT = {
				annex_country = {
					target = FROM
					transfer_troops = yes
				}
	}
	
		every_controlled_state = {
			limit = {
				is_core_of = FROM
			}
		add_compliance = 50
		add_extra_state_shared_building_slots = 1
		}
	
	}
}


