###### Global Control
nkmp_global_control_cat = {
	nkmp_misc_enable_ai = {
		icon = generic_political_actions
		available = {
			any_other_country = {
				has_idea = nkmp_ai_idea
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_other_country = {
				if = {
					limit = {
						is_ai = yes
					}
					remove_ideas = nkmp_ai_idea
				}
			}
		}
	}
	nkmp_misc_disable_ai = {
		icon = generic_political_actions
		available = {
			any_other_country = {
				NOT = {
					has_idea = nkmp_ai_idea
				}
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_other_country = {
				if = {
					limit = {
						is_ai = yes
					}
					add_ideas = nkmp_ai_idea
				}
			}
		}
	}
	nkmp_divider_4 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
		}
	}
	nkmp_global_disable_energy = {
		icon = generic_political_actions
		available = {
			if = {
				limit = {
					has_global_flag = nkmp_flg_global_MD_Mode
				}
				any_country = {
					NOT = {
						has_idea = nkmp_energy_disabled_idea
					}
				}
			}
			else = {
				any_country = {
					NOT = {
						has_idea = nkmp_energy_disabled_idea
					}
				}
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			if = {
				limit = {
					has_global_flag = nkmp_flg_global_MD_Mode
				}
				every_country = {
					nkmp_md_energy_disabled_scripted_effect = yes
				}
			}
			else = {
				every_country = {
					nkmp_energy_disabled_scripted_effect = yes
				}
			}
		}
	}
	nkmp_global_enable_energy = {
		icon = generic_political_actions
		available = {
			if = {
				limit = {
					has_global_flag = nkmp_flg_global_MD_Mode
				}
				any_country = {
					has_idea = nkmp_energy_disabled_idea
				}
			}
			else = {
				any_country = {
					has_idea = nkmp_energy_disabled_idea
				}
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			if = {
				limit = {
					has_global_flag = nkmp_flg_global_MD_Mode
				}
				every_country = {
					nkmp_md_energy_enabled_scripted_effect = yes
				}
			}
			else = {
				every_country = {
					nkmp_energy_enabled_scripted_effect = yes
				}
			}
		}
	}
	nkmp_divider_66 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
		}
	}
	nkmp_remove_all_factions = {
		icon = generic_political_actions
		available = {
			any_country = {
				is_in_faction = yes
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_country = {
				limit = {
					is_faction_leader = yes
				}
				dismantle_faction = yes
			}
		}
	}
	nkmp_forid_factions = {
		icon = generic_political_actions
		available = {
			any_country = {
				has_rule = can_create_factions
			}
		}
		visible = {
			any_country = {
				has_rule = can_create_factions
			}
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_country = {
				set_rule = {
					can_create_factions = no
				}
			}
		}
	}
	nkmp_allow_factions = {
		icon = generic_political_actions
		available = {
			any_country = {
				NOT = {
					has_rule = can_create_factions
				}
			}
		}
		visible = {
			any_country = {
				NOT = {
					has_rule = can_create_factions
				}
			}
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_country = {
				set_rule = {
					can_create_factions = yes
				}
			}
		}
	}
	nkmp_release_all_subjects = {
		icon = generic_political_actions
		available = {
			any_country = {
				is_subject = yes
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_country = {
				limit = {
					is_subject = yes
				}
				OVERLORD = {
					set_autonomy = {
						target = PREV
						autonomy_state = autonomy_free
					}
				}
			}
		}
	}
	nkmp_revoke_guarantees = {
		icon = generic_political_actions
		available = {
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			custom_effect_tooltip = nkmp_remove_guarantees_desc_TT
			hidden_effect = {
				every_country = {
					THIS = {
						every_other_country = {
							diplomatic_relation = {
								country = PREV
								relation = guarantee
								active = no
							}
						}
					}
				}
			}
		}
	}
	nkmp_forbid_guarantees = {
		icon = generic_political_actions
		available = {
			any_country = {
				NOT = {
					has_idea = nkmp_forbid_guarantees_idea
				}
			}
		}
		visible = {
			any_country = {
				NOT = {
					has_idea = nkmp_forbid_guarantees_idea
				}
			}
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			add_ideas = nkmp_forbid_guarantees_idea
		}
	}
	nkmp_allow_guarantees = {
		icon = generic_political_actions
		available = {
			any_country = {
				has_idea = nkmp_forbid_guarantees_idea
			}
		}
		visible = {
			any_country = {
				has_idea = nkmp_forbid_guarantees_idea
			}
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			remove_ideas = nkmp_forbid_guarantees_idea
		}
	}
	nkmp_forbid_volunteers = {
		icon = generic_political_actions
		available = {
			any_country = {
				AND = {
					NOT = {
						has_idea = nkmp_forbid_volunteers_idea
					}
					is_ai = yes
				}
			}
		}
		visible = {
			any_country = {
				is_ai = yes
				NOT = {
					has_idea = nkmp_forbid_volunteers_idea
				}
			}
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_country = {
				limit = {
					is_ai = yes
				}
				add_ideas = nkmp_forbid_volunteers_idea
			}
		}
	}
	nkmp_allow_volunteers = {
		icon = generic_political_actions
		available = {
			any_country = {
				AND = {
					has_idea = nkmp_forbid_volunteers_idea
					is_ai = yes
				}
			}
		}
		visible = {
			any_country = {
				is_ai = yes
				has_idea = nkmp_forbid_volunteers_idea
			}
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_country = {
				limit = {
					is_ai = yes
					has_idea = nkmp_forbid_volunteers_idea
				}
				remove_ideas = nkmp_forbid_volunteers_idea
			}
		}
	}
	nkmp_forbid_lend_lease = {
		icon = generic_political_actions
		available = {
			any_country = {
				AND = {
					NOT = {
						has_idea = nkmp_forbid_lend_lease_idea
					}
					is_ai = yes
				}
			}
		}
		visible = {
			any_country = {
				is_ai = yes
				NOT = {
					has_idea = nkmp_forbid_lend_lease_idea
				}
			}
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_country = {
				limit = {
					is_ai = yes
				}
				add_ideas = nkmp_forbid_lend_lease_idea
			}
		}
	}
	nkmp_allow_lend_lease = {
		icon = generic_political_actions
		available = {
			any_country = {
				AND = {
					has_idea = nkmp_forbid_lend_lease_idea
					is_ai = yes
				}
			}
		}
		visible = {
			any_country = {
				is_ai = yes
				has_idea = nkmp_forbid_lend_lease_idea
			}
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_country = {
				limit = {
					is_ai = yes
					has_idea = nkmp_forbid_lend_lease_idea
				}
				remove_ideas = nkmp_forbid_lend_lease_idea
			}
		}
	}
	nkmp_divider_71 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
		}
	}
	nkmp_remove_all_dmz = {
		icon = generic_political_actions
		available = {
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_state = {
				limit = {
					is_demilitarized_zone = yes
				}
				set_demilitarized_zone = no
			}
		}
	}
	nkmp_max_all_infrastructure = {
		icon = generic_political_actions
		available = {
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			custom_effect_tooltip = nkmp_startup_global_max_infrastructure_desc_TT
			hidden_effect = {
				nkmp_max_infra_every_state_scripted_effect = yes
			}
		}
	}
	nkmp_divider_116 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
		}
	}
	nkmp_stop_all_wars = {
		icon = generic_political_actions
		available = {
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			custom_effect_tooltip = nkmp_stop_all_wars_desc_TT
			hidden_effect = {
				every_country = {
					limit = {
						has_war = yes
					}
					THIS = {
						every_other_country = {
							limit = {
								has_war_with = PREV
							}
							white_peace = PREV
						}
					}
				}
			}
		}
	}
	nkmp_divider_72 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
		}
	}
	nkmp_every_country_research_all = {
		icon = generic_research
		available = {
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			every_country = {
				custom_effect_tooltip = nkmp_research_all_TT
				hidden_effect = {
					nkmp_research_all_scripted_effect = yes
				}
			}
		}
	}
	nkmp_divider_73 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
		}
	}
	nkmp_every_country_delete_units = {
		icon = generic_political_actions
		available = {
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			custom_effect_tooltip = nkmp_every_country_delete_units_TT
			hidden_effect = {
				every_country = {
					delete_unit = {
						disband = yes
					}
				}
			}
		}
	}
	nkmp_every_other_country_delete_units = {
		icon = generic_political_actions
		available = {
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			custom_effect_tooltip = nkmp_every_other_country_delete_units_TT
			hidden_effect = {
				every_other_country = {
					delete_unit = {
						disband = yes
					}
				}
			}
		}
	}
	nkmp_divider_122 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
		}
	}
	nkmp_misc_fix_lag = {
		icon = generic_political_actions
		available = {
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		complete_effect = {
			######## India Doesn't get AI IDEAS
			if = {
				limit = {
					country_exists = RAJ
				}
				RAJ = {
					if = {
						limit = {
							country_exists = BHU
						}
						annex_country = {
							target = BHU
						}
					}
					if = {
						limit = {
							country_exists = NEP
						}
						annex_country = {
							target = NEP
						}
					}
					hidden_effect = {
						if = {
							limit = {
								country_exists = BHU
							}
							every_state = {
								limit = {
									is_core_of = BHU
								}
								add_core_of = RAJ
							}
						}
						if = {
							limit = {
								country_exists = NEP
							}
							every_state = {
								limit = {
									is_core_of = NEP
								}
								add_core_of = RAJ
							}
						}
					}
				}
			}
			######## AI IDEAS
			if = {
				limit = {
					country_exists = HON
				}
				HON = {
					if = {
						limit = {
							country_exists = HON
						}
						add_ideas = nkmp_ai_idea
						add_ideas = undisturbed_isolation
						add_ideas = disarmed_nation
						set_research_slots = 0
					}
					if = {
						limit = {
							country_exists = GUA
						}
						annex_country = {
							target = GUA
						}
					}
					if = {
						limit = {
							country_exists = ELS
						}
						annex_country = {
							target = ELS
						}
					}
					if = {
						limit = {
							country_exists = NIC
						}
						annex_country = {
							target = NIC
						}
					}
					if = {
						limit = {
							country_exists = COS
						}
						annex_country = {
							target = COS
						}
					}
					if = {
						limit = {
							country_exists = PAN
						}
						annex_country = {
							target = PAN
						}
					}
					if = {
						limit = {
							country_exists = CUB
						}
						annex_country = {
							target = CUB
						}
					}
					if = {
						limit = {
							country_exists = HAI
						}
						annex_country = {
							target = HAI
						}
					}
					if = {
						limit = {
							country_exists = DOM
						}
						annex_country = {
							target = DOM
						}
					}
					hidden_effect = {
						if = {
							limit = {
								country_exists = GUA
							}
							every_state = {
								limit = {
									is_core_of = GUA
								}
								add_core_of = HON
							}
						}
						if = {
							limit = {
								country_exists = ELS
							}
							every_state = {
								limit = {
									is_core_of = ELS
								}
								add_core_of = HON
							}
						}
						if = {
							limit = {
								country_exists = NIC
							}
							every_state = {
								limit = {
									is_core_of = NIC
								}
								add_core_of = HON
							}
						}
						if = {
							limit = {
								country_exists = COS
							}
							every_state = {
								limit = {
									is_core_of = COS
								}
								add_core_of = HON
							}
						}
						if = {
							limit = {
								country_exists = PAN
							}
							every_state = {
								limit = {
									is_core_of = PAN
								}
								add_core_of = HON
							}
						}
						if = {
							limit = {
								country_exists = CUB
							}
							every_state = {
								limit = {
									is_core_of = CUB
								}
								add_core_of = HON
							}
						}
						if = {
							limit = {
								country_exists = HAI
							}
							every_state = {
								limit = {
									is_core_of = HAI
								}
								add_core_of = HON
							}
						}
						if = {
							limit = {
								country_exists = DOM
							}
							every_state = {
								limit = {
									is_core_of = DOM
								}
								add_core_of = HON
							}
						}
					}
				}
			}
			##### Brazil
			if = {
				limit = {
					country_exists = BRA
				}
				BRA = {
					if = {
						limit = {
							country_exists = BRA
						}
						add_ideas = nkmp_ai_idea
						add_ideas = undisturbed_isolation
						add_ideas = disarmed_nation
						set_research_slots = 0
					}
					if = {
						limit = {
							country_exists = VEN
						}
						annex_country = {
							target = VEN
						}
					}
					if = {
						limit = {
							country_exists = COL
						}
						annex_country = {
							target = COL
						}
					}
					if = {
						limit = {
							country_exists = PRU
						}
						annex_country = {
							target = PRU
						}
					}
					if = {
						limit = {
							country_exists = ECU
						}
						annex_country = {
							target = ECU
						}
					}
					if = {
						limit = {
							country_exists = BOL
						}
						annex_country = {
							target = BOL
						}
					}
					if = {
						limit = {
							country_exists = CHL
						}
						annex_country = {
							target = CHL
						}
					}
					if = {
						limit = {
							country_exists = ARG
						}
						annex_country = {
							target = ARG
						}
					}
					if = {
						limit = {
							country_exists = PAR
						}
						annex_country = {
							target = PAR
						}
					}
					if = {
						limit = {
							country_exists = URG
						}
						annex_country = {
							target = URG
						}
					}
					hidden_effect = {
						if = {
							limit = {
								country_exists = VEN
							}
							every_state = {
								limit = {
									is_core_of = VEN
								}
								add_core_of = BRA
							}
						}
						if = {
							limit = {
								country_exists = COL
							}
							every_state = {
								limit = {
									is_core_of = COL
								}
								add_core_of = BRA
							}
						}
						if = {
							limit = {
								country_exists = PRU
							}
							every_state = {
								limit = {
									is_core_of = PRU
								}
								add_core_of = BRA
							}
						}
						if = {
							limit = {
								country_exists = ECU
							}
							every_state = {
								limit = {
									is_core_of = ECU
								}
								add_core_of = BRA
							}
						}
						if = {
							limit = {
								country_exists = BOL
							}
							every_state = {
								limit = {
									is_core_of = BOL
								}
								add_core_of = BRA
							}
						}
						if = {
							limit = {
								country_exists = CHL
							}
							every_state = {
								limit = {
									is_core_of = CHL
								}
								add_core_of = BRA
							}
						}
						if = {
							limit = {
								country_exists = ARG
							}
							every_state = {
								limit = {
									is_core_of = ARG
								}
								add_core_of = BRA
							}
						}
						if = {
							limit = {
								country_exists = PAR
							}
							every_state = {
								limit = {
									is_core_of = PAR
								}
								add_core_of = BRA
							}
						}
						if = {
							limit = {
								country_exists = URG
							}
							every_state = {
								limit = {
									is_core_of = URG
								}
								add_core_of = BRA
							}
						}
					}
				}
			}
			##### France Doesn't Get AI IDEAS
			if = {
				limit = {
					country_exists = FRA
				}
				FRA = {
					if = {
						limit = {
							country_exists = LIB
						}
						annex_country = {
							target = LIB
						}
					}
					hidden_effect = {
						if = {
							limit = {
								country_exists = LIB
							}
							every_state = {
								limit = {
									is_core_of = LIB
								}
								add_core_of = FRA
							}
						}
					}
				}
			}
			##### Saudi Arabia Doesn't Get AI IDEAS
			if = {
				limit = {
					country_exists = SAU
				}
				SAU = {
					if = {
						limit = {
							country_exists = YEM
						}
						annex_country = {
							target = YEM
						}
					}
					if = {
						limit = {
							country_exists = OMA
						}
						annex_country = {
							target = OMA
						}
					}
					hidden_effect = {
						if = {
							limit = {
								country_exists = YEM
							}
							every_state = {
								limit = {
									is_core_of = YEM
								}
								add_core_of = SAU
							}
						}
						if = {
							limit = {
								country_exists = OMA
							}
							every_state = {
								limit = {
									is_core_of = OMA
								}
								add_core_of = SAU
							}
						}
					}
				}
			}
			if = {
				limit = {
					country_exists = HON
				}
				HON = {
					if = {
						limit = {
							country_exists = HON
						}
						delete_unit = {
						}
					}
				}
			}
			if = {
				limit = {
					country_exists = BRA
				}
				BRA = {
					if = {
						limit = {
							country_exists = BRA
						}
						delete_unit = {
						}
					}
				}
			}
		}
	}
}
