INS_Crushing_The_Insurgents_category = {
	INS_Guerrillian_Movement = {
		name = "Papuan Guerrilla Movements"
        activation = {
            always = no
        }
        available = {
            always = no
        }
		cancel_trigger = {
			OR = {
				NOT = {
					has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
				}
				has_country_flag = INS_WPNLA_ceasefire_flag
				has_idea = INS_papuan_problem_1_idea
			}
		}
        icon = mission_icon
        is_good = no
        days_mission_timeout = 120
        priority = 20
        selectable_mission = no
        timeout_effect = {
			if = { limit = { has_idea = INS_papuan_problem_3_idea } 
				set_temp_variable = { tempvar = 5 }
				set_temp_variable = { boolpositivechange = 0 }
				Change_Papuan_Seperatism = yes
			}
			else_if = { limit = { has_idea = INS_papuan_problem_2_idea } 
				set_temp_variable = { tempvar = 2.5 }
				set_temp_variable = { boolpositivechange = 0 }
				Change_Papuan_Seperatism = yes
			}
			hidden_effect = {
				activate_mission = INS_Guerrillian_Movement
			}
        }
    }

	INS_Invest_In_Papua = {
		name = "Expand Trans-Papua Highway"
		priority = 6
		fire_only_once = yes
		days_remove = 90
		cost = 60
		allowed = { 
			original_tag = INS 
		}
		visible = {
			AND = {
				has_completed_focus = INS_Invest_Papua_Focus
				has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
				669 = {
					infrastructure < 5
				}
			}
		}
		available = { 
			AND = {
				has_completed_focus = INS_Invest_Papua_Focus
				has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
				669 = {
					infrastructure < 5
				}
			}
		}
		cancel_trigger = {
			669 = {
				infrastructure = 5
			}
		}
		modifier = {
			consumer_goods_factor = 0.1
		}
		remove_effect = { 
			set_temp_variable = { tempvar = 12 }
			set_temp_variable = { boolpositivechange = 1 }
			Change_Papuan_Seperatism = yes
			set_temp_variable = {
				var = income_var_temp
				value = -0.065
			}
			add_income_with_inflation = yes
			669 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Invest_In_Papua_Civilian = {
		name = "Build Industry in West Papua"
		priority = 6
		fire_only_once = yes
		days_remove = 90
		cost = 60
		allowed = { 
			original_tag = INS 
		}
		visible = {
			AND = {
				has_completed_focus = INS_Invest_Papua_Focus
				has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
			}
		}
		available = { 
			AND = {
				has_completed_focus = INS_Invest_Papua_Focus
				has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
			}
		}
		modifier = {
			consumer_goods_factor = 0.1
		}
		remove_effect = { 
			set_temp_variable = { tempvar = 12 }
			set_temp_variable = { boolpositivechange = 1 }
			Change_Papuan_Seperatism = yes
			set_temp_variable = {
				var = income_var_temp
				value = -0.044
			}
			add_income_with_inflation = yes
			669 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = 	industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Fight_Papuan_Influence = {
		name = "Fight Papuan Influence"
		priority = 5
		days_re_enable = 30
		days_remove = 45
		cost = 30
		allowed = { 
			original_tag = INS 
		}
		visible = {
			#NOT = {
			#	OR = {
			#		has_country_flag = INS_Benny_Wenda_Dead
			#		has_country_flag = INS_Papuan_War
			#	}
			#}
			has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
		}
		available = { 
			has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
		}
		modifier = {
			consumer_goods_factor = 0.05
		}
		remove_effect = { 
			set_temp_variable = { tempvar = 5 }
			set_temp_variable = { boolpositivechange = 1 }
			Change_Papuan_Seperatism = yes
		}
		ai_will_do = { base = 1 }
	}
	INS_Reduce_Tension_In_Papua = {
		name = "Launch Operation Garuda"
		priority = 2
		fire_only_once = yes
		days_remove = 120
		cost = 150
		state_target = yes
		target_root_trigger = {
			tag = INS 
		}
		target_array = 669
		target_trigger = {
			669 = {
                is_owned_by = INS
			}
		}
		on_map_mode = map_and_decisions_view
		allowed = { 
			original_tag = INS 
		}
		visible = {
			AND = {
				has_idea = INS_papuan_problem_3_idea
				has_country_flag = INS_can_do_garuda_flag
				has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
			}
		}
		available = {
			AND = {
				has_idea = INS_papuan_problem_3_idea
				has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
			}
		}
		modifier = {
			political_power_gain = -0.1
			consumer_goods_factor = 0.1
		}
		remove_effect = { 
			random_list = {
				75 = {
					country_event = {
						id = indonesia.53
						hours = 6
					}
				}
				INS_Papuan_Strength = {
					country_event = {
						id = indonesia.52
						hours = 6
					}
				}
			}
			custom_effect_tooltip = INS_WPNLA_operation_tooltip
		}
		ai_will_do = { base = 1 }
	}
	INS_End_Separatist_In_Papua = {
		name = "Launch Operation Garuda II"
		priority = 5
		fire_only_once = yes
		days_remove = 120
		cost = 150
		state_target = yes
		target_root_trigger = {
			tag = INS 
		}
		target_array = 669
		target_trigger = {
			669 = {
                is_owned_by = INS
			}
		}
		on_map_mode = map_and_decisions_view
		allowed = { 
			original_tag = INS 
		}
		visible = {
			AND = {
				has_completed_focus = INS_PDTO_War_OPM
				has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
			}
		}
		available = {
			AND = {
				has_completed_focus = INS_PDTO_War_OPM
				has_country_flag = IINS_West_Papuan_Insurgency_Active_flag
			}
		}
		modifier = {
			political_power_gain = -0.15
			consumer_goods_factor = 0.15
		}
		remove_effect = { 
			random_list = {
				75 = {
					country_event = {
						id = indonesia.59
						hours = 6
					}
				}
				INS_Papuan_Strength = {
					country_event = {
						id = indonesia.60
						hours = 6
					}
				}
			}
			custom_effect_tooltip = INS_WPNLA_operation_tooltip
		}
		ai_will_do = { base = 1 }
	}
}

#INS_Investment_category = {
	#INS_Support_Japanese_Investment = {
		#name = "Support Japanese Investment"
	#	priority = 10
	#	fire_only_once = no
	#	cost = 50
	#	days_remove = 2
	#	allowed = { 
      #      original_tag = INS 
      #  }
	#	visible = {
	#		original_tag = INS 
	#	}
	#	available = {
		#	always = yes
     #   }
	#	modifier = {
	#		consumer_goods_factor = 0.05
      #  }
	#	targeted_modifier = {
	#		tag = JAP
	#		cic_to_target_factor = 0.05
	#	}
    #    remove_effect = { 
    #        set_temp_variable = { inv_var = 5 }
	#		set_temp_variable = { investbool = 1 }
	#		Change_Foreign_Investment = yes
#
   #     }
   #     ai_will_do = { base = 1 }
	#}
	#INS_Support_Chinese_Investment = {
	#	name = "Support Chinese Investment"
	#	priority = 10
	#	fire_only_once = no
	#	cost = 50
	#	days_remove = 2
	#	allowed = { 
   #         original_tag = INS 
    #    }
	#	visible = {
	#		original_tag = INS 
	#	}
	#	available = {
	#		always = yes
   #     }
	#	modifier = {
	#		consumer_goods_factor = 0.05
   #     }
	#	targeted_modifier = {
	#		tag = PRC
	#		cic_to_target_factor = 0.05
	#	}
 #       remove_effect = { 
 #           set_temp_variable = { inv_var = 5 }
#			set_temp_variable = { investbool = 0 }
#			Change_Foreign_Investment = yes
#
#        }
#        ai_will_do = { base = 1 }
#	}
#}

INS_Traversing_Through_The_Waves_category = {
	# WILD INFLUENCE FROM ENEMY
	INS_Wild_Influence_mission = {
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
			OR = {
				has_country_flag = INS_Jokowi_Period
				has_country_flag = INS_Anies_Period
			}
		}
		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					has_country_flag = INS_Jokowi_Period
					has_country_flag = INS_Anies_Period
				}
			}
		}
        icon = generic_election
        #is_good = no
        days_mission_timeout = 150
        priority = 20
        selectable_mission = yes
        timeout_effect = {
			if = {
				limit = {
					has_country_flag = INS_Siding_People_flag
					has_country_flag = INS_Jokowi_Period
				}
				set_temp_variable = { yoursituation = 1 }
				INS_Random_Party_Influence = yes
			}
			else_if = {
				limit = {
					has_country_flag = INS_Anies_Period
				}
				set_temp_variable = { yoursituation = 2 }
				INS_Random_Party_Influence = yes
			}
			
			hidden_effect = {
				activate_mission = INS_Wild_Influence_mission
			}
        }
    }		
	INS_Build_IKN_mission = {
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
		}
		cancel_trigger = {
			hidden_trigger = {
				has_country_flag = INS_Abandon_IKN_flag
			}
		}
        icon = generic_election
        #is_good = no
        days_mission_timeout = 2000
        priority = 15
        selectable_mission = yes
		complete_effect = {
			custom_effect_tooltip = INS_Delay_Cancel_IKN_tooltip
			remove_ideas = INS_IKN_build_idea
		}
        timeout_effect = {
			custom_effect_tooltip = INS_Complete_IKN_tooltip
			334 = {
				add_extra_state_shared_building_slots = 5
				add_building_construction = {
					type = office_park
					level = 4
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = anti_air_building
					level = 3
					instant_build = yes
				}
				add_building_construction = {
					type = coastal_bunker
					level = 2
					instant_build = yes
					province = 10237
				}
				add_building_construction = {
					type = bunker
					level = 3
					instant_build = yes
					province = 10237
				}
				set_building_level = {
					type = infrastructure
					level = 5
				}
				add_state_modifier = {
					modifier = {
						mobilization_speed = 0.15
						supply_node_range = 0.2
						local_building_slots = 3
						local_manpower = 0.15
						local_org_regain = 0.1
						local_supplies = 0.15
					}
				}
			}
			add_victory_points = {
				province = 10237
				value = 15
			}
			add_victory_points = {
				province = 7381
				value = -10
			}
			set_province_name = {
				id = 10237
				name = "Nusantara"
			}
			set_capital = {
				state = 334
			}
			set_country_flag = INS_Project_IKN_Passed_flag
			remove_ideas = INS_IKN_build_idea
        }
    }		
	#political action
	INS_Reactive_GBHN_decision = {
		priority = 15
		fire_only_once = yes
		cost = 175
		days_remove = 90
		allowed = { 
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
		}
		visible = {
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
			has_country_flag = INS_Want_GBHN_flag
		}
		available = { 
			original_tag = INS 
			has_country_flag = INS_Want_GBHN_flag
			OR = {
				has_country_flag = INS_peace_confrontation_flag
				has_country_flag = INS_won_confrontation_flag
			}
		}
		modifier = { political_power_gain = -0.25 }
		remove_effect = { 
			custom_effect_tooltip = INS_Active_GBHN_tooltip
			hidden_effect = {
				set_country_flag = INS_Support_GBHN_flag
				clr_country_flag = INS_want_GBHN_flag
				country_event = {
					id = indonesia.42
					days = 1
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Liquidating_Asset_decision = {
		priority = 12
		fire_only_once = no
		cost = 75
		days_remove = 120
		days_re_enable = 120
		allowed = { 
			original_tag = INS
		}
		visible = {
			original_tag = INS
		}
		available = { 
			original_tag = INS 
			OR = {
				NOT = {
					has_country_flag = INS_year2020_flag
				}
				has_completed_focus = INS_Omnibuslaw_Pleno
			}
			
		}
		modifier = { 
			political_power_gain = -0.2
			expense_growth_factor = 0.1
			income_growth_factor = -0.3
		}
		remove_effect = { 
			set_temp_variable = {
				var = income_var_temp
				value = 5
			}
			add_income_with_inflation = yes
		}
		ai_will_do = { base = 1 }
	}
	INS_Temp_Tax_Cut_decision = {
		priority = 12
		fire_only_once = no
		cost = 75
		days_remove = 180
		days_re_enable = 120
		allowed = { 
			original_tag = INS
		}
		visible = {
			original_tag = INS
		}
		available = { 
			original_tag = INS  
			OR = {
				NOT = {
					has_country_flag = INS_year2020_flag
				}
				has_completed_focus = INS_Omnibuslaw_Pleno
			}
		}
		complete_effect = {
			set_temp_variable = {
				var = income_var_temp
				value = -1.855
			}
			add_income_with_inflation = yes
		}
		modifier = { 
			expense_growth_factor = -0.03
			consumer_goods_factor = -0.1
			industrial_development_monthly = 0.02
			production_factory_max_efficiency_factor = 0.1
			industrial_capacity_factory	= 0.1
			industrial_capacity_dockyard = 0.05
		}
		remove_effect = { 
			add_stability = 0.02
		}
		ai_will_do = { base = 1 }
	}
	INS_Temp_Construction_Boost_decision = {
		priority = 12
		fire_only_once = no
		cost = 50
		days_remove = 150
		days_re_enable = 90
		allowed = { 
			original_tag = INS
		}
		visible = {
			original_tag = INS
		}
		available = { 
			original_tag = INS  
			OR = {
				NOT = {
					has_country_flag = INS_year2020_flag
				}
				has_completed_focus = INS_Omnibuslaw_Pleno
			}
		}
		complete_effect = {
			set_temp_variable = {
				var = income_var_temp
				value = -1.215
			}
			add_income_with_inflation = yes
		}
		modifier = { 
			expense_growth_factor = -0.02
			consumer_goods_factor = -0.05
			production_speed_industrial_complex_factor = 0.15
			production_speed_infrastructure_factor = 0.2
		}
		remove_effect = { 
			add_stability = 0.015
		}
		ai_will_do = { base = 1 }
	}
	INS_National_Unity_decision = { #anies
		priority = 15
		fire_only_once = no
		cost = 50
		days_remove = 30
		days_re_enable = 90
		allowed = { 
			original_tag = INS
		}
		visible = {
			original_tag = INS
			has_country_flag = INS_Anies_Period
			has_completed_focus = INS_Anies_Harmonic_Society
		}
		available = { 
			original_tag = INS 
			has_country_flag = INS_Anies_Period
		}
		modifier = { 
			political_power_gain = -0.1
			war_support_weekly = -0.01
			stability_weekly = 0.03
		}
		remove_effect = { 
			set_temp_variable = {
				var = society_development_var_temp
				value = 0.05
			}
			add_society_development = yes
		}
		ai_will_do = { base = 1 }
	}
	INS_Youth_Gen_decision = { #anies
		priority = 15
		fire_only_once = no
		cost = 75
		days_remove = 60
		days_re_enable = 120
		allowed = { 
			original_tag = INS
		}
		visible = {
			original_tag = INS
			has_country_flag = INS_Anies_Period
			has_completed_focus = INS_Anies_Harmonic_Society
		}
		available = { 
			original_tag = INS 
			has_country_flag = INS_Anies_Period
		}
		modifier = { 
			political_power_gain = -0.1
			war_support_weekly = 0.01
			recruitable_population = 0.025
		}
		remove_effect = { 
			set_temp_variable = {
				var = society_development_var_temp
				value = 0.05
			}
			add_society_development = yes
			set_temp_variable = {
				var = military_development_var_temp
				value = 0.025
			}
			add_military_development = yes
			set_temp_variable = {
				var = academic_development_var_temp
				value = 0.025
			}
			add_academic_development = yes
		}
		ai_will_do = { base = 1 }
	}
	#support-party-government
	INS_Lobby_PDIP_decision = {
		priority = 10
		fire_only_once = no
		cost = 20
		days_re_enable = 90
		days_remove = 30
		allowed = { 
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
		}
		visible = {
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
			has_country_flag = INS_Support_Bill_flag
			check_variable = {
				var = INS_Party_PDIP_Popularity
				value = 100
				compare = less_than
			}
		}
		available = { 
			original_tag = INS 
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Seek_Support
			}
		}
		modifier = { political_power_gain = -0.1 }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 2 }
			random_list = {
				INS_Party_PDIP_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Lobby_NasDem_decision = {
		priority = 10
		fire_only_once = no
		cost = 20
		days_re_enable = 90
		days_remove = 30
		allowed = { 
			original_tag = INS
			OR = {
				has_country_flag = INS_Jokowi_Period
				has_country_flag = INS_Anies_Period
			}
		}
		visible = {
			original_tag = INS
			if = {
				limit = {
					has_country_flag = INS_Jokowi_Period
				}
				OR = {
					has_country_flag = INS_Support_Bill_flag
					has_completed_focus = INS_Support_Opposition
				}
			}
			else_if = {
				limit = {
					has_country_flag = INS_Anies_Period
				}
				check_variable = {
					var = INS_Party_NasDem_Loyalty
					value = 1
					compare = greater_than_or_equals
				}
			}
			check_variable = {
				var = INS_Party_NasDem_Popularity
				value = 100
				compare = less_than
			}
		}
		available = { 
			original_tag = INS 
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Seek_Support
			}
		}
		modifier = { political_power_gain = -0.1 }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 3 }
			random_list = {
				INS_Party_NasDem_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Lobby_PKB_decision = {
		priority = 10
		fire_only_once = no
		cost = 20
		days_re_enable = 90
		days_remove = 30
		allowed = { 
			original_tag = INS
			OR = {
				has_country_flag = INS_Jokowi_Period
				has_country_flag = INS_Anies_Period
			}
		}
		visible = {
			original_tag = INS
			if = {
				limit = {
					has_country_flag = INS_Jokowi_Period
				}
				OR = {
					has_country_flag = INS_Support_Bill_flag
					has_completed_focus = INS_Support_Opposition
					has_country_flag = INS_Anies_Imin_flag
				}
			}
			else_if = {
				limit = {
					has_country_flag = INS_Anies_Period
				}
				check_variable = {
					var = INS_Party_PKB_Loyalty
					value = 1
					compare = greater_than_or_equals
				}
			}
			check_variable = {
				var = INS_Party_PKB_Popularity
				value = 100
				compare = less_than
			}
		}
		available = { 
			original_tag = INS 
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Seek_Support
			}
		}
		modifier = { political_power_gain = -0.1 }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 4 }
			random_list = {
				INS_Party_PKB_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Lobby_PPP_decision = {
		priority = 10
		fire_only_once = no
		cost = 20
		days_re_enable = 90
		days_remove = 30
		allowed = { 
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
		}
		visible = {
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
			has_country_flag = INS_Support_Bill_flag
			check_variable = {
				var = INS_Party_PPP_Popularity
				value = 100
				compare = less_than
			}
		}
		available = { 
			original_tag = INS 
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Seek_Support
			}
		}
		modifier = { political_power_gain = -0.1 }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 5 }
			random_list = {
				INS_Party_PPP_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Lobby_Demokrat_decision = {
		priority = 10
		fire_only_once = no
		cost = 20
		days_re_enable = 90
		days_remove = 30
		allowed = { 
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
		}
		visible = {
			original_tag = INS
			OR = {
				has_country_flag = INS_Jokowi_Period
				AND = {
					has_country_flag = INS_Anies_Period
					has_country_flag = INS_Anies_AHY_flag
				}
			}
			OR = {
				has_country_flag = INS_Siding_People_flag
				has_country_flag = INS_Demokrat_Shift_flag
			}
			check_variable = {
				var = INS_Party_Demokrat_Popularity
				value = 100
				compare = less_than
			}
		}
		available = { 
			original_tag = INS 
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				OR = {
					has_completed_focus = INS_Talk_With_Opposition
					has_completed_focus = INS_Seek_Support
				}
			}
		}
		modifier = { political_power_gain = -0.1 }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 6 }
			random_list = {
				INS_Party_Demokrat_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Lobby_PAN_decision = {
		priority = 10
		fire_only_once = no
		cost = 20
		days_re_enable = 90
		days_remove = 30
		allowed = { 
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
		}
		visible = {
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
			has_country_flag = INS_Support_Bill_flag
			check_variable = {
				var = INS_Party_PAN_Popularity
				value = 100
				compare = less_than
			}
		}
		available = { 
			original_tag = INS 
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Seek_Support
			}
		}
		modifier = { political_power_gain = -0.1 }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 7 }
			random_list = {
				INS_Party_PAN_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Lobby_Golkar_decision = {
		priority = 10
		fire_only_once = no
		cost = 20
		days_re_enable = 90
		days_remove = 30
		allowed = { 
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
		}
		visible = {
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
			has_country_flag = INS_Support_Bill_flag
			check_variable = {
				var = INS_Party_Golkar_Popularity
				value = 100
				compare = less_than
			}
		}
		available = { 
			original_tag = INS 
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Seek_Support
			}
		}
		modifier = { political_power_gain = -0.1 }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 8 }
			random_list = {
				INS_Party_Golkar_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Lobby_Gerindra_decision = {
		priority = 10
		fire_only_once = no
		cost = 20
		days_re_enable = 90
		days_remove = 30
		allowed = { 
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
		}
		visible = {
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
			has_country_flag = INS_Support_Bill_flag
			check_variable = {
				var = INS_Party_Gerindra_Popularity
				value = 100
				compare = less_than
			}
		}
		available = { 
			original_tag = INS 
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Seek_Support
			}
		}
		modifier = { political_power_gain = -0.1 }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 9 }
			random_list = {
				INS_Party_Gerindra_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}
	INS_Lobby_PKS_decision = {
		priority = 10
		fire_only_once = no
		cost = 20
		days_re_enable = 90
		days_remove = 30
		allowed = { 
			original_tag = INS
			OR = {
				has_country_flag = INS_Jokowi_Period
				has_country_flag = INS_Anies_Period
			}
		}
		visible = {
			original_tag = INS
			OR = {
				has_country_flag = INS_Jokowi_Period
				has_country_flag = INS_Anies_Period
			}
			has_country_flag = INS_Siding_People_flag
			check_variable = {
				var = INS_Party_PKS_Popularity
				value = 100
				compare = less_than
			}
		}
		available = { 
			original_tag = INS 
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Talk_With_Opposition
			}
		}
		modifier = { political_power_gain = -0.1 }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 10 }
			random_list = {
				INS_Party_PKS_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
		}
		ai_will_do = { base = 1 }
	}



	INS_Against_PKS_decision = {
        priority = 10
        fire_only_once = no
        cost = 35
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
			has_country_flag = INS_Jokowi_Period
        }
        visible = {
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
			has_country_flag = INS_Support_Bill_flag
			
			check_variable = {
				var = INS_Party_PKS_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Suppress_Opposition
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 10 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }
	INS_Against_Demokrat_decision = {
        priority = 10
        fire_only_once = no
        cost = 35
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
			has_country_flag = INS_Jokowi_Period
        }
        visible = {
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
			has_country_flag = INS_Support_Bill_flag
			NOT = {
				has_country_flag = INS_Demokrat_Shift_flag
			}
			check_variable = {
				var = INS_Party_Demokrat_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Suppress_Opposition
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 6 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }


	#opposition-groups
	INS_Against_PSI_decision = {
        priority = 10
        fire_only_once = no
        cost = 35
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			NOT = {
				has_country_flag = INS_Jokowi_Period
			}
			if = {
				limit = {
					has_country_flag = INS_Anies_Period
				}
				check_variable = {
					var = INS_Party_PSI_Loyalty
					value = 1
					compare = less_than
				}
			}
			check_variable = {
				var = INS_Party_PSI_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 1 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }

	INS_Infiltrate_Opposition_decision = {
        priority = 12
        fire_only_once = no
        cost = 60
		days_re_enable = 120
        days_remove = 60
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_completed_focus = INS_Anies_Attack_Jokowi
        }
        available = { 
            original_tag = INS
			has_completed_focus = INS_Anies_Sabotage_Oppose
        }
        modifier = {
			political_power_gain  = -0.15
        }
		complete_effect = {
		}
		remove_effect = { 
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 2 }
			Decrease_Party_Popularity = yes
			set_temp_variable = { parties = 8 }
			Decrease_Party_Popularity = yes
			set_temp_variable = { parties = 9 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }
	INS_Against_PDIP_decision = {
        priority = 10
        fire_only_once = no
        cost = 35
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_country_flag = INS_Siding_People_flag

			check_variable = {
				var = INS_Party_PDIP_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Gain_Support_Socmed
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 2 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }
	INS_Against_NasDem_decision = {
        priority = 10
        fire_only_once = no
        cost = 35
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			if = {
				limit = {
					has_country_flag = INS_Jokowi_Period
				}
				AND = {
					has_country_flag = INS_Siding_People_flag
					check_variable = {
						var = INS_Party_NasDem_Loyalty
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			else_if = {
				limit = {
					has_country_flag = INS_Anies_Period
				}
				check_variable = {
					var = INS_Party_NasDem_Loyalty
					value = 1
					compare = less_than
				}
			}
			check_variable = {
				var = INS_Party_NasDem_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Gain_Support_Socmed
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 3 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }
	INS_Against_PKB_decision = {
        priority = 10
        fire_only_once = no
        cost = 35
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			if = {
				limit = {
					has_country_flag = INS_Jokowi_Period
				}
				AND = {
					has_country_flag = INS_Siding_People_flag
					check_variable = {
						var = INS_Party_PKB_Loyalty
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			else_if = {
				limit = {
					has_country_flag = INS_Anies_Period
				}
				check_variable = {
					var = INS_Party_PKB_Loyalty
					value = 1
					compare = less_than
				}
			}
			check_variable = {
				var = INS_Party_PKB_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Gain_Support_Socmed
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 4 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }
	INS_Against_PPP_decision = {
        priority = 10
        fire_only_once = no
        cost = 35
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			if = {
				limit = {
					has_country_flag = INS_Jokowi_Period
				}
				has_country_flag = INS_Siding_People_flag
			}
			else_if = {
				limit = {
					has_country_flag = INS_Anies_Period
				}
				check_variable = {
					var = INS_Party_PPP_Loyalty
					value = 1
					compare = less_than
				}
			}
			check_variable = {
				var = INS_Party_PPP_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Gain_Support_Socmed
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 5 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }
	INS_Against_PAN_decision = {
        priority = 10
        fire_only_once = no
        cost = 35
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			if = {
				limit = {
					has_country_flag = INS_Jokowi_Period
				}
				has_country_flag = INS_Siding_People_flag
			}
			else_if = {
				limit = {
					has_country_flag = INS_Anies_Period
				}
				check_variable = {
					var = INS_Party_PAN_Loyalty
					value = 1
					compare = less_than
				}
			}
			
			check_variable = {
				var = INS_Party_PAN_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Gain_Support_Socmed
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 7 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }
	INS_Against_Golkar_decision = {
        priority = 10
        fire_only_once = no
        cost = 35
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_country_flag = INS_Siding_People_flag

			check_variable = {
				var = INS_Party_Golkar_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Gain_Support_Socmed
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 8 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }
	INS_Against_Gerindra_decision = {
        priority = 10
        fire_only_once = no
        cost = 35
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_country_flag = INS_Siding_People_flag

			check_variable = {
				var = INS_Party_Gerindra_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Gain_Support_Socmed
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 9 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }

	#invite to gov
	INS_Invite_PDIP_decision = {
        priority = 12
        fire_only_once = yes
        cost = 75
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_completed_focus = INS_Anies_Peace_Prabowo
		}
        available = { 
            original_tag = INS
			has_completed_focus = INS_Anies_Big_Tent
			set_temp_variable = { check_pop = 50 }
			custom_trigger_tooltip = {
				tooltip = INS_Invite_PDIP_tooltip
				check_variable = {
					var = INS_Party_PDIP_Popularity
					value = check_pop
					compare = less_than
				}
			}
        }
        modifier = {
			political_power_gain  = -0.15
        }
		complete_effect = {
		}
		remove_effect = { 
			country_event = indonesiaanies.21
        }
        ai_will_do = { base = 1 }
    }
	INS_Invite_PPP_decision = {
        priority = 12
        fire_only_once = yes
        cost = 50
        days_remove = 30
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_completed_focus = INS_Anies_Approach_Rival
        }
        available = { 
            original_tag = INS
			has_completed_focus = INS_Anies_Approach_Rival
			set_temp_variable = { check_pop = 35 }
			custom_trigger_tooltip = {
				tooltip = INS_Invite_PPP_tooltip
				check_variable = {
					var = INS_Party_PPP_Popularity
					value = check_pop
					compare = less_than
				}
			}
        }
        modifier = {
			political_power_gain  = -0.15
        }
		complete_effect = {
		}
		remove_effect = { 
			country_event = indonesiaanies.19
        }
        ai_will_do = { base = 1 }
    }
	INS_Invite_PAN_decision = {
        priority = 12
        fire_only_once = yes
        cost = 50
        days_remove = 30
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_completed_focus = INS_Anies_Approach_Rival
        }
        available = { 
            original_tag = INS
			has_completed_focus = INS_Anies_Approach_Rival
			set_temp_variable = { check_pop = 35 }
			custom_trigger_tooltip = {
				tooltip = INS_Invite_PAN_tooltip
				check_variable = {
					var = INS_Party_PAN_Popularity
					value = check_pop
					compare = less_than
				}
			}
        }
        modifier = {
			political_power_gain  = -0.15
        }
		complete_effect = {
		}
		remove_effect = { 
			country_event = indonesiaanies.20
        }
        ai_will_do = { base = 1 }
    }
	INS_Invite_PKB_decision = {
        priority = 12
        fire_only_once = yes
        cost = 50
        days_remove = 30
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_idea = INS_Agus_Harimurti
			has_completed_focus = INS_Anies_Approach_Rival
        }
        available = { 
            original_tag = INS
			has_completed_focus = INS_Anies_Approach_Rival
			set_temp_variable = { check_pop = 35 }
			custom_trigger_tooltip = {
				tooltip = INS_Invite_PKB_tooltip
				check_variable = {
					var = INS_Party_PKB_Popularity
					value = check_pop
					compare = less_than
				}
			}
        }
        modifier = {
			political_power_gain  = -0.15
        }
		complete_effect = {
		}
		remove_effect = { 
			country_event = indonesiaanies.26
        }
        ai_will_do = { base = 1 }
    }
	INS_Invite_Demokrat_decision = {
        priority = 12
        fire_only_once = yes
        cost = 50
        days_remove = 30
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_idea = INS_Muhaimin_Iskandar
			has_completed_focus = INS_Anies_Approach_Rival
        }
        available = { 
            original_tag = INS
			has_completed_focus = INS_Anies_Approach_Rival
			set_temp_variable = { check_pop = 35 }
			custom_trigger_tooltip = {
				tooltip = INS_Invite_Demokrat_tooltip
				check_variable = {
					var = INS_Party_Demokrat_Popularity
					value = check_pop
					compare = less_than
				}
			}
        }
        modifier = {
			political_power_gain  = -0.15
        }
		complete_effect = {
		}
		remove_effect = { 
			country_event = indonesiaanies.40
        }
        ai_will_do = { base = 1 }
    }
	INS_Invite_Golkar_decision = {
        priority = 12
        fire_only_once = yes
        cost = 75
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_completed_focus = INS_Anies_Peace_Prabowo
		}
        available = { 
            original_tag = INS
			has_completed_focus = INS_Anies_Big_Tent
			set_temp_variable = { check_pop = 50 }
			custom_trigger_tooltip = {
				tooltip = INS_Invite_Golkar_tooltip
				check_variable = {
					var = INS_Party_Golkar_Popularity
					value = check_pop
					compare = less_than
				}
			}
        }
        modifier = {
			political_power_gain  = -0.15
        }
		complete_effect = {
		}
		remove_effect = { 
			country_event = indonesiaanies.61
        }
        ai_will_do = { base = 1 }
    }
	INS_Invite_Gerindra_decision = {
        priority = 12
        fire_only_once = yes
        cost = 75
        days_remove = 45
        allowed = { 
            original_tag = INS
        }
        visible = {
			original_tag = INS
			has_completed_focus = INS_Anies_Peace_Prabowo
		}
        available = { 
            original_tag = INS
			has_completed_focus = INS_Anies_Big_Tent
			set_temp_variable = { check_pop = 50 }
			custom_trigger_tooltip = {
				tooltip = INS_Invite_Gerindra_tooltip
				check_variable = {
					var = INS_Party_Gerindra_Popularity
					value = check_pop
					compare = less_than
				}
			}
        }
        modifier = {
			political_power_gain  = -0.15
        }
		complete_effect = {
		}
		remove_effect = { 
			country_event = indonesiaanies.22
        }
        ai_will_do = { base = 1 }
    }
	
	#interest group
	INS_Lobby_FPI_decision = {
		priority = 10
		fire_only_once = no
		cost = 25
		days_re_enable = 90
        days_remove = 30
        allowed = { 
            original_tag = INS
			has_country_flag = INS_Jokowi_Period
        }
        visible = {
			original_tag = INS
			OR = {
				has_country_flag = INS_Rizieq_Home_flag
				has_country_flag = INS_year2021_flag
			}
			has_country_flag = INS_Siding_People_flag

			check_variable = {
				var = INS_Group_FPI_Popularity
				value = 100
				compare = less_than
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			has_country_flag = INS_Siding_People_flag
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 12 }
			random_list = {
				INS_Group_FPI_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
        }
        ai_will_do = { base = 1 }
    }
	INS_Lobby_Labor_decision = {
        priority = 10
        fire_only_once = no
        cost = 25
		days_re_enable = 90
        days_remove = 30
        allowed = { 
            original_tag = INS
			#has_country_flag = INS_Jokowi_Period
        }
        visible = {
			always = no
			original_tag = INS
			OR = {
				has_completed_focus = INS_Worker_Strike
				has_country_flag = INS_year2021_flag
			}
			has_country_flag = INS_Siding_People_flag

			check_variable = {
				var = INS_Group_Labor_Popularity
				value = 100
				compare = less_than
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Worker_Strike
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { parties = 11 }
			random_list = {
				INS_Group_Labor_Popularity = {
					set_temp_variable = { partyvar = 3 }
					Increase_Party_Popularity = yes
				}
				30 = {
					set_temp_variable = { partyvar = 5 }
					Increase_Party_Popularity = yes
				}
				20 ={
					set_temp_variable = { partyvar = 7 }
					Increase_Party_Popularity = yes
				}
			}
        }
        ai_will_do = { base = 1 }
    }
	INS_Against_Labor_decision = {
        priority = 10
        fire_only_once = no
        cost = 40
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
			has_country_flag = INS_Jokowi_Period
        }
        visible = {
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
			has_country_flag = INS_Support_Bill_flag

			check_variable = {
				var = INS_Group_Labor_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			OR = {
				NOT = {
					has_country_flag = INS_omnibuslaw_crisis_flag
				}
				has_completed_focus = INS_Suppress_Opposition
			}
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 11 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }
	INS_Against_FPI_decision = {
        priority = 10
        fire_only_once = no
        cost = 40
		days_re_enable = 90
        days_remove = 45
        allowed = { 
            original_tag = INS
			has_country_flag = INS_Jokowi_Period
        }
        visible = {
			original_tag = INS
			has_country_flag = INS_Jokowi_Period
			has_country_flag = INS_Support_Bill_flag
			OR = {
				has_country_flag = INS_Rizieq_Home_flag
				has_country_flag = INS_year2021_flag
			}
			check_variable = {
				var = INS_Group_FPI_Popularity
				value = 1
				compare = greater_than_or_equals
			}
        }
        available = { 
            original_tag = INS
			NOT = {
				has_country_flag = INS_Political_Mission_flag
			}
			has_country_flag = INS_Support_Bill_flag
        }
        modifier = {
			political_power_gain  = -0.1
        }
		complete_effect = {
			set_country_flag = INS_Political_Mission_flag
		}
		remove_effect = { 
			clr_country_flag = INS_Political_Mission_flag
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 12 }
			Decrease_Party_Popularity = yes
        }
        ai_will_do = { base = 1 }
    }
}

INS_Coronavirus_category = {
	#covid vaccinated
	INS_Covid_Vaccinated = {
		name = "Recovering from Covid-19"
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
			has_country_flag = INS_Covid_Pandemic_2_flag
		}
		cancel_trigger = {
		}
        icon = generic_vaccine
        #is_good = no
        days_mission_timeout = 1200
        priority = 30
        selectable_mission = yes
        timeout_effect = {
			if = {
				limit = {
					has_idea = INS_coronavirus_pandemic_1_idea
				}
				remove_ideas = INS_coronavirus_pandemic_1_idea
			}
			else_if = {
				limit = {
					has_idea = INS_coronavirus_pandemic_2_idea
				}
				remove_ideas = INS_coronavirus_pandemic_2_idea
			}
			else_if = {
				limit = {
					has_idea = INS_coronavirus_pandemic_3_idea
				}
				remove_ideas = INS_coronavirus_pandemic_3_idea
			}
			else_if = {
				limit = {
					has_idea = INS_coronavirus_pandemic_4_idea
				}
				remove_ideas = INS_coronavirus_pandemic_4_idea
			}
			country_event = {
				id = indonesiacovid.7
				days = 1
			}
			hidden_effect = {
				clr_country_flag = INS_has_buy_sinovac_flag
				clr_country_flag = INS_Covid_Pandemic_2_flag
			}
        }
    }
	INS_Prevent_Vaccine_Hoax = {
		name = "Prevent Hoax about Vaccination"
		priority = 10
		fire_only_once = no
		cost = 15
		days_re_enable = 90
		days_remove = 21
		icon = generic_mask
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_2_flag
		}
		modifier = {
			political_power_gain = -0.10
			stability_weekly_factor = 0.002
        }
        remove_effect = { 
			add_days_mission_timeout = {
				mission = INS_Covid_Vaccinated
				days = -21
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_People_Vaccine = {
		name = "Encourage Public Vaccination"
		priority = 10
		fire_only_once = no
		cost = 30
		days_re_enable = 90
		days_remove = 30
		icon = generic_mask
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_2_flag
		}
		modifier = {
			political_power_gain = -0.20
			stability_weekly_factor = 0.005
        }
        remove_effect = { 
			add_days_mission_timeout = {
				mission = INS_Covid_Vaccinated
				days = -45
			}
        }
        ai_will_do = { base = 1 }
	}

	#covid pandemic
	INS_Covid_Rise = {
		name = "Coronavirus Spreading"
        activation = {
            always = no
        }
        available = {
			has_country_flag = INS_Covid_Pandemic_2_flag
        }
		visible = {
			OR = {
				has_country_flag = INS_Covid_Pandemic_2_flag
				has_country_flag = INS_Covid_Pandemic_flag
			}
		}
		cancel_trigger = {
			hidden_trigger = {
				OR = {
					NOT = {
						has_country_flag = INS_Covid_Pandemic_flag
					}
					has_idea = INS_coronavirus_pandemic_4_idea
				}
			}
		}
        icon = generic_coronavirus
        is_good = no
        days_mission_timeout = 45
        priority = 20
        selectable_mission = no
        timeout_effect = {
			if = {
				limit = {
					has_idea = INS_coronavirus_pandemic_1_idea
				}
				swap_ideas = {
					remove_idea = INS_coronavirus_pandemic_1_idea
					add_idea = INS_coronavirus_pandemic_2_idea
				}
			}
			else_if = {
				limit = {
					has_idea = INS_coronavirus_pandemic_2_idea
				}
				swap_ideas = {
					remove_idea = INS_coronavirus_pandemic_2_idea
					add_idea = INS_coronavirus_pandemic_3_idea
				}
			}
			else_if = {
				limit = {
					has_idea = INS_coronavirus_pandemic_3_idea
				}
				swap_ideas = {
					remove_idea = INS_coronavirus_pandemic_3_idea
					add_idea = INS_coronavirus_pandemic_4_idea
				}
			}
			hidden_effect = {
				activate_mission = INS_Covid_Rise
			}
        }
    }
	INS_Covid_Issuing = {
		name = "Issue #StayAtHome to our People"
		priority = 5
		fire_only_once = no
		cost = 20
		days_re_enable = 45
		days_remove = 7
		icon = generic_mask
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_flag
		}
		available = {
			has_completed_focus = INS_First_Covid
        }
		modifier = {
			political_power_gain = -0.10
			stability_weekly_factor = -0.001
        }
        remove_effect = { 
			add_days_mission_timeout = {
				mission = INS_Covid_Rise
				days = 14
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Distribute_Mask = {
		name = "Distribute Mask"
		priority = 10
		fire_only_once = no
		cost = 35
		days_re_enable = 45
		days_remove = 14
		icon = generic_mask
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_flag
		}
		available = {
			has_completed_focus = INS_Handle_Pandemic
		}
		modifier = {
			political_power_gain = -0.10
			stability_weekly_factor = 0.002
        }
		complete_effect = {
			set_temp_variable = {
				var = income_var_temp
				value = -0.083
			}
			add_income_with_inflation = yes
		}
        remove_effect = { 
			add_days_mission_timeout = {
				mission = INS_Covid_Rise
				days = 30
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Banned_Travel_1 = {
		name = "Close the Airport"
		priority = 10
		fire_only_once = yes
		cost = 50
		days_remove = 3
		icon = generic_mask
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_flag
			AND = {
				has_completed_focus = INS_Total_Lockdown
				has_completed_focus = INS_Handle_Pandemic
			}
		}
		available = {
			AND = {
				has_completed_focus = INS_Total_Lockdown
				has_completed_focus = INS_Handle_Pandemic
			}
		}
		modifier = {
			political_power_gain = -0.10
			consumer_goods_factor = 0.1
			stability_weekly_factor = -0.003
        }
        remove_effect = { 
			add_stability = -0.03
			add_days_mission_timeout = {
				mission = INS_Covid_Rise
				days = 45
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Banned_Travel_2 = {
		name = "Ban International Flights"
		priority = 10
		fire_only_once = yes
		cost = 50
		days_remove = 3
		icon = generic_mask
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_flag
			AND = {
				has_completed_focus = INS_Minor_Lockdown
				has_completed_focus = INS_Handle_Pandemic
			}
		}
		available = {
			AND = {
				has_completed_focus = INS_Minor_Lockdown
				has_completed_focus = INS_Handle_Pandemic
			}
		}
		modifier = {
			political_power_gain = -0.08
			consumer_goods_factor = 0.07
			stability_weekly_factor = -0.002
        }
        remove_effect = { 
			add_days_mission_timeout = {
				mission = INS_Covid_Rise
				days = 30
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Close_School = {
		name = "Close the School"
		priority = 10
		fire_only_once = yes
		cost = 35
		days_remove = 7
		icon = generic_mask
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_flag
		}
		available = {
			has_completed_focus = INS_Handle_Pandemic
		}
		modifier = {
			political_power_gain = -0.05
			consumer_goods_factor = 0.05
			stability_weekly_factor = 0.002
        }
        remove_effect = { 
			add_days_mission_timeout = {
				mission = INS_Covid_Rise
				days = 21
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Deploy_Satgas = {
		name = "Deploy Covid-19 Task Force"
		priority = 15
		fire_only_once = yes
		cost = 100
		days_remove = 30
		icon = generic_mask
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_flag
		}
		available = {
			has_completed_focus = INS_Handle_Pandemic
		}
		complete_effect = {
			set_temp_variable = {
				var = income_var_temp
				value = -0.145
			}
			add_income_with_inflation = yes
		}
		modifier = {
			political_power_gain = 0.15
			stability_weekly_factor = 0.005
        }
        remove_effect = { 
			add_days_mission_timeout = {
				mission = INS_Covid_Rise
				days = 60
			}
        }
        ai_will_do = { base = 1 }
	}
	#vaccine
	INS_Purchase_Aztrazeneca = {
		name = "Purchase AztraZeneca vaccine"
		priority = 4
		fire_only_once = yes
		cost = 50
		days_remove = 60
		icon = generic_vaccine
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_2_flag
		}
		available = {
			has_completed_focus = INS_Seek_Vaccine
		}
		complete_effect = {
			set_temp_variable = {
				var = income_var_temp
				value = -1.630
			}
			add_income_with_inflation = yes
		}
		modifier = {
			political_power_gain = -0.1
			stability_weekly_factor = 0.002
        }
        remove_effect = { 
			add_opinion_modifier = { target = ENG modifier = small_increase }
			custom_effect_tooltip = INS_aztrazeneca_tooltip
			add_days_mission_timeout = {
				mission = INS_Covid_Vaccinated
				days = -120
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Purchase_Pfizer = {
		name = "Purchase Pfizer vaccine"
		priority = 4
		fire_only_once = yes
		cost = 50
		days_remove = 60
		icon = generic_vaccine
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_2_flag
		}
		available = {
			has_completed_focus = INS_Seek_Vaccine
		}
		complete_effect = {
			set_temp_variable = {
				var = income_var_temp
				value = -2.137
			}
			add_income_with_inflation = yes
		}
		modifier = {
			political_power_gain = -0.1
			stability_weekly_factor = 0.002
        }
        remove_effect = { 
			add_opinion_modifier = { target = GER modifier = small_increase }
			custom_effect_tooltip = INS_pfizer_tooltip
			add_days_mission_timeout = {
				mission = INS_Covid_Vaccinated
				days = -120
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Purchase_Moderna = {
		name = "Purchase Moderna vaccine"
		priority = 4
		fire_only_once = yes
		cost = 50
		days_remove = 60
		icon = generic_vaccine
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Covid_Pandemic_2_flag
		}
		available = {
			has_completed_focus = INS_Seek_Vaccine
		}
		complete_effect = {
			set_temp_variable = {
				var = income_var_temp
				value = -1.882
			}
			add_income_with_inflation = yes
		}
		modifier = {
			political_power_gain = -0.1
			stability_weekly_factor = 0.002
        }
        remove_effect = { 
			if = {
				limit = {
					country_exists = USA
				}
				add_opinion_modifier = { target = USA modifier = small_increase }
			}
			else_if = {
				limit = {
					country_exists = USC
				}
				add_opinion_modifier = { target = USC modifier = small_increase }
			}
			else = {
				add_opinion_modifier = { target = USB modifier = small_increase }
			}
			
			custom_effect_tooltip = INS_moderna_tooltip
			add_days_mission_timeout = {
				mission = INS_Covid_Vaccinated
				days = -120
			}
        }
        ai_will_do = { base = 1 }
	}
}

INS_2024_election_category = {
	INS_Focus_Deadline_Mission = {
		name = "Announcing the Official Candidates..."
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
		}
		cancel_trigger = {
		}
        icon = generic_election
        #is_good = no
        days_mission_timeout = 61
        priority = 20
        selectable_mission = yes
        timeout_effect = {
			if = {
				limit = {
					has_country_flag = INS_Support_Bill_flag
					NOT = {
						has_completed_focus = INS_Rally_Jokowism
						has_completed_focus = INS_Oligarchy_Friendly
						has_completed_focus = INS_Stays_Bull
					}
				}
				if = {
					limit = {
						has_completed_focus = INS_Natuna_Talks
						has_country_flag = INS_Support_GBHN_flag
					}
					unlock_national_focus = INS_Promote_PSI
					unlock_national_focus = INS_Combating_Opposition
					complete_national_focus = INS_Rally_Jokowism
					
					set_temp_variable = { power_points = -10 }
					Add_Jokowi_Power = yes
					
					add_political_power = -150
					custom_effect_tooltip = INS_Election_Focus_Deadline_tooltip
				}
				else_if = {
					limit = {
						has_completed_focus = INS_Natuna_Sovereignity
					}
					unlock_national_focus = INS_Restrict_Group
					unlock_national_focus = INS_No_Opposition
					complete_national_focus = INS_Oligarchy_Friendly
					
					set_temp_variable = { power_points = -10 }
					Add_Prabowo_Power = yes
					
					add_political_power = -150
					custom_effect_tooltip = INS_Election_Focus_Deadline_tooltip
				}
				else_if = {
					limit = {
						has_completed_focus = INS_Natuna_Talks
					}
					unlock_national_focus = INS_Rally_Bull
					unlock_national_focus = INS_Resign_Bull
					complete_national_focus = INS_Stays_Bull
					
					set_temp_variable = { power_points = -10 }
					Add_Ganjar_Power = yes
					
					add_political_power = -150
					custom_effect_tooltip = INS_Election_Focus_Deadline_tooltip
				}
				else = {
					unlock_national_focus = INS_No_Opposition
					unlock_national_focus = INS_Restrict_Group
					complete_national_focus = INS_Natuna_Sovereignity
					complete_national_focus = INS_Oligarchy_Friendly
					
					set_temp_variable = { power_points = -15 }
					Add_Prabowo_Power = yes
					
					add_political_power = -200
					custom_effect_tooltip = INS_Election_Focus_Deadline_tooltip
				}
			}
			else_if = {
				limit = {
					has_country_flag = INS_Siding_People_flag
					NOT = {
						has_completed_focus = INS_Opposition_Coalition
					}
				}
				if = {
					limit = {
						has_completed_focus = INS_Natuna_Sovereignity
					}
					unlock_national_focus = INS_Support_Opposition
					complete_national_focus = INS_Opposition_Coalition
					
					set_temp_variable = { power_points = -10 }
					Add_Anies_Power = yes
					
					add_political_power = -150
					custom_effect_tooltip = INS_Election_Focus_Deadline_tooltip
				}
				else = {
					unlock_national_focus = INS_Support_Opposition
					complete_national_focus = INS_Natuna_Sovereignity
					complete_national_focus = INS_Opposition_Coalition
					
					set_temp_variable = { power_points = -15 }
					Add_Anies_Power = yes
					
					add_political_power = -200
					custom_effect_tooltip = INS_Election_Focus_Deadline_tooltip
				}
			}
			country_event = {
				id = indonesianfirstelection.17
				hours = 6
			}
        }
    }
	INS_Election_Deadline_Mission = {
		name = "2024 General Election"
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
		}
		cancel_trigger = {
		}
        icon = generic_election
        #is_good = no
        days_mission_timeout = 184
        priority = 30
        selectable_mission = yes
        timeout_effect = {
			hidden_effect = {
				# RUU PILKADA
				country_event = {
					id = indonesia.47
					days = 170
					random_days = 14
				}

				if = {
					limit = {
						has_completed_focus = INS_Opposition_Coalition
					}
					if = {
						limit = {
							check_variable = {
								var = INS_Anies_Power_Value
								value = 50
								compare = greater_than
							}
						}
						country_event = {
							id = indonesianfirstelection.13
							hours = 12
						}
					}
					else_if = {
						limit = {
							check_variable = {
								var = INS_Prabowo_Power_Value
								value = INS_Ganjar_Power_Value
								compare = greater_than
							}
						}
						country_event = {
							id = indonesianfirstelection.15
							hours = 12
						}
					}
					else = {
						country_event = {
							id = indonesianfirstelection.16
							hours = 12
						}
					}
				}
				else_if = {
					limit = {
						has_completed_focus = INS_Stays_Bull
					}
					random_list = {
						INS_Ganjar_Power_Value = {
						}
						INS_Anies_Power_Value = {
						}
						INS_Prabowo_Power_Value = {
						}
					}
				}
				else_if = {
					limit = {
						has_completed_focus = INS_Oligarchy_Friendly
					}
					if = {
						limit = {
							check_variable = {
								var = INS_Prabowo_Power_Value
								value = 50
								compare = greater_than
							}
						}
						country_event = {
							id = indonesianfirstelection.22
							hours = 12
						}
					}
					else_if = {
						limit = {
							check_variable = {
								var = INS_Anies_Power_Value
								value = INS_Ganjar_Power_Value
								compare = greater_than
							}
						}
						country_event = {
							id = indonesianfirstelection.15
							hours = 12
						}
					}
					else = {
						country_event = {
							id = indonesianfirstelection.24
							hours = 12
						}
					}
				}
			}
			
			custom_effect_tooltip = INS_Election_Deadline_0_tooltip
        }
    }
	# ELECTION DEADLINE ANIES V PRABOWO
	INS_Election_Deadline_AP_Mission = {
		name = "2024 Presidential Election - Second Round"
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
			AND = {
				has_country_flag = INS_2024_Election_Anies_Prabowo_flag
				NOT = {
					OR = {
						has_country_flag = INS_Anies_Won_flag
						has_country_flag = INS_Prabowo_Won_flag
					}
				}
			}
		}
		cancel_trigger = {
		}
        icon = generic_election
        #is_good = no
        days_mission_timeout = 133
        priority = 30
        selectable_mission = yes
        timeout_effect = {
			hidden_effect = {
				if = {
					limit = {
						has_completed_focus = INS_Opposition_Coalition
					}
					if = {
						limit = {
							check_variable = {
								var = INS_Anies_Power_Value
								value = INS_Prabowo_Power_Value
								compare = greater_than_or_equals
							}
						}
						country_event = {
							id = indonesianfirstelection.13
							hours = 12
						}
					}
					else = {
						country_event = {
							id = indonesianfirstelection.22
							hours = 12
						}
					}
						
				}
				else_if = {
					limit = {
						has_completed_focus = INS_Oligarchy_Friendly
					}
					if = {
						limit = {
							check_variable = {
								var = INS_Prabowo_Power_Value
								value = INS_Anies_Power_Value
								compare = greater_than_or_equals
							}
						}
						country_event = {
							id = indonesianfirstelection.22
							hours = 12
						}
					}
					else = {
						country_event = {
							id = indonesianfirstelection.13
							hours = 12
						}
					}
				}
			}
			
			custom_effect_tooltip = INS_Election_Deadline_1_tooltip
        }
    }
	# ELECTION DEADLINE ANIES V GANJAR
	INS_Election_Deadline_AG_Mission = {
		name = "2024 Presidential Election - Second Round"
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
			AND = {
				has_country_flag = INS_2024_Election_Anies_Ganjar_flag
				NOT = {
					has_country_flag = INS_Anies_Won_flag
				}
			}
		}
		cancel_trigger = {
		}
        icon = generic_election
        #is_good = no
        days_mission_timeout = 133
        priority = 30
        selectable_mission = yes
        timeout_effect = {
			hidden_effect = {
				if = {
					limit = {
						has_completed_focus = INS_Opposition_Coalition
					}
					#random_list = {
						#INS_Anies_Power_Value = {
							country_event = {
								id = indonesianfirstelection.13
								hours = 12
							}
						#}
					#}
				}
				else_if = {
					limit = {
						has_completed_focus = INS_Stays_Bull
					}
					random_list = {
						INS_Ganjar_Power_Value = {
						}
						INS_Prabowo_Power_Value = {
						}
						INS_Anies_Power_Value = {
						}
					}
				}
			}
			custom_effect_tooltip = INS_Election_Deadline_2_tooltip
        }
    }
	# ELECTION DEADLINE PRABOWO V GANJAR
	INS_Election_Deadline_PG_Mission = {
		name = "2024 Presidential Election - Second Round"
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
			AND = {
				has_country_flag = INS_2024_Election_Prabowo_Ganjar_flag
				NOT = {
					has_country_flag = INS_Prabowo_Won_flag
				}
			}
		}
		cancel_trigger = {
		}
        icon = generic_election
        #is_good = no
        days_mission_timeout = 133
        priority = 30
        selectable_mission = yes
        timeout_effect = {
			hidden_effect = {
				if = {
					limit = {
						has_completed_focus = INS_Oligarchy_Friendly
					}
					country_event = {
						id = indonesianfirstelection.22
						hours = 12
					}
				}
				else_if = {
					limit = {
						has_completed_focus = INS_Stays_Bull
					}
					random_list = {
						INS_Ganjar_Power_Value = {
						}
						INS_Prabowo_Power_Value = {
						}
						INS_Anies_Power_Value = {
						}
					}
				}
			}
			custom_effect_tooltip = INS_Election_Deadline_2_tooltip
        }
    }
	# ELECTION AUTOCAMPAIGN - ANIES / PRABOWO / GANJAR
	INS_Rival_Auto_Campaign_mission = {
		name = "Rival Candidates Presidential Campaign"
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
			has_country_flag = INS_Can_Campaign_flag
		}
		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					has_country_flag = INS_Can_Campaign_flag
				}
			}
		}
        icon = generic_election
        #is_good = no
        days_mission_timeout = 28
        priority = 20
        selectable_mission = yes
        timeout_effect = {
			if = {
				limit = {
					has_completed_focus = INS_Opposition_Coalition
				}
				if = {
					limit = {
						has_country_flag = INS_2024_Election_Stage_One_flag
					}
					random_list = {
						INS_Prabowo_Power_Value = {
							set_temp_variable = { power_points = 1.5 }
							Add_Prabowo_Power = yes
						}
						60 = {
							set_temp_variable = { power_points = 3 }
							Add_Prabowo_Power = yes
						}
						30 = {
							set_temp_variable = { power_points = 5 }
							Add_Prabowo_Power = yes
						}
					}
					random_list = {
						INS_Ganjar_Power_Value = {
							set_temp_variable = { power_points = 1.5 }
							Add_Ganjar_Power = yes
						}
						60 = {
							set_temp_variable = { power_points = 3 }
							Add_Ganjar_Power = yes
						}
						30 = {
							set_temp_variable = { power_points = 5 }
							Add_Ganjar_Power = yes
						}
					}
				}
				else_if = {
					limit = {
						has_country_flag = INS_2024_Election_Anies_Prabowo_flag
					}
					random_list = {
						INS_Prabowo_Power_Value = {
							set_temp_variable = { power_points = 1.5 }
							Add_Prabowo_Power = yes
						}
						60 = {
							set_temp_variable = { power_points = 3 }
							Add_Prabowo_Power = yes
						}
						30 = {
							set_temp_variable = { power_points = 5 }
							Add_Prabowo_Power = yes
						}
					}
				}
				else_if = {
					limit = {
						has_country_flag = INS_2024_Election_Anies_Ganjar_flag
					}
					random_list = {
						INS_Ganjar_Power_Value = {
							set_temp_variable = { power_points = 1.5 }
							Add_Ganjar_Power = yes
						}
						60 = {
							set_temp_variable = { power_points = 3 }
							Add_Ganjar_Power = yes
						}
						30 = {
							set_temp_variable = { power_points = 5 }
							Add_Ganjar_Power = yes
						}
					}
				}
			}
			else_if = {
				limit = {
					has_completed_focus = INS_Oligarchy_Friendly
				}
				if = {
					limit = {
						has_country_flag = INS_2024_Election_Stage_One_flag
					}
					random_list = {
						INS_Anies_Power_Value = {
							set_temp_variable = { power_points = 1.5 }
							Add_Anies_Power = yes
						}
						60 = {
							set_temp_variable = { power_points = 3 }
							Add_Anies_Power = yes
						}
						30 = {
							set_temp_variable = { power_points = 5 }
							Add_Anies_Power = yes
						}
					}
					random_list = {
						INS_Ganjar_Power_Value = {
							set_temp_variable = { power_points = 1.5 }
							Add_Ganjar_Power = yes
						}
						60 = {
							set_temp_variable = { power_points = 3 }
							Add_Ganjar_Power = yes
						}
						30 = {
							set_temp_variable = { power_points = 5 }
							Add_Ganjar_Power = yes
						}
					}
				}
				else_if = {
					limit = {
						has_country_flag = INS_2024_Election_Anies_Prabowo_flag
					}
					random_list = {
						INS_Anies_Power_Value = {
							set_temp_variable = { power_points = 1.5 }
							Add_Anies_Power = yes
						}
						60 = {
							set_temp_variable = { power_points = 3 }
							Add_Anies_Power = yes
						}
						30 = {
							set_temp_variable = { power_points = 5 }
							Add_Anies_Power = yes
						}
					}
				}
				else_if = {
					limit = {
						has_country_flag = INS_2024_Election_Prabowo_Ganjar_flag
					}
					random_list = {
						INS_Ganjar_Power_Value = {
							set_temp_variable = { power_points = 1.5 }
							Add_Ganjar_Power = yes
						}
						60 = {
							set_temp_variable = { power_points = 3 }
							Add_Ganjar_Power = yes
						}
						30 = {
							set_temp_variable = { power_points = 5 }
							Add_Ganjar_Power = yes
						}
					}
				}
			}
			
			activate_mission = INS_Rival_Auto_Campaign_mission
        }
    }
	# ANIES
	INS_Campaign_For_Anies_decision = {
		priority = 10
		fire_only_once = no
		cost = 35
		days_re_enable = 14 
		days_remove = 7
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_Opposition_Coalition
			NOT = {
				has_country_flag = INS_Anies_Won_flag
			}
		}
		available = {
			hidden_trigger = {
				has_completed_focus = INS_Opposition_Coalition
				NOT = {
					has_country_flag = INS_Anies_Won_flag
				}
			}
			has_country_flag = INS_Can_Campaign_flag
        }
		cancel_trigger = {
			hidden_trigger = {
				has_country_flag = INS_Anies_Won_flag
				NOT = {
					has_country_flag = INS_2024_Election_Stage_One_flag
					OR = {
						has_country_flag = INS_2024_Election_Anies_Ganjar_flag
						has_country_flag = INS_2024_Election_Anies_Prabowo_flag
					}
				}
			}
		}
		modifier = {
			political_power_gain = -0.25
        }
        remove_effect = { 
			random_list = {
				INS_Anies_Power_Value = {
					set_temp_variable = { power_points = 1.5 }
					Add_Anies_Power = yes
				}
				30 = {
					set_temp_variable = { power_points = 3 }
					Add_Anies_Power = yes
				}
				60 = {
					set_temp_variable = { power_points = 5 }
					Add_Anies_Power = yes
				}
			}
			
        }
        ai_will_do = { base = 1 }
	}
	INS_Academics_Vote_Anies_decision = {
		priority = 10
		fire_only_once = yes
		cost = 30
		days_remove = 14
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_Opposition_Coalition
			NOT = {
				has_country_flag = INS_Anies_Won_flag
			}
		}
		available = {
			hidden_trigger = {
				has_completed_focus = INS_Opposition_Coalition
				NOT = {
					has_country_flag = INS_Anies_Won_flag
				}
			}
			has_completed_focus = INS_The_Liberals
			has_country_flag = INS_Can_Campaign_flag
        }
		cancel_trigger = {
			hidden_trigger = {
				has_country_flag = INS_Anies_Won_flag
				NOT = {
					has_country_flag = INS_2024_Election_Stage_One_flag
					OR = {
						has_country_flag = INS_2024_Election_Anies_Ganjar_flag
						has_country_flag = INS_2024_Election_Anies_Prabowo_flag
					}
					has_country_flag = INS_Can_Campaign_flag
				}
			}
		}
		modifier = {
			political_power_gain = -0.10
        }
        remove_effect = { 
			set_temp_variable = {
				var = academic_development_var_temp
				value = 0.02
			}
			add_academic_development = yes

			set_temp_variable = { power_points = 5 }
			Add_Anies_Power = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Islamist_Vote_Anies_decision = {
		priority = 10
		fire_only_once = yes
		cost = 50
		days_remove = 14
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_Opposition_Coalition
			NOT = {
				has_country_flag = INS_Anies_Won_flag
			}
		}
		available = {
			hidden_trigger = {
				has_completed_focus = INS_Opposition_Coalition
				NOT = {
					has_country_flag = INS_Anies_Won_flag
				}
			}
			has_country_flag = INS_Can_Campaign_flag
			set_temp_variable = { check_pop = 60 }
			custom_trigger_tooltip = {
				tooltip = INS_Require_FPI_tooltip
				check_variable = {
					var = INS_Group_FPI_Popularity
					value = check_pop
					compare = greater_than_or_equals
				}
			}
        }
		cancel_trigger = {
			hidden_trigger = {
				has_country_flag = INS_Anies_Won_flag
				NOT = {
					has_country_flag = INS_2024_Election_Stage_One_flag
					OR = {
						has_country_flag = INS_2024_Election_Anies_Ganjar_flag
						has_country_flag = INS_2024_Election_Anies_Prabowo_flag
					}
					has_country_flag = INS_Can_Campaign_flag
				}
			}
		}
		modifier = {
			political_power_gain = -0.10
        }
        remove_effect = { 
			set_temp_variable = { partyvar = 3 }
			set_temp_variable = { parties = 12 }
			Increase_Party_Popularity = yes

			set_temp_variable = { power_points = 7.5 }
			Add_Anies_Power = yes
        }
        ai_will_do = { base = 1 }
	}
	
	# PRABOWO
	INS_Campaign_For_Prabowo_decision = {
		priority = 10
		fire_only_once = no
		cost = 35
		days_re_enable = 14 
		days_remove = 7
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_Oligarchy_Friendly
			NOT = {
				has_country_flag = INS_Prabowo_Won_flag
			}
		}
		available = {
			hidden_trigger = {
				has_completed_focus = INS_Oligarchy_Friendly
				NOT = {
					has_country_flag = INS_Prabowo_Won_flag
				}
			}
			has_country_flag = INS_Can_Campaign_flag
        }
		cancel_trigger = {
			hidden_trigger = {
				has_country_flag = INS_Prabowo_Won_flag
				NOT = {
					has_country_flag = INS_2024_Election_Stage_One_flag
					OR = {
						has_country_flag = INS_2024_Election_Prabowo_Ganjar_flag
						has_country_flag = INS_2024_Election_Anies_Prabowo_flag
					}
				}
			}
		}
		modifier = {
			political_power_gain = -0.25
        }
        remove_effect = { 
			random_list = {
				INS_Prabowo_Power_Value = {
					set_temp_variable = { power_points = 1.5 }
					Add_Prabowo_Power = yes
				}
				30 = {
					set_temp_variable = { power_points = 3 }
					Add_Prabowo_Power = yes
				}
				60 = {
					set_temp_variable = { power_points = 5 }
					Add_Prabowo_Power = yes
				}
			}
			
        }
        ai_will_do = { base = 1 }
	}
}

INS_2024_figures_category = {

	#opposition side
	INS_Support_Anies_Influence_decision = {
		priority = 10
		fire_only_once = no
		cost = 50
		days_re_enable = 14
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_United_Front
			NOT = {
				has_completed_focus = INS_Stays_Bull
			}
		}
		available = {
			has_completed_focus = INS_United_Front
        }
		cancel_trigger = {
			hidden_trigger = {
				has_completed_focus = INS_Stays_Bull
			}
		}
		modifier = {
			political_power_gain = -0.15
        }
        remove_effect = { 
			set_temp_variable = { power_points = 5 }
			Add_Anies_Power = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Support_Ganjar_Influence_decision = {
		priority = 10
		fire_only_once = no
		cost = 50
		days_re_enable = 14
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_Friendly_Bull
		}
		available = {
			has_completed_focus = INS_Friendly_Bull
        }
		modifier = {
			political_power_gain = -0.15
        }
        remove_effect = { 
			set_temp_variable = { power_points = 5 }
			Add_Ganjar_Power = yes
        }
        ai_will_do = { base = 1 }
	}
	
	#government side
	INS_Support_Prabowo_Influence_decision = {
		priority = 10
		fire_only_once = no
		cost = 50
		days_re_enable = 14
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_Restrict_Group
			NOT = {
				has_completed_focus = INS_Rally_Jokowism
			}
		}
		cancel_trigger = {
			hidden_trigger = {
				has_completed_focus = INS_Rally_Jokowism
			}
		}
		available = {
			has_completed_focus = INS_Restrict_Group
        }
		modifier = {
			political_power_gain = -0.15
        }
        remove_effect = { 
			set_temp_variable = { power_points = 5 }
			Add_Prabowo_Power = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Support_Jokowi_Influence_decision = {
		priority = 10
		fire_only_once = no
		cost = 50
		days_re_enable = 14
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_Restrict_Group
			NOT = {
				has_completed_focus = INS_Oligarchy_Friendly
			}
		}
		available = {
			has_completed_focus = INS_Restrict_Group
        }
		cancel_trigger = {
			hidden_trigger = {
				has_completed_focus = INS_Oligarchy_Friendly
			}
		}
		modifier = {
			political_power_gain = -0.15
        }
        remove_effect = { 
			set_temp_variable = { power_points = 5 }
			Add_Jokowi_Power = yes
        }
        ai_will_do = { base = 1 }
	}

	#countering
	INS_Counter_Anies_Influence_decision = {
		priority = 5
		fire_only_once = no
		cost = 30
		days_re_enable = 14
		days_remove = 21
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			OR = {
				has_completed_focus = INS_Restrict_Group
				has_completed_focus = INS_Stays_Bull
			}
		}
		cancel_trigger = {
		}
		available = {
			OR = {
				has_completed_focus = INS_Restrict_Group
				has_completed_focus = INS_Stays_Bull
			}
        }
		modifier = {
			political_power_gain = -0.10
        }
        remove_effect = { 
			set_temp_variable = { power_points = -5 }
			Add_Anies_Power = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Counter_Ganjar_Influence_decision = {
		priority = 5
		fire_only_once = no
		cost = 30
		days_re_enable = 14
		days_remove = 21
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			OR = {
				has_completed_focus = INS_United_Front
				has_completed_focus = INS_Betray_Bull
			}
		}
		available = {
			OR = {
				has_completed_focus = INS_United_Front
				has_completed_focus = INS_Betray_Bull
			}
        }
		modifier = {
			political_power_gain = -0.10
        }
        remove_effect = { 
			set_temp_variable = { power_points = -5 }
			Add_Ganjar_Power = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Counter_Prabowo_Influence_decision = {
		priority = 5
		fire_only_once = no
		cost = 30
		days_re_enable = 14
		days_remove = 21
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			OR = {
				has_completed_focus = INS_United_Front
				has_completed_focus = INS_Rally_Jokowism
			}
		}
		cancel_trigger = {
		}
		available = {
			OR = {
				has_completed_focus = INS_United_Front
				has_completed_focus = INS_Rally_Jokowism
			}
        }
		modifier = {
			political_power_gain = -0.10
        }
        remove_effect = { 
			set_temp_variable = { power_points = -5 }
			Add_Prabowo_Power = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Counter_Jokowi_Influence_decision = {
		priority = 5
		fire_only_once = no
		cost = 30
		days_re_enable = 14
		days_remove = 21
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			OR = {
				has_completed_focus = INS_United_Front
				has_completed_focus = INS_Oligarchy_Friendly
			}
		}
		cancel_trigger = {
		}
		available = {
			OR = {
				has_completed_focus = INS_United_Front
				has_completed_focus = INS_Oligarchy_Friendly
			}
        }
		modifier = {
			political_power_gain = -0.10
        }
        remove_effect = { 
			set_temp_variable = { power_points = -5 }
			Add_Jokowi_Power = yes
        }
        ai_will_do = { base = 1 }
	}

	#focustree benefit
	INS_FPI_Counter_Influence_decision = {
		priority = 5
		fire_only_once = yes
		cost = 50
		days_remove = 45
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			AND = {
				has_country_flag = INS_pick_focus_demand_resignation_flag
				has_completed_focus = INS_United_Front
			}
		}
		cancel_trigger = {
		}
		available = {
			AND = {
				has_country_flag = INS_pick_focus_demand_resignation_flag
				has_completed_focus = INS_United_Front
			}
        }
		modifier = {
			political_power_gain = -0.05
        }
        remove_effect = { 
			add_stability = -0.015
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 12 }
			Increase_Party_Popularity = yes

			set_temp_variable = { power_points = -5 }
			Add_Jokowi_Power = yes
			set_temp_variable = { power_points = -5 }
			Add_Prabowo_Power = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_LEO_Counter_Influence_decision = {
		priority = 5
		fire_only_once = yes
		cost = 50
		days_remove = 45
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			AND = {
				has_completed_focus = INS_Deal_With_Protesters
				has_completed_focus = INS_Restrict_Group
			}
		}
		cancel_trigger = {
		}
		available = {
			AND = {
				has_completed_focus = INS_Deal_With_Protesters
				has_completed_focus = INS_Restrict_Group
			}
        }
		modifier = {
			political_power_gain = -0.05
        }
        remove_effect = { 
			add_stability = -0.02
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 13 }
			Increase_Party_Popularity = yes

			set_temp_variable = { power_points = -5 }
			Add_Anies_Power = yes
			set_temp_variable = { power_points = -5 }
			Add_Ganjar_Power = yes
        }
        ai_will_do = { base = 1 }
	}
}

INS_Building_category = {
	INS_Build_Infrastructure = {
		priority = 5
		fire_only_once = no
		state_target = yes
		target_root_trigger = {
			tag = INS 
		}
		target_array = INSArrayStates
		cost = 50
		days_remove = 90
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Showed_Infrastructure
		}
		available = {
			NOT = {
				FROM = {
					infrastructure = 5
				}
			}
        }
		target_trigger = {
			FROM = {
                is_owned_by = INS
			}
		}
		on_map_mode = map_and_decisions_view
		cancel_trigger = {
			FROM = {
				infrastructure = 5
			}
		}
		modifier = {
			consumer_goods_factor = 0.05
			civilian_factory_use = 2
        }
        remove_effect = { 
			add_stability = 0.02
			FROM = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
        }
        ai_will_do = { base = 1 }
	}
}

INS_Anies_Islamic_category = {
	#COUNTER ISLAMISM
	INS_Counter_Islam_mission = {
		name = "Pro NKRI movement on action..."
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_islamic_active
		}
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Islamic
		}
        icon = generic_election
        #is_good = no
        days_mission_timeout = 120
        priority = 30
        selectable_mission = yes
        timeout_effect = {
			add_power_balance_value = {
				id = INS_Anies_BoP
				value = -0.03
			}
			set_temp_variable = { boolpositivechange = 0 }
			set_temp_variable = { sidevar = 1 }
			if = {
				limit = {
					has_country_flag = INS_Islam_amendment_flag
				}
				random_list = {
					50 = {
						set_temp_variable = { tempvar = 3 }
						Add_Anies_Islamic_Legitimacy = yes
					}
					25 = {
						set_temp_variable = { tempvar = 6 }
						Add_Anies_Islamic_Legitimacy = yes
					}
					25 = {
						set_temp_variable = { tempvar = 1 }
						Add_Anies_Islamic_Legitimacy = yes
					}
				}
			}
			else = {
				random_list = {
					50 = {
						set_temp_variable = { tempvar = 5 }
						Add_Anies_Islamic_Legitimacy = yes
					}
					25 = {
						set_temp_variable = { tempvar = 10 }
						Add_Anies_Islamic_Legitimacy = yes
					}
					25 = {
						set_temp_variable = { tempvar = 2.5 }
						Add_Anies_Islamic_Legitimacy = yes
					}
				}
			}

			hidden_effect = {
				activate_mission = INS_Counter_Islam_mission
			}
        }
    }
	INS_Islam_Pass_Amendment_decision = {
		name = "Pass the Islamic Constitution Amendment"
		priority = 20
		fire_only_once = yes
		cost = 150
		days_remove = 60
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_islamic_active
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Islam_flag
			}
			has_completed_focus = INS_Anies_Amendment_Islamic
			set_temp_variable = { check_pop = 75 }
			custom_trigger_tooltip = {
				tooltip = INS_Require_Islamic_tooltip
				check_variable = {
					var = INS_islamic_legit_var
					value = check_pop
					compare = greater_than_or_equals
				}
			}
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Islamic
		}
		modifier = {
			political_power_gain = -0.20
        }
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Islam_flag
		}
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Islam_flag

			custom_effect_tooltip = INS_Islam_amendment_flag_tooltip

			add_stability = 0.1

			set_temp_variable = { boolpositivechange = 1 }

			set_temp_variable = { sidevar = 1 }
			set_temp_variable = { tempvar = 15 }
			Add_Anies_Islamic_Legitimacy = yes

			country_event = {
				id = indonesiaislamicdem.7
				hours = 6
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Islam_Promote_decision = {
		priority = 10
		fire_only_once = no
		cost = 30
		days_re_enable = 14
		days_remove = 14
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_islamic_active
			has_completed_focus = INS_Anies_Begin_Islamic
			check_variable = {
				var = INS_islamic_legit_var
				value = 100
				compare = less_than
			}
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Islam_flag
			}
			has_completed_focus = INS_Anies_Propaganda_Islamic
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Islamic
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Islam_flag
		}
		modifier = {
			consumer_goods_factor = 0.15
			political_power_gain = -0.1
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Islam_flag

			set_temp_variable = { boolpositivechange = 1 }

			set_temp_variable = { sidevar = 1 }
			set_temp_variable = { tempvar = 10 }
			Add_Anies_Islamic_Legitimacy = yes
			set_temp_variable = { sidevar = 2 }
			set_temp_variable = { tempvar = 5 }
			Add_Anies_Islamic_Legitimacy = yes
			set_temp_variable = { sidevar = 3 }
			set_temp_variable = { tempvar = 5 }
			Add_Anies_Islamic_Legitimacy = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Islam_Education_decision = {
		priority = 10
		fire_only_once = no
		cost = 50
		days_re_enable = 30
		days_remove = 21
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_islamic_active
			has_completed_focus = INS_Anies_Intelect_Islamic
			check_variable = {
				var = INS_islamic_moderate_group_var
				value = 100
				compare = less_than
			}
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Islam_flag
			}
			has_completed_focus = INS_Anies_Intelect_Islamic
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Islamic
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Islam_flag
		}
		modifier = {
			political_power_gain = -0.2
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Islam_flag

			set_temp_variable = { boolpositivechange = 1 }

			set_temp_variable = { sidevar = 1 }
			set_temp_variable = { tempvar = 10 }
			Add_Anies_Islamic_Legitimacy = yes
			set_temp_variable = { sidevar = 2 }
			set_temp_variable = { tempvar = 10 }
			Add_Anies_Islamic_Legitimacy = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Islam_Lobby_LEO_decision = {
		priority = 10
		fire_only_once = yes
		cost = 75
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_islamic_active
			has_completed_focus = INS_Anies_Begin_Islamic
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Islam_flag
			}
			has_completed_focus = INS_Anies_Convince_Islamic
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Islamic
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Islam_flag
		}
		modifier = {
			political_power_gain = -0.20
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Islam_flag

			random_list = {
				60 = {
					country_event = {
						id = indonesiaislamicdem.8
						days = 3
					}
				}
				INS_Group_Police_Popularity = {
					country_event = {
						id = indonesiaislamicdem.9
						days = 3
					}
				}
			}
			
			random_list = {
				60 = {
					country_event = {
						id = indonesiaislamicdem.10
						days = 3
					}
				}
				INS_Group_Army_Popularity = {
					country_event = {
						id = indonesiaislamicdem.11
						days = 3
					}
				}
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Islam_Lobby_Party_decision = {
		priority = 10
		fire_only_once = yes
		cost = 50
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_islamic_active
			has_completed_focus = INS_Anies_Begin_Islamic
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Islam_flag
			}
			has_completed_focus = INS_Anies_Convince_Islamic
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Islamic
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Islam_flag
		}
		modifier = {
			political_power_gain = -0.20
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Islam_flag

			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 3 }
			Increase_Party_Popularity = yes

			set_temp_variable = { boolpositivechange = 1 }

			set_temp_variable = { sidevar = 1 }
			set_temp_variable = { tempvar = 15 }
			Add_Anies_Islamic_Legitimacy = yes
			set_temp_variable = { sidevar = 2 }
			set_temp_variable = { tempvar = 5 }
			Add_Anies_Islamic_Legitimacy = yes

			set_temp_variable = { boolpositivechange = 0 }
			set_temp_variable = { sidevar = 3 }
			set_temp_variable = { tempvar = 5 }
			Add_Anies_Islamic_Legitimacy = yes


			country_event = {
				id = indonesiaislamicdem.6
				days = 1
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Islam_Radical_Way_decision = {
		priority = 10
		fire_only_once = no
		cost = 30
		days_re_enable = 30
		days_remove = 21
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_islamic_active
			has_completed_focus = INS_Anies_Radical_Islamic
		} 
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Islam_flag
			}
			has_completed_focus = INS_Anies_Radical_Islamic
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Islamic
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Islam_flag
		}
		modifier = {
			political_power_gain = -0.25
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Islam_flag

			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 12 }
			Increase_Party_Popularity = yes

			set_temp_variable = { boolpositivechange = 1 }

			set_temp_variable = { sidevar = 1 }
			set_temp_variable = { tempvar = 10 }
			Add_Anies_Islamic_Legitimacy = yes
			
			set_temp_variable = { boolpositivechange = 0 }
			set_temp_variable = { sidevar = 2 }
			set_temp_variable = { tempvar = -5 }
			Add_Anies_Islamic_Legitimacy = yes

			set_temp_variable = { boolpositivechange = 1 }
			set_temp_variable = { sidevar = 3 }
			set_temp_variable = { tempvar = 10 }
			Add_Anies_Islamic_Legitimacy = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Islam_FPI_Support_decision = {
		priority = 10
		fire_only_once = yes
		cost = 50
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_islamic_active
			has_completed_focus = INS_Anies_Radical_Islamic
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Islam_flag
			}
			has_completed_focus = INS_Anies_Radical_Islamic
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Islamic
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Islam_flag
		}
		modifier = {
			political_power_gain = -0.25
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Islam_flag

			set_temp_variable = { boolpositivechange = 1 }

			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 12 }
			Increase_Party_Popularity = yes

			set_temp_variable = { sidevar = 1 }
			set_temp_variable = { tempvar = 15 }
			Add_Anies_Islamic_Legitimacy = yes
			set_temp_variable = { sidevar = 3 }
			set_temp_variable = { tempvar = 20 }
			Add_Anies_Islamic_Legitimacy = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Islam_Counter_FPI_decision = {
		priority = 10
		fire_only_once = no
		cost = 50
		days_re_enable = 30
		days_remove = 14
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_islamic_active
			has_completed_focus = INS_Anies_Moderate_Islamic
			check_variable = {
				var = INS_islamic_radical_group_var
				value = 0
				compare = greater_than
			}
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Islam_flag
			}
			has_completed_focus = INS_Anies_Moderate_Islamic
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Islamic
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Islam_flag
		}
		modifier = {
			political_power_gain = -0.15
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Islam_flag


			set_temp_variable = { partyvar = 2.5 }
			set_temp_variable = { parties = 12 }
			Decrease_Party_Popularity = yes

			set_temp_variable = { boolpositivechange = 0 }

			set_temp_variable = { sidevar = 3 }
			set_temp_variable = { tempvar = 15 }
			Add_Anies_Islamic_Legitimacy = yes
        }
        ai_will_do = { base = 1 }
	}
}

INS_Anies_BoP_category = {
	#islamist
	INS_anies_bop_islamist_jihad_decision = {
        icon = generic_election
		cost = 25
		days_re_enable = 45
		days_remove = 21
		available = { 
			has_power_balance = {
				id = INS_Anies_BoP
			}
		}
		visible = { 
			NOT = {
				OR = {
					has_country_flag = INS_Anies_toward_liberal_active
					has_cosmetic_tag = INS_Federal
				}
			}
		}
		complete_effect = {
			add_power_balance_value = {
				id = INS_Anies_BoP
				value = 0.05
			}
		}
	}
	INS_anies_bop_islamist_rally_decision = {
        icon = generic_election
		cost = 40
		days_re_enable = 120
		days_remove = 35
		available = { 
			has_power_balance = {
				id = INS_Anies_BoP
			}
		}
		visible = { 
			NOT = {
				OR = {
					has_country_flag = INS_Anies_toward_liberal_active
					has_cosmetic_tag = INS_Federal
				}
			}
		}
		complete_effect = {
			add_power_balance_value = {
				id = INS_Anies_BoP
				value = 0.1
			}
		}
	}
	INS_anies_bop_liberal_propaganda_decision = {
        icon = generic_election
		cost = 25
		days_re_enable = 45
		days_remove = 21
		available = { 
			has_power_balance = {
				id = INS_Anies_BoP
			}
		}
		visible = { 
			NOT = {
				OR = {
					has_country_flag = INS_Anies_toward_islamic_active
					has_cosmetic_tag = INS_Islamic
				}
			}
		}
		complete_effect = {
			add_power_balance_value = {
				id = INS_Anies_BoP
				value = -0.05
			}
		}
	}
	INS_anies_bop_liberal_rally_decision = {
        icon = generic_elections
		cost = 40
		days_re_enable = 120
		days_remove = 35
		available = { 
			has_power_balance = {
				id = INS_Anies_BoP
			}
		}
		visible = { 
			NOT = {
				OR = {
					has_country_flag = INS_Anies_toward_islamic_active
					has_cosmetic_tag = INS_Islamic
				}
			}
		}
		complete_effect = {
			add_power_balance_value = {
				id = INS_Anies_BoP
				value = -0.1
			}
		}
	}
}

#presidency
INS_Anies_Presidency_category = {
	INS_Anies_Promote_CoC_decision = {
		name = "Promote Coalition Solidarity"
		priority = 10
		fire_only_once = no
		cost = 50
		days_re_enable = 21
		days_remove = 120
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
		}
		available = {
        }
		complete_effect = {
		}
		modifier = {
			social_democrat_drift = 0.1
			market_liberal_drift = 0.1
			conservative_drift = 0.1
        }
        remove_effect = { 
        }
        ai_will_do = { base = 1 }
	}
}

INS_Anies_Federal_category = {
	#COUNTER FEDERALISM
	INS_Counter_Federal_mission = {
		name = "Anti-Federalist on action..."
        activation = {
            always = no
        }
        available = {
			always = no
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_liberal_active
		}
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Federal
		}
        icon = generic_election
        #is_good = no
        days_mission_timeout = 90
        priority = 20
        selectable_mission = yes
        timeout_effect = {
			add_power_balance_value = {
				id = INS_Anies_BoP
				value = 0.03
			}
			set_temp_variable = { boolpositivechange = 0 }
			if = {
				limit = {
					has_country_flag = INS_Federal_amendment_flag
				}
				random_list = {
					20 = {
						set_temp_variable = { provincevar = 335 }
						set_temp_variable = { tempvar = 5 }
						Add_Anies_Federalization_Progress = yes
					}
					12 = {
						set_temp_variable = { provincevar = 672 }
						set_temp_variable = { tempvar = 3 }
						Add_Anies_Federalization_Progress = yes
					}
					12 = {
						set_temp_variable = { provincevar = 673 }
						set_temp_variable = { tempvar = 3 }
						Add_Anies_Federalization_Progress = yes
					}
					12 = {
						set_temp_variable = { provincevar = 334 }
						set_temp_variable = { tempvar = 3 }
						Add_Anies_Federalization_Progress = yes
					}
					11 = {
						set_temp_variable = { provincevar = 667 }
						set_temp_variable = { tempvar = 1 }
						Add_Anies_Federalization_Progress = yes
					}
					11 = {
						set_temp_variable = { provincevar = 738 }
						set_temp_variable = { tempvar = 1 }
						Add_Anies_Federalization_Progress = yes
					}
					11 = {
						set_temp_variable = { provincevar = 668 }
						set_temp_variable = { tempvar = 1 }
						Add_Anies_Federalization_Progress = yes
					}
					11 = {
						set_temp_variable = { provincevar = 669 }
						set_temp_variable = { tempvar = 1 }
						Add_Anies_Federalization_Progress = yes
					}
				}
			}
			else = {
				random_list = {
					20 = {
						set_temp_variable = { provincevar = 335 }
						set_temp_variable = { tempvar = 10 }
						Add_Anies_Federalization_Progress = yes
					}
					12 = {
						set_temp_variable = { provincevar = 672 }
						set_temp_variable = { tempvar = 5 }
						Add_Anies_Federalization_Progress = yes
					}
					12 = {
						set_temp_variable = { provincevar = 673 }
						set_temp_variable = { tempvar = 5 }
						Add_Anies_Federalization_Progress = yes
					}
					12 = {
						set_temp_variable = { provincevar = 334 }
						set_temp_variable = { tempvar = 5 }
						Add_Anies_Federalization_Progress = yes
					}
					11 = {
						set_temp_variable = { provincevar = 667 }
						set_temp_variable = { tempvar = 2.5 }
						Add_Anies_Federalization_Progress = yes
					}
					11 = {
						set_temp_variable = { provincevar = 738 }
						set_temp_variable = { tempvar = 2.5 }
						Add_Anies_Federalization_Progress = yes
					}
					11 = {
						set_temp_variable = { provincevar = 668 }
						set_temp_variable = { tempvar = 2.5 }
						Add_Anies_Federalization_Progress = yes
					}
					11 = {
						set_temp_variable = { provincevar = 669 }
						set_temp_variable = { tempvar = 2.5 }
						Add_Anies_Federalization_Progress = yes
					}
				}
			}
			

			hidden_effect = {
				activate_mission = INS_Counter_Federal_mission
			}
        }
    }
	INS_Federal_Promote_Central_decision = {
		priority = 10
		fire_only_once = no
		cost = 30
		days_re_enable = 14
		days_remove = 21
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_liberal_active
			has_completed_focus = INS_Anies_Propaganda_Federal
			check_variable = {
				var = INS_federal_java_var
				value = 100
				compare = less_than
			}
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Federal_flag
			}
			has_completed_focus = INS_Anies_Propaganda_Federal
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Federal
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Federal_flag
		}
		modifier = {
			consumer_goods_factor = 0.15
			political_power_gain = -0.1
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Federal_flag

			set_temp_variable = { boolpositivechange = 1 }
			set_temp_variable = { provincevar = 335 }
			set_temp_variable = { tempvar = 25 }
			Add_Anies_Federalization_Progress = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Federal_Promote_East_decision = {
		priority = 10
		fire_only_once = no
		cost = 30
		days_re_enable = 14
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_liberal_active
			has_completed_focus = INS_Anies_Propaganda_Federal
			OR = {
				check_variable = {
					var = INS_federal_sulawesi_var
					value = 100
					compare = less_than
				}
				check_variable = {
					var = INS_federal_aru_var
					value = 100
					compare = less_than
				}
				check_variable = {
					var = INS_federal_westpapua_var
					value = 100
					compare = less_than
				}
				check_variable = {
					var = INS_federal_lessersunda_var
					value = 100
					compare = less_than
				}
				check_variable = {
					var = INS_federal_moluccas_var
					value = 100
					compare = less_than
				}
			}
			
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Federal_flag
			}
			has_completed_focus = INS_Anies_Propaganda_Federal
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Federal
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Federal_flag
		}
		modifier = {
			consumer_goods_factor = 0.2
			political_power_gain = -0.15
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Federal_flag

			set_temp_variable = { boolpositivechange = 1 }
			set_temp_variable = { tempvar = 6 }
			set_temp_variable = { provincevar = 673 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 667 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 668 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 738 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 669 }
			Add_Anies_Federalization_Progress = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Federal_Promote_Kalimantan_decision = {
		priority = 10
		fire_only_once = no
		cost = 30
		days_re_enable = 14
		days_remove = 21
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_liberal_active
			has_completed_focus = INS_Anies_Propaganda_Federal
			check_variable = {
				var = INS_federal_kalimantan_var
				value = 100
				compare = less_than
			}
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Federal_flag
			}
			has_completed_focus = INS_Anies_Propaganda_Federal
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Federal
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Federal_flag
		}
		modifier = {
			consumer_goods_factor = 0.15
			political_power_gain = -0.1
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Federal_flag

			set_temp_variable = { boolpositivechange = 1 }
			set_temp_variable = { tempvar = 25 }
			set_temp_variable = { provincevar = 334 }
			Add_Anies_Federalization_Progress = yes
			
        }
        ai_will_do = { base = 1 }
	}
	INS_Federal_Promote_Sumatra_decision = {
		priority = 10
		fire_only_once = no
		cost = 30
		days_re_enable = 14
		days_remove = 21
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_liberal_active
			has_completed_focus = INS_Anies_Propaganda_Federal
			check_variable = {
				var = INS_federal_sumatra_var
				value = 100
				compare = less_than
			}
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Federal_flag
			}
			has_completed_focus = INS_Anies_Propaganda_Federal
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Federal
		}
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Federal_flag
		}
		modifier = {
			consumer_goods_factor = 0.15
			political_power_gain = -0.1
        }
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Federal_flag

			set_temp_variable = { boolpositivechange = 1 }
			set_temp_variable = { tempvar = 25 }
			set_temp_variable = { provincevar = 672 }
			Add_Anies_Federalization_Progress = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Federal_Lobby_Party_decision = {
		priority = 10
		fire_only_once = yes
		cost = 50
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_liberal_active
			has_completed_focus = INS_Anies_Convince_Federal
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Federal_flag
			}
			has_completed_focus = INS_Anies_Convince_Federal
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Federal
		}
		modifier = {
			political_power_gain = -0.20
        }
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Federal_flag
		}
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Federal_flag

			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 3 }
			Increase_Party_Popularity = yes
			set_temp_variable = { partyvar = 5 }
			set_temp_variable = { parties = 6 }
			Increase_Party_Popularity = yes
			set_temp_variable = { partyvar = 2 }
			set_temp_variable = { parties = 10 }
			Increase_Party_Popularity = yes

			set_temp_variable = { boolpositivechange = 1 }
			set_temp_variable = { tempvar = 25 }
			set_temp_variable = { provincevar = 335 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { tempvar = 15 }
			set_temp_variable = { provincevar = 672 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { tempvar = 10 }
			set_temp_variable = { provincevar = 334 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 673 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { tempvar = 5 }
			set_temp_variable = { provincevar = 738 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 669 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 668 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 667 }
			Add_Anies_Federalization_Progress = yes

			country_event = {
				id = indonesiafederal.3
				days = 1
			}
        }
        ai_will_do = { base = 1 }
	}


	INS_Federal_Lobby_LEO_decision = {
		priority = 10
		fire_only_once = yes
		cost = 75
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_liberal_active
			has_completed_focus = INS_Anies_Convince_Federal
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Federal_flag
			}
			has_completed_focus = INS_Anies_Convince_Federal
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Federal
		}
		modifier = {
			political_power_gain = -0.20
        }
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Federal_flag
		}
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Federal_flag

			random_list = {
				60 = {
					country_event = {
						id = indonesiafederal.7
						days = 3
					}
				}
				INS_Group_Police_Popularity = {
					country_event = {
						id = indonesiafederal.8
						days = 3
					}
				}
			}

			random_list = {
				60 = {
					country_event = {
						id = indonesiafederal.9
						days = 3
					}
				}
				INS_Group_Army_Popularity = {
					country_event = {
						id = indonesiafederal.10
						days = 3
					}
				}
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Federal_Counter_Islamic_decision = {
		priority = 10
		fire_only_once = yes
		cost = 50
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_liberal_active
			has_completed_focus = INS_Anies_Counter_Federal
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Federal_flag
			}
			has_completed_focus = INS_Anies_Counter_Federal
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Federal
		}
		modifier = {
			political_power_gain = -0.20
        }
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Federal_flag
		}
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Federal_flag

			set_temp_variable = { partyvar = 15 }
			set_temp_variable = { parties = 12 }
			Decrease_Party_Popularity = yes

			set_temp_variable = { boolpositivechange = 1 }

			set_temp_variable = { tempvar = 15 }
			set_temp_variable = { provincevar = 335 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { tempvar = 7.5 }
			set_temp_variable = { provincevar = 672 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 673 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 334 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { tempvar = 5 }
			set_temp_variable = { provincevar = 668 }
			Add_Anies_Federalization_Progress = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Federal_Counter_NKRI_decision = {
		priority = 10
		fire_only_once = yes
		cost = 50
		days_remove = 30
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_liberal_active
			has_completed_focus = INS_Anies_Counter_Federal
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Federal_flag
			}
			has_completed_focus = INS_Anies_Counter_Federal
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Federal
		}
		modifier = {
			political_power_gain = -0.20
        }
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Federal_flag
		}
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Federal_flag

			set_temp_variable = { partyvar = 15 }
			set_temp_variable = { parties = 2 }
			Decrease_Party_Popularity = yes
			set_temp_variable = { partyvar = 15 }
			set_temp_variable = { parties = 8 }
			Decrease_Party_Popularity = yes
			set_temp_variable = { partyvar = 15 }
			set_temp_variable = { parties = 9 }
			Decrease_Party_Popularity = yes

			
			set_temp_variable = { boolpositivechange = 1 }

			set_temp_variable = { tempvar = 15 }
			set_temp_variable = { provincevar = 335 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { tempvar = 10 }
			set_temp_variable = { provincevar = 672 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { tempvar = 5 }
			set_temp_variable = { provincevar = 673 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 334 }
			Add_Anies_Federalization_Progress = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Federal_Pass_Amendment_decision = {
		name = "Pass the Federal Constitution Amendment"
		priority = 10
		fire_only_once = yes
		cost = 150
		days_remove = 60
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_country_flag = INS_Anies_toward_liberal_active
			has_completed_focus = INS_Anies_Amendment_Federal
		}
		available = {
			NOT = {
				has_country_flag = INS_Anies_Mission_Federal_flag
			}
			has_completed_focus = INS_Anies_Amendment_Federal
        }
		cancel_trigger = {
			has_completed_focus = INS_Anies_Proclaim_Federal
		}
		modifier = {
			political_power_gain = -0.20
        }
		complete_effect = {
			set_country_flag = INS_Anies_Mission_Federal_flag
		}
        remove_effect = { 
			clr_country_flag = INS_Anies_Mission_Federal_flag

			set_country_flag = INS_Federal_amendment_flag
			custom_effect_tooltip = INS_Federal_amendment_flag_tooltip

			add_stability = 0.05

			set_temp_variable = { boolpositivechange = 1 }

			set_temp_variable = { tempvar = 30 }
			set_temp_variable = { provincevar = 335 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { tempvar = 20 }
			set_temp_variable = { provincevar = 672 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { tempvar = 15 }
			set_temp_variable = { provincevar = 334 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 673 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { tempvar = 5 }
			set_temp_variable = { provincevar = 738 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 669 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 668 }
			Add_Anies_Federalization_Progress = yes
			set_temp_variable = { provincevar = 667 }
			Add_Anies_Federalization_Progress = yes
			country_event = {
				id = indonesiafederal.6
				hours = 6
			}
        }
        ai_will_do = { base = 1 }
	}
}

INS_Indonesian_Military_category = {
	INS_Reinforce_Buff_decision = {
		name = "Reinforce the Frontlines"
		priority = 20
		fire_only_once = no
		custom_cost_trigger = {
			command_power > 29
		}
		custom_cost_text = 30cp_cost
		days_remove = 90
		days_re_enable = 90
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_PDTO_Defensive_Doctrine
		}
		available = {
			has_completed_focus = INS_PDTO_Defensive_Doctrine
			has_war = yes
		}
		complete_effect = {
			hidden_effect = {
				add_command_power = -30
			}
		}
		modifier = {
			experience_gain_army = 0.002
			land_reinforce_rate = 0.1
			army_armor_defence_factor = 0.05
			army_infantry_defence_factor = 0.075
			army_org_factor = 0.05
			air_accidents = -0.1
        }
        remove_effect = { 
			set_temp_variable = {
				var = military_development_var_temp
				value = 0.01
			}
			add_military_development = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Fort_Construction_decision = {
		name = "Accelerate Defensive Construction"
		priority = 15
		fire_only_once = no
		cost = 50
		days_remove = 120
		days_re_enable = 90
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_PDTO_Defensive_Doctrine
		}
		available = {
			has_completed_focus = INS_PDTO_Defensive_Doctrine
		}
		modifier = {
			production_speed_air_base_factor = 0.1
			production_speed_anti_air_building_factor = 0.175
			production_speed_coastal_bunker_factor = 0.2
			production_speed_bunker_factor = 0.25
        }
        remove_effect = { 
			set_temp_variable = {
				var = military_development_var_temp
				value = 0.005
			}
			add_military_development = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Attack_Buff_decision = {
		name = "Push the Line"
		priority = 20
		fire_only_once = no
		custom_cost_trigger = {
			command_power > 29
		}
		custom_cost_text = 30cp_cost
		days_remove = 90
		days_re_enable = 90
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			has_completed_focus = INS_PDTO_Agressive_Doctrine
		}
		available = {
			has_completed_focus = INS_PDTO_Agressive_Doctrine
			has_war = yes
		}
		complete_effect = {
			hidden_effect = {
				add_command_power = -30
			}
		}
		modifier = {
			experience_gain_army = 0.002
			army_armor_attack_factor = 0.075
			army_attack_factor = 0.05
			army_org_factor = 0.075
			breakthrough_factor = 0.08
			initiative_factor = 0.1
			air_close_air_support_org_damage_factor = 0.075
			air_attack_factor = 0.05
        }
        remove_effect = { 
			set_temp_variable = {
				var = military_development_var_temp
				value = 0.01
			}
			add_military_development = yes
        }
        ai_will_do = { base = 1 }
	}
	INS_Daily_Exercise_decision = {
		name = "Start Daily Exercise"
		priority = 15
		fire_only_once = no
		cost = 50
		days_remove = 60
		days_re_enable = 75
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
		}
		modifier = {
			command_power_gain = 0.5
        }
        remove_effect = { 
			army_experience = 25
			navy_experience = 25
			air_experience = 25
        }
        ai_will_do = { base = 1 }
	}
	INS_War_Propaganda_decision = {
		name = "Glorify our Military"
		priority = 15
		fire_only_once = no
		custom_cost_trigger = {
			command_power > 29
		}
		custom_cost_text = 30cp_cost
		days_remove = 40
		days_re_enable = 120
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
		}
		complete_effect = {
			add_stability = -0.01
			hidden_effect = {
				add_command_power = -30
			}
		}
		remove_effect = {
			add_war_support = 0.025
			add_political_power = 75
			set_temp_variable = {
				var = military_development_var_temp
				value = 0.005
			}
			add_military_development = yes
		}
        ai_will_do = { base = 1 }
	}
	INS_Interventing_Myanmar_decision = {
		priority = 10
		fire_only_once = yes
		cost = 2000
		days_remove = 0
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			OR = {
				BRM = {
					has_war = yes
				}
				PDF = {
					has_war = yes
				}
			}
		}
		available = {
			OR = {
				BRM = {
					has_war = yes
				}
				PDF = {
					has_war = yes
				}
			}
		}
		cancel_trigger = {
		}
		modifier = {
        }
        remove_effect = { 
			custom_effect_tooltip = INS_Belum_Siap_Text
        }
        ai_will_do = { base = 1 }
	}
	INS_Interventing_Taiwan_decision = {
		priority = 10
		fire_only_once = yes
		cost = 2000
		days_remove = 0
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			AND = {
				CHI = {
					has_war = yes
					has_war_with = PRC
				}
				PRC = {
					has_war = yes
					has_war_with = CHI
				}
			}
		}
		available = {
			AND = {
				CHI = {
					has_war = yes
					has_war_with = PRC
				}
				PRC = {
					has_war = yes
					has_war_with = CHI
				}
			}
		}
		cancel_trigger = {
		}
		modifier = {
        }
        remove_effect = { 
			custom_effect_tooltip = INS_Belum_Siap_Text
        }
        ai_will_do = { base = 1 }
	}
	INS_Interventing_India_decision = {
		priority = 10
		fire_only_once = yes
		cost = 2000
		days_remove = 0
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			AND = {
				RAJ = {
					has_war = yes
					has_war_with = PAK
				}
				PAK = {
					has_war = yes
					has_war_with = RAJ
				}
			}
		}
		available = {
			AND = {
				RAJ = {
					has_war = yes
					has_war_with = PAK
				}
				PAK = {
					has_war = yes
					has_war_with = RAJ
				}
			}
		}
		cancel_trigger = {
		}
		modifier = {
        }
        remove_effect = { 
			custom_effect_tooltip = INS_Belum_Siap_Text
        }
        ai_will_do = { base = 1 }
	}
}

INS_Second_Confrontation_category = {
	################
	INS_MAL_Deadline_War_long_mission ={
		name = "OPERATION: MERDEKA UTARA Deadline..."
        activation = {
            always = no
        }
        available = {
			custom_trigger_tooltip = {
				tooltip = INS_Prepared_War_tooltip
				
				controls_state = 333
				controls_province = 12905
				controls_province = 12283
				controls_province = 12228
				controls_province = 10199
				controls_province = 10212
				controls_province = 7387
			}
        }
		cancel_trigger = {
			NOT = {
				has_war_with = MAL
			}
		}
        icon = mission_icon
        is_good = no
        days_mission_timeout = 90
        priority = 25
        selectable_mission = no
		complete_effect = {
			country_event = indonesiaaddon.22
		}
        timeout_effect = {
			country_event = indonesiaaddon.21
        }
	}
	INS_MAL_Deadline_War_short_mission ={
		name = "Defenseless Kalimantan"
        activation = {
            always = no
        }
        available = {
			custom_trigger_tooltip = {
				tooltip = INS_Unprepared_War_tooltip
				
				always = no
			}
        }
		cancel_trigger = {
			NOT = {
				has_war_with = MAL
			}
		}
        icon = mission_icon
        is_good = no
        days_mission_timeout = 30
        priority = 25
        selectable_mission = no
		complete_effect = {
		}
        timeout_effect = {
			country_event = indonesiaaddon.23
        }
	}
	###################
	INS_Confrontation_Deadline_mission = {
		name = "The Ticking Confrontation..."
        activation = {
            always = no
        }
        available = {
            always = no
        }
		cancel_trigger = {
			hidden_trigger = {
				OR = {
					NOT = {
						has_country_flag = INS_second_confrontation_flag
					}
					has_completed_focus = INS_Confrontation_Invade
				}
			}
		}
        icon = mission_icon
        is_good = no
        days_mission_timeout = 320
        priority = 25
        selectable_mission = no
        timeout_effect = {
			hidden_effect = {
				set_country_flag = INS_MAL_war_flag
			}
			country_event = {
				id = indonesiaaddon.192
				hours = 6
			}
        }
	}
	#diplomatic
	INS_Confrontation_Etnic_decision = {
		name = "Promote Indonesian-Malaysian Ethnic Solidarity"
		priority = 15
		cost = 25
		days_remove = 7
		days_re_enable = 7
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			NOT = {
				has_war_with = MAL
			}
			has_country_flag = INS_second_confrontation_flag
			has_country_flag = INS_confrontation_diplomatic_flag
		}
		available = {
			NOT = {
				has_war_with = MAL
			}
			has_completed_focus = INS_Confrontation_Etnic
		}
		cancel_trigger = {
			has_war_with = MAL
		}
		modifier = {
			political_power_gain = -0.3
        }
        remove_effect = { 
			set_temp_variable = { boolpositivechange = 1 }
			set_temp_variable = { tempvar = 1 }
			Change_Second_Confrontation_Tension = yes
			add_days_mission_timeout = {
				mission = INS_Confrontation_Deadline_mission
				days = 14
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Confrontation_Diaologue_decision = {
		name = "Diplomatic Meeting with Malaysian Officials"
		priority = 20
		cost = 50
		fire_only_once = yes
		days_remove = 14
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			NOT = {
				has_war_with = MAL
			}
			has_country_flag = INS_second_confrontation_flag
			has_country_flag = INS_confrontation_diplomatic_flag
		}
		available = {
			NOT = {
				has_war_with = MAL
			}
			has_completed_focus = INS_Confrontation_Meet
		}
		cancel_trigger = {
			has_war_with = MAL
		}
		modifier = {
			political_power_gain = -0.3
        }
        remove_effect = { 
			add_stability = 0.02
			set_temp_variable = { boolpositivechange = 1 }
			set_temp_variable = { tempvar = 2 }
			Change_Second_Confrontation_Tension = yes
			add_days_mission_timeout = {
				mission = INS_Confrontation_Deadline_mission
				days = 21
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Confrontation_End_decision = {
		name = "Bangkok Peace Conference"
		priority = 25
		cost = 150
		fire_only_once = yes
		days_remove = 14
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			NOT = {
				has_war_with = MAL
			}
			has_completed_focus = INS_Confrontation_Unity
		}
		available = {
			NOT = {
				has_war_with = MAL
			}
			has_completed_focus = INS_Confrontation_Unity
		}
		cancel_trigger = {
			hidden_trigger = {
				has_country_flag = INS_MAL_war_flag
			}
		}
		modifier = {
			political_power_gain = -0.3
        }
        remove_effect = { 
			country_event = {
				id = indonesiaaddon.20
				days = 3
			}
        }
        ai_will_do = { base = 1 }
	}
	#war
	INS_Confrontation_Provoke_decision = {
		name = "Border Provocations in North Kalimantan"
		priority = 15
		cost = 25
		days_remove = 7
		days_re_enable = 7
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			NOT = {
				has_war_with = MAL
			}
			has_country_flag = INS_second_confrontation_flag
			has_country_flag = INS_confrontation_war_flag
		}
		available = {
			NOT = {
				has_war_with = MAL
			}
			has_completed_focus = INS_Confrontation_Provoke
		}
		cancel_trigger = {
			has_war_with = MAL
		}
		modifier = {
			political_power_gain = -0.3
        }
		complete_effect = {
			add_stability = -0.005
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -100
			}
		}
        remove_effect = { 
			set_temp_variable = { partyvar = 1.5 }
			set_temp_variable = { parties = 14 }
			Increase_Party_Popularity = yes

			set_temp_variable = { boolpositivechange = 0 }
			set_temp_variable = { tempvar = 1 }
			Change_Second_Confrontation_Tension = yes

			add_days_mission_timeout = {
				mission = INS_Confrontation_Deadline_mission
				days = -7
			}
        }
        ai_will_do = { base = 1 }
	}
	INS_Confrontation_Propaganda_decision = {
		name = "Spread War Propaganda"
		priority = 20
		cost = 50
		fire_only_once = yes
		days_remove = 14
		allowed = { 
            original_tag = INS 
        }
		visible = {
			original_tag = INS 
			NOT = {
				has_war_with = MAL
			}
			has_country_flag = INS_second_confrontation_flag
			has_country_flag = INS_confrontation_war_flag
		}
		available = {
			NOT = {
				has_war_with = MAL
			}
			has_completed_focus = INS_Confrontation_Hate
		}
		cancel_trigger = {
			has_war_with = MAL
		}
		modifier = {
			political_power_gain = -0.5
			consumer_goods_factor = 0.2
        }
        remove_effect = { 
			add_stability = -0.02
			
			set_temp_variable = { partyvar = 3 }
			set_temp_variable = { parties = 14 }
			Increase_Party_Popularity = yes

			set_temp_variable = { boolpositivechange = 0 }
			set_temp_variable = { tempvar = 3 }
			Change_Second_Confrontation_Tension = yes

			add_days_mission_timeout = {
				mission = INS_Confrontation_Deadline_mission
				days = -21
			}

        }
        ai_will_do = { base = 1 }
	}
}