###### 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 = {
					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_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 = {
					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_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 = {
				every_state = {
					add_building_construction = {
						type = infrastructure
						level = 10
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 1000
				}
				every_state = {
					limit = {
						OR = {
							has_railway_level = {
								level = 1
								state = THIS
							}
							has_railway_level = {
								level = 2
								state = THIS
							}
							has_railway_level = {
								level = 3
								state = THIS
							}
							has_railway_level = {
								level = 4
								state = THIS
							}
							has_railway_level = {
								level = 5
								state = THIS
							}
							has_railway_level = {
								level = 6
								state = THIS
							}
						}
					}
					set_temp_variable = {
						nkmp_temp_railroad_upgrade_var = THIS
					}
					if = {
						limit = {
							has_global_flag = nkmp_flg_global_MD_Mode
						}
						THIS = {
							build_railway = {
								level = 6
								fallback = yes
								start_state = nkmp_temp_railroad_upgrade_var
								target_state = THIS
							}
						}
					}
					else = {
						THIS = {
							build_railway = {
								level = 5
								fallback = yes
								start_state = nk1p_temp_railroad_upgrade_var
								target_state = THIS
							}
						}
					}
				}
			}
		}
	}
	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
			RAJ = {
				annex_country = {
					target = BHU
				}
				annex_country = {
					target = NEP
				}
				hidden_effect = {
					every_state = {
						limit = {
							is_core_of = BHU
						}
						add_core_of = RAJ
					}
					every_state = {
						limit = {
							is_core_of = NEP
						}
						add_core_of = RAJ
					}
				}
			}
			######## AI IDEAS
			HON = {
				add_ideas = nkmp_ai_idea
				add_ideas = undisturbed_isolation
				add_ideas = disarmed_nation
				set_research_slots = 0
				annex_country = {
					target = GUA
				}
				annex_country = {
					target = ELS
				}
				annex_country = {
					target = NIC
				}
				annex_country = {
					target = COS
				}
				annex_country = {
					target = PAN
				}
				annex_country = {
					target = CUB
				}
				annex_country = {
					target = HAI
				}
				annex_country = {
					target = DOM
				}
				hidden_effect = {
					every_state = {
						limit = {
							is_core_of = GUA
						}
						add_core_of = HON
					}
					every_state = {
						limit = {
							is_core_of = ELS
						}
						add_core_of = HON
					}
					every_state = {
						limit = {
							is_core_of = NIC
						}
						add_core_of = HON
					}
					every_state = {
						limit = {
							is_core_of = COS
						}
						add_core_of = HON
					}
					every_state = {
						limit = {
							is_core_of = PAN
						}
						add_core_of = HON
					}
					every_state = {
						limit = {
							is_core_of = CUB
						}
						add_core_of = HON
					}
					every_state = {
						limit = {
							is_core_of = ELS
						}
						add_core_of = HON
					}
					every_state = {
						limit = {
							is_core_of = HAI
						}
						add_core_of = HON
					}
					every_state = {
						limit = {
							is_core_of = DOM
						}
						add_core_of = HON
					}
				}
			}
			##### Brazil
			BRA = {
				add_ideas = nkmp_ai_idea
				add_ideas = undisturbed_isolation
				add_ideas = disarmed_nation
				set_research_slots = 0
				annex_country = {
					target = VEN
				}
				annex_country = {
					target = COL
				}
				annex_country = {
					target = PRU
				}
				annex_country = {
					target = ECU
				}
				annex_country = {
					target = BOL
				}
				annex_country = {
					target = CHL
				}
				annex_country = {
					target = ARG
				}
				annex_country = {
					target = PAR
				}
				annex_country = {
					target = URG
				}
				hidden_effect = {
					every_state = {
						limit = {
							is_core_of = VEN
						}
						add_core_of = BRA
					}
					every_state = {
						limit = {
							is_core_of = COL
						}
						add_core_of = BRA
					}
					every_state = {
						limit = {
							is_core_of = PRU
						}
						add_core_of = BRA
					}
					every_state = {
						limit = {
							is_core_of = ECU
						}
						add_core_of = BRA
					}
					every_state = {
						limit = {
							is_core_of = BOL
						}
						add_core_of = BRA
					}
					every_state = {
						limit = {
							is_core_of = CHL
						}
						add_core_of = BRA
					}
					every_state = {
						limit = {
							is_core_of = ARG
						}
						add_core_of = BRA
					}
					every_state = {
						limit = {
							is_core_of = PAR
						}
						add_core_of = BRA
					}
					every_state = {
						limit = {
							is_core_of = URG
						}
						add_core_of = BRA
					}
				}
			}
			##### France Doesn't Get AI IDEAS
			FRA = {
				annex_country = {
					target = LIB
				}
				hidden_effect = {
					every_state = {
						limit = {
							is_core_of = LIB
						}
						add_core_of = FRA
					}
				}
			}
			##### Saudi Arabia Doesn't Get AI IDEAS
			SAU = {
				annex_country = {
					target = YEM
				}
				annex_country = {
					target = OMA
				}
				hidden_effect = {
					every_state = {
						limit = {
							is_core_of = YEM
						}
						add_core_of = SAU
					}
					every_state = {
						limit = {
							is_core_of = OMA
						}
						add_core_of = SAU
					}
				}
			}
			HON = {
				delete_unit = {
				}
			}
			BRA = {
				delete_unit = {
				}
			}
		}
	}
}
