############################################################################################################
#	AC mod - decisions
############################################################################################################
#Written by hiddengearz
#Inspired by the original Allied Construction Project https://steamcommunity.com/sharedfiles/filedetails/?id=1368202826
#This reworked system allows you to have 5 of each project active per country.
#So you can have 5 CIC projects, 5 INF projects, 5 MIC projects etc in every country in the game
#There are 8 project types * 5 of each allowed per country = 40 investments possibile in one country * 210 countries the player can invest in = 8400 possibile investments for the player
#Now if the AI also does the same that's 210 * 8400 = 1,764,000 possibile investments possibile



AC_DECISIONS = {

	AC_assist_repair_decision = {
		icon = generic_construction
		activation = { always = no }

		highlight_states = {
			CONTROLLER = {
				has_country_flag = AC_assist_repair_target_by_@ROOT
			}
		}

		visible = {
			has_decision = AC_assist_repair_decision
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_country = {
						has_country_flag = AC_assist_repair_target_by_@ROOT
					}
				}
			}
		}

		modifier = {
			political_power_gain = -1
		}

		

		days_remove = 180

		remove_effect = {
			every_country = {
				limit = { has_country_flag = AC_assist_repair_target_by_@ROOT }

				remove_ideas = AC_assist_repair_target_idea

				clr_country_flag = AC_assist_repair_target_by_@ROOT
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	AC_assist_repair_CANCEL_decision = {
		icon = GFX_decision_category_crisis

		visible = {
			has_decision = AC_assist_repair_decision
		}

		

		complete_effect = {
			every_country = {
				limit = { has_country_flag = AC_assist_repair_target_by_@ROOT }

				remove_ideas = AC_assist_repair_target_idea

				clr_country_flag = AC_assist_repair_target_by_@ROOT
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	###################################################
	AC_construction_INF_decision1 = { #Infrastructure
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_INF_target_state1_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_INF_target_state1_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_INF_target_state1_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		modifier = {
			#civilian_factory_use = 1
		}
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_INF_target_state1_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_INF_target_state1_@ROOT }
						AC_add_INF_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_INF_target_state1_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_INF_decision1 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_INF_decision1 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_INF_decision2 = { #Infrastructure
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_INF_target_state2_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_INF_target_state2_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_INF_target_state2_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_INF_target_state2_@ROOT  } }
					
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_INF_target_state2_@ROOT }

						AC_add_INF_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_INF_target_state2_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_INF_decision2 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_INF_decision2 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_INF_decision3 = { #Infrastructure
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_INF_target_state3_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_INF_target_state3_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_INF_target_state3_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_INF_target_state3_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_INF_target_state3_@ROOT }

						AC_add_INF_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_INF_target_state3_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_INF_decision3 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_INF_decision3 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_INF_decision4 = { #Infrastructure
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_INF_target_state4_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_INF_target_state4_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_INF_target_state4_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 4
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_INF_target_state4_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_INF_target_state4_@ROOT }

						AC_add_INF_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_INF_target_state4_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_INF_decision4 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_INF_decision4 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_INF_decision5 = { #Infrastructure
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_INF_target_state5_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_INF_target_state5_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_INF_target_state5_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 5
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_INF_target_state5_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_INF_target_state5_@ROOT }

						AC_add_INF_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_INF_target_state5_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_INF_decision5 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_INF_decision5 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	AC_construction_AB_decision1 = { #Air Base
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_AB_target_state1_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_AB_target_state1_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_AB_target_state1_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		modifier = {
			#civilian_factory_use = 1
		}
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_AB_target_state1_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_AB_target_state1_@ROOT }

						AC_add_AB_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_AB_target_state1_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_AB_decision1 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_AB_decision1 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_AB_decision2 = { #Air Base
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_AB_target_state2_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_AB_target_state2_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_AB_target_state2_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_AB_target_state2_@ROOT  } }
					
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_AB_target_state2_@ROOT }

						AC_add_AB_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_AB_target_state2_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_AB_decision2 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_AB_decision2 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_AB_decision3 = { #Air Base
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_AB_target_state3_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_AB_target_state3_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_AB_target_state3_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_AB_target_state3_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_AB_target_state3_@ROOT }

						AC_add_AB_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_AB_target_state3_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_AB_decision3 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_AB_decision3 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_AB_decision4 = { #Air Base
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_AB_target_state4_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_AB_target_state4_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_AB_target_state4_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 4
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_AB_target_state4_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_AB_target_state4_@ROOT }

						AC_add_AB_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_AB_target_state4_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_AB_decision4 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_AB_decision4 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_AB_decision5 = { #Air Base
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_AB_target_state5_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_AB_target_state5_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_AB_target_state5_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 5
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_AB_target_state5_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_AB_target_state5_@ROOT }

						AC_add_AB_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_AB_target_state5_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_AB_decision5 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_AB_decision5 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_AA_decision1 = { #Anti Air
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_AA_target_state1_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_AA_target_state1_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_AA_target_state1_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		modifier = {
			#civilian_factory_use = 1
		}
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_AA_target_state1_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_AA_target_state1_@ROOT }

						AC_add_AA_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_AA_target_state1_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_AA_decision1 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_AA_decision1 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_AA_decision2 = { #Anti Air
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_AA_target_state2_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_AA_target_state2_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_AA_target_state2_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_AA_target_state2_@ROOT  } }
					
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_AA_target_state2_@ROOT }

						AC_add_AA_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_AA_target_state2_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_AA_decision2 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_AA_decision2 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_AA_decision3 = { #Anti Air
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_AA_target_state3_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_AA_target_state3_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_AA_target_state3_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_AA_target_state3_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_AA_target_state3_@ROOT }

						AC_add_AA_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_AA_target_state3_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_AA_decision3 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_AA_decision3 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_AA_decision4 = { #Anti Air
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_AA_target_state4_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_AA_target_state4_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_AA_target_state4_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 4
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_AA_target_state4_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_AA_target_state4_@ROOT }

						AC_add_AA_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_AA_target_state4_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_AA_decision4 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_AA_decision4 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_AA_decision5 = { #Anti Air
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_AA_target_state5_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_AA_target_state5_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_AA_target_state5_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 5
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_AA_target_state5_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_AA_target_state5_@ROOT }

						AC_add_AA_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_AA_target_state5_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_AA_decision5 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_AA_decision5 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_RAD_decision1 = { #Radar
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_RAD_target_state1_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state1_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state1_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		modifier = {
			#civilian_factory_use = 1
		}
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state1_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_RAD_target_state1_@ROOT }

						AC_add_RAD_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_RAD_target_state1_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_RAD_decision1 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_RAD_decision1 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_RAD_decision2 = { #Radar
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_RAD_target_state2_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state2_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state2_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state2_@ROOT  } }
					
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_RAD_target_state2_@ROOT }

						AC_add_RAD_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_RAD_target_state2_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_RAD_decision2 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_RAD_decision2 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_RAD_decision3 = { #Radar
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_RAD_target_state3_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state3_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state3_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state3_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_RAD_target_state3_@ROOT }

						AC_add_RAD_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_RAD_target_state3_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_RAD_decision3 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_RAD_decision3 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_RAD_decision4 = { #Radar
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_RAD_target_state4_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state4_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state4_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 4
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state4_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_RAD_target_state4_@ROOT }

						AC_add_RAD_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_RAD_target_state4_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_RAD_decision4 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_RAD_decision4 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_RAD_decision5 = { #Radar
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_RAD_target_state5_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state5_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state5_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 5
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_RAD_target_state5_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_RAD_target_state5_@ROOT }

						AC_add_RAD_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_RAD_target_state5_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_RAD_decision5 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_RAD_decision5 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	
	AC_construction_MIC_decision1 = { #Military factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_MIC_target_state1_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state1_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state1_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		modifier = {
			#civilian_factory_use = 1
		}
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state1_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_MIC_target_state1_@ROOT }

						AC_add_MIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_MIC_target_state1_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_MIC_decision1 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_MIC_decision1 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_MIC_decision2 = { #Military factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_MIC_target_state2_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state2_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state2_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state2_@ROOT  } }
					
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_MIC_target_state2_@ROOT }

						AC_add_MIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_MIC_target_state2_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_MIC_decision2 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_MIC_decision2 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_MIC_decision3 = { #Military factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_MIC_target_state3_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state3_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state3_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state3_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_MIC_target_state3_@ROOT }

						AC_add_MIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_MIC_target_state3_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_MIC_decision3 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_MIC_decision3 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_MIC_decision4 = { #Military factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_MIC_target_state4_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state4_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state4_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 4
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state4_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_MIC_target_state4_@ROOT }

						AC_add_MIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_MIC_target_state4_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_MIC_decision4 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_MIC_decision4 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_MIC_decision5 = { #Military factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_MIC_target_state5_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state5_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state5_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 5
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_MIC_target_state5_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_MIC_target_state5_@ROOT }

						AC_add_MIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_MIC_target_state5_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_MIC_decision5 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_MIC_decision5 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_CIC_decision1 = { #Civilian factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_CIC_target_state1_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state1_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state1_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		modifier = {
			#civilian_factory_use = 1
		}
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state1_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_CIC_target_state1_@ROOT }

						AC_add_CIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_CIC_target_state1_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_CIC_decision1 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_CIC_decision1 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_CIC_decision2 = { #Civilian factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_CIC_target_state2_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state2_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state2_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state2_@ROOT  } }
					
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_CIC_target_state2_@ROOT }

						AC_add_CIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_CIC_target_state2_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_CIC_decision2 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_CIC_decision2 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_CIC_decision3 = { #Civilian factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_CIC_target_state3_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state3_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state3_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state3_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_CIC_target_state3_@ROOT }

						AC_add_CIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_CIC_target_state3_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_CIC_decision3 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_CIC_decision3 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_CIC_decision4 = { #Civilian factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_CIC_target_state4_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state4_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state4_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 4
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state4_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_CIC_target_state4_@ROOT }

						AC_add_CIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_CIC_target_state4_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_CIC_decision4 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_CIC_decision4 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_CIC_decision5 = { #Civilian factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_CIC_target_state5_@ROOT
		}
		available = {
		hidden_trigger = {
				FROM = { not = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state5_@ROOT } } }
				FROM = { not = { tag = ROOT } }
			}
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state5_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 5
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_CIC_target_state5_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_CIC_target_state5_@ROOT }

						AC_add_CIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_CIC_target_state5_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_CIC_decision5 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_CIC_decision5 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_NIC_decision1 = { #Naval factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_NIC_target_state1_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state1_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state1_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		modifier = {
			#civilian_factory_use = 1
		}
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state1_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_NIC_target_state1_@ROOT }

						AC_add_NIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_NIC_target_state1_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_NIC_decision1 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_NIC_decision1 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_NIC_decision2 = { #Naval factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_NIC_target_state2_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state2_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state2_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state2_@ROOT  } }
					
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_NIC_target_state2_@ROOT }

						AC_add_NIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_NIC_target_state2_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_NIC_decision2 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_NIC_decision2 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_NIC_decision3 = { #Naval factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_NIC_target_state3_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state3_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state3_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state3_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_NIC_target_state3_@ROOT }

						AC_add_NIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_NIC_target_state3_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_NIC_decision3 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_NIC_decision3 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_NIC_decision4 = { #Naval factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_NIC_target_state4_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state4_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state4_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 4
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state4_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_NIC_target_state4_@ROOT }

						AC_add_NIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_NIC_target_state4_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_NIC_decision4 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_NIC_decision4 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_NIC_decision5 = { #Naval factories
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_NIC_target_state5_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state5_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state5_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 5
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_NIC_target_state5_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_NIC_target_state5_@ROOT }

						AC_add_NIC_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_NIC_target_state5_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_NIC_decision5 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_NIC_decision5 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	
	AC_construction_REF_decision1 = { #Refineries
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_REF_target_state1_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_REF_target_state1_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_REF_target_state1_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		modifier = {
			#civilian_factory_use = 1
		}
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_REF_target_state1_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_REF_target_state1_@ROOT }

						AC_add_REF_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_REF_target_state1_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_REF_decision1 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_REF_decision1 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_REF_decision2 = { #Refineries
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_REF_target_state2_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_REF_target_state2_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_REF_target_state2_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_REF_target_state2_@ROOT  } }
					
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_REF_target_state2_@ROOT }

						AC_add_REF_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_REF_target_state2_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_REF_decision2 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_REF_decision2 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_REF_decision3 = { #Refineries
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_REF_target_state3_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_REF_target_state3_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_REF_target_state3_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 3
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_REF_target_state3_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_REF_target_state3_@ROOT }

						AC_add_REF_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_REF_target_state3_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_REF_decision3 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_REF_decision3 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_REF_decision4 = { #Refineries
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_REF_target_state4_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_REF_target_state4_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_REF_target_state4_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 4
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_REF_target_state4_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_REF_target_state4_@ROOT }

						AC_add_REF_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_REF_target_state4_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_REF_decision4 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_REF_decision4 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_REF_decision5 = { #Refineries
		icon = generic_construction
		activation = { always = no }
		
		
		
		highlight_states = {
			is_owned_by = FROM
			has_state_flag = AC_construction_REF_target_state5_@ROOT
		}
		available = {
			FROM = { not = { any_owned_state = { has_state_flag = AC_construction_REF_target_state5_@ROOT } } }
			hidden_trigger = { FROM = { not = { tag = ROOT } } }
		}

		visible = {
			FROM = { any_owned_state = { has_state_flag = AC_construction_REF_target_state5_@ROOT } }
			FROM = { not = { tag = ROOT } }
		}
		
		
		
		Is_good = yes
		days_mission_timeout = AC_construction_duration
		days_remove = 5
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		
		timeout_effect = {
			if = { # check state eligibility
				limit = {
					FROM = { any_owned_state = { has_state_flag = AC_construction_REF_target_state5_@ROOT  } }
					#AC_building_slot_available = yes
				}
				FROM = {
					random_owned_state = {
						limit = { has_state_flag = AC_construction_REF_target_state5_@ROOT }

						AC_add_REF_building = yes
						save_event_target_as = AC_state_event_target
						clr_state_flag = AC_construction_REF_target_state5_@ROOT
						set_variable = { AC_build_amount = 1 }
					}
				}
				hidden_effect = { 
					remove_targeted_decision = { target = FROM decision = AC_construction_REF_decision5 }
					FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_target_REF_decision5 } }
				}
				
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	
}

AC_target_country_DECISIONS = {
	
	AC_construction_target_INF_decision1 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_INF_target_state1_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_INF_target_state1_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_INF_target_state1_@FROM }
				hidden_effect = { AC_Return_money_INF2 = yes }
				effect_tooltip = { AC_add_INF_building2 = yes }
				clr_state_flag = AC_construction_INF_target_state1_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_INF_decision1 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_INF_decision1 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_INF_decision2 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_INF_target_state2_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_INF_target_state2_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_INF_target_state2_@FROM }
				hidden_effect = { AC_Return_money_INF2 = yes }
				effect_tooltip = { AC_add_INF_building2 = yes }
				clr_state_flag = AC_construction_INF_target_state2_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_INF_decision2 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_INF_decision2 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_INF_decision3 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_INF_target_state3_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_INF_target_state3_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_INF_target_state3_@FROM }
				hidden_effect = { AC_Return_money_INF2 = yes }
				effect_tooltip = { AC_add_INF_building2 = yes }
				clr_state_flag = AC_construction_INF_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_INF_decision3 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_INF_decision3 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_INF_decision4 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_INF_target_state4_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_INF_target_state4_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_INF_target_state4_@FROM }
				hidden_effect = { AC_Return_money_INF2 = yes }
				effect_tooltip = { AC_add_INF_building2 = yes }
				clr_state_flag = AC_construction_INF_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_INF_decision4 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_INF_decision4 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_INF_decision5 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_INF_target_state5_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_INF_target_state5_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_INF_target_state5_@FROM }
				hidden_effect = { AC_Return_money_INF2 = yes }
				effect_tooltip = { AC_add_INF_building2 = yes }
				clr_state_flag = AC_construction_INF_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_INF_decision5 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_INF_decision5 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_target_AB_decision1 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_AB_target_state1_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_AB_target_state1_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_AB_target_state1_@FROM }
				hidden_effect = { AC_Return_money_AB2 = yes }
				effect_tooltip = { AC_add_AB_building2 = yes }
				clr_state_flag = AC_construction_AB_target_state1_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_AB_decision1 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_AB_decision1 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_AB_decision2 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_AB_target_state2_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_AB_target_state2_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_AB_target_state2_@FROM }
				hidden_effect = { AC_Return_money_AB2 = yes }
				effect_tooltip = { AC_add_AB_building2 = yes }
				clr_state_flag = AC_construction_AB_target_state2_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_AB_decision2 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_AB_decision2 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_AB_decision3 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_AB_target_state3_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_AB_target_state3_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_AB_target_state3_@FROM }
				hidden_effect = { AC_Return_money_AB2 = yes }
				effect_tooltip = { AC_add_AB_building2 = yes }
				clr_state_flag = AC_construction_AB_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_AB_decision3 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_AB_decision3 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_AB_decision4 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_AB_target_state4_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_AB_target_state4_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_AB_target_state4_@FROM }
				hidden_effect = { AC_Return_money_AB2 = yes }
				effect_tooltip = { AC_add_AB_building2 = yes }
				clr_state_flag = AC_construction_AB_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_AB_decision4 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_AB_decision4 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_AB_decision5 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_AB_target_state5_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_AB_target_state5_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_AB_target_state5_@FROM }
				hidden_effect = { AC_Return_money_AB2 = yes }
				effect_tooltip = { AC_add_AB_building2 = yes }
				clr_state_flag = AC_construction_AB_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_AB_decision5 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_AB_decision5 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_target_AA_decision1 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_AA_target_state1_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_AA_target_state1_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_AA_target_state1_@FROM }
				hidden_effect = { AC_Return_money_AA2 = yes }
				effect_tooltip = { AC_add_AA_building2 = yes }
				clr_state_flag = AC_construction_AA_target_state1_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_AA_decision1 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_AA_decision1 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_AA_decision2 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_AA_target_state2_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_AA_target_state2_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_AA_target_state2_@FROM }
				hidden_effect = { AC_Return_money_AA2 = yes }
				effect_tooltip = { AC_add_AA_building2 = yes }
				clr_state_flag = AC_construction_AA_target_state2_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_AA_decision2 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_AA_decision2 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_AA_decision3 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_AA_target_state3_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_AA_target_state3_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_AA_target_state3_@FROM }
				hidden_effect = { AC_Return_money_AA2 = yes }
				effect_tooltip = { AC_add_AA_building2 = yes }
				clr_state_flag = AC_construction_AA_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_AA_decision3 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_AA_decision3 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_AA_decision4 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_AA_target_state4_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_AA_target_state4_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_AA_target_state4_@FROM }
				hidden_effect = { AC_Return_money_AA2 = yes }
				effect_tooltip = { AC_add_AA_building2 = yes }
				clr_state_flag = AC_construction_AA_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_AA_decision4 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_AA_decision4 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_AA_decision5 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_AA_target_state5_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_AA_target_state5_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_AA_target_state5_@FROM }
				hidden_effect = { AC_Return_money_AA2 = yes }
				effect_tooltip = { AC_add_AA_building2 = yes }
				clr_state_flag = AC_construction_AA_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_AA_decision5 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_AA_decision5 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_target_RAD_decision1 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_RAD_target_state1_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_RAD_target_state1_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_RAD_target_state1_@FROM }
				hidden_effect = { AC_Return_money_RAD2 = yes }
				effect_tooltip = { AC_add_RAD_building2 = yes }
				clr_state_flag = AC_construction_RAD_target_state1_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_RAD_decision1 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_RAD_decision1 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_RAD_decision2 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_RAD_target_state2_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_RAD_target_state2_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_RAD_target_state2_@FROM }
				hidden_effect = { AC_Return_money_RAD2 = yes }
				effect_tooltip = { AC_add_RAD_building2 = yes }
				clr_state_flag = AC_construction_RAD_target_state2_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_RAD_decision2 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_RAD_decision2 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_RAD_decision3 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_RAD_target_state3_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_RAD_target_state3_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_RAD_target_state3_@FROM }
				hidden_effect = { AC_Return_money_RAD2 = yes }
				effect_tooltip = { AC_add_RAD_building2 = yes }
				clr_state_flag = AC_construction_RAD_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_RAD_decision3 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_RAD_decision3 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_RAD_decision4 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_RAD_target_state4_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_RAD_target_state4_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_RAD_target_state4_@FROM }
				hidden_effect = { AC_Return_money_RAD2 = yes }
				effect_tooltip = { AC_add_RAD_building2 = yes }
				clr_state_flag = AC_construction_RAD_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_RAD_decision4 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_RAD_decision4 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_RAD_decision5 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_RAD_target_state5_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_RAD_target_state5_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_RAD_target_state5_@FROM }
				hidden_effect = { AC_Return_money_RAD2 = yes }
				effect_tooltip = { AC_add_RAD_building2 = yes }
				clr_state_flag = AC_construction_RAD_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_RAD_decision5 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_RAD_decision5 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_target_MIC_decision1 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_MIC_target_state1_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_MIC_target_state1_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_MIC_target_state1_@FROM }
				hidden_effect = { AC_Return_money_MIC2 = yes }
				effect_tooltip = { AC_add_MIC_building2 = yes }
				clr_state_flag = AC_construction_MIC_target_state1_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_MIC_decision1 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_MIC_decision1 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_MIC_decision2 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_MIC_target_state2_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_MIC_target_state2_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_MIC_target_state2_@FROM }
				hidden_effect = { AC_Return_money_MIC2 = yes }
				effect_tooltip = { AC_add_MIC_building2 = yes }
				clr_state_flag = AC_construction_MIC_target_state2_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_MIC_decision2 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_MIC_decision2 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_MIC_decision3 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_MIC_target_state3_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_MIC_target_state3_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_MIC_target_state3_@FROM }
				hidden_effect = { AC_Return_money_MIC2 = yes }
				effect_tooltip = { AC_add_MIC_building2 = yes }
				clr_state_flag = AC_construction_MIC_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_MIC_decision3 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_MIC_decision3 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_MIC_decision4 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_MIC_target_state4_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_MIC_target_state4_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_MIC_target_state4_@FROM }
				hidden_effect = { AC_Return_money_MIC2 = yes }
				effect_tooltip = { AC_add_MIC_building2 = yes }
				clr_state_flag = AC_construction_MIC_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_MIC_decision4 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_MIC_decision4 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_MIC_decision5 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_MIC_target_state5_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_MIC_target_state5_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_MIC_target_state5_@FROM }
				hidden_effect = { AC_Return_money_MIC2 = yes }
				effect_tooltip = { AC_add_MIC_building2 = yes }
				clr_state_flag = AC_construction_MIC_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_MIC_decision5 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_MIC_decision5 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_target_CIC_decision1 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_CIC_target_state1_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_CIC_target_state1_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_CIC_target_state1_@FROM }
				hidden_effect = { AC_Return_money_CIC2 = yes }
				effect_tooltip = { AC_add_CIC_building2 = yes }
				clr_state_flag = AC_construction_CIC_target_state1_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_CIC_decision1 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_CIC_decision1 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_CIC_decision2 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_CIC_target_state2_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_CIC_target_state2_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_CIC_target_state2_@FROM }
				hidden_effect = { AC_Return_money_CIC2 = yes }
				effect_tooltip = { AC_add_CIC_building2 = yes }
				clr_state_flag = AC_construction_CIC_target_state2_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_CIC_decision2 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_CIC_decision2 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_CIC_decision3 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_CIC_target_state3_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_CIC_target_state3_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_CIC_target_state3_@FROM }
				hidden_effect = { AC_Return_money_CIC2 = yes }
				effect_tooltip = { AC_add_CIC_building2 = yes }
				clr_state_flag = AC_construction_CIC_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_CIC_decision3 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_CIC_decision3 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_CIC_decision4 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_CIC_target_state4_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_CIC_target_state4_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_CIC_target_state4_@FROM }
				hidden_effect = { AC_Return_money_CIC2 = yes }
				effect_tooltip = { AC_add_CIC_building2 = yes }
				clr_state_flag = AC_construction_CIC_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_CIC_decision4 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_CIC_decision4 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_CIC_decision5 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_CIC_target_state5_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_CIC_target_state5_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_CIC_target_state5_@FROM }
				hidden_effect = { AC_Return_money_CIC2 = yes }
				effect_tooltip = { AC_add_CIC_building2 = yes }
				clr_state_flag = AC_construction_CIC_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_CIC_decision5 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_CIC_decision5 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_target_NIC_decision1 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_NIC_target_state1_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_NIC_target_state1_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_NIC_target_state1_@FROM }
				hidden_effect = { AC_Return_money_NIC2 = yes }
				effect_tooltip = { AC_add_NIC_building2 = yes }
				clr_state_flag = AC_construction_NIC_target_state1_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_NIC_decision1 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_NIC_decision1 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_NIC_decision2 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_NIC_target_state2_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_NIC_target_state2_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_NIC_target_state2_@FROM }
				hidden_effect = { AC_Return_money_NIC2 = yes }
				effect_tooltip = { AC_add_NIC_building2 = yes }
				clr_state_flag = AC_construction_NIC_target_state2_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_NIC_decision2 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_NIC_decision2 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_NIC_decision3 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_NIC_target_state3_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_NIC_target_state3_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_NIC_target_state3_@FROM }
				hidden_effect = { AC_Return_money_NIC2 = yes }
				effect_tooltip = { AC_add_NIC_building2 = yes }
				clr_state_flag = AC_construction_NIC_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_NIC_decision3 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_NIC_decision3 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_NIC_decision4 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_NIC_target_state4_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_NIC_target_state4_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_NIC_target_state4_@FROM }
				hidden_effect = { AC_Return_money_NIC2 = yes }
				effect_tooltip = { AC_add_NIC_building2 = yes }
				clr_state_flag = AC_construction_NIC_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_NIC_decision4 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_NIC_decision4 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_NIC_decision5 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_NIC_target_state5_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_NIC_target_state5_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_NIC_target_state5_@FROM }
				hidden_effect = { AC_Return_money_NIC2 = yes }
				effect_tooltip = { AC_add_NIC_building2 = yes }
				clr_state_flag = AC_construction_NIC_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_NIC_decision5 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_NIC_decision5 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	AC_construction_target_REF_decision1 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_REF_target_state1_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_REF_target_state1_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_REF_target_state1_@FROM }
				hidden_effect = { AC_Return_money_REF2 = yes }
				effect_tooltip = { AC_add_REF_building2 = yes }
				clr_state_flag = AC_construction_REF_target_state1_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_REF_decision1 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_REF_decision1 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_REF_decision2 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_REF_target_state2_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_REF_target_state2_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_REF_target_state2_@FROM }
				hidden_effect = { AC_Return_money_REF2 = yes }
				effect_tooltip = { AC_add_REF_building2 = yes }
				clr_state_flag = AC_construction_REF_target_state2_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_REF_decision2 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_REF_decision2 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_REF_decision3 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_REF_target_state3_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_REF_target_state3_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_REF_target_state3_@FROM }
				hidden_effect = { AC_Return_money_REF2 = yes }
				effect_tooltip = { AC_add_REF_building2 = yes }
				clr_state_flag = AC_construction_REF_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_REF_decision3 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_REF_decision3 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_REF_decision4 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_REF_target_state4_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_REF_target_state4_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_REF_target_state4_@FROM }
				hidden_effect = { AC_Return_money_REF2 = yes }
				effect_tooltip = { AC_add_REF_building2 = yes }
				clr_state_flag = AC_construction_REF_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_REF_decision4 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_REF_decision4 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	AC_construction_target_REF_decision5 = {

		allowed = { always = no }
		activation = { always = no }

		available = {
			
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					any_owned_state = {
						is_controlled_by = ROOT
					
						has_state_flag = AC_construction_REF_target_state5_@FROM
					}
				}
			}
		}

		highlight_states = {
			is_controlled_by = ROOT
			has_state_flag = AC_construction_REF_target_state5_@FROM
		}

		is_good = yes
		fire_only_once = yes
		selectable_mission = yes

		days_mission_timeout = AC_target_construction_duration
		days_remove = 3

		cost = 0

		remove_effect = {

		}

		timeout_effect = {

		}

		complete_effect = { # cancel
			custom_effect_tooltip = AC_cancel_investment_tt
			random_owned_state = {
				limit = { has_state_flag = AC_construction_REF_target_state5_@FROM }
				hidden_effect = { AC_Return_money_REF2 = yes }
				effect_tooltip = { AC_add_REF_building2 = yes }
				clr_state_flag = AC_construction_REF_target_state3_@FROM
			}
			hidden_effect = {
				remove_targeted_decision = { target = FROM decision = AC_construction_target_REF_decision5 }
				FROM = { remove_targeted_decision = { target = ROOT decision = AC_construction_REF_decision5 } }
			}
			FROM = {
				hidden_effect = {
					country_event = AC_event.3
					set_variable = { AC_build_amount = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	
}