YUG_peasant_uprisings = {
	
	# Bulgaria

	YUG_instigate_in_bulgaria = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = YUG
		}

		available = {
			NOT = {
				any_country = {
					original_tag = BUL
					OR = {
						has_government = communism
						has_idea = agitated_peasants
					}
				}
				event_target:YUG_communist_coup_target = { exists = yes }
			}
		}
		
		visible = {
			original_tag = YUG
			NOT = {
				event_target:YUG_communist_coup_target = {
					OR = {
						exists = yes
						has_government = communism
					}
				}
			}
			any_country = {
				original_tag = BUL
				exists = yes
			}
			NOT = {
				any_country = {
					original_tag = BUL
					OR = {
						has_government = communism
						has_country_flag = banned_communism_flag
					}
				}
			}
		}

		cost = 25
		
		fire_only_once = yes
		
		remove_effect = {
		}

		complete_effect = {
			every_country = {
				limit = {
					original_tag = BUL
				}
				save_global_event_target_as = YUG_communist_coup_target
				country_event = { id = DOD_yugoslavia.181 }
			}
			hidden_effect = {
				set_country_flag = instigating_a_coup
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	# Albania

	YUG_instigate_in_albania = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = YUG
		}

		available = {
			NOT = {
				any_country = {
					original_tag = ALB
					OR = {
						has_government = communism
						has_idea = agitated_peasants
					}
				}
				event_target:YUG_communist_coup_target = { exists = yes }
			}
		}
		
		visible = {
			original_tag = YUG
			NOT = {
				event_target:YUG_communist_coup_target = {
					OR = {
						exists = yes
						has_government = communism
					}
				}
			}
			any_country = {
				original_tag = ALB
				exists = yes
			}
			NOT = {
				any_country = {
					original_tag = ALB
					OR = {
						has_government = communism
						has_country_flag = banned_communism_flag
					}
				}
			}
		}

		cost = 25
		
		fire_only_once = yes
		
		remove_effect = {
		}

		complete_effect = {
			every_country = {
				limit = {
					original_tag = ALB
				}
				save_global_event_target_as = YUG_communist_coup_target
				country_event = { id = DOD_yugoslavia.181 }
			}
			hidden_effect = {
				set_country_flag = instigating_a_coup
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	# Greece

	YUG_instigate_in_greece = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = YUG
		}

		available = {
			NOT = {
				any_country = {
					original_tag = GRE
					OR = {
						has_government = communism
						has_idea = agitated_peasants
					}
				}
				event_target:YUG_communist_coup_target = { exists = yes }
			}
		}
		
		visible = {
			original_tag = YUG
			NOT = {
				event_target:YUG_communist_coup_target = {
					OR = {
						exists = yes
						has_government = communism
					}
				}
			}
			any_country = {
				original_tag = GRE
				exists = yes
			}
			NOT = {
				any_country = {
					original_tag = GRE
					OR = {
						has_government = communism
						has_country_flag = banned_communism_flag
					}
				}
			}
			has_completed_focus = YUG_pan_balkan_workers_congress
		}

		cost = 25
		
		fire_only_once = yes
		
		remove_effect = {
		}

		complete_effect = {
			every_country = {
				limit = {
					original_tag = GRE
				}
				save_global_event_target_as = YUG_communist_coup_target
				country_event = { id = DOD_yugoslavia.181 }
			}
			hidden_effect = {
				set_country_flag = instigating_a_coup
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	# Romania

	YUG_instigate_in_romania = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = YUG
		}

		available = {
			NOT = {
				any_country = {
					original_tag = ROM
					OR = {
						has_government = communism
						has_idea = agitated_peasants
					}
				}
				event_target:YUG_communist_coup_target = { exists = yes }
			}
		}
		
		visible = {
			original_tag = YUG
			NOT = {
				event_target:YUG_communist_coup_target = {
					OR = {
						exists = yes
						has_government = communism
					}
				}
			}
			any_country = {
				original_tag = ROM
				exists = yes
			}
			NOT = {
				any_country = {
					original_tag = ROM
					OR = {
						has_government = communism
						has_country_flag = banned_communism_flag
					}
				}
			}
			has_completed_focus = YUG_pan_balkan_workers_congress
		}

		cost = 25
		
		fire_only_once = yes
		
		remove_effect = {
		}

		complete_effect = {
			every_country = {
				limit = {
					original_tag = ROM
				}
				save_global_event_target_as = YUG_communist_coup_target
				country_event = { id = DOD_yugoslavia.181 }
			}
			hidden_effect = {
				set_country_flag = instigating_a_coup
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	# Hungary

	YUG_instigate_in_hungary = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = YUG
		}

		available = {
			NOT = {
				any_country = {
					original_tag = HUN
					OR = {
						has_government = communism
						has_idea = agitated_peasants
					}
				}
				event_target:YUG_communist_coup_target = { exists = yes }
			}
		}
		
		visible = {
			original_tag = YUG
			NOT = {
				event_target:YUG_communist_coup_target = {
					OR = {
						exists = yes
						has_government = communism
					}
				}
			}
			any_country = {
				original_tag = HUN
				exists = yes
			}
			NOT = {
				any_country = {
					original_tag = HUN
					OR = {
						has_government = communism
						has_country_flag = banned_communism_flag
					}
				}
			}
			has_completed_focus = YUG_pan_balkan_workers_congress
		}

		cost = 25
		
		fire_only_once = yes
		
		remove_effect = {
		}

		complete_effect = {
			every_country = {
				limit = {
					original_tag = HUN
				}
				save_global_event_target_as = YUG_communist_coup_target
				country_event = { id = DOD_yugoslavia.181 }
			}
			hidden_effect = {
				set_country_flag = instigating_a_coup
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	# Turkey

	YUG_instigate_in_turkey = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = YUG
		}

		available = {
			NOT = {
				any_country = {
					original_tag = TUR
					OR = {
						has_government = communism
						has_idea = agitated_peasants
					}
				}
				event_target:YUG_communist_coup_target = { exists = yes }
			}
		}
		
		visible = {
			original_tag = YUG
			NOT = {
				event_target:YUG_communist_coup_target = {
					OR = {
						exists = yes
						has_government = communism
					}
				}
			}
			any_country = {
				original_tag = TUR
				exists = yes
			}
			NOT = {
				any_country = {
					original_tag = TUR
					OR = {
						has_government = communism
						has_country_flag = banned_communism_flag
					}
				}
			}
			has_completed_focus = YUG_invite_greece
			has_completed_focus = YUG_invite_hungary
			has_completed_focus = YUG_invite_romania
		}

		cost = 25
		
		fire_only_once = yes
		
		remove_effect = {
		}

		complete_effect = {
			every_country = {
				limit = {
					original_tag = TUR
				}
				save_global_event_target_as = YUG_communist_coup_target
				country_event = { id = DOD_yugoslavia.181 }
			}
			hidden_effect = {
				set_country_flag = instigating_a_coup
			}
		}

		ai_will_do = {
			factor = 100
		}

	}

	YUG_propaganda_in_target = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = YUG
		}

		available = {
			NOT = {
				event_target:YUG_communist_coup_target = {
					OR = {
						has_government = communism
						has_idea = pan_slavic_propaganda
					}
				}
			}
		}
		
		visible = {
			original_tag = YUG
			event_target:YUG_communist_coup_target = {
				exists = yes
				NOT = {
					OR = {
						has_government = communism
						has_country_flag = banned_communism_flag
					}
				}
			}
		}
		
		cancel_trigger = {
			NOT = {
				has_country_flag = instigating_a_coup
			}
		}

		cost = 25

		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 70
		
		remove_effect = {
			
		}

		complete_effect = {
			effect_tooltip = {
				event_target:YUG_communist_coup_target = {
					add_timed_idea = {
						idea = pan_slavic_propaganda
						days = 70
					}
				}
			}
			hidden_effect = {
				event_target:YUG_communist_coup_target = {
					country_event = { id = DOD_yugoslavia.182 }
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

	}

	YUG_arm_communist_militants = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = YUG
		}

		available = {
			NOT = {
				event_target:YUG_communist_coup_target = {
					OR = {
						has_government = communism
						has_idea = armed_communist_militants
					}
				}
			}
			has_equipment = { infantry_equipment > 499 }
		}
		
		visible = {
			original_tag = YUG
			event_target:YUG_communist_coup_target = {
				exists = yes
				NOT = {
					OR = {
						has_government = communism
						has_country_flag = banned_communism_flag
					}
				}
			}
		}
		
		cancel_trigger = {
			NOT = {
				has_country_flag = instigating_a_coup
			}
		}

		cost = 25

		modifier = {
			political_power_gain = -0.1
		}
		days_remove = 70
		
		remove_effect = {
			
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -500
			}
			effect_tooltip = {
				event_target:YUG_communist_coup_target = {
					add_timed_idea = {
						idea = armed_communist_militants
						days = 180
					}
				}
			}
			hidden_effect = {
				event_target:YUG_communist_coup_target = {
					country_event = { id = DOD_yugoslavia.183 }
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

	}

	YUG_communist_coup = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = YUG
		}

		available = {
			NOT = {
				event_target:YUG_communist_coup_target = {
					has_government = communism
				}
			}
			event_target:YUG_communist_coup_target = {
				communism > 0.2
			}
		}
		
		visible = {
			original_tag = YUG
			event_target:YUG_communist_coup_target = {
				exists = yes
				OR = {
					has_idea = armed_communist_militants
					communism > 0.5
				}
				NOT = {
					OR = {
						has_government = communism
						has_country_flag = banned_communism_flag
					}
				}
			}
			
		}

		cost = 50

		complete_effect = {
			effect_tooltip = {
				event_target:YUG_communist_coup_target = {
					start_civil_war = {
						ideology = communism
						size = yug_total_com_size
					}
				}
			}
			custom_effect_tooltip = YUG_uprising_strength_tt
			
			hidden_effect = {
				remove_decision_on_cooldown = YUG_propaganda_in_target
				remove_decision_on_cooldown = YUG_arm_communist_militants
				
				event_target:YUG_communist_coup_target = {
					country_event = { id = DOD_yugoslavia.184 }
				}
				clr_country_flag = instigating_a_coup
				clear_global_event_target = YUG_communist_coup_target
			}
		}

		ai_will_do = {
			factor = 100
			modifier = {
				event_target:YUG_communist_coup_target = {
					communism < 0.6
				}
				factor = 0
			}
		}

	}

	YUG_abandon_communist_effort = {

		icon = decision_generic_nationalism

		allowed = {
			original_tag = YUG
		}

		available = {
			event_target:YUG_communist_coup_target = {
				OR = {
					has_government = communism
					exists = no
					has_war_with = ROOT
					is_puppet_of = ROOT
					communism < 0.1
				}
			}
		}
		
		visible = {
			original_tag = YUG
			event_target:YUG_communist_coup_target = {
				OR = {
					has_government = communism
					has_country_flag = banned_communism_flag
					AND  = {
						communism < 0.1
						NOT = {
							OR = {
								has_idea = agitated_peasants 
								has_idea = pan_slavic_propaganda
								has_idea = armed_communist_militants
							}
						}
					}
				}
			}
			
		}

		cost = 0

		complete_effect = {
			hidden_effect = {
				event_target:YUG_communist_coup_target = {
					set_country_flag = had_yugo_civil_war_flag
				}
				clear_global_event_target = YUG_communist_coup_target
				clr_country_flag = instigating_a_coup
			}
		}

		ai_will_do = {
			factor = 100
			modifier = {
				NOT = {
					event_target:YUG_communist_coup_target = {
						OR = {
							has_country_flag = banned_communism_flag
							has_government = communism
						}
					}
				}
				factor = 0
			}
		}

	}
}




YUG_crush_ustasa = {
	
	# The uprising itself

	YUG_ustasa_uprising = {

		priority = 10

		icon = generic_ignite_civil_war

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 130

		fire_only_once = yes

		activation = {
			has_completed_focus = YUG_crush_the_ustasa
			NOT = { has_global_flag = ustasa_crushed }
		}

		visible = {
			tag = YUG
			has_completed_focus = YUG_crush_the_ustasa
			NOT = { has_global_flag = ustasa_crushed }
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			swap_ideas = {
				remove_idea = YUG_idea_croatian_opposition
				add_idea = YUG_idea_croats_suppressed
			}
			if = {
				limit = {
					CRO = {
						exists = no
					}
				}
				release = CRO
				CRO = {
					set_temp_variable = { croatia_var = this }
				}
			}
			else = {
				create_dynamic_country = {
					original_tag = CRO
					PREV = {
						release = PREV
					}
					set_politics = {
						ruling_party = fascism
						last_election = "1935.6.9"
						election_frequency = 12
						elections_allowed = no
					}
					set_popularities = {
						democratic = 15
						fascism = 75
						communism = 10
					}
					add_country_leader_role = {
						character = CRO_nikola_mandic
						country_leader = {
							expire = "1965.1.1"
							ideology = fascism_ideology
							traits = {
							}
						}
						promote_leader = yes
					}
					set_temp_variable = { croatia_var = this }
				}
			}
			var:croatia_var = {
				if = {
					limit = {
						owns_state = 109
					}
					set_capital = { state = 109 }
				}
				hidden_effect = {
					every_owned_state = {
						limit = { is_core_of = PREV }
						add_core_of = YUG
					}
				}
				YUG = {
					declare_war_on = {
						target = PREV
						type = annex_everything
					}
				}
				hidden_effect = {
					load_oob = "CRO_YUG_independence"
				}
			}
			set_global_flag = ustasa_crushed
		}
	}
	#the crushing
	YUG_ustasa_crushed_mission = {

		priority = 10

		icon = generic_ignite_civil_war

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 200

		fire_only_once = yes

		activation = {
			has_completed_focus = YUG_crush_the_ustasa
			NOT = { has_global_flag = ustasa_crushed }
		}

		visible = {
			tag = YUG
			has_completed_focus = YUG_crush_the_ustasa
			NOT = { has_global_flag = ustasa_crushed }
		}

		cancel_if_not_visible = yes

		is_good = yes

		timeout_effect = {
			set_global_flag = ustasa_crushed
			remove_ideas = {
				YUG_idea_croatian_opposition
				YUG_idea_croats_suppressed
			}
		}
	}
}

YUG_delay_ustasa_uprising = {
	
	# Things to slow down the uprising
	

	YUG_croat_concessions = {

		icon = eng_propaganda_campaigns

		allowed = {
			tag = YUG
		}

		available = {
			NOT = {
				has_country_flag = YUG_croat_concession_flag
				has_country_flag = YUG_something_in_progress_flag
			}
		}

		cost = 15

		fire_only_once = no

		ai_will_do = {
			base = 200
		}

		days_remove = 20

		modifier = {
			
		}

		visible = {
			tag = YUG
			has_active_mission = YUG_ustasa_uprising
			NOT = { has_global_flag = ustasa_crushed }
			NOT = { has_country_flag = YUG_croat_concession_flag }
		}

		complete_effect = {
			set_country_flag = YUG_something_in_progress_flag
		}

		remove_effect = {
			add_days_mission_timeout = {
				mission = YUG_ustasa_uprising
				days = 35
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_crushed_mission
				days = 45
			}
			clr_country_flag = YUG_something_in_progress_flag
			set_country_flag = YUG_croat_concession_flag
		}
	}
	
	YUG_positive_discrimination_croat = {

		icon = eng_propaganda_campaigns

		allowed = {
			tag = YUG
		}

		available = {
			NOT = {
				has_country_flag = YUG_croat_positive_dis_flag
				has_country_flag = YUG_something_in_progress_flag
			}
		}

		cost = 15

		fire_only_once = no

		ai_will_do = {
			base = 200
		}

		days_remove = 10

		modifier = {
			stability_weekly = -0.01
		}

		visible = {
			tag = YUG
			has_active_mission = YUG_ustasa_uprising
			NOT = { has_global_flag = ustasa_crushed }
			NOT = { has_country_flag = YUG_croat_positive_dis_flag }
		}

		complete_effect = {
			set_country_flag = YUG_something_in_progress_flag
		}

		remove_effect = {
			add_days_mission_timeout = {
				mission = YUG_ustasa_uprising
				days = 35
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_crushed_mission
				days = 45
			}
			clr_country_flag = YUG_something_in_progress_flag
			set_country_flag = YUG_croat_positive_dis_flag
		}
	}
	
	YUG_listening_posts_croatia = {

		icon = eng_propaganda_campaigns

		allowed = {
			tag = YUG
		}

		available = {
			NOT = {
				has_country_flag = YUG_listening_post_flag
				has_country_flag = YUG_something_in_progress_flag
			}
		}

		cost = 15

		fire_only_once = no

		ai_will_do = {
			base = 200
		}

		days_remove = 20

		modifier = {
			consumer_goods_factor = 0.40
		}

		visible = {
			tag = YUG
			has_active_mission = YUG_ustasa_uprising
			NOT = { has_global_flag = ustasa_crushed }
			NOT = { has_country_flag = YUG_listening_post_flag }
		}

		complete_effect = {
			set_country_flag = YUG_something_in_progress_flag
		}

		remove_effect = {
			add_days_mission_timeout = {
				mission = YUG_ustasa_uprising
				days = 35
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_crushed_mission
				days = 45
			}
			clr_country_flag = YUG_something_in_progress_flag
			set_country_flag = YUG_listening_post_flag
		}
	}
	
	#cooldown missions
	YUG_croat_concessions_cooldown = {

		priority = 10

		icon = generic_ignite_civil_war

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_croat_concession_flag
		}

		visible = {
			tag = YUG
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_croat_concession_flag
			NOT = { has_global_flag = ustasa_crushed }
		}

		cancel_if_not_visible = yes

		is_good = yes

		timeout_effect = {
			clr_country_flag = YUG_croat_concession_flag
		}
	}
	YUG_positive_discrimination_croat_cooldown = {

		priority = 10

		icon = generic_ignite_civil_war

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_croat_positive_dis_flag
		}

		visible = {
			tag = YUG
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_croat_positive_dis_flag
			NOT = { has_global_flag = ustasa_crushed }
		}

		cancel_if_not_visible = yes

		is_good = yes

		timeout_effect = {
			clr_country_flag = YUG_croat_positive_dis_flag
		}
	}
	YUG_listening_posts_cooldown = {

		priority = 10

		icon = generic_ignite_civil_war

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_listening_post_flag
		}

		visible = {
			tag = YUG
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_listening_post_flag
			NOT = { has_global_flag = ustasa_crushed }
		}

		cancel_if_not_visible = yes

		is_good = yes

		timeout_effect = {
			clr_country_flag = YUG_listening_post_flag
		}
	}
}

YUG_progress_crushing_decisions = {

# Things to actively crush the Ustasa
	

	YUG_raid_croat_villages = {

		icon = eng_propaganda_campaigns

		allowed = {
			tag = YUG
		}

		available = {
			NOT = {
				has_country_flag = YUG_raid_villages_flag
				has_country_flag = YUG_something_in_progress_flag
			}
		}

		cost = 15

		fire_only_once = no

		ai_will_do = {
			base = 200
		}

		days_remove = 20

		modifier = {
			neutrality_drift = -0.05
		}

		visible = {
			tag = YUG
			has_active_mission = YUG_ustasa_uprising
			NOT = { has_global_flag = ustasa_crushed }
			NOT = { has_country_flag = YUG_raid_villages_flag }
		}

		complete_effect = {
			set_country_flag = YUG_something_in_progress_flag
		}

		remove_effect = {
			add_popularity = {
			    ideology = fascism
			    popularity = 0.05
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_uprising
				days = -15
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_crushed_mission
				days = -35
			}
			clr_country_flag = YUG_something_in_progress_flag
			set_country_flag = YUG_raid_villages_flag
		}
	}

	YUG_shut_down_recruitment_centers = {

		icon = eng_propaganda_campaigns

		allowed = {
			tag = YUG
		}

		available = {
			NOT = {
				has_country_flag = YUG_end_recruitment_flag
				has_country_flag = YUG_something_in_progress_flag
			}
		}

		cost = 15

		fire_only_once = no

		ai_will_do = {
			base = 200
		}

		days_remove = 20

		modifier = {
			war_support_weekly = -0.01
			stability_weekly = -0.01
		}

		visible = {
			tag = YUG
			has_active_mission = YUG_ustasa_uprising
			NOT = { has_global_flag = ustasa_crushed }
			NOT = { has_country_flag = YUG_end_recruitment_flag }
		}

		complete_effect = {
			set_country_flag = YUG_something_in_progress_flag
		}

		remove_effect = {
			add_popularity = {
			    ideology = fascism
			    popularity = 0.05
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_uprising
				days = -15
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_crushed_mission
				days = -35
			}
			clr_country_flag = YUG_something_in_progress_flag
			set_country_flag = YUG_end_recruitment_flag
		}
	}

	YUG_arrest_ustasa_leaders = {

		icon = eng_propaganda_campaigns

		allowed = {
			tag = YUG
		}

		available = {
			NOT = {
				has_country_flag = YUG_arrest_ustasa_flag
				has_country_flag = YUG_something_in_progress_flag
			}
			command_power > 20
		}

		cost = 15

		fire_only_once = no

		ai_will_do = {
			base = 200
		}

		days_remove = 20

		modifier = {
			command_power_gain = -0.5
		}

		visible = {
			tag = YUG
			has_active_mission = YUG_ustasa_uprising
			NOT = { has_global_flag = ustasa_crushed }
			NOT = { has_country_flag = YUG_arrest_ustasa_flag }
		}

		complete_effect = {
			add_command_power = -20
			set_country_flag = YUG_something_in_progress_flag
		}

		remove_effect = {
			add_popularity = {
			    ideology = fascism
			    popularity = 0.05
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_uprising
				days = -10
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_crushed_mission
				days = -45
			}
			clr_country_flag = YUG_something_in_progress_flag
			set_country_flag = YUG_arrest_ustasa_flag
		}
	}

	YUG_croatian_recruitment = {

		icon = eng_propaganda_campaigns

		allowed = {
			tag = YUG
		}

		available = {
			NOT = {
				has_country_flag = YUG_recruitment_flag
				has_country_flag = YUG_something_in_progress_flag
			}
			has_army_experience > 10
		}

		cost = 15

		fire_only_once = no

		ai_will_do = {
			base = 200
		}

		days_remove = 20

		modifier = {
			experience_gain_army = -0.5
		}

		visible = {
			tag = YUG
			has_active_mission = YUG_ustasa_uprising
			NOT = { has_global_flag = ustasa_crushed }
		}

		complete_effect = {
			set_country_flag = YUG_recruitment_flag
			set_country_flag = YUG_something_in_progress_flag
		}

		remove_effect = {
			add_popularity = {
			    ideology = fascism
			    popularity = 0.05
			}
			division_template = {
				name = "Croatian Militia"
				priority = 1
				division_names_group = YUG_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
		
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
				}
			}
			103 = {
				if = {
					limit = { PREV = { has_full_control_of_state = PREV } }
				}
				create_unit = {
					division = "name = \"Croatian Militia\" division_template = \"Croatian Militia\" start_experience_factor = 0.5" 
					owner = PREV
				}
			}
			109 = {
				if = {
					limit = { PREV = { has_full_control_of_state = PREV } }
				}
				create_unit = {
					division = "name = \"Croatian Militia\" division_template = \"Croatian Militia\" start_experience_factor = 0.5" 
					owner = PREV
				}
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_uprising
				days = -25
			}
			add_days_mission_timeout = {
				mission = YUG_ustasa_crushed_mission
				days = -40
			}
			clr_country_flag = YUG_something_in_progress_flag
		}
	}
	
	#cooldown missions
	YUG_croat_raid_cooldown = {

		priority = 10

		icon = generic_ignite_civil_war

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_raid_villages_flag
		}

		visible = {
			tag = YUG
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_raid_villages_flag
			NOT = { has_global_flag = ustasa_crushed }
		}

		cancel_if_not_visible = yes

		is_good = yes

		timeout_effect = {
			clr_country_flag = YUG_raid_villages_flag
		}
	}
	YUG_shut_down_recruitment_centers_cooldown = {

		priority = 10

		icon = generic_ignite_civil_war

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_end_recruitment_flag
		}

		visible = {
			tag = YUG
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_end_recruitment_flag
			NOT = { has_global_flag = ustasa_crushed }
		}

		cancel_if_not_visible = yes

		is_good = yes

		timeout_effect = {
			clr_country_flag = YUG_end_recruitment_flag
		}
	}
	YUG_arrest_ustasa_leaders_cooldown = {

		priority = 10

		icon = generic_ignite_civil_war

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_arrest_ustasa_flag
		}

		visible = {
			tag = YUG
			has_completed_focus = YUG_crush_the_ustasa
			has_country_flag = YUG_arrest_ustasa_flag
			NOT = { has_global_flag = ustasa_crushed }
		}

		cancel_if_not_visible = yes

		is_good = yes

		timeout_effect = {
			clr_country_flag = YUG_arrest_ustasa_flag
		}
	}

}