# monthly on_action by Yard1

on_actions = {
	on_startup = { # on_daily is executed before on_startup
		effect = {
			add_to_variable = { global.next_month = 1 }
		}
	}

	# this is executed on the 1st of every month FOR ONE RANDOM COUNTRY - use every_country inside
	on_daily = {
		effect = {
			if = {
				# don't touch!
				limit = {
					NOT = { 
						has_global_flag = on_monthly_done
					}
					meta_trigger = {
						text = {
							date > [YEAR].[MONTH].1
						}
						YEAR = "[?global.year]"
						MONTH = "[?global.next_month]"
					}
				}
				add_to_variable = { global.month = 1 }
				add_to_variable = { global.next_month = 1 }
				set_global_flag = { flag = on_monthly_done value = 1 days = 27 }
				if = {
					limit = { check_variable = { global.month > 12 } }
					set_variable = { global.month = 1 }
				}
				if = {
					limit = { check_variable = { global.next_month > 12 } }
					set_variable = { global.next_month = 1 }
					set_global_flag = { flag = on_monthly_done value = 1 days = 31 }
				}
				# this is done only ONCE per month, even though on_daily fires for every country
				# will also be done on startup

				# your code here
				set_power_ranking_ideas_for_every_country = yes
				country_event = { id = low_stability.1 }
				
				#killrabbit stuff
				every_country = {
					ingame_calculate_size_modifier = yes #updates economics if new factories has been added
					recalculate_party = yes
					
					#player only updates
					if = { limit = { is_ai = no }
					
						update_military_rate = yes
						2017_state_init_setup = yes		#updates all player states if population has grown enough
						
						if = { limit = { can_upgrade_gdp = yes NOT = { has_country_flag = Max_GDPC } has_global_flag = do_not_do_on_day_one }
							Update_GDPC = yes
							news_event = { id = GDPC_Update.1 } #informs that you didn't do it :P
						}
						set_global_flag = do_not_do_on_day_one
					}
				}
				# TODO:
				# GER, ENG, BRA, SOV, JAP, KOR, RAJ
				# SAF, POL, SWE, TUR, SAU, ISR, IND, PAK, EGY
				#
				CHI = {
					if = { limit = { is_ai = yes }
					save_event_target_as = influence_sender
						random_list = {
							#Undermine Taiwan
							7 = {
								TAI = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -180 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												TAI = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = { 
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											PREV = {
												TAI = {
													country_event = { id = influence.22 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.3 }
												NOT = { check_variable = { party_popularity@communism > 0.45 } }
											}
											manipulate_politics_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							6 = { 
								PAK = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							6 = { 
								IND = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							6 = { 
								BRA = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								LAO = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
									}
								}
							}
							3 = {
								VEN = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												VEN = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								CBD = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
									}
								}
							}
							2 = {
								PHI = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								GRE = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								TAJ = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								KYR = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							3 = {
								ETH = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.8 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												ETH = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = {
								DRC = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												DRC = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = {
								AGL = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												AGL = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								GAB = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												GAB = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								NIG = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												NIG = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								GAH = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												GAH = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								SIA = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												SIA = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = {
								MAY = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												MAY = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = {
								SAF = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = USA is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							50 = {
								modifier = {
									factor = 1.5
									has_political_power < 80
								}
								#don't waste if no gain
								modifier = {
									factor = 10
									political_power_daily < 2
								}
								modifier = {
									factor = 0.5
									political_power_daily > 4
								}
								modifier = {
									factor = 0.5
									political_power_daily > 6
								}
								modifier = {
									factor = 0.5
									political_power_daily > 8
								}
								modifier = {
									factor = 0.5
									political_power_daily > 8
								}
								#ignore influence at war
								modifier = {
									factor = 100
									has_war = yes
								}
							}
						}
					}
				}
				
				
				USA = {
					if = { limit = { is_ai = yes }
					save_event_target_as = influence_sender
						random_list = {
							#Undermine Iran
							7 = {
								PER = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -180 } is_in_faction_with = CHI is_in_faction_with = SOV is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.45 }
												NOT = { is_same_government = yes }
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											PREV = {
												PER = {
													country_event = { id = influence.44 }
												}
											}
										}
										if = { 
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											PREV = {
												PER = {
													country_event = { id = influence.22 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.3 }
												NOT = { check_variable = { party_popularity@communism > 0.45 } }
											}
											manipulate_politics_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								PAK = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = CHI is_in_faction_with = SOV is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							6 = {
								RAJ = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = CHI is_in_faction_with = SOV is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							3 = { 
								ISR = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = CHI is_in_faction_with = SOV is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												ISR = {
													country_event = { id = influence.11 }
												}
											}
										}
									}
								}
							}
							2 = {
								LAO = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = CHI is_in_faction_with = SOV is_puppet = yes } } }
										spread_influence = yes
									}
								}
							}
							3 = {
								VEN = { 
									spread_influence = yes
									if = { 
										limit = {
											check_variable = { influence_array^0 = PREV }
											check_variable = { influence_array_calc^0 > 0.45 }
											NOT = { is_same_government = yes }
											NOT = { is_puppet_of = PREV }
											NOT = { has_war = yes }
										}
										PREV = {
											VEN = {
												country_event = { id = influence.44 }
											}
										}
									}
									if = {
										limit = {
											check_variable = { influence_array^0 = PREV }
											check_variable = { influence_array_calc^0 > 0.3 }
											NOT = { check_variable = { party_popularity@communism > 0.45 } }
										}
										manipulate_politics_action = yes
									}
									if = {
										limit = {
											check_variable = { influence_array^0 = PREV }
											check_variable = { influence_array_calc^0 > 0.8 }
											is_same_government = yes
											NOT = { is_puppet_of = PREV }
											NOT = { has_war = yes }
										}
										make_puppet_action = yes
									}
								}
							}
							3 = {
								LBA = {
									spread_influence = yes
									if = { 
										limit = {
											check_variable = { influence_array^0 = PREV }
											check_variable = { influence_array_calc^0 > 0.45 }
											NOT = { is_same_government = yes }
											NOT = { is_puppet_of = PREV }
											NOT = { has_war = yes }
										}
										PREV = {
											LBA = {
												country_event = { id = influence.44 }
											}
										}
									}
									if = {
										limit = {
											check_variable = { influence_array^0 = PREV }
											check_variable = { influence_array_calc^0 > 0.3 }
											NOT = { check_variable = { party_popularity@communism > 0.45 } }
										}
										manipulate_politics_action = yes
									}
									if = {
										limit = {
											check_variable = { influence_array^0 = PREV }
											check_variable = { influence_array_calc^0 > 0.8 }
											is_same_government = yes
											NOT = { is_puppet_of = PREV }
											NOT = { has_war = yes }
										}
										make_puppet_action = yes
									}
								}
							}
							2 = {
								NIG = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = CHI is_in_faction_with = SOV is_puppet = yes } } }
										spread_influence = yes
									}
								}
							}
							2 = {
								PHI = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = CHI is_in_faction_with = SOV is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								GAH = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = CHI is_in_faction_with = SOV is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												GAH = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								SIA = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = CHI is_in_faction_with = SOV is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												SIA = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								MAY = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_in_faction_with = CHI is_in_faction_with = SOV is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												MAY = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							50 = {
								modifier = {
									factor = 1.5
									has_political_power < 80
								}
								#don't waste if no gain
								modifier = {
									factor = 10
									political_power_daily < 2
								}
								modifier = {
									factor = 0.5
									political_power_daily > 4
								}
								modifier = {
									factor = 0.5
									political_power_daily > 6
								}
								modifier = {
									factor = 0.5
									political_power_daily > 8
								}
								modifier = {
									factor = 0.5
									political_power_daily > 8
								}
								#ignore influence at war
								modifier = {
									factor = 100
									has_war = yes
								}
							}
						}
					}
				}
				
				FRA = {
					if = { limit = { is_ai = yes }
					save_event_target_as = influence_sender
						random_list = {
						
							7 = {
								ALG = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -180 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												ALG = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = { 
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											PREV = {
												ALG = {
													country_event = { id = influence.22 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.3 }
												NOT = { check_variable = { party_popularity@communism > 0.45 } }
											}
											manipulate_politics_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							6 = { 
								DRC = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = { 
								GUI = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = { 
								NGR = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								SEN = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
									}
								}
							}
							3 = {
								MAD = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												MAD = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								SWI = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
									}
								}
							}
							2 = {
								BEL = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								LUX = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							3 = {
								CAM = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.8 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												CAM = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = {
								GAB = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												GAB = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = {
								CNG = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												CNG = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								CHA = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												CHA = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								SEY = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												SEY = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							3 = {
								MAL = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 1.2 }
												NOT = { is_puppet_of = PREV }
											}
											PREV = {
												MAL = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = {
								BFA = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = {
								MAU = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.5 }
												NOT = { is_puppet_of = PREV }
												NOT = {
													meta_trigger = {
														text = {
															has_idea = [CHECKTAG]_tribute_idea
														}
														CHECKTAG = "[?var:influence_array^0.GetTag]"
													}
												}
											}
											economic_exploitation_action = yes
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							50 = {
								modifier = {
									factor = 1.5
									has_political_power < 80
								}
								#don't waste if no gain
								modifier = {
									factor = 10
									political_power_daily < 2
								}
								modifier = {
									factor = 0.5
									political_power_daily > 4
								}
								modifier = {
									factor = 0.4
									has_political_power > 400
								}
								modifier = {
									factor = 0.5
									political_power_daily > 6
								}
								modifier = {
									factor = 0.5
									political_power_daily > 8
								}
								modifier = {
									factor = 0.5
									political_power_daily > 8
								}
								#ignore influence at war
								modifier = {
									factor = 100
									has_war = yes
								}
							}
						}
					}
				}
				
				PER = {
					if = { limit = { is_ai = yes }
					save_event_target_as = influence_sender
						random_list = {
						
							10 = {
								BHR = {
									if = { limit = { NOT = { is_puppet = yes } }
										spread_influence = yes
										if = {
											limit = {
												OR = {
													is_puppet_of = PREV
													has_government = communism
												}
											}
											country_event = { id = influence.11 }
										}
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.3 }
												NOT = { check_variable = { party_popularity@communism > 0.45 } }
											}
											manipulate_politics_action = yes
										}
										if = { 
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.45 }
												NOT = { is_same_government = yes }
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											country_event = { id = influence.44 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = {
								SAU = {
									if = { limit = { NOT = { is_puppet = yes } }
										spread_influence = yes
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.3 }
												NOT = { check_variable = { party_popularity@communism > 0.45 } }
											}
											manipulate_politics_action = yes
										}
										if = { 
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.55 }
												NOT = { is_same_government = yes }
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											country_event = { id = influence.44 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							4 = {
								UAE = {
									if = { limit = { NOT = { is_puppet = yes } }
										spread_influence = yes
										if = {
											limit = {
												is_puppet_of = PREV
											}
											PREV = {
												UAE = {
													country_event = { id = influence.11 }
												}
											}
										}
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.3 }
												NOT = { check_variable = { party_popularity@communism > 0.45 } }
											}
											manipulate_politics_action = yes
										}
										if = { 
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.45 }
												NOT = { is_same_government = yes }
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											country_event = { id = influence.44 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							10 = {
								IRQ = {
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -10 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.4 }
												has_government = communism
												NOT = { is_puppet_of = PREV }
											}
											country_event = { id = influence.11 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.3 }
												NOT = { check_variable = { party_popularity@communism > 0.4 } }
											}
											manipulate_politics_action = yes
										}
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							6 = {
								SYR = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.4 }
												has_government = communism
												NOT = { is_puppet_of = PREV }
											}
											country_event = { id = influence.11 }
										}
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								LEB = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.1 }
												NOT = { is_puppet_of = PREV }
											}
											country_event = { id = influence.11 }
										}
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								AFG = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.1 }
												NOT = { is_puppet_of = PREV }
											}
											country_event = { id = influence.11 }
										}
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								SUD = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.1 }
												NOT = { is_puppet_of = PREV }
											}
											country_event = { id = influence.11 }
										}
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							1 = {
								HAM = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.4 }
												NOT = { is_puppet_of = PREV }
											}
											country_event = { id = influence.11 }
										}
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								HEZ = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.6 }
												NOT = { is_puppet_of = PREV }
											}
											country_event = { id = influence.11 }
										}
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							2 = {
								HOU = { 
									if = { limit = { NOT = { OR = { has_opinion = { target = PREV value < -40 } is_puppet = yes } } }
										spread_influence = yes
										if = { 
											limit = {
												check_variable = { size_modifier < 0.2 }
												NOT = { is_puppet_of = PREV }
											}
											country_event = { id = influence.11 }
										}
										if = {
											limit = {
												OR = {
													check_variable = { influence_array^0 = PREV }
													check_variable = { influence_array^1 = PREV }
												}
											}
											country_event = { id = influence.22 }
										}
										if = {
											limit = {
												check_variable = { influence_array^0 = PREV }
												check_variable = { influence_array_calc^0 > 0.8 }
												is_same_government = yes
												NOT = { is_puppet_of = PREV }
												NOT = { has_war = yes }
											}
											make_puppet_action = yes
										}
									}
								}
							}
							50 = {
								modifier = {
									factor = 1.5
									has_political_power < 80
								}
								#don't waste if no gain
								modifier = {
									factor = 10
									political_power_daily < 2
								}
								modifier = {
									factor = 0.5
									political_power_daily > 4
								}
								modifier = {
									factor = 0.4
									has_political_power > 400
								}
								modifier = {
									factor = 0.5
									political_power_daily > 6
								}
								modifier = {
									factor = 0.5
									political_power_daily > 8
								}
								modifier = {
									factor = 0.5
									political_power_daily > 8
								}
								#ignore influence at war
								modifier = {
									factor = 100
									has_war = yes
								}
							}
						}
					}
				}
				#####################
				### AI STRATEGIES ###
				#####################
				#Generic Strategies	(run only one every_country)
				every_country = {
					limit = { is_ai = yes }
					#War on terror
					if = {
						limit = {
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_war_on_terror_active }
							has_opinion_modifier = AlQaida_Are_Terrorists
							NOT = {
								original_tag = AQY
								original_tag = TAL
								original_tag = TTP
								original_tag = NUS
							}
						}
						add_ai_strategy = { type = antagonize id = "AQY" value = 100 }
						add_ai_strategy = { type = antagonize id = "TAL" value = 100 }
						add_ai_strategy = { type = antagonize id = "TTP" value = 100 }
						add_ai_strategy = { type = antagonize id = "NUS" value = 100 }
						add_ai_strategy = { type = antagonize id = "SHB" value = 100 }
						add_ai_strategy = { type = contain id = "AQY" value = 100 }
						add_ai_strategy = { type = contain id = "TAL" value = 100 }
						add_ai_strategy = { type = contain id = "TTP" value = 100 }
						add_ai_strategy = { type = contain id = "NUS" value = 100 }
						add_ai_strategy = { type = contain id = "SHB" value = 100 }
						set_country_flag = AI_STRATEGY_GENERIC_war_on_terror_active
					}
					if = {
						limit = {
							NOT = { has_opinion_modifier = AlQaida_Are_Terrorists }
							has_country_flag = AI_STRATEGY_GENERIC_war_on_terror_active
						}
						add_ai_strategy = { type = antagonize id = "AQY" value = -100 }
						add_ai_strategy = { type = antagonize id = "TAL" value = -100 }
						add_ai_strategy = { type = antagonize id = "TTP" value = -100 }
						add_ai_strategy = { type = antagonize id = "NUS" value = -100 }
						add_ai_strategy = { type = antagonize id = "SHB" value = -100 }
						add_ai_strategy = { type = contain id = "AQY" value = -100 }
						add_ai_strategy = { type = contain id = "TAL" value = -100 }
						add_ai_strategy = { type = contain id = "TTP" value = -100 }
						add_ai_strategy = { type = contain id = "NUS" value = -100 }
						add_ai_strategy = { type = contain id = "SHB" value = -100 }
						clr_country_flag = AI_STRATEGY_GENERIC_war_on_terror_active
					}
					
					#AMISOM mission to Somalia
					if = {
						limit = {
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_amisom_mission_active }
							OR = {
								original_tag = UGA
								original_tag = BUR
								original_tag = KEN
								original_tag = DJI
								original_tag = SIE
								original_tag = NIG
								original_tag = GAH
							}
							OR = {
								has_government = democratic
								has_government = communism
								has_government = neutrality
							}
							SOM = {
								OR = {
									has_war_with = SHB
									has_civil_war = yes
								}
								OR = {
									has_government = democratic
									has_government = communism
									has_government = neutrality
								}
							}
						}
						add_ai_strategy = { type = befriend id = "SOM" value = 100 }
						add_ai_strategy = { type = support id = "SOM" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SOM" value = 100 }
						add_ai_strategy = { type = protect id = "SOM" value = 50 }
						add_ai_strategy = { type = influence id = "SOM" value = 50 }
						set_country_flag = AI_STRATEGY_GENERIC_amisom_mission_active
					}	
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_amisom_mission_active
							OR = {
								NOT = { has_government = democratic }
								NOT = { has_government = communism }
								NOT = { has_government = neutrality }
								SOM = {
									NOT = { has_war_with = SHB }
									has_civil_war = no
								}
								SOM = {
									NOT = { has_government = democratic }
									NOT = { has_government = communism }
									NOT = { has_government = neutrality }
								}
							}
						}
						add_ai_strategy = { type = befriend id = "SOM" value = -100 }
						add_ai_strategy = { type = support id = "SOM" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SOM" value = -100 }
						add_ai_strategy = { type = protect id = "SOM" value = -50 }
						add_ai_strategy = { type = influence id = "SOM" value = -50 }
						clr_country_flag = AI_STRATEGY_GENERIC_amisom_mission_active
					}	
					
					#AMISOM mission to Somalia hardcore mode
					if = {
						limit = {
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_amisom_mission_intervention_active }
							OR = {
								original_tag = UGA
								original_tag = BUR
								original_tag = KEN
								original_tag = DJI
								original_tag = SIE
								original_tag = NIG
								original_tag = GAH
							}
							OR = {
								has_government = democratic
								has_government = communism
								has_government = neutrality
							}
							OR = {
								AND = {
									SOM = { exists = no }
									SHB = { has_government = fascism }
								}
								SOM = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = antagonize id = "SOM" value = 50 }
						add_ai_strategy = { type = contain id = "SOM" value = 50 }
						add_ai_strategy = { type = conquer id = "SOM" value = 50 }
						add_ai_strategy = { type = antagonize id = "SHB" value = 50 }
						add_ai_strategy = { type = contain id = "SHB" value = 50 }
						add_ai_strategy = { type = conquer id = "SHB" value = 50 }
						set_country_flag = AI_STRATEGY_GENERIC_amisom_mission_intervention_active
					}	
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_amisom_mission_intervention_active
							OR = {
								NOT = { has_government = democratic }
								NOT = { has_government = communism }
								NOT = { has_government = neutrality }
								SOM = { NOT = { has_government = fascism } }
								SHB = { NOT = { has_government = fascism } }
							}
						}
						add_ai_strategy = { type = antagonize id = "SOM" value = -50 }
						add_ai_strategy = { type = contain id = "SOM" value = -50 }
						add_ai_strategy = { type = conquer id = "SOM" value = -50 }
						add_ai_strategy = { type = antagonize id = "SHB" value = -50 }
						add_ai_strategy = { type = contain id = "SHB" value = -50 }
						add_ai_strategy = { type = conquer id = "SHB" value = -50 }
						clr_country_flag = AI_STRATEGY_GENERIC_amisom_mission_intervention_active
					}

					#EU Supports Somalian government
					if = {
						limit = {
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_eu_support_somalia_active }
							has_idea = EU_member
							SOM = {
								OR = {
									has_government = democratic
									has_government = neutrality
								}
								has_war_with = SHB
							}
						}
						add_ai_strategy = { type = befriend id = "SOM" value = 100 }
						add_ai_strategy = { type = support id = "SOM" value = 100 }
						add_ai_strategy = { type = protect id = "SOM" value = 25 }
						set_country_flag = AI_STRATEGY_GENERIC_eu_support_somalia_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_eu_support_somalia_active
							OR = {
								NOT = { has_idea = EU_member }
								SOM = {
									NOT = { has_government = democratic }
									NOT = { has_government = neutrality }
								}
								SOM = { NOT = { has_war_with = SHB } }
							}
						}
						add_ai_strategy = { type = befriend id = "SOM" value = -100 }
						add_ai_strategy = { type = support id = "SOM" value = -100 }
						add_ai_strategy = { type = protect id = "SOM" value = -25 }
						clr_country_flag = AI_STRATEGY_GENERIC_eu_support_somalia_active
					}
					
					#Slight opposition to HAMAS
					if = {
						limit = {
							has_opinion_modifier = HAM_Are_Partly_Terrorists 
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_hamas_partly_terrorists_active }
						}
						add_ai_strategy = { type = antagonize id = "HAM" value = 25 }
						set_country_flag = AI_STRATEGY_GENERIC_hamas_partly_terrorists_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_hamas_partly_terrorists_active
							NOT = { has_opinion_modifier = HAM_Are_Partly_Terrorists }
						}
						add_ai_strategy = { type = antagonize id = "HAM" value = -25 }
						clr_country_flag = AI_STRATEGY_GENERIC_hamas_partly_terrorists_active
					}
					
					#Slight opposition to Hezbollah
					if = {
						limit = {
							has_opinion_modifier = HEZ_Are_Partly_Terrorists 
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_hezbollah_partly_terrorists_active }
						}
						add_ai_strategy = { type = antagonize id = "HEZ" value = 25 }
						set_country_flag = AI_STRATEGY_GENERIC_hezbollah_partly_terrorists_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_hezbollah_partly_terrorists_active
							NOT = { has_opinion_modifier = HEZ_Are_Partly_Terrorists }
						}
						add_ai_strategy = { type = antagonize id = "HEZ" value = -25 }
						clr_country_flag = AI_STRATEGY_GENERIC_hezbollah_partly_terrorists_active
					}
					
					#Opposition to HAMAS
					if = {
						limit = {
							has_opinion_modifier = HAM_Are_Terrorists 
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_hamas_terrorists_active }
						}
						add_ai_strategy = { type = antagonize id = "HAM" value = 50 }
						add_ai_strategy = { type = contain id = "HAM" value = 50 }
						set_country_flag = AI_STRATEGY_GENERIC_hamas_terrorists_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_hamas_terrorists_active
							NOT = { has_opinion_modifier = HAM_Are_Terrorists }
						}
						add_ai_strategy = { type = antagonize id = "HAM" value = -50 }
						add_ai_strategy = { type = contain id = "HAM" value = -50 }
						clr_country_flag = AI_STRATEGY_GENERIC_hamas_terrorists_active
					}
					
					#Opposition to Hezbollah
					if = {
						limit = {
							has_opinion_modifier = HEZ_Are_Terrorists 
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_hezbollah_terrorists_active }
						}
						add_ai_strategy = { type = antagonize id = "HEZ" value = 50 }
						add_ai_strategy = { type = contain id = "HEZ" value = 50 }
						set_country_flag = AI_STRATEGY_GENERIC_hezbollah_terrorists_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_hezbollah_terrorists_active
							NOT = { has_opinion_modifier = HEZ_Are_Terrorists }
						}
						add_ai_strategy = { type = antagonize id = "HEZ" value = -50 }
						add_ai_strategy = { type = contain id = "HEZ" value = -50 }
						clr_country_flag = AI_STRATEGY_GENERIC_hezbollah_terrorists_active
					}
					
					#Opposition to ISIS
					if = {
						limit = {
							has_opinion_modifier = ISIS_Are_Terrorists 
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_isis_terrorists_active }
						}
						add_ai_strategy = { type = antagonize id = "ISI" value = 100 }
						add_ai_strategy = { type = contain id = "ISI" value = 100 }
						set_country_flag = AI_STRATEGY_GENERIC_isis_terrorists_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_isis_terrorists_active
							NOT = { has_opinion_modifier = ISIS_Are_Terrorists }
						}
						add_ai_strategy = { type = antagonize id = "ISI" value = -100 }
						add_ai_strategy = { type = contain id = "ISI" value = -100 }
						clr_country_flag = AI_STRATEGY_GENERIC_isis_terrorists_active
					}
					
					#Arab Israeli relations
					if = {
						limit = {
							OR = {
								original_tag = LEB
								original_tag = HEZ
								original_tag = JOR
								original_tag = SYR
								original_tag = EGY
								original_tag = PER
								original_tag = SAU
								original_tag = QAT
								original_tag = UAE
								original_tag = YEM
								original_tag = HOU
							}
							has_opinion_modifier = ISR_Arab_Conflict 
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_arab_israeli_relations_active }
						}
						add_ai_strategy = { type = antagonize id = "ISR" value = 50 }
						set_country_flag = AI_STRATEGY_GENERIC_arab_israeli_relations_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_arab_israeli_relations_active
							NOT = { has_opinion_modifier = ISR_Arab_Conflict }
						}
						add_ai_strategy = { type = antagonize id = "ISR" value = -50 }
						clr_country_flag = AI_STRATEGY_GENERIC_arab_israeli_relations_active
					}
					
					#Relations towards Kurds
					if = {
						limit = {
							OR = {
								has_opinion_modifier = TUR_Dont_Support_Kurdish_Independence
								has_opinion_modifier = PER_Dont_Support_Kurdish_Independence
								has_opinion_modifier = IRQ_Dont_Support_Kurdish_Independence
							}
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_kurdish_relations_active }
						}
						add_ai_strategy = { type = antagonize id = "ROJ" value = 100 }
						add_ai_strategy = { type = contain id = "ROJ" value = 200 }
						add_ai_strategy = { type = antagonize id = "KUR" value = 100 }
						add_ai_strategy = { type = contain id = "KUR" value = 200 }
						set_country_flag = AI_STRATEGY_GENERIC_kurdish_relations_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_kurdish_relations_active
							NOT = { 
								has_opinion_modifier = TUR_Dont_Support_Kurdish_Independence
								has_opinion_modifier = PER_Dont_Support_Kurdish_Independence
								has_opinion_modifier = IRQ_Dont_Support_Kurdish_Independence
							}
						}
						add_ai_strategy = { type = antagonize id = "ROJ" value = -100 }
						add_ai_strategy = { type = contain id = "ROJ" value = -200 }
						add_ai_strategy = { type = antagonize id = "KUR" value = -100 }
						add_ai_strategy = { type = contain id = "KUR" value = -200 }
						clr_country_flag = AI_STRATEGY_GENERIC_kurdish_relations_active
					}
					
					#Nordic Friendship
					if = {
						limit = {
							OR = {
								original_tag = SWE
								original_tag = NOR
								original_tag = DEN
								original_tag = FIN
								original_tag = ICE
							}
							has_opinion_modifier = nordic
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_nordic_friendship_active }
						}
						add_ai_strategy = { type = befriend id = "SWE" value = 25 }
						add_ai_strategy = { type = befriend id = "NOR" value = 25 }
						add_ai_strategy = { type = befriend id = "DEN" value = 25 }
						add_ai_strategy = { type = befriend id = "FIN" value = 25 }
						add_ai_strategy = { type = befriend id = "ICE" value = 25 }
						set_country_flag = AI_STRATEGY_GENERIC_nordic_friendship_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_nordic_friendship_active
							NOT = { has_opinion_modifier = nordic }
						}
						add_ai_strategy = { type = befriend id = "SWE" value = -25 }
						add_ai_strategy = { type = befriend id = "NOR" value = -25 }
						add_ai_strategy = { type = befriend id = "DEN" value = -25 }
						add_ai_strategy = { type = befriend id = "FIN" value = -25 }
						add_ai_strategy = { type = befriend id = "ICE" value = -25 }
						clr_country_flag = AI_STRATEGY_GENERIC_nordic_friendship_active
					}
					
					#EU relations
					if = {
						limit = {
							OR = {
								has_idea = EU_member
								AND = {
									OR = { 
										original_tag = SWI
										original_tag = ICE
									}
									has_government = democratic
								}
							}
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_eu_relations_active }
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = 25 }
						add_ai_strategy = { type = befriend id = "USA" value = 25 }
						add_ai_strategy = { type = befriend id = "CAN" value = 25 }
						add_ai_strategy = { type = befriend id = "AST" value = 25 }
						add_ai_strategy = { type = befriend id = "NZL" value = 25 }
						set_country_flag = AI_STRATEGY_GENERIC_eu_relations_active
					}
					if = {
						limit = {
							NOT = { has_idea = EU_member }
							NOT = { has_government = democratic }
							has_country_flag = AI_STRATEGY_GENERIC_eu_relations_active
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = -25 }
						add_ai_strategy = { type = befriend id = "USA" value = -25 }
						add_ai_strategy = { type = befriend id = "CAN" value = -25 }
						add_ai_strategy = { type = befriend id = "AST" value = -25 }
						add_ai_strategy = { type = befriend id = "NZL" value = -25 }
						clr_country_flag = AI_STRATEGY_GENERIC_eu_relations_active
					}
					
					#NATO relations
					if = {
						limit = {
							has_idea = NATO_member
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_nato_relations_active }
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = 25 }
						set_country_flag = AI_STRATEGY_GENERIC_nato_relations_active
					}
					if = {
						limit = {
							NOT = { has_idea = NATO_member }
							has_country_flag = AI_STRATEGY_GENERIC_nato_relations_active
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = -25 }
						clr_country_flag = AI_STRATEGY_GENERIC_nato_relations_active
					}
					
					#Gulf countries relation to world
					if = {
						limit = {
							OR = {
								original_tag = SAU
								original_tag = UAE
								original_tag = QAT
							}
							has_government = fascism
							has_opinion_modifier = Arabian_Peninsula_West_Economical_Relations
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_gulf_country_relations_active }
						}
						add_ai_strategy = { type = befriend id = "USA" value = 100 }
						add_ai_strategy = { type = befriend id = "CAN" value = 100 }
						add_ai_strategy = { type = befriend id = "ENG" value = 100 }
						add_ai_strategy = { type = befriend id = "IRE" value = 100 }
						add_ai_strategy = { type = befriend id = "FRA" value = 100 }
						add_ai_strategy = { type = befriend id = "SPR" value = 100 }
						add_ai_strategy = { type = befriend id = "POR" value = 100 }
						add_ai_strategy = { type = befriend id = "AUS" value = 100 }
						add_ai_strategy = { type = befriend id = "ITA" value = 100 }
						add_ai_strategy = { type = befriend id = "BEL" value = 100 }
						add_ai_strategy = { type = befriend id = "HOL" value = 100 }
						add_ai_strategy = { type = befriend id = "LUX" value = 100 }
						add_ai_strategy = { type = befriend id = "GER" value = 100 }
						add_ai_strategy = { type = befriend id = "DEN" value = 100 }
						add_ai_strategy = { type = befriend id = "NOR" value = 100 }
						add_ai_strategy = { type = befriend id = "SWE" value = 100 }
						add_ai_strategy = { type = befriend id = "FIN" value = 100 }
						add_ai_strategy = { type = befriend id = "POL" value = 100 }
						add_ai_strategy = { type = befriend id = "EST" value = 100 }
						add_ai_strategy = { type = befriend id = "LAT" value = 100 }
						add_ai_strategy = { type = befriend id = "LIT" value = 100 }
						add_ai_strategy = { type = befriend id = "CZE" value = 100 }
						add_ai_strategy = { type = befriend id = "SLO" value = 100 }
						add_ai_strategy = { type = befriend id = "HUN" value = 100 }
						add_ai_strategy = { type = befriend id = "ROM" value = 100 }
						add_ai_strategy = { type = befriend id = "BUL" value = 100 }
						add_ai_strategy = { type = befriend id = "CRO" value = 100 }
						add_ai_strategy = { type = befriend id = "GRE" value = 100 }
						add_ai_strategy = { type = befriend id = "TUR" value = 100 }
						add_ai_strategy = { type = befriend id = "FIN" value = 100 }
						add_ai_strategy = { type = befriend id = "SWI" value = 100 }
						add_ai_strategy = { type = befriend id = "ICE" value = 100 }
						add_ai_strategy = { type = befriend id = "SOV" value = 100 }
						add_ai_strategy = { type = befriend id = "CHI" value = 100 }
						add_ai_strategy = { type = befriend id = "JAP" value = 100 }
						add_ai_strategy = { type = befriend id = "KOR" value = 100 }
						set_country_flag = AI_STRATEGY_GENERIC_gulf_country_relations_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_gulf_country_relations_active
							OR = {
								NOT = { has_government = fascism }
								NOT = { has_opinion_modifier = Arabian_Peninsula_West_Economical_Relations }
							}
						}
						add_ai_strategy = { type = befriend id = "USA" value = -100 }
						add_ai_strategy = { type = befriend id = "CAN" value = -100 }
						add_ai_strategy = { type = befriend id = "ENG" value = -100 }
						add_ai_strategy = { type = befriend id = "IRE" value = -100 }
						add_ai_strategy = { type = befriend id = "FRA" value = -100 }
						add_ai_strategy = { type = befriend id = "SPR" value = -100 }
						add_ai_strategy = { type = befriend id = "POR" value = -100 }
						add_ai_strategy = { type = befriend id = "AUS" value = -100 }
						add_ai_strategy = { type = befriend id = "ITA" value = -100 }
						add_ai_strategy = { type = befriend id = "BEL" value = -100 }
						add_ai_strategy = { type = befriend id = "HOL" value = -100 }
						add_ai_strategy = { type = befriend id = "LUX" value = -100 }
						add_ai_strategy = { type = befriend id = "GER" value = -100 }
						add_ai_strategy = { type = befriend id = "DEN" value = -100 }
						add_ai_strategy = { type = befriend id = "NOR" value = -100 }
						add_ai_strategy = { type = befriend id = "SWE" value = -100 }
						add_ai_strategy = { type = befriend id = "FIN" value = -100 }
						add_ai_strategy = { type = befriend id = "POL" value = -100 }
						add_ai_strategy = { type = befriend id = "EST" value = -100 }
						add_ai_strategy = { type = befriend id = "LAT" value = -100 }
						add_ai_strategy = { type = befriend id = "LIT" value = -100 }
						add_ai_strategy = { type = befriend id = "CZE" value = -100 }
						add_ai_strategy = { type = befriend id = "SLO" value = -100 }
						add_ai_strategy = { type = befriend id = "HUN" value = -100 }
						add_ai_strategy = { type = befriend id = "ROM" value = -100 }
						add_ai_strategy = { type = befriend id = "BUL" value = -100 }
						add_ai_strategy = { type = befriend id = "CRO" value = -100 }
						add_ai_strategy = { type = befriend id = "GRE" value = -100 }
						add_ai_strategy = { type = befriend id = "TUR" value = -100 }
						add_ai_strategy = { type = befriend id = "FIN" value = -100 }
						add_ai_strategy = { type = befriend id = "SWI" value = -100 }
						add_ai_strategy = { type = befriend id = "ICE" value = -100 }
						add_ai_strategy = { type = befriend id = "SOV" value = -100 }
						add_ai_strategy = { type = befriend id = "CHI" value = -100 }
						add_ai_strategy = { type = befriend id = "JAP" value = -100 }
						add_ai_strategy = { type = befriend id = "KOR" value = -100 }
						set_country_flag = AI_STRATEGY_GENERIC_gulf_country_relations_active
					}
					
					#World's opinion of gulf countries
					if = {
						limit = {
							OR = {
								AND = {
									is_western_nation = yes
									has_opinion_modifier = Arabian_Peninsula_West_Economical_Relations
								}
								AND = {
									OR = {
										original_tag = CHI
										original_tag = KOR
										original_tag = RAJ
										original_tag = JAP
									}
									has_opinion_modifier = Arabian_Peninsula_Asia_Economical_Relations
								}
							}
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_world_to_gulf_relations_active }
						}
						add_ai_strategy = { type = befriend id = "SAU" value = 25 }
						add_ai_strategy = { type = befriend id = "UAE" value = 25 }
						add_ai_strategy = { type = befriend id = "QAT" value = 25 }
						set_country_flag = AI_STRATEGY_GENERIC_world_to_gulf_relations_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_world_to_gulf_relations_active
							NOT = { has_opinion_modifier = Arabian_Peninsula_West_Economical_Relations }
							NOT = { has_opinion_modifier = Arabian_Peninsula_Asia_Economical_Relations }
						}
						add_ai_strategy = { type = befriend id = "SAU" value = -25 }
						add_ai_strategy = { type = befriend id = "UAE" value = -25 }
						add_ai_strategy = { type = befriend id = "QAT" value = -25 }
						set_country_flag = AI_STRATEGY_GENERIC_world_to_gulf_relations_active
					}
					
					#UNAMSIL mission
					if = {
						limit = {
							has_start_date < 2001.1.1
							OR = {
								original_tag = NIG
								original_tag = JOR
								original_tag = GAH
								original_tag = GUI
								original_tag = BAN
								original_tag = KEN
							}
							SIE = { has_war_with = AFR }
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_unamsil_active }
						}
						add_ai_strategy = { type = befriend id = "SIE" value = 50 }
						add_ai_strategy = { type = support id = "SIE" value = 150 }
						add_ai_strategy = { type = send_volunteers_desire id = "SIE" value = 100 }
						set_country_flag = AI_STRATEGY_GENERIC_unamsil_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_unamsil_active
							NOT = { SIE = { has_war_with = AFR } }
						}
						add_ai_strategy = { type = befriend id = "SIE" value = -50 }
						add_ai_strategy = { type = support id = "SIE" value = -150 }
						add_ai_strategy = { type = send_volunteers_desire id = "SIE" value = -100 }
						set_country_flag = AI_STRATEGY_GENERIC_unamsil_active
					}
					
					#UNAMSIL equipment
					if = {
						limit = {
							has_start_date < 2001.1.1
							OR = {
								original_tag = SOV
								original_tag = UKR
								original_tag = RAJ
							}
							SIE = { has_war_with = AFR }
							NOT = { has_country_flag = AI_STRATEGY_GENERIC_unamsil_equipment_active }
						}
						add_ai_strategy = { type = befriend id = "SIE" value = 25 }
						add_ai_strategy = { type = support id = "SIE" value = 100 }
						set_country_flag = AI_STRATEGY_GENERIC_unamsil_equipment_active
					}
					if = {
						limit = {
							has_country_flag = AI_STRATEGY_GENERIC_unamsil_equipment_active
							NOT = { SIE = { has_war_with = AFR } }
						}
						add_ai_strategy = { type = befriend id = "SIE" value = -25 }
						add_ai_strategy = { type = support id = "SIE" value = -100 }
						set_country_flag = AI_STRATEGY_GENERIC_unamsil_equipment_active
					}
						
				}
				
				#ABK Strategies
				ABK = { 
					#Support Syria
					if = {
						limit = {
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_ABK_support_syria_active }
							NOT = { has_war_with = SYR }
						}
						add_ai_strategy = { type = support id = "SYR" value = 25 }
						set_country_flag = AI_STRATEGY_ABK_support_syria_active
					}
					if = {
						limit = {
							has_war_with = SYR
							has_country_flag = AI_STRATEGY_ABK_support_syria_active
						}
						add_ai_strategy = { type = support id = "SYR" value = -25 }
						clr_country_flag = AI_STRATEGY_ABK_support_syria_active
					}
					
					#Anti-Georgian attitude
					if = {
						limit = {
							NOT = { has_country_flag = AI_STRATEGY_ABK_anti_georgian_attitude_active }
							NOT = { GEO = { has_country_flag = Recognised_Abkhazia } }
						}
						add_ai_strategy = { type = contain id = "GEO" value = 50 }
						add_ai_strategy = { type = antagonize id = "GEO" value = 50 }
						add_ai_strategy = { type = befriend id = "GEO" value = -50 }
						set_country_flag = AI_STRATEGY_ABK_anti_georgian_attitude_active
					}
					if = {
						limit = {
							GEO = { has_country_flag = Recognised_Abkhazia }
							has_country_flag = AI_STRATEGY_ABK_anti_georgian_attitude_active
						}
						add_ai_strategy = { type = contain id = "GEO" value = -50 }
						add_ai_strategy = { type = antagonize id = "GEO" value = -50 }
						add_ai_strategy = { type = befriend id = "GEO" value = 50 }
						clr_country_flag = AI_STRATEGY_ABK_anti_georgian_attitude_active
					}
					
					#Seek help from Russia
					if = {
						limit = {
							NOT = { has_country_flag = AI_STRATEGY_ABK_seek_help_from_russia_active }
							NOT = { has_war_with = SOV }
							NOT = { GEO = { is_in_faction_with = SOV } }
						}
						add_ai_strategy = { type = befriend id = "SOV" value = 100 }
						set_country_flag = AI_STRATEGY_ABK_seek_help_from_russia_active
					}
					if = {
						limit = {
							OR = {
								has_war_with = SOV
								GEO = { is_in_faction_with = SOV }
							}
							has_country_flag = AI_STRATEGY_ABK_seek_help_from_russia_active
						}
						add_ai_strategy = { type = befriend id = "SOV" value = -100 }
						clr_country_flag = AI_STRATEGY_ABK_seek_help_from_russia_active
					}
				}
				
				#AFR Strategies
				AFR = {
					#Support Charles Taylor
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_AFR_support_charles_taylor_active }
							NOT = { has_war_with = LIB }
							LIB = { has_country_leader = { name = "Charles Taylor" } }
						}
						add_ai_strategy = { type = befriend id = "LIB" value = 100 }
						add_ai_strategy = { type = support id = "LIB" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "LIB" value = 100 }
						set_country_flag = AI_STRATEGY_AFR_support_charles_taylor_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = LIB
								LIB = { NOT = { has_country_leader = { name = "Charles Taylor" } } }
							}
							has_country_flag = AI_STRATEGY_AFR_support_charles_taylor_active 
						}
						add_ai_strategy = { type = befriend id = "LIB" value = -100 }
						add_ai_strategy = { type = support id = "LIB" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "LIB" value = -100 }
						clr_country_flag = AI_STRATEGY_AFR_support_charles_taylor_active
					}
				}
				
				#AGL Strategies
				AGL = {
					#Support Kabila
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_AGL_support_kabila_active }
							NOT = { has_war_with = DRC }
							DRC = { has_country_leader = { name = "Laurent-Dsir Kabila" } }
						}
						add_ai_strategy = { type = befriend id = "DRC" value = 100 }
						add_ai_strategy = { type = support id = "DRC" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "DRC" value = 200 }
						set_country_flag = AI_STRATEGY_AGL_support_kabila_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = DRC
								DRC = { NOT = { has_country_leader = { name = "Laurent-Dsir Kabila" } } }
							}
							has_country_flag = AI_STRATEGY_AGL_support_kabila_active 
						}
						add_ai_strategy = { type = befriend id = "DRC" value = -100 }
						add_ai_strategy = { type = support id = "DRC" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "DRC" value = -200 }
						clr_country_flag = AI_STRATEGY_AGL_support_kabila_active
					}
				}
				
				#ALG Strategies
				ALG = {
					#Support House of Representatives
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ALG_support_house_of_representatives_active }
							NOT = { has_war_with = HOR }
						}
						add_ai_strategy = { type = befriend id = "HOR" value = 25 }
						add_ai_strategy = { type = protect id = "HOR" value = 25 }
						add_ai_strategy = { type = influence id = "HOR" value = 25 }
						add_ai_strategy = { type = support id = "HOR" value = 25 }
						set_country_flag = AI_STRATEGY_ALG_support_house_of_representatives_active 
					}
					if = { 
						limit = { 
							has_war_with = HOR
							has_country_flag = AI_STRATEGY_ALG_support_house_of_representatives_active 
						}
						add_ai_strategy = { type = befriend id = "HOR" value = -25 }
						add_ai_strategy = { type = protect id = "HOR" value = -25 }
						add_ai_strategy = { type = influence id = "HOR" value = -25 }
						add_ai_strategy = { type = support id = "HOR" value = -25 }
						clr_country_flag = AI_STRATEGY_ALG_support_house_of_representatives_active
					}
					
					#Algerian Moroccan Tension
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ALG_tension_with_morocco_active }
							country_exists = SHA
							country_exists = MOR
							SHA = { has_opinion_modifier = SHA_MOR_Occupation }
						}
						add_ai_strategy = { type = antagonize id = "MOR" value = 25 }
						add_ai_strategy = { type = contain id = "HOR" value = 25 }
						set_country_flag = AI_STRATEGY_ALG_tension_with_morocco_active 
					}
					if = { 
						limit = { 
							OR = {
								NOT = { country_exists = SHA }
								NOT = { country_exists = MOR }
								SHA = { NOT = { has_opinion_modifier = SHA_MOR_Occupation } }
							}
							has_country_flag = AI_STRATEGY_ALG_tension_with_morocco_active 
						}
						add_ai_strategy = { type = antagonize id = "MOR" value = -25 }
						add_ai_strategy = { type = contain id = "HOR" value = -25 }
						clr_country_flag = AI_STRATEGY_ALG_tension_with_morocco_active
					}
				}	
				
				#AQY Strategies
				AQY = { 
					#Support Taliban
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_AQY_support_taliban_active }
							NOT = { has_war_with = TAL }
							has_government = fascism
							TAL = { has_government = fascism }
						}
						add_ai_strategy = { type = befriend id = "TAL" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "TAL" value = 200 }
						set_country_flag = AI_STRATEGY_AQY_support_taliban_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = TAL
								NOT = { has_government = fascism }
								TAL = { NOT = { has_government = fascism } }
							}
							has_country_flag = AI_STRATEGY_AQY_support_taliban_active 
						}
						add_ai_strategy = { type = befriend id = "TAL" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "TAL" value = -200 }
						clr_country_flag = AI_STRATEGY_AQY_support_taliban_active
					}
					
					#Support Al-Shabaab
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_AQY_support_al_shabaab_active }
							NOT = { has_war_with = SHB }
							has_government = fascism
							SHB = { has_government = fascism }
						}
						add_ai_strategy = { type = befriend id = "SHB" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SHB" value = 100 }
						add_ai_strategy = { type = support id = "SHB" value = 200 }
						set_country_flag = AI_STRATEGY_AQY_support_al_shabaab_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = SHB
								NOT = { has_government = fascism }
								SHB = { NOT = { has_government = fascism } }
							}
							has_country_flag = AI_STRATEGY_AQY_support_al_shabaab_active 
						}
						add_ai_strategy = { type = befriend id = "SHB" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SHB" value = -100 }
						add_ai_strategy = { type = support id = "SHB" value = -200 }
						clr_country_flag = AI_STRATEGY_AQY_support_al_shabaab_active
					}
				}	

				#BFA Strategies
				BFA = { 
					#Support AFR
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_BFA_support_afr_active }
							NOT = { has_war_with = AFR }
						}
						add_ai_strategy = { type = support id = "AFR" value = 50 }
						add_ai_strategy = { type = befriend id = "AFR" value = 50 }
						set_country_flag = AI_STRATEGY_BFA_support_afr_active 
					}
					if = { 
						limit = { 
							has_country_flag = AI_STRATEGY_BFA_support_afr_active 
							has_war_with = AFR
						}
						add_ai_strategy = { type = support id = "AFR" value = -50 }
						add_ai_strategy = { type = befriend id = "AFR" value = -50 }
						clr_country_flag = AI_STRATEGY_BFA_support_afr_active
					}
				}

				#BLR Strategies
				BLR = { 
					#Support Georgia
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_BLR_support_georgia_active }
							NOT = { has_war_with = GEO }
							country_exists = ABK
						}
						add_ai_strategy = { type = contain id = "ABK" value = 25 }
						add_ai_strategy = { type = befriend id = "GEO" value = 25 }
						set_country_flag = AI_STRATEGY_BLR_support_georgia_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = GEO
								NOT = { country_exists = ABK }
							}
							has_country_flag = AI_STRATEGY_BLR_support_georgia_active 
						}
						add_ai_strategy = { type = contain id = "ABK" value = -25 }
						add_ai_strategy = { type = befriend id = "GEO" value = -25 }
						clr_country_flag = AI_STRATEGY_BLR_support_georgia_active
					}
				}
				
				#CAR Strategies
				CAR = {
					#Support Kabila
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_CAR_support_kabila_active }
							NOT = { has_war_with = DRC }
							DRC = { has_country_leader = { name = "Laurent-Dsir Kabila" } }
						}
						add_ai_strategy = { type = befriend id = "DRC" value = 50 }
						add_ai_strategy = { type = support id = "DRC" value = 100 }
						set_country_flag = AI_STRATEGY_CAR_support_kabila_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = DRC
								DRC = { NOT = { has_country_leader = { name = "Laurent-Dsir Kabila" } } }
							}
							has_country_flag = AI_STRATEGY_CAR_support_kabila_active 
						}
						add_ai_strategy = { type = befriend id = "DRC" value = -50 }
						add_ai_strategy = { type = support id = "DRC" value = -100 }
						clr_country_flag = AI_STRATEGY_CAR_support_kabila_active
					}
				}
				
				#CHA Strategies
				CHA = {
					#Support House of Representatives
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_CHA_support_house_of_representatives_active }
							NOT = { has_war_with = HOR }
						}
						add_ai_strategy = { type = befriend id = "HOR" value = 50 }
						add_ai_strategy = { type = protect id = "HOR" value = 50 }
						add_ai_strategy = { type = influence id = "HOR" value = 50 }
						add_ai_strategy = { type = support id = "HOR" value = 50 }
						set_country_flag = AI_STRATEGY_CHA_support_house_of_representatives_active 
					}
					if = { 
						limit = { 
							has_war_with = HOR
							has_country_flag = AI_STRATEGY_CHA_support_house_of_representatives_active 
						}
						add_ai_strategy = { type = befriend id = "HOR" value = -50 }
						add_ai_strategy = { type = protect id = "HOR" value = -50 }
						add_ai_strategy = { type = influence id = "HOR" value = -50 }
						add_ai_strategy = { type = support id = "HOR" value = -50 }
						clr_country_flag = AI_STRATEGY_CHA_support_house_of_representatives_active
					}
					
					#Support Kabila
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_CHA_support_kabila_active }
							NOT = { has_war_with = DRC }
							DRC = { has_country_leader = { name = "Laurent-Dsir Kabila" } }
						}
						add_ai_strategy = { type = befriend id = "DRC" value = 50 }
						add_ai_strategy = { type = support id = "DRC" value = 10 }
						set_country_flag = AI_STRATEGY_CHA_support_kabila_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = DRC
								DRC = { NOT = { has_country_leader = { name = "Laurent-Dsir Kabila" } } }
							}
							has_country_flag = AI_STRATEGY_CHA_support_kabila_active 
						}
						add_ai_strategy = { type = befriend id = "DRC" value = -50 }
						add_ai_strategy = { type = support id = "DRC" value = -100 }
						clr_country_flag = AI_STRATEGY_CHA_support_kabila_active
					}
				}
				
				#CHI Strategies
				CHI = { 
					#China area priority (always active)
					if = {
						limit = {
							NOT = { has_country_flag = AI_STRATEGY_CHI_area_priority_active }
						}
						add_ai_strategy = { type = area_priority id = europe value = 50 }
						add_ai_strategy = { type = area_priority id = north_america value = 50 }
						add_ai_strategy = { type = area_priority id = caribbean value = 50 }
						add_ai_strategy = { type = area_priority id = south_america value = 100 }
						add_ai_strategy = { type = area_priority id = asia value = 200 }
						add_ai_strategy = { type = area_priority id = pacific value = 100 }
						add_ai_strategy = { type = area_priority id = oceania value = 100 }
						add_ai_strategy = { type = area_priority id = middle_east value = 150 }
						add_ai_strategy = { type = area_priority id = africa value = 150 }
						set_country_flag = AI_STRATEGY_CHI_area_priority_active 
					}
					
					#Antagonize Taiwan
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_CHI_antagonize_taiwan_active }
							has_government = communism
						}
						add_ai_strategy = { type = antagonize id = "TAI" value = 200 }
						add_ai_strategy = { type = conquer id = "TAI" value = 100 }
						set_country_flag = AI_STRATEGY_CHI_antagonize_taiwan_active 
					}
					if = { 
						limit = { 
							NOT = { has_government = communism }
							has_country_flag = AI_STRATEGY_CHI_antagonize_taiwan_active 
						}
						add_ai_strategy = { type = antagonize id = "TAI" value = -200 }
						add_ai_strategy = { type = conquer id = "TAI" value = -100 }
						clr_country_flag = AI_STRATEGY_CHI_antagonize_taiwan_active
					}
					
					#US relations (always active)
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_CHI_us_relations_active }
						}
						add_ai_strategy = { type = antagonize id = "USA" value = 50 }
						add_ai_strategy = { type = alliance id = "USA" value = -200 }
						add_ai_strategy = { type = support id = "USA" value = -200 }
						set_country_flag = AI_STRATEGY_CHI_us_relations_active 
					}
					
					#Friendly wih Pakistan
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_CHI_friendly_with_pakistan_active }
							NOT = { has_war_with = PAK }
						}
						add_ai_strategy = { type = antagonize id = "PAK" value = -50 }
						add_ai_strategy = { type = alliance id = "PAK" value = 100 }
						add_ai_strategy = { type = befriend id = "PAK" value = 200 }
						add_ai_strategy = { type = protect id = "PAK" value = 200 }
						add_ai_strategy = { type = support id = "PAK" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "PAK" value = 200 }
						set_country_flag = AI_STRATEGY_CHI_friendly_with_pakistan_active 
					}
					if = { 
						limit = { 
							has_war_with = PAK
							has_country_flag = AI_STRATEGY_CHI_friendly_with_pakistan_active 
						}
						add_ai_strategy = { type = antagonize id = "PAK" value = 50 }
						add_ai_strategy = { type = alliance id = "PAK" value = -100 }
						add_ai_strategy = { type = befriend id = "PAK" value = -200 }
						add_ai_strategy = { type = protect id = "PAK" value = -200 }
						add_ai_strategy = { type = support id = "PAK" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "PAK" value = -200 }
					}
					
					#Interest in North Korea
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_CHI_interest_in_north_korea_active }
							country_exists = NKO
						}
						add_ai_strategy = { type = protect id = "NKO" value = 25 }
						add_ai_strategy = { type = befriend id = "NKO" value = 25 }
						add_ai_strategy = { type = antagonize id = "KOR" value = 25 }
						add_ai_strategy = { type = contain id = "KOR" value = 25 }
						set_country_flag = AI_STRATEGY_CHI_interest_in_north_korea_active 
					}
					if = { 
						limit = { 
							NOT = { country_exists = NKO }
							has_country_flag = AI_STRATEGY_CHI_interest_in_north_korea_active 
						}
						add_ai_strategy = { type = protect id = "NKO" value = -25 }
						add_ai_strategy = { type = befriend id = "NKO" value = -25 }
						add_ai_strategy = { type = antagonize id = "KOR" value = -25 }
						add_ai_strategy = { type = contain id = "KOR" value = -25 }
						clr_country_flag = AI_STRATEGY_CHI_interest_in_north_korea_active
					}
					
					#Arabian relations (to offset default Outlook modifiers)
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_CHI_arabian_relations_active }
							has_opinion_modifier = Arabian_Peninsula_Asia_Economical_Relations
						}
						add_ai_strategy = { type = befriend id = "SAU" value = 100 }
						add_ai_strategy = { type = alliance id = "SAU" value = 100 }
						add_ai_strategy = { type = befriend id = "UAE" value = 100 }
						add_ai_strategy = { type = alliance id = "UAE" value = 100 }
						add_ai_strategy = { type = befriend id = "QAT" value = 100 }
						add_ai_strategy = { type = alliance id = "QAT" value = 100 }
						set_country_flag = AI_STRATEGY_CHI_arabian_relations_active 
					}
					if = { 
						limit = { 
							NOT = { has_opinion_modifier = Arabian_Peninsula_Asia_Economical_Relations }
							has_country_flag = AI_STRATEGY_CHI_arabian_relations_active 
						}
						add_ai_strategy = { type = befriend id = "SAU" value = -100 }
						add_ai_strategy = { type = alliance id = "SAU" value = -100 }
						add_ai_strategy = { type = befriend id = "UAE" value = -100 }
						add_ai_strategy = { type = alliance id = "UAE" value = -100 }
						add_ai_strategy = { type = befriend id = "QAT" value = -100 }
						add_ai_strategy = { type = alliance id = "QAT" value = -100 }
						clr_country_flag = AI_STRATEGY_CHI_arabian_relations_active
					}
					
				}
				
				#CUB Strategies
				CUB = { 
					#US relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_CUB_us_relations_active }
							has_opinion_modifier = CUB_USA_Embargo
						}
						add_ai_strategy = { type = antagonize id = "USA" value = 200 }
						set_country_flag = AI_STRATEGY_CUB_us_relations_active 
					}
					if = { 
						limit = { 
							NOT = { has_opinion_modifier = CUB_USA_Embargo }
							has_country_flag = AI_STRATEGY_CUB_us_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "USA" value = -200 }
						clr_country_flag = AI_STRATEGY_CUB_us_relations_active
					}
				}
				
				#DJI Strategies
				DJI = { 
					#Eritrean border conflict
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_DJI_eritrean_border_conflict_active }
							has_opinion_modifier = ERI_Border_Disputes
						}
						add_ai_strategy = { type = antagonize id = "ERI" value = 50 }
						add_ai_strategy = { type = contain id = "ERI" value = 100 }
						add_ai_strategy = { type = conquer id = "ERI" value = 50 }
						set_country_flag = AI_STRATEGY_DJI_eritrean_border_conflict_active 
					}
					if = { 
						limit = { 
							NOT = { has_opinion_modifier = ERI_Border_Disputes }
							has_country_flag = AI_STRATEGY_DJI_eritrean_border_conflict_active 
						}
						add_ai_strategy = { type = antagonize id = "ERI" value = -50 }
						add_ai_strategy = { type = contain id = "ERI" value = -100 }
						add_ai_strategy = { type = conquer id = "ERI" value = -50 }
						clr_country_flag = AI_STRATEGY_DJI_eritrean_border_conflict_active
					}
				}
				
				#EGY Strategies
				EGY = {
					#Intervene in Libya
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_EGY_intervene_in_libya_active }
							country_exists = HOR
							country_exists = GNA
						}
						add_ai_strategy = { type = befriend id = "HOR" value = 50 }
						add_ai_strategy = { type = protect id = "HOR" value = 50 }
						add_ai_strategy = { type = influence id = "HOR" value = 25 }
						add_ai_strategy = { type = contain id = "HOR" value = 50 }
						add_ai_strategy = { type = befriend id = "GNA" value = 50 }
						add_ai_strategy = { type = protect id = "GNA" value = 50 }
						add_ai_strategy = { type = influence id = "GNA" value = 25 }
						add_ai_strategy = { type = contain id = "GNA" value = 50 }
						set_country_flag = AI_STRATEGY_EGY_intervene_in_libya_active 
					}
					if = { 
						limit = {
							OR = {
								NOT = { country_exists = HOR }
								NOT = { country_exists = GNA }
							}
							has_country_flag = AI_STRATEGY_EGY_intervene_in_libya_active 
						}
						add_ai_strategy = { type = befriend id = "HOR" value = -50 }
						add_ai_strategy = { type = protect id = "HOR" value = -50 }
						add_ai_strategy = { type = influence id = "HOR" value = -25 }
						add_ai_strategy = { type = contain id = "HOR" value = -50 }
						add_ai_strategy = { type = befriend id = "GNA" value = -50 }
						add_ai_strategy = { type = protect id = "GNA" value = -50 }
						add_ai_strategy = { type = influence id = "GNA" value = -25 }
						add_ai_strategy = { type = contain id = "GNA" value = -50 }
						clr_country_flag = AI_STRATEGY_EGY_intervene_in_libya_active
					}
					
					#Friendly with South Sudan
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_EGY_friendly_with_south_sudan_active }
							NOT = { has_war_with = SSU }
							NOT = { is_in_faction_with = SUD }
						}
						add_ai_strategy = { type = befriend id = "SSU" value = 50 }
						add_ai_strategy = { type = protect id = "SSU" value = 50 }
						add_ai_strategy = { type = influence id = "SSU" value = 50 }
						add_ai_strategy = { type = support id = "SSU" value = 50 }
						set_country_flag = AI_STRATEGY_EGY_friendly_with_south_sudan_active 
					}
					if = { 
						limit = {
							OR = {
								has_war_with = SSU
								is_in_faction_with = SUD
							}
							has_country_flag = AI_STRATEGY_EGY_friendly_with_south_sudan_active 
						}
						add_ai_strategy = { type = befriend id = "SSU" value = -50 }
						add_ai_strategy = { type = protect id = "SSU" value = -50 }
						add_ai_strategy = { type = influence id = "SSU" value = -50 }
						add_ai_strategy = { type = support id = "SSU" value = -50 }
						clr_country_flag = AI_STRATEGY_EGY_friendly_with_south_sudan_active
					}
					
					#Support Yemen
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_EGY_support_yemen_active }
							NOT = { has_war_with = YEM }
						}
						add_ai_strategy = { type = befriend id = "YEM" value = 50 }
						add_ai_strategy = { type = protect id = "YEM" value = 50 }
						add_ai_strategy = { type = influence id = "YEM" value = 50 }
						add_ai_strategy = { type = support id = "YEM" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "YEM" value = 100 }
						set_country_flag = AI_STRATEGY_EGY_support_yemen_active 
					}
					if = { 
						limit = {
							has_war_with = YEM
							has_country_flag = AI_STRATEGY_EGY_support_yemen_active 
						}
						add_ai_strategy = { type = befriend id = "YEM" value = -50 }
						add_ai_strategy = { type = protect id = "YEM" value = -50 }
						add_ai_strategy = { type = influence id = "YEM" value = -50 }
						add_ai_strategy = { type = support id = "YEM" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "YEM" value = -100 }
						clr_country_flag = AI_STRATEGY_EGY_support_yemen_active
					}
				}
				
				#ENG Strategies
				ENG = {					
					#Sierra Leonean Intervention
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_ENG_intervene_sierra_leone_active }
							SIE = {	has_war_with = AFR }
						}
						add_ai_strategy = { type = befriend id = "SIE" value = 50 }
						add_ai_strategy = { type = support id = "SIE" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SIE" value = 100 }
						set_country_flag = AI_STRATEGY_ENG_intervene_sierra_leone_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_ENG_intervene_sierra_leone_active 
							SIE = {	NOT = { has_war_with = AFR } }
						}
						add_ai_strategy = { type = befriend id = "SIE" value = -50 }
						add_ai_strategy = { type = support id = "SIE" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SIE" value = -100 }
						clr_country_flag = AI_STRATEGY_ENG_intervene_sierra_leone_active
					}		
					
					#Support Afghanistan
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_ENG_support_afghanistan_active }
							NOT = { has_war_with = AFG }
							AFG = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "AFG" value = 50 }
						add_ai_strategy = { type = support id = "AFG" value = 150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = 50 }
						set_country_flag = AI_STRATEGY_ENG_support_afghanistan_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_ENG_support_afghanistan_active 
							OR = {
								has_war_with = AFG
								AFG = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "AFG" value = -50 }
						add_ai_strategy = { type = support id = "AFG" value = -150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = -50 }
						clr_country_flag = AI_STRATEGY_ENG_support_afghanistan_active
					}	
					
					#Support GNA
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_ENG_support_gna_active }
							NOT = { has_war_with = GNA }
							GNA = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "GNA" value = 25 }
						add_ai_strategy = { type = protect id = "GNA" value = 25 }
						add_ai_strategy = { type = influence id = "GNA" value = 25 }
						add_ai_strategy = { type = support id = "GNA" value = 25 }
						set_country_flag = AI_STRATEGY_ENG_support_gna_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_ENG_support_gna_active 
							OR = {
								has_war_with = GNA
								GNA = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "GNA" value = -25 }
						add_ai_strategy = { type = protect id = "GNA" value = -25 }
						add_ai_strategy = { type = influence id = "GNA" value = -25 }
						add_ai_strategy = { type = support id = "GNA" value = -25 }
						clr_country_flag = AI_STRATEGY_ENG_support_gna_active
					}
					
					#Support Somalia
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_ENG_support_somalia_active }
							NOT = { has_war_with = SOM }
							SOM = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "SOM" value = 100 }
						add_ai_strategy = { type = protect id = "SOM" value = 25 }
						add_ai_strategy = { type = support id = "SOM" value = 100 }
						set_country_flag = AI_STRATEGY_ENG_support_somalia_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_ENG_support_somalia_active 
							OR = {
								has_war_with = SOM
								SOM = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "SOM" value = -100 }
						add_ai_strategy = { type = protect id = "SOM" value = -25 }
						add_ai_strategy = { type = support id = "SOM" value = -100 }
						clr_country_flag = AI_STRATEGY_ENG_support_somalia_active
					}
					
					#Support FSA
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_ENG_support_fsa_active }
							NOT = { has_war_with = FSA }
							FSA = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "FSA" value = 50 }
						add_ai_strategy = { type = protect id = "FSA" value = 50 }
						add_ai_strategy = { type = support id = "FSA" value = 150 }
						set_country_flag = AI_STRATEGY_ENG_support_fsa_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_ENG_support_fsa_active 
							OR = {
								has_war_with = FSA
								FSA = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "FSA" value = -50 }
						add_ai_strategy = { type = protect id = "FSA" value = -50 }
						add_ai_strategy = { type = support id = "FSA" value = -150 }
						clr_country_flag = AI_STRATEGY_ENG_support_fsa_active
					}
					
					#Support Pakistan against Jihadists
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ENG_support_pakistan_active }
							PAK = {
								has_civil_war = yes
								NOT = { has_government = fascism }
								has_country_flag = fighting_jihadis
							}
						}
						add_ai_strategy = { type = send_volunteers_desire id = "PAK" value = 300 }
						add_ai_strategy = { type = support id = "PAK" value = 300 }
						set_country_flag = AI_STRATEGY_ENG_support_pakistan_active 
					}
					if = { 
						limit = {
							PAK = {
								OR = {
									NOT = { has_civil_war = yes }
									has_government = fascism
									NOT = { has_country_flag = fighting_jihadis }
								}
							}
							has_country_flag = AI_STRATEGY_ENG_support_pakistan_active 
						}
						add_ai_strategy = { type = send_volunteers_desire id = "PAK" value = -300 }
						add_ai_strategy = { type = support id = "PAK" value = -300 }
						clr_country_flag = AI_STRATEGY_ENG_support_pakistan_active
					}
					
					#Support Egypt against Jihadists
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ENG_support_egypt_active }
							EGY = {
								has_civil_war = yes
								NOT = { has_government = fascism }
								has_country_flag = fighting_jihadis
							}
						}
						add_ai_strategy = { type = send_volunteers_desire id = "EGY" value = 300 }
						add_ai_strategy = { type = support id = "EGY" value = 300 }
						set_country_flag = AI_STRATEGY_ENG_support_egypt_active 
					}
					if = { 
						limit = {
							EGY = {
								OR = {
									NOT = { has_civil_war = yes }
									has_government = fascism
									NOT = { has_country_flag = fighting_jihadis }
								}
							}
							has_country_flag = AI_STRATEGY_ENG_support_egypt_active 
						}
						add_ai_strategy = { type = send_volunteers_desire id = "EGY" value = -300 }
						add_ai_strategy = { type = support id = "EGY" value = -300 }
						clr_country_flag = AI_STRATEGY_ENG_support_egypt_active
					}
					
				}
				
				#ERI Strategies
				ERI = {
					#Djibouti border conflict
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ERI_djibouti_border_conflict_active }
							has_opinion_modifier = ERI_Border_Disputes
						}
						add_ai_strategy = { type = antagonize id = "DJI" value = 50 }
						add_ai_strategy = { type = contain id = "DJI" value = 100 }
						add_ai_strategy = { type = conquer id = "DJI" value = 50 }
						set_country_flag = AI_STRATEGY_ERI_djibouti_border_conflict_active 
					}
					if = { 
						limit = { 
							NOT = { has_opinion_modifier = ERI_Border_Disputes }
							has_country_flag = AI_STRATEGY_ERI_djibouti_border_conflict_active 
						}
						add_ai_strategy = { type = antagonize id = "DJI" value = -50 }
						add_ai_strategy = { type = contain id = "DJI" value = -100 }
						add_ai_strategy = { type = conquer id = "DJI" value = -50 }
						clr_country_flag = AI_STRATEGY_ERI_djibouti_border_conflict_active
					}
					
					#Ethiopia border conflict
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ERI_ethiopia_border_conflict_active }
							has_opinion_modifier = ERI_Border_Disputes
						}
						add_ai_strategy = { type = antagonize id = "ETH" value = 50 }
						add_ai_strategy = { type = contain id = "ETH" value = 100 }
						add_ai_strategy = { type = conquer id = "ETH" value = 50 }
						set_country_flag = AI_STRATEGY_ERI_ethiopia_border_conflict_active 
					}
					if = { 
						limit = { 
							NOT = { has_opinion_modifier = ERI_Border_Disputes }
							has_country_flag = AI_STRATEGY_ERI_ethiopia_border_conflict_active 
						}
						add_ai_strategy = { type = antagonize id = "ETH" value = -50 }
						add_ai_strategy = { type = contain id = "ETH" value = -100 }
						add_ai_strategy = { type = conquer id = "ETH" value = -50 }
						clr_country_flag = AI_STRATEGY_ERI_ethiopia_border_conflict_active
					}
					
					#Support Al-Shabaab
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ERI_support_al_shabaab_active }
							NOT = { has_war_with = SHB }
							country_exists = SHB
						}
						add_ai_strategy = { type = befriend id = "SHB" value = 100 }
						add_ai_strategy = { type = support id = "SHB" value = 100 }
						add_ai_strategy = { type = antagonize id = "SOM" value = 50 }
						add_ai_strategy = { type = contain id = "SOM" value = 100 }
						set_country_flag = AI_STRATEGY_ERI_support_al_shabaab_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = SHB
								NOT = { country_exists = SHB }
							}
							has_country_flag = AI_STRATEGY_ERI_support_al_shabaab_active 
						}
						add_ai_strategy = { type = befriend id = "SHB" value = -100 }
						add_ai_strategy = { type = support id = "SHB" value = -100 }
						add_ai_strategy = { type = antagonize id = "SOM" value = -50 }
						add_ai_strategy = { type = contain id = "SOM" value = -100 }
						clr_country_flag = AI_STRATEGY_ERI_support_al_shabaab_active
					}
				}
				
				#ETH Strategies
				ETH = {
					#Eritrea border conflict
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ETH_eritrea_border_conflict_active }
							has_opinion_modifier = ERI_Border_Disputes
						}
						add_ai_strategy = { type = antagonize id = "ERI" value = 50 }
						add_ai_strategy = { type = contain id = "ERI" value = 100 }
						add_ai_strategy = { type = conquer id = "ERI" value = 50 }
						set_country_flag = AI_STRATEGY_ETH_eritrea_border_conflict_active 
					}
					if = { 
						limit = { 
							NOT = { has_opinion_modifier = ERI_Border_Disputes }
							has_country_flag = AI_STRATEGY_ETH_eritrea_border_conflict_active 
						}
						add_ai_strategy = { type = antagonize id = "ERI" value = -50 }
						add_ai_strategy = { type = contain id = "ERI" value = -100 }
						add_ai_strategy = { type = conquer id = "ERI" value = -50 }
						clr_country_flag = AI_STRATEGY_ETH_eritrea_border_conflict_active
					}
					
					#Support Sudanese rebels
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_ETH_support_sudanese_rebels_active }
							NOT = { has_war_with = SRF }
						}
						add_ai_strategy = { type = befriend id = "SRF" value = 50 }
						add_ai_strategy = { type = protect id = "SRF" value = 50 }
						add_ai_strategy = { type = influence id = "SRF" value = 50 }
						add_ai_strategy = { type = support id = "SRF" value = 50 }
						set_country_flag = AI_STRATEGY_ETH_support_sudanese_rebels_active 
					}
					if = { 
						limit = { 
							has_country_flag = AI_STRATEGY_ETH_support_sudanese_rebels_active 
							has_war_with = SRF
						}
						add_ai_strategy = { type = befriend id = "SRF" value = -50 }
						add_ai_strategy = { type = protect id = "SRF" value = -50 }
						add_ai_strategy = { type = influence id = "SRF" value = -50 }
						add_ai_strategy = { type = support id = "SRF" value = -50 }
						clr_country_flag = AI_STRATEGY_ETH_support_sudanese_rebels_active
					}
				}
				
				#FRA Strategies
				FRA = {
					#Intevene in Central African Republic
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_FRA_intervene_in_car_active }
							NOT = { has_war_with = CAR }
						}
						add_ai_strategy = { type = befriend id = "CAR" value = 20 }
						add_ai_strategy = { type = protect id = "CAR" value = 20 }
						add_ai_strategy = { type = influence id = "CAR" value = 20 }
						add_ai_strategy = { type = support id = "CAR" value = 20 }
						set_country_flag = AI_STRATEGY_FRA_intervene_in_car_active 
					}
					if = { 
						limit = { 
							has_war_with = CAR
							has_country_flag = AI_STRATEGY_FRA_intervene_in_car_active 
						}
						add_ai_strategy = { type = befriend id = "CAR" value = -20 }
						add_ai_strategy = { type = protect id = "CAR" value = -20 }
						add_ai_strategy = { type = influence id = "CAR" value = -20 }
						add_ai_strategy = { type = support id = "CAR" value = -20 }
						clr_country_flag = AI_STRATEGY_FRA_intervene_in_car_active
					}
					
					#Specops in Libya
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_FRA_intervene_in_libya_active }
							NOT = { has_war_with = HOR }
						}
						add_ai_strategy = { type = befriend id = "HOR" value = 25 }
						add_ai_strategy = { type = protect id = "HOR" value = 25 }
						add_ai_strategy = { type = influence id = "HOR" value = 25 }
						set_country_flag = AI_STRATEGY_FRA_intervene_in_libya_active 
					}
					if = { 
						limit = { 
							has_war_with = HOR
							has_country_flag = AI_STRATEGY_FRA_intervene_in_libya_active 
						}
						add_ai_strategy = { type = befriend id = "HOR" value = 25 }
						add_ai_strategy = { type = protect id = "HOR" value = 25 }
						add_ai_strategy = { type = influence id = "HOR" value = 25 }
						clr_country_flag = AI_STRATEGY_FRA_intervene_in_libya_active
					}
					
					#Support Pakistan against Jihadists
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_FRA_support_pakistan_active }
							PAK = {
								has_civil_war = yes
								NOT = { has_government = fascism }
								has_country_flag = fighting_jihadis
							}
						}
						add_ai_strategy = { type = send_volunteers_desire id = "PAK" value = 300 }
						add_ai_strategy = { type = support id = "PAK" value = 300 }
						set_country_flag = AI_STRATEGY_FRA_support_pakistan_active 
					}
					if = { 
						limit = {
							PAK = {
								OR = {
									NOT = { has_civil_war = yes }
									has_government = fascism
									NOT = { has_country_flag = fighting_jihadis }
								}
							}
							has_country_flag = AI_STRATEGY_FRA_support_pakistan_active 
						}
						add_ai_strategy = { type = send_volunteers_desire id = "PAK" value = -300 }
						add_ai_strategy = { type = support id = "PAK" value = -300 }
						clr_country_flag = AI_STRATEGY_FRA_support_pakistan_active
					}
					
					#Support Egypt against Jihadists
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_FRA_support_egypt_active }
							EGY = {
								has_civil_war = yes
								NOT = { has_government = fascism }
								has_country_flag = fighting_jihadis
							}
						}
						add_ai_strategy = { type = send_volunteers_desire id = "EGY" value = 300 }
						add_ai_strategy = { type = support id = "EGY" value = 300 }
						set_country_flag = AI_STRATEGY_FRA_support_egypt_active 
					}
					if = { 
						limit = {
							EGY = {
								OR = {
									NOT = { has_civil_war = yes }
									has_government = fascism
									NOT = { has_country_flag = fighting_jihadis }
								}
							}
							has_country_flag = AI_STRATEGY_FRA_support_egypt_active 
						}
						add_ai_strategy = { type = send_volunteers_desire id = "EGY" value = -300 }
						add_ai_strategy = { type = support id = "EGY" value = -300 }
						clr_country_flag = AI_STRATEGY_FRA_support_egypt_active
					}
				}
				
				#GEO Strategies
				GEO = {
					#Support Afghanistan
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_GEO_support_afghanistan_active }
							NOT = { has_war_with = AFG }
							AFG = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "AFG" value = 50 }
						add_ai_strategy = { type = support id = "AFG" value = 150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = 100 }
						set_country_flag = AI_STRATEGY_GEO_support_afghanistan_active 
					}
					if = { 
						limit = { 
							has_country_flag = AI_STRATEGY_GEO_support_afghanistan_active 
							has_war_with = AFG
							NOT = { has_government = fascism }
						}
						add_ai_strategy = { type = befriend id = "AFG" value = -50 }
						add_ai_strategy = { type = support id = "AFG" value = -150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = -100 }
						clr_country_flag = AI_STRATEGY_GEO_support_afghanistan_active
					}
					
					#Breakaway states
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_GEO_breakaway_states_active }
							NOT = {
								is_in_faction_with = ABK
								is_in_faction_with = SOO
							}
							OR = {
								country_exists = ABK
								country_exists = SOO
							}
						}
						add_ai_strategy = { type = contain id = "SOV" value = 50 }
						add_ai_strategy = { type = antagonize id = "SOV" value = 25 }
						add_ai_strategy = { type = antagonize id = "ABK" value = 100 }
						add_ai_strategy = { type = conquer id = "ABK" value = 100 }
						add_ai_strategy = { type = antagonize id = "SOO" value = 100 }
						add_ai_strategy = { type = conquer id = "SOO" value = 100 }
						set_country_flag = AI_STRATEGY_GEO_breakaway_states_active 
					}
					if = { 
						limit = { 
							AND = {
								is_in_faction_with = ABK
								is_in_faction_with = SOO
							}
							has_country_flag = AI_STRATEGY_GEO_breakaway_states_active 
						}
						add_ai_strategy = { type = befriend id = "AFG" value = -50 }
						add_ai_strategy = { type = support id = "AFG" value = -150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = -100 }
						clr_country_flag = AI_STRATEGY_GEO_breakaway_states_active
					}
				}
				
				#GER Strategies
				GER = {
					#Support Afghanistan
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_GER_support_afghanistan_active }
							NOT = { has_war_with = AFG }
							AFG = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "AFG" value = 50 }
						add_ai_strategy = { type = support id = "AFG" value = 150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = 50 }
						set_country_flag = AI_STRATEGY_GER_support_afghanistan_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_GER_support_afghanistan_active 
							OR = {
								has_war_with = AFG
								AFG = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "AFG" value = -50 }
						add_ai_strategy = { type = support id = "AFG" value = -150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = -50 }
						clr_country_flag = AI_STRATEGY_GER_support_afghanistan_active
					}
				}
				
				#GUI Strategies
				"GUI" = {
					#Support LURD
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_GER_support_lurd_active }
							NOT = { has_war_with = LUR }
							country_exists = LIB
						}
						add_ai_strategy = { type = befriend id = "LUR" value = 100 }
						add_ai_strategy = { type = support id = "LUR" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "LUR" value = 100 }
						set_country_flag = AI_STRATEGY_GER_support_lurd_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_GER_support_lurd_active 
							OR = {
								has_war_with = LUR
								NOT = { country_exists = LIB }
							}
						}
						add_ai_strategy = { type = befriend id = "LUR" value = -100 }
						add_ai_strategy = { type = support id = "LUR" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "LUR" value = -100 }
						clr_country_flag = AI_STRATEGY_GER_support_lurd_active
					}
				}
				
				#HEZ Strategies
				HEZ = {
					#Make sure Lebanon stays alive
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_HEZ_support_lebanon_active }
							NOT = { has_war_with = LEB }
							LEB = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "LEB" value = 200 }
						add_ai_strategy = { type = protect id = "LEB" value = 200 }
						add_ai_strategy = { type = support id = "LEB" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "LEB" value = 500 }
						set_country_flag = AI_STRATEGY_HEZ_support_lebanon_active 
					}
					if = { 
						limit = {
							OR = {
								has_war_with = LEB
								LEB = { has_government = fascism }
							}
							has_country_flag = AI_STRATEGY_HEZ_support_lebanon_active 
						}
						add_ai_strategy = { type = befriend id = "LEB" value = 200 }
						add_ai_strategy = { type = protect id = "LEB" value = 200 }
						add_ai_strategy = { type = support id = "LEB" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "LEB" value = 500 }
						clr_country_flag = AI_STRATEGY_HEZ_support_lebanon_active
					}
				}
				
				#IRQ Strategies
				IRQ = {
					#Oppose Kurdistan
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_IRQ_oppose_kurdistan_active }
							has_annex_war_goal = KUR
						}
						add_ai_strategy = { type = conquer id = "KUR" value = 200 }
						add_ai_strategy = { type = antagonize id = "KUR" value = 200 }
						set_country_flag = AI_STRATEGY_IRQ_oppose_kurdistan_active 
					}
					if = { 
						limit = {
							KUR = { is_subject_of = IRQ }
							has_country_flag = AI_STRATEGY_IRQ_oppose_kurdistan_active 
						}
						add_ai_strategy = { type = conquer id = "KUR" value = -200 }
						add_ai_strategy = { type = antagonize id = "KUR" value = -200 }
						clr_country_flag = AI_STRATEGY_IRQ_oppose_kurdistan_active
					}
				}
				
				#ISR Strategies
				ISR = {
					#Hamas relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ISR_hamas_relations_active }
							country_exists = HAM
							has_opinion_modifier = HAM_Are_Terrorists
						}
						add_ai_strategy = { type = contain id = "HAM" value = 50 }
						add_ai_strategy = { type = antagonize id = "HAM" value = 100 }
						add_ai_strategy = { type = conquer id = "HAM" value = 50 }
						set_country_flag = AI_STRATEGY_ISR_hamas_relations_active 
					}
					if = { 
						limit = {
							NOT = { has_opinion_modifier = HAM_Are_Terrorists }
							has_country_flag = AI_STRATEGY_ISR_hamas_relations_active 
						}
						add_ai_strategy = { type = contain id = "HAM" value = -50 }
						add_ai_strategy = { type = antagonize id = "HAM" value = -100 }
						add_ai_strategy = { type = conquer id = "HAM" value = -50 }
						clr_country_flag = AI_STRATEGY_ISR_hamas_relations_active
					}
					
					#Arab relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ISR_arab_relations_active }
							has_opinion_modifier = ISR_Arab_Conflict
						}
						add_ai_strategy = { type = antagonize id = "LEB" value = 50 }
						add_ai_strategy = { type = antagonize id = "HEZ" value = 50 }
						add_ai_strategy = { type = antagonize id = "JOR" value = 50 }
						add_ai_strategy = { type = antagonize id = "SYR" value = 50 }
						add_ai_strategy = { type = antagonize id = "EGY" value = 50 }
						add_ai_strategy = { type = antagonize id = "PER" value = 50 }
						add_ai_strategy = { type = antagonize id = "SAU" value = 50 }
						add_ai_strategy = { type = antagonize id = "QAT" value = 50 }
						add_ai_strategy = { type = antagonize id = "UAE" value = 50 }
						add_ai_strategy = { type = antagonize id = "YEM" value = 50 }
						add_ai_strategy = { type = antagonize id = "HOU" value = 50 }
						set_country_flag = AI_STRATEGY_ISR_hamas_relations_active 
					}
					if = { 
						limit = {
							NOT = { has_opinion_modifier = ISR_Arab_Conflict }
							has_country_flag = AI_STRATEGY_ISR_hamas_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "LEB" value = -50 }
						add_ai_strategy = { type = antagonize id = "HEZ" value = -50 }
						add_ai_strategy = { type = antagonize id = "JOR" value = -50 }
						add_ai_strategy = { type = antagonize id = "SYR" value = -50 }
						add_ai_strategy = { type = antagonize id = "EGY" value = -50 }
						add_ai_strategy = { type = antagonize id = "PER" value = -50 }
						add_ai_strategy = { type = antagonize id = "SAU" value = -50 }
						add_ai_strategy = { type = antagonize id = "QAT" value = -50 }
						add_ai_strategy = { type = antagonize id = "UAE" value = -50 }
						add_ai_strategy = { type = antagonize id = "YEM" value = -50 }
						add_ai_strategy = { type = antagonize id = "HOU" value = -50 }
						clr_country_flag = AI_STRATEGY_ISR_hamas_relations_active
					}
					
					#Kurdistan relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ISR_kurd_relations_active }
							KUR = { has_war_with = IRQ }
						}
						add_ai_strategy = { type = support id = "KUR" value = 200 }
						set_country_flag = AI_STRATEGY_ISR_kurd_relations_active 
					}
					if = { 
						limit = {
							KUR = { NOT = { has_war_with = IRQ } }
							has_country_flag = AI_STRATEGY_ISR_kurd_relations_active 
						}
						add_ai_strategy = { type = support id = "KUR" value = -200 }
						clr_country_flag = AI_STRATEGY_ISR_kurd_relations_active
					}
					
					#Help FSA and Druze
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ISR_fsa_and_druze_active }
							587 = {
								OR = {
									AND = {
										NOT = { is_core_of = FSA }
										NOT = { is_claimed_by = FSA }
									}
									AND = {
										NOT = { is_core_of = DRU }
										NOT = { is_claimed_by = DRU }
									}
								}
							}
						}
						add_ai_strategy = { type = support id = "FSA" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "FSA" value = 200 }
						add_ai_strategy = { type = support id = "DRU" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "DRU" value = 200 }
						set_country_flag = AI_STRATEGY_ISR_fsa_and_druze_active 
					}
					if = { 
						limit = {
							587 = {
								OR = {
									is_core_of = FSA
									is_claimed_by = FSA
									is_core_of = DRU
									is_claimed_by = DRU
								}
							}
							has_country_flag = AI_STRATEGY_ISR_fsa_and_druze_active 
						}
						add_ai_strategy = { type = support id = "FSA" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "FSA" value = -200 }
						add_ai_strategy = { type = support id = "DRU" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "DRU" value = -200 }
						clr_country_flag = AI_STRATEGY_ISR_fsa_and_druze_active
					}
					
					#Eliminate Hezbollah
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ISR_eliminate_hezbollah_active }
							HEZ = {	owns_state = 184 }
						}
						add_ai_strategy = { type = contain id = "HEZ" value = 200 }
						add_ai_strategy = { type = antagonize id = "HEZ" value = 200 }
						add_ai_strategy = { type = conquer id = "HEZ" value = 200 }
						set_country_flag = AI_STRATEGY_ISR_eliminate_hezbollah_active 
					}
					if = { 
						limit = {
							HEZ = {	NOT = { owns_state = 184 } }
							has_country_flag = AI_STRATEGY_ISR_eliminate_hezbollah_active 
						}
						add_ai_strategy = { type = contain id = "HEZ" value = -200 }
						add_ai_strategy = { type = antagonize id = "HEZ" value = -200 }
						add_ai_strategy = { type = conquer id = "HEZ" value = -200 }
						clr_country_flag = AI_STRATEGY_ISR_eliminate_hezbollah_active
					}
				}
				
				#ITA Strategies
				ITA = {
					#Support Afghanistan
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_ITA_support_afghanistan_active }
							NOT = { has_war_with = AFG }
							AFG = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "AFG" value = 50 }
						add_ai_strategy = { type = support id = "AFG" value = 150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = 150 }
						set_country_flag = AI_STRATEGY_ITA_support_afghanistan_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_ITA_support_afghanistan_active 
							OR = {
								has_war_with = AFG
								AFG = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "AFG" value = -50 }
						add_ai_strategy = { type = support id = "AFG" value = -150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = -150 }
						clr_country_flag = AI_STRATEGY_ITA_support_afghanistan_active
					}
					
					#Specops in Libya
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_ITA_intervene_in_libya_active }
							NOT = { has_war_with = GNA }
						}
						add_ai_strategy = { type = befriend id = "GNA" value = 25 }
						add_ai_strategy = { type = protect id = "GNA" value = 25 }
						add_ai_strategy = { type = influence id = "GNA" value = 25 }
						set_country_flag = AI_STRATEGY_ITA_intervene_in_libya_active 
					}
					if = { 
						limit = { 
							has_war_with = GNA
							has_country_flag = AI_STRATEGY_ITA_intervene_in_libya_active 
						}
						add_ai_strategy = { type = befriend id = "GNA" value = 25 }
						add_ai_strategy = { type = protect id = "GNA" value = 25 }
						add_ai_strategy = { type = influence id = "GNA" value = 25 }
						clr_country_flag = AI_STRATEGY_ITA_intervene_in_libya_active
					}
				}
				
				#JOR Strategies
				JOR = {
					#Support House of Representatives
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_JOR_support_house_of_representatives_active }
							NOT = { has_war_with = HOR }
						}
						add_ai_strategy = { type = befriend id = "HOR" value = 50 }
						add_ai_strategy = { type = protect id = "HOR" value = 50 }
						add_ai_strategy = { type = influence id = "HOR" value = 50 }
						add_ai_strategy = { type = support id = "HOR" value = 50 }
						set_country_flag = AI_STRATEGY_JOR_support_house_of_representatives_active 
					}
					if = { 
						limit = { 
							has_war_with = HOR
							has_country_flag = AI_STRATEGY_JOR_support_house_of_representatives_active 
						}
						add_ai_strategy = { type = befriend id = "HOR" value = -50 }
						add_ai_strategy = { type = protect id = "HOR" value = -50 }
						add_ai_strategy = { type = influence id = "HOR" value = -50 }
						add_ai_strategy = { type = support id = "HOR" value = -50 }
						clr_country_flag = AI_STRATEGY_JOR_support_house_of_representatives_active
					}
					
					#Support FSA
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_JOR_support_fsa_active }
							NOT = { has_war_with = FSA }
							FSA = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "FSA" value = 100 }
						add_ai_strategy = { type = protect id = "FSA" value = 100 }
						add_ai_strategy = { type = support id = "FSA" value = 150 }
						set_country_flag = AI_STRATEGY_JOR_support_fsa_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_JOR_support_fsa_active 
							OR = {
								has_war_with = FSA
								FSA = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "FSA" value = -100 }
						add_ai_strategy = { type = protect id = "FSA" value = -100 }
						add_ai_strategy = { type = support id = "FSA" value = -150 }
						clr_country_flag = AI_STRATEGY_JOR_support_fsa_active
					}
				}
				
				#KOR Strategies
				KOR = {
					#Korean conflict stage 1
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_KOR_korean_conflict_stage_1_active }
							threat < 0.3
						}
						add_ai_strategy = { type = conquer id = "NKO" value = 25 }
						add_ai_strategy = { type = antagonize id = "NKO" value = 200 }
						add_ai_strategy = { type = contain id = "NKO" value = 200 }
						set_country_flag = AI_STRATEGY_KOR_korean_conflict_stage_1_active 
					}
					if = { 
						limit = {
							threat > 0.3
							has_country_flag = AI_STRATEGY_KOR_korean_conflict_stage_1_active 
						}
						add_ai_strategy = { type = conquer id = "NKO" value = -25 }
						add_ai_strategy = { type = antagonize id = "NKO" value = -200 }
						add_ai_strategy = { type = contain id = "NKO" value = -200 }
						clr_country_flag = AI_STRATEGY_KOR_korean_conflict_stage_1_active
					}
					
					#Korean conflict stage 2
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_KOR_korean_conflict_stage_2_active }
							threat > 0.3
						}
						add_ai_strategy = { type = conquer id = "NKO" value = 200 }
						add_ai_strategy = { type = antagonize id = "NKO" value = 200 }
						set_country_flag = AI_STRATEGY_KOR_korean_conflict_stage_2_active 
					}
					if = { 
						limit = {
							threat < 0.3
							has_country_flag = AI_STRATEGY_KOR_korean_conflict_stage_2_active 
						}
						add_ai_strategy = { type = conquer id = "NKO" value = -200 }
						add_ai_strategy = { type = antagonize id = "NKO" value = -200 }
						clr_country_flag = AI_STRATEGY_KOR_korean_conflict_stage_2_active
					}
				}
				
				#KOS Strategies
				KOS = {
					#Serbian relations (always active)
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_KOS_serbian_relations_active }
						}
						add_ai_strategy = { type = antagonize id = "SER" value = 50 }
						set_country_flag = AI_STRATEGY_KOS_serbian_relations_active 
					}
				}
				
				#KUW Strategies
				KUW = {
					#Support FSA
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_KUW_support_fsa_active }
							NOT = { has_war_with = FSA }
							FSA = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "FSA" value = 100 }
						add_ai_strategy = { type = protect id = "FSA" value = 100 }
						add_ai_strategy = { type = support id = "FSA" value = 150 }
						set_country_flag = AI_STRATEGY_KUW_support_fsa_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_KUW_support_fsa_active 
							OR = {
								has_war_with = FSA
								FSA = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "FSA" value = -100 }
						add_ai_strategy = { type = protect id = "FSA" value = -100 }
						add_ai_strategy = { type = support id = "FSA" value = -150 }
						clr_country_flag = AI_STRATEGY_KUW_support_fsa_active
					}
				}

				#LBA Strategies
				LBA = { 
					#Support AFR
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_LBA_support_afr_active }
							NOT = { has_war_with = AFR }
						}
						add_ai_strategy = { type = support id = "AFR" value = 50 }
						add_ai_strategy = { type = befriend id = "AFR" value = 50 }
						set_country_flag = AI_STRATEGY_LBA_support_afr_active 
					}
					if = { 
						limit = { 
							has_country_flag = AI_STRATEGY_LBA_support_afr_active 
							has_war_with = AFR
						}
						add_ai_strategy = { type = support id = "AFR" value = -50 }
						add_ai_strategy = { type = befriend id = "AFR" value = -50 }
						clr_country_flag = AI_STRATEGY_LBA_support_afr_active
					}
					
					#Support Kabila
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_LBA_support_kabila_active }
							NOT = { has_war_with = DRC }
							DRC = { has_country_leader = { name = "Laurent-Dsir Kabila" } }
						}
						add_ai_strategy = { type = befriend id = "DRC" value = 50 }
						add_ai_strategy = { type = support id = "DRC" value = 50 }
						set_country_flag = AI_STRATEGY_LBA_support_kabila_active 
					}
					if = { 
						limit = { 
							has_country_flag = AI_STRATEGY_LBA_support_kabila_active 
							OR = {
								has_war_with = DRC
								DRC = { NOT = { has_country_leader = { name = "Laurent-Dsir Kabila" } } }
							}
						}
						add_ai_strategy = { type = befriend id = "DRC" value = -50 }
						add_ai_strategy = { type = support id = "DRC" value = -50 }
						clr_country_flag = AI_STRATEGY_LBA_support_kabila_active
					}
				}

				#LIB Strategies
				LIB = { 
					#Support AFR
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_LIB_support_afr_active }
							NOT = { has_war_with = AFR }
						}
						add_ai_strategy = { type = support id = "AFR" value = 100 }
						add_ai_strategy = { type = befriend id = "AFR" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFR" value = 100 }
						set_country_flag = AI_STRATEGY_LIB_support_afr_active 
					}
					if = { 
						limit = { 
							has_country_flag = AI_STRATEGY_LIB_support_afr_active 
							has_war_with = AFR
						}
						add_ai_strategy = { type = support id = "AFR" value = -100 }
						add_ai_strategy = { type = befriend id = "AFR" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFR" value = -100 }
						clr_country_flag = AI_STRATEGY_LIB_support_afr_active
					}
				}

				#MOR Strategies
				MOR = { 
					#Sahrawi relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_MOR_sahrawi_relations_active }
							has_opinion_modifier = SHA_MOR_Occupation
						}
						add_ai_strategy = { type = antagonize id = "SHA" value = 50 }
						add_ai_strategy = { type = contain id = "SHA" value = 100 }
						add_ai_strategy = { type = conquer id = "SHA" value = 50 }
						set_country_flag = AI_STRATEGY_MOR_sahrawi_relations_active 
					}
					if = { 
						limit = { 
							NOT = { has_opinion_modifier = SHA_MOR_Occupation }
							NOT = { has_country_flag = AI_STRATEGY_MOR_sahrawi_relations_active }
						}
						add_ai_strategy = { type = antagonize id = "SHA" value = -50 }
						add_ai_strategy = { type = contain id = "SHA" value = -100 }
						add_ai_strategy = { type = conquer id = "SHA" value = -50 }
						CLR_country_flag = AI_STRATEGY_MOR_sahrawi_relations_active 
					}
					
					#Algerian relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_MOR_algeria_relations_active }
							has_opinion_modifier = ALG_MOR_Is_Occuping_WS_Border_Closed
						}
						add_ai_strategy = { type = antagonize id = "ALG" value = 25 }
						add_ai_strategy = { type = contain id = "ALG" value = 50 }
						set_country_flag = AI_STRATEGY_MOR_algeria_relations_active 
					}
					if = { 
						limit = { 
							NOT = { has_opinion_modifier = ALG_MOR_Is_Occuping_WS_Border_Closed }
							NOT = { has_country_flag = AI_STRATEGY_MOR_algeria_relations_active }
						}
						add_ai_strategy = { type = antagonize id = "ALG" value = -25 }
						add_ai_strategy = { type = contain id = "ALG" value = -50 }
						clr_country_flag = AI_STRATEGY_MOR_algeria_relations_active 
					}
				}
				
				#NAM Strategies
				NAM = {
					#Support Kabila
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_NAM_support_kabila_active }
							NOT = { has_war_with = DRC }
							DRC = { has_country_leader = { name = "Laurent-Dsir Kabila" } }
						}
						add_ai_strategy = { type = befriend id = "DRC" value = 100 }
						add_ai_strategy = { type = support id = "DRC" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "DRC" value = 200 }
						set_country_flag = AI_STRATEGY_NAM_support_kabila_active 
					}
					if = { 
						limit = { 
							has_country_flag = AI_STRATEGY_NAM_support_kabila_active 
							OR = {
								has_war_with = DRC
								DRC = { NOT = { has_country_leader = { name = "Laurent-Dsir Kabila" } } }
							}
						}
						add_ai_strategy = { type = befriend id = "DRC" value = -100 }
						add_ai_strategy = { type = support id = "DRC" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "DRC" value = -200 }
						clr_country_flag = AI_STRATEGY_NAM_support_kabila_active
					}
				}
				
				#NKO Strategies
				NKO = {
					#Korean conflict stage 1
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_NKO_korean_conflict_stage_1_active }
							threat < 0.3
						}
						add_ai_strategy = { type = conquer id = "KOR" value = 25 }
						add_ai_strategy = { type = antagonize id = "KOR" value = 200 }
						add_ai_strategy = { type = contain id = "KOR" value = 200 }
						set_country_flag = AI_STRATEGY_NKO_korean_conflict_stage_1_active 
					}
					if = { 
						limit = {
							threat > 0.3
							has_country_flag = AI_STRATEGY_NKO_korean_conflict_stage_1_active 
						}
						add_ai_strategy = { type = conquer id = "KOR" value = -25 }
						add_ai_strategy = { type = antagonize id = "KOR" value = -200 }
						add_ai_strategy = { type = contain id = "KOR" value = -200 }
						clr_country_flag = AI_STRATEGY_NKO_korean_conflict_stage_1_active
					}
					
					#Korean conflict stage 2
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_NKO_korean_conflict_stage_2_active }
							threat > 0.3
						}
						add_ai_strategy = { type = conquer id = "KOR" value = 200 }
						add_ai_strategy = { type = antagonize id = "KOR" value = 200 }
						set_country_flag = AI_STRATEGY_NKO_korean_conflict_stage_2_active 
					}
					if = { 
						limit = {
							threat < 0.3
							has_country_flag = AI_STRATEGY_NKO_korean_conflict_stage_2_active 
						}
						add_ai_strategy = { type = conquer id = "KOR" value = -200 }
						add_ai_strategy = { type = antagonize id = "KOR" value = -200 }
						clr_country_flag = AI_STRATEGY_NKO_korean_conflict_stage_2_active
					}
					
					#Chinese relations (always active)
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_NKO_china_relations_active }
						}
						add_ai_strategy = { type = befriend id = "CHI" value = 25 }
						set_country_flag = AI_STRATEGY_NKO_china_relations_active 
					}
				}
				
				#NOR Strategies
				NOR = {
					#Support FSA
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_NOR_support_fsa_active }
							NOT = { has_war_with = FSA }
							FSA = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "FSA" value = 50 }
						add_ai_strategy = { type = protect id = "FSA" value = 50 }
						add_ai_strategy = { type = support id = "FSA" value = 150 }
						set_country_flag = AI_STRATEGY_NOR_support_fsa_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_NOR_support_fsa_active 
							OR = {
								has_war_with = FSA
								FSA = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "FSA" value = -50 }
						add_ai_strategy = { type = protect id = "FSA" value = -50 }
						add_ai_strategy = { type = support id = "FSA" value = -150 }
						clr_country_flag = AI_STRATEGY_NOR_support_fsa_active
					}
				}
				
				#NOV Strategies
				NOV = {
					#Ukrainian relations (always active)
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_NOV_ukraine_relations_active }
							NOT = { has_war_with = FSA }
							FSA = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = conquer id = "UKR" value = 100 }
						add_ai_strategy = { type = contain id = "UKR" value = 100 }
						add_ai_strategy = { type = antagonize id = "UKR" value = 200 }
						set_country_flag = AI_STRATEGY_NOV_ukraine_relations_active 
					}
					#Russian relations (always active)
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_NOV_russia_relations_active }
							NOT = { has_war_with = FSA }
							FSA = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "SOV" value = 50 }
						set_country_flag = AI_STRATEGY_NOV_russia_relations_active 
					}
				}
				
				#NUS Strategies
				NUS = { 
					#Support Taliban
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_NUS_support_taliban_active }
							NOT = { has_war_with = TAL }
							has_government = fascism
							TAL = { has_government = fascism }
						}
						add_ai_strategy = { type = befriend id = "TAL" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "TAL" value = 200 }
						set_country_flag = AI_STRATEGY_NUS_support_taliban_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = TAL
								NOT = { has_government = fascism }
								NOT = { TAL = { has_government = fascism } }
							}
							has_country_flag = AI_STRATEGY_NUS_support_taliban_active 
						}
						add_ai_strategy = { type = befriend id = "TAL" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "TAL" value = -200 }
						clr_country_flag = AI_STRATEGY_NUS_support_taliban_active
					}
					
					#Support Al-Shabaab
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_NUS_support_al_shabaab_active }
							NOT = { has_war_with = SHB }
							has_government = fascism
							SHB = { has_government = fascism }
						}
						add_ai_strategy = { type = befriend id = "SHB" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SHB" value = 100 }
						add_ai_strategy = { type = support id = "SHB" value = 200 }
						set_country_flag = AI_STRATEGY_NUS_support_al_shabaab_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = SHB
								NOT = { has_government = fascism }
								SHB = { NOT = { has_government = fascism } }
							}
							has_country_flag = AI_STRATEGY_NUS_support_al_shabaab_active 
						}
						add_ai_strategy = { type = befriend id = "SHB" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SHB" value = -100 }
						add_ai_strategy = { type = support id = "SHB" value = -200 }
						clr_country_flag = AI_STRATEGY_NUS_support_al_shabaab_active
					}
				}
				
				#OMA Strategies
				OMA = { 
					#Saud relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_OMA_saudi_relations_active }
							has_opinion_modifier = Gulf_Cooperation_Council_Relations
						}
						add_ai_strategy = { type = befriend id = "SAU" value = 200 }
						add_ai_strategy = { type = alliance id = "SAU" value = -50 }
						set_country_flag = AI_STRATEGY_OMA_saudi_relations_active 
					}
					if = { 
						limit = { 
							NOT = { has_opinion_modifier = Gulf_Cooperation_Council_Relations }
							has_country_flag = AI_STRATEGY_OMA_saudi_relations_active 
						}
						add_ai_strategy = { type = befriend id = "SAU" value = -200 }
						add_ai_strategy = { type = alliance id = "SAU" value = 50 }
						clr_country_flag = AI_STRATEGY_OMA_saudi_relations_active
					}
				}
				
				#PAK Strategies
				PAK = {	
					#Pakistan area priority (always active)
					if = {
						limit = {
							NOT = { has_country_flag = AI_STRATEGY_PAK_area_priority_active }
						}
						add_ai_strategy = { type = area_priority id = europe value = -50 }
						add_ai_strategy = { type = area_priority id = north_america value = -50 }
						add_ai_strategy = { type = area_priority id = caribbean value = -50 }
						add_ai_strategy = { type = area_priority id = south_america value = -50 }
						add_ai_strategy = { type = area_priority id = asia value = 200 }
						add_ai_strategy = { type = area_priority id = pacific value = -50 }
						add_ai_strategy = { type = area_priority id = oceania value = -50 }
						add_ai_strategy = { type = area_priority id = middle_east value = 25 }
						add_ai_strategy = { type = area_priority id = africa value = -50 }
						set_country_flag = AI_STRATEGY_PAK_area_priority_active 
					}
						
					#Support Yemen
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_support_yemen_active }
							NOT = { has_war_with = YEM }
						}
						add_ai_strategy = { type = support id = "YEM" value = 200 }
						set_country_flag = AI_STRATEGY_PAK_support_yemen_active 
					}
					if = { 
						limit = {
							has_war_with = YEM
							has_country_flag = AI_STRATEGY_PAK_support_yemen_active 
						}
						add_ai_strategy = { type = support id = "YEM" value = -200 }
						clr_country_flag = AI_STRATEGY_PAK_support_yemen_active
					}
					#Indian Relations (always active)
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_india_relations_active }
						}
						add_ai_strategy = { type = conquer id = "RAJ" value = 200 }
						add_ai_strategy = { type = antagonize id = "RAJ" value = 200 }
						add_ai_strategy = { type = alliance id = "RAJ" value = -200 }
						add_ai_strategy = { type = support id = "RAJ" value = -200 }
						add_ai_strategy = { type = contain id = "RAJ" value = 200 }
						set_country_flag = AI_STRATEGY_PAK_india_relations_active 
					}
					
					#Chinese Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_china_relations_active }
							is_guaranteed_by = CHI
						}
						add_ai_strategy = { type = antagonize id = "CHI" value = -50 }
						add_ai_strategy = { type = contain id = "CHI" value = -50 }
						add_ai_strategy = { type = alliance id = "CHI" value = 50 }
						add_ai_strategy = { type = support id = "CHI" value = 50 }
						add_ai_strategy = { type = befriend id = "CHI" value = 150 }
						set_country_flag = AI_STRATEGY_PAK_china_relations_active 
					}
					if = { 
						limit = {
							NOT = { is_guaranteed_by = CHI }
							has_country_flag = AI_STRATEGY_PAK_china_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "CHI" value = 50 }
						add_ai_strategy = { type = contain id = "CHI" value = 50 }
						add_ai_strategy = { type = alliance id = "CHI" value = -50 }
						add_ai_strategy = { type = support id = "CHI" value = -50 }
						add_ai_strategy = { type = befriend id = "CHI" value = -150 }
						clr_country_flag = AI_STRATEGY_PAK_china_relations_active
					}
					
					#Saudi Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_saudi_relations_active }
							NOT = { is_guaranteed_by = PER }
						}
						add_ai_strategy = { type = antagonize id = "SAU" value = -50 }
						add_ai_strategy = { type = contain id = "SAU" value = -50 }
						add_ai_strategy = { type = alliance id = "SAU" value = 25 }
						add_ai_strategy = { type = support id = "SAU" value = 50 }
						add_ai_strategy = { type = befriend id = "SAU" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SAU" value = 200 }
						set_country_flag = AI_STRATEGY_PAK_saudi_relations_active 
					}
					if = { 
						limit = {
							is_guaranteed_by = PER
							has_country_flag = AI_STRATEGY_PAK_saudi_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "SAU" value = 50 }
						add_ai_strategy = { type = contain id = "SAU" value = 50 }
						add_ai_strategy = { type = alliance id = "SAU" value = -25 }
						add_ai_strategy = { type = support id = "SAU" value = -50 }
						add_ai_strategy = { type = befriend id = "SAU" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SAU" value = -200 }
						clr_country_flag = AI_STRATEGY_PAK_saudi_relations_active
					}
					
					#Indonesia Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_indonesia_relations_active }
							NOT = { RAJ = { is_guaranteed_by = IND } }
						}
						add_ai_strategy = { type = antagonize id = "IND" value = -50 }
						add_ai_strategy = { type = contain id = "IND" value = -50 }
						add_ai_strategy = { type = alliance id = "IND" value = 25 }
						add_ai_strategy = { type = support id = "IND" value = 50 }
						add_ai_strategy = { type = befriend id = "IND" value = 50 }
						set_country_flag = AI_STRATEGY_PAK_indonesia_relations_active 
					}
					if = { 
						limit = {
							RAJ = { is_guaranteed_by = IND }
							has_country_flag = AI_STRATEGY_PAK_indonesia_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "IND" value = 50 }
						add_ai_strategy = { type = contain id = "IND" value = 50 }
						add_ai_strategy = { type = alliance id = "IND" value = -25 }
						add_ai_strategy = { type = support id = "IND" value = -50 }
						add_ai_strategy = { type = befriend id = "IND" value = -50 }
						clr_country_flag = AI_STRATEGY_PAK_indonesia_relations_active
					}
					
					#Malaysia Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_malaysia_relations_active }
							NOT = { RAJ = { is_guaranteed_by = MAY } }
						}
						add_ai_strategy = { type = antagonize id = "MAY" value = -50 }
						add_ai_strategy = { type = contain id = "MAY" value = -50 }
						add_ai_strategy = { type = alliance id = "MAY" value = 25 }
						add_ai_strategy = { type = support id = "MAY" value = 50 }
						add_ai_strategy = { type = befriend id = "MAY" value = 50 }
						set_country_flag = AI_STRATEGY_PAK_malaysia_relations_active 
					}
					if = { 
						limit = {
							RAJ = { is_guaranteed_by = MAY }
							has_country_flag = AI_STRATEGY_PAK_malaysia_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "MAY" value = 50 }
						add_ai_strategy = { type = contain id = "MAY" value = 50 }
						add_ai_strategy = { type = alliance id = "MAY" value = -25 }
						add_ai_strategy = { type = support id = "MAY" value = -50 }
						add_ai_strategy = { type = befriend id = "MAY" value = -50 }
						clr_country_flag = AI_STRATEGY_PAK_malaysia_relations_active
					}
					
					#USA Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_usa_relations_active }
							is_guaranteed_by = USA 
						}
						add_ai_strategy = { type = antagonize id = "USA" value = -25 }
						add_ai_strategy = { type = contain id = "USA" value = -25 }
						add_ai_strategy = { type = alliance id = "USA" value = 25 }
						add_ai_strategy = { type = support id = "USA" value = 50 }
						add_ai_strategy = { type = befriend id = "USA" value = 100 }
						set_country_flag = AI_STRATEGY_PAK_usa_relations_active 
					}
					if = { 
						limit = {
							NOT = { is_guaranteed_by = USA }
							has_country_flag = AI_STRATEGY_PAK_usa_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "USA" value = 25 }
						add_ai_strategy = { type = contain id = "USA" value = 25 }
						add_ai_strategy = { type = alliance id = "USA" value = -25 }
						add_ai_strategy = { type = support id = "USA" value = -50 }
						add_ai_strategy = { type = befriend id = "USA" value = -100 }
						clr_country_flag = AI_STRATEGY_PAK_usa_relations_active
					}
					
					#Iran Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_iran_relations_active }
							NOT = { is_guaranteed_by = PER }
						}
						add_ai_strategy = { type = antagonize id = "PER" value = 25 }
						add_ai_strategy = { type = contain id = "PER" value = 25 }
						add_ai_strategy = { type = alliance id = "PER" value = -50 }
						add_ai_strategy = { type = support id = "PER" value = -50 }
						add_ai_strategy = { type = befriend id = "PER" value = -150 }
						set_country_flag = AI_STRATEGY_PAK_iran_relations_active 
					}
					if = { 
						limit = {
							is_guaranteed_by = PER
							has_country_flag = AI_STRATEGY_PAK_iran_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "PER" value = -25 }
						add_ai_strategy = { type = contain id = "PER" value = -25 }
						add_ai_strategy = { type = alliance id = "PER" value = 50 }
						add_ai_strategy = { type = support id = "PER" value = 50 }
						add_ai_strategy = { type = befriend id = "PER" value = 150 }
						clr_country_flag = AI_STRATEGY_PAK_iran_relations_active
					}
					
					#Russia Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_russia_relations_active }
							NOT = { is_in_faction_with = SOV }
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = 25 }
						add_ai_strategy = { type = contain id = "SOV" value = -25 }
						add_ai_strategy = { type = alliance id = "SOV" value = -50 }
						add_ai_strategy = { type = support id = "SOV" value = -50 }
						add_ai_strategy = { type = befriend id = "SOV" value = -150 }
						set_country_flag = AI_STRATEGY_PAK_russia_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = SOV
							has_country_flag = AI_STRATEGY_PAK_russia_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = -25 }
						add_ai_strategy = { type = contain id = "SOV" value = 25 }
						add_ai_strategy = { type = alliance id = "SOV" value = 50 }
						add_ai_strategy = { type = support id = "SOV" value = 50 }
						add_ai_strategy = { type = befriend id = "SOV" value = 150 }
						clr_country_flag = AI_STRATEGY_PAK_russia_relations_active
					}	
					
					#Tehrik-i-Taliban Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_taliban_relations_active }
							NOT = { has_government = fascism }
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = 200 }
						add_ai_strategy = { type = invade id = "SOV" value = 200 }
						add_ai_strategy = { type = conquer id = "SOV" value = 200 }
						add_ai_strategy = { type = support id = "SOV" value = -200 }
						add_ai_strategy = { type = befriend id = "SOV" value = -200 }
						add_ai_strategy = { type = contain id = "SOV" value = 200 }
						set_country_flag = AI_STRATEGY_PAK_taliban_relations_active 
					}
					if = { 
						limit = {
							has_government = fascism
							has_country_flag = AI_STRATEGY_PAK_taliban_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = -200 }
						add_ai_strategy = { type = invade id = "SOV" value = -200 }
						add_ai_strategy = { type = conquer id = "SOV" value = -200 }
						add_ai_strategy = { type = support id = "SOV" value = 200 }
						add_ai_strategy = { type = befriend id = "SOV" value = 200 }
						add_ai_strategy = { type = contain id = "SOV" value = -200 }
						clr_country_flag = AI_STRATEGY_PAK_taliban_relations_active
					}	
					
					#Support Taliban in Afghanistan
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PAK_support_taliban_active }
							OR = {
								has_government = fascism
								has_government = nationalist
								has_idea = isi_pakistan
							}
						}
						add_ai_strategy = { type = befriend id = "TAL" value = 100 }
						add_ai_strategy = { type = support id = "TAL" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "TAL" value = 100 }
						set_country_flag = AI_STRATEGY_PAK_support_taliban_active 
					}
					if = { 
						limit = {
							NOT = { has_government = fascism }
							NOT = { has_government = nationalist }
							NOT = { has_idea = isi_pakistan }
							has_country_flag = AI_STRATEGY_PAK_support_taliban_active 
						}
						add_ai_strategy = { type = befriend id = "TAL" value = -100 }
						add_ai_strategy = { type = support id = "TAL" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "TAL" value = -100 }
						clr_country_flag = AI_STRATEGY_PAK_support_taliban_active
					}	
				}
				
				#PER Strategies
				PER = {
					#Pakistan area priority (always active)
					if = {
						limit = {
							NOT = { has_country_flag = AI_STRATEGY_PER_area_priority_active }
						}
						add_ai_strategy = { type = area_priority id = europe value = -50 }
						add_ai_strategy = { type = area_priority id = north_america value = -50 }
						add_ai_strategy = { type = area_priority id = caribbean value = -50 }
						add_ai_strategy = { type = area_priority id = south_america value = -25 }
						add_ai_strategy = { type = area_priority id = asia value = 100 }
						add_ai_strategy = { type = area_priority id = pacific value = -50 }
						add_ai_strategy = { type = area_priority id = oceania value = -50 }
						add_ai_strategy = { type = area_priority id = middle_east value = 200 }
						add_ai_strategy = { type = area_priority id = africa value = -25 }
						set_country_flag = AI_STRATEGY_PER_area_priority_active 
					}
					
					#Support Sudan
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PER_support_sudan_active }
							SUD = {
								OR = {
									has_government = communism
									has_government = neutrality
								}
							}
							NOT = { has_war_with = SUD }
						}
						add_ai_strategy = { type = befriend id = "SUD" value = 50 }
						add_ai_strategy = { type = influence id = "SUD" value = 50 }
						add_ai_strategy = { type = support id = "SUD" value = 100 }
						set_country_flag = AI_STRATEGY_PER_support_sudan_active 
					}
					if = { 
						limit = {
							SUD = {
								NOT = { has_government = communism }
								NOT = { has_government = neutrality }
								has_war_with = PER
							}
							has_country_flag = AI_STRATEGY_PER_support_sudan_active 
						}
						add_ai_strategy = { type = befriend id = "SUD" value = -50 }
						add_ai_strategy = { type = influence id = "SUD" value = -50 }
						add_ai_strategy = { type = support id = "SUD" value = -100 }
						clr_country_flag = AI_STRATEGY_PER_support_sudan_active
					}	
					
					#USA relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PER_usa_relations_active }
							NOT = { is_in_faction_with = USA }
						}
						add_ai_strategy = { type = antagonize id = "USA" value = 50 }
						add_ai_strategy = { type = alliance id = "USA" value = -200 }
						add_ai_strategy = { type = support id = "USA" value = -200 }
						set_country_flag = AI_STRATEGY_PER_usa_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = USA
							has_country_flag = AI_STRATEGY_PER_usa_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "USA" value = -50 }
						add_ai_strategy = { type = alliance id = "USA" value = 200 }
						add_ai_strategy = { type = support id = "USA" value = 200 }
						clr_country_flag = AI_STRATEGY_PER_usa_relations_active
					}	
					
					#Saudi relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PER_saudi_relations_active }
							NOT = { is_in_faction_with = SAU }
						}
						add_ai_strategy = { type = antagonize id = "SAU" value = 100 }
						add_ai_strategy = { type = alliance id = "SAU" value = -200 }
						add_ai_strategy = { type = support id = "SAU" value = -200 }
						add_ai_strategy = { type = contain id = "SAU" value = 100 }
						set_country_flag = AI_STRATEGY_PER_saudi_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = SAU
							has_country_flag = AI_STRATEGY_PER_saudi_relations_active 
						}
						add_ai_strategy = { type = befriend id = "SAU" value = -100 }
						add_ai_strategy = { type = influence id = "SAU" value = 200 }
						add_ai_strategy = { type = support id = "SAU" value = 200 }
						add_ai_strategy = { type = contain id = "SAU" value = -100 }
						clr_country_flag = AI_STRATEGY_PER_saudi_relations_active
					}	
					
					#Israel relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PER_israel_relations_active }
							NOT = { is_in_faction_with = ISR }
						}
						add_ai_strategy = { type = befriend id = "ISR" value = -100 }
						add_ai_strategy = { type = conquer id = "ISR" value = 25 }
						add_ai_strategy = { type = invade id = "ISR" value = 25 }
						add_ai_strategy = { type = antagonize id = "ISR" value = 100 }
						add_ai_strategy = { type = alliance id = "ISR" value = -200 }
						add_ai_strategy = { type = support id = "ISR" value = -200 }
						add_ai_strategy = { type = contain id = "ISR" value = 100 }
						set_country_flag = AI_STRATEGY_PER_israel_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = ISR
							has_country_flag = AI_STRATEGY_PER_israel_relations_active 
						}
						add_ai_strategy = { type = befriend id = "ISR" value = 100 }
						add_ai_strategy = { type = conquer id = "ISR" value = -25 }
						add_ai_strategy = { type = invade id = "ISR" value = -25 }
						add_ai_strategy = { type = antagonize id = "ISR" value = -100 }
						add_ai_strategy = { type = alliance id = "ISR" value = 200 }
						add_ai_strategy = { type = support id = "ISR" value = 200 }
						add_ai_strategy = { type = contain id = "ISR" value = -100 }
						clr_country_flag = AI_STRATEGY_PER_israel_relations_active
					}	
					
					#Turkey relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PER_turkey_relations_active }
							NOT = { has_war_with = TUR }
						}
						add_ai_strategy = { type = befriend id = "TUR" value = 50 }
						add_ai_strategy = { type = protect id = "TUR" value = -50 }
						add_ai_strategy = { type = influence id = "TUR" value = 50 }
						add_ai_strategy = { type = antagonize id = "TUR" value = 25 }
						add_ai_strategy = { type = alliance id = "TUR" value = -50 }
						add_ai_strategy = { type = support id = "TUR" value = -50 }
						add_ai_strategy = { type = contain id = "TUR" value = 25 }
						set_country_flag = AI_STRATEGY_PER_turkey_relations_active 
					}
					if = { 
						limit = {
							has_war_with = TUR
							has_country_flag = AI_STRATEGY_PER_turkey_relations_active 
						}
						add_ai_strategy = { type = befriend id = "TUR" value = -50 }
						add_ai_strategy = { type = protect id = "TUR" value = 50 }
						add_ai_strategy = { type = influence id = "TUR" value = -50 }
						add_ai_strategy = { type = antagonize id = "TUR" value = -25 }
						add_ai_strategy = { type = alliance id = "TUR" value = 50 }
						add_ai_strategy = { type = support id = "TUR" value = 50 }
						add_ai_strategy = { type = contain id = "TUR" value = -25 }
						clr_country_flag = AI_STRATEGY_PER_turkey_relations_active
					}	
					
					#India relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PER_india_relations_active }
							NOT = { has_war_with = RAJ }
						}
						add_ai_strategy = { type = befriend id = "RAJ" value = 50 }
						add_ai_strategy = { type = protect id = "RAJ" value = 50 }
						add_ai_strategy = { type = influence id = "RAJ" value = 50 }
						add_ai_strategy = { type = antagonize id = "RAJ" value = -50 }
						add_ai_strategy = { type = alliance id = "RAJ" value = 50 }
						add_ai_strategy = { type = support id = "RAJ" value = 100 }
						add_ai_strategy = { type = contain id = "RAJ" value = -50 }
						set_country_flag = AI_STRATEGY_PER_india_relations_active 
					}
					if = { 
						limit = {
							has_war_with = RAJ
							has_country_flag = AI_STRATEGY_PER_india_relations_active 
						}
						add_ai_strategy = { type = befriend id = "RAJ" value = -50 }
						add_ai_strategy = { type = protect id = "RAJ" value = -50 }
						add_ai_strategy = { type = influence id = "RAJ" value = -50 }
						add_ai_strategy = { type = antagonize id = "RAJ" value = 50 }
						add_ai_strategy = { type = alliance id = "RAJ" value = -50 }
						add_ai_strategy = { type = support id = "RAJ" value = -100 }
						add_ai_strategy = { type = contain id = "RAJ" value = 50 }
						clr_country_flag = AI_STRATEGY_PER_india_relations_active
					}	
				}
				
				#PMR Strategies
				PMR = { 
					#Recognise Abkhazia
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_PMR_recognise_abkhazia_active }
							NOT = { has_war_with = ABK }
							NOT = { has_country_flag = Withdrawed_recognition_of_Abkhazia }
						}
						add_ai_strategy = { type = befriend id = "ABK" value = 25 }
						set_country_flag = AI_STRATEGY_PMR_recognise_abkhazia_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = ABK
								has_country_flag = Withdrawed_recognition_of_Abkhazia
							}
							has_country_flag = AI_STRATEGY_PMR_recognise_abkhazia_active 
						}
						add_ai_strategy = { type = befriend id = "ABK" value = -25 }
						clr_country_flag = AI_STRATEGY_PMR_recognise_abkhazia_active
					}
				}
				
				#QAT Strategies
				QAT = {
					#Support Government of National Accord
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_QAT_support_gnc_active }
							NOT = { has_war_with = GNC }
						}
						add_ai_strategy = { type = befriend id = "GNC" value = 50 }
						add_ai_strategy = { type = protect id = "GNC" value = 50 }
						add_ai_strategy = { type = influence id = "GNC" value = 50 }
						add_ai_strategy = { type = support id = "GNC" value = 50 }
						set_country_flag = AI_STRATEGY_QAT_support_gnc_active 
					}
					if = { 
						limit = { 
							has_war_with = GNC
							has_country_flag = AI_STRATEGY_QAT_support_gnc_active 
						}
						add_ai_strategy = { type = befriend id = "GNC" value = -50 }
						add_ai_strategy = { type = protect id = "GNC" value = -50 }
						add_ai_strategy = { type = influence id = "GNC" value = -50 }
						add_ai_strategy = { type = support id = "GNC" value = -50 }
						clr_country_flag = AI_STRATEGY_QAT_support_gnc_active
					}
					
					#Support Al-Nusra
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_QAT_support_nusra_active }
							NOT = { has_war_with = NUS }
						}
						add_ai_strategy = { type = befriend id = "NUS" value = 25 }
						add_ai_strategy = { type = influence id = "NUS" value = 25 }
						add_ai_strategy = { type = support id = "NUS" value = 150 }
						set_country_flag = AI_STRATEGY_QAT_support_nusra_active 
					}
					if = { 
						limit = { 
							has_war_with = NUS
							has_country_flag = AI_STRATEGY_QAT_support_nusra_active 
						}
						add_ai_strategy = { type = befriend id = "NUS" value = -25 }
						add_ai_strategy = { type = influence id = "NUS" value = -25 }
						add_ai_strategy = { type = support id = "NUS" value = -150 }
						clr_country_flag = AI_STRATEGY_QAT_support_nusra_active
					}
				}
				
				#RAJ Strategies
				RAJ = {	
					#India area priority (always active)
					if = {
						limit = {
							NOT = { has_country_flag = AI_STRATEGY_RAJ_area_priority_active }
						}
						add_ai_strategy = { type = area_priority id = europe value = -50 }
						add_ai_strategy = { type = area_priority id = north_america value = -50 }
						add_ai_strategy = { type = area_priority id = caribbean value = -50 }
						add_ai_strategy = { type = area_priority id = south_america value = -50 }
						add_ai_strategy = { type = area_priority id = asia value = 200 }
						add_ai_strategy = { type = area_priority id = pacific value = -50 }
						add_ai_strategy = { type = area_priority id = oceania value = -50 }
						add_ai_strategy = { type = area_priority id = middle_east value = 5 }
						add_ai_strategy = { type = area_priority id = africa value = 25 }
						set_country_flag = AI_STRATEGY_RAJ_area_priority_active 
					}
					
					#Pakistan Relations (always active)
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_RAJ_india_relations_active }
						}
						add_ai_strategy = { type = conquer id = "PAK" value = 200 }
						add_ai_strategy = { type = antagonize id = "PAK" value = 200 }
						add_ai_strategy = { type = alliance id = "PAK" value = -200 }
						add_ai_strategy = { type = support id = "PAK" value = -200 }
						add_ai_strategy = { type = contain id = "PAK" value = 200 }
						set_country_flag = AI_STRATEGY_RAJ_india_relations_active 
					}
					
					#Chinese Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_RAJ_china_relations_active }
							PAK = { is_guaranteed_by = CHI }
						}
						add_ai_strategy = { type = antagonize id = "CHI" value = 25 }
						add_ai_strategy = { type = contain id = "CHI" value = 25 }
						add_ai_strategy = { type = alliance id = "CHI" value = -50 }
						add_ai_strategy = { type = support id = "CHI" value = -50 }
						add_ai_strategy = { type = befriend id = "CHI" value = -50 }
						set_country_flag = AI_STRATEGY_RAJ_china_relations_active 
					}
					if = { 
						limit = {
							PAK = { NOT = { is_guaranteed_by = CHI } }
							has_country_flag = AI_STRATEGY_RAJ_china_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "CHI" value = -25 }
						add_ai_strategy = { type = contain id = "CHI" value = -25 }
						add_ai_strategy = { type = alliance id = "CHI" value = 50 }
						add_ai_strategy = { type = support id = "CHI" value = 50 }
						add_ai_strategy = { type = befriend id = "CHI" value = 50 }
						clr_country_flag = AI_STRATEGY_RAJ_china_relations_active
					}
					
					#USA Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_RAJ_usa_relations_active }
							PAK = { is_guaranteed_by = USA }
						}
						add_ai_strategy = { type = antagonize id = "USA" value = 25 }
						add_ai_strategy = { type = contain id = "USA" value = 25 }
						add_ai_strategy = { type = alliance id = "USA" value = -50 }
						add_ai_strategy = { type = support id = "USA" value = -50 }
						add_ai_strategy = { type = befriend id = "CHI" value = 50 }
						set_country_flag = AI_STRATEGY_RAJ_usa_relations_active 
					}
					if = { 
						limit = {
							PAK = { NOT = { is_guaranteed_by = USA } }
							has_country_flag = AI_STRATEGY_RAJ_usa_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "USA" value = -25 }
						add_ai_strategy = { type = contain id = "USA" value = -25 }
						add_ai_strategy = { type = alliance id = "USA" value = 50 }
						add_ai_strategy = { type = support id = "USA" value = 50 }
						add_ai_strategy = { type = befriend id = "CHI" value = -50 }
						clr_country_flag = AI_STRATEGY_RAJ_usa_relations_active
					}
					
					#Iran Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_RAJ_iran_relations_active }
							PAK = { NOT = { is_guaranteed_by = PER } }
						}
						add_ai_strategy = { type = antagonize id = "PER" value = -25 }
						add_ai_strategy = { type = contain id = "PER" value = -25 }
						add_ai_strategy = { type = alliance id = "PER" value = -50 }
						add_ai_strategy = { type = support id = "PER" value = 50 }
						add_ai_strategy = { type = befriend id = "PER" value = 150 }
						set_country_flag = AI_STRATEGY_RAJ_iran_relations_active 
					}
					if = { 
						limit = {
							PAK = { is_guaranteed_by = PER }
							has_country_flag = AI_STRATEGY_RAJ_iran_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "PER" value = 25 }
						add_ai_strategy = { type = contain id = "PER" value = 25 }
						add_ai_strategy = { type = alliance id = "PER" value = 50 }
						add_ai_strategy = { type = support id = "PER" value = -50 }
						add_ai_strategy = { type = befriend id = "PER" value = -150 }
						clr_country_flag = AI_STRATEGY_RAJ_iran_relations_active
					}
					
					#Russia Relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_RAJ_russia_relations_active }
							PAK = { NOT = { is_guaranteed_by = SOV } }
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = -25 }
						add_ai_strategy = { type = contain id = "SOV" value = -25 }
						add_ai_strategy = { type = alliance id = "SOV" value = 50 }
						add_ai_strategy = { type = support id = "SOV" value = 10 }
						add_ai_strategy = { type = befriend id = "SOV" value = 150 }
						set_country_flag = AI_STRATEGY_RAJ_russia_relations_active 
					}
					if = { 
						limit = {
							PAK = { is_guaranteed_by = SOV }
							has_country_flag = AI_STRATEGY_RAJ_russia_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = 25 }
						add_ai_strategy = { type = contain id = "SOV" value = 25 }
						add_ai_strategy = { type = alliance id = "SOV" value = -50 }
						add_ai_strategy = { type = support id = "SOV" value = -10 }
						add_ai_strategy = { type = befriend id = "SOV" value = -150 }
						clr_country_flag = AI_STRATEGY_RAJ_russia_relations_active
					}		
					
					#Support Afghanistan
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_RAJ_support_afghanistan_active }
							AFG = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = antagonize id = "AFG" value = -25 }
						add_ai_strategy = { type = contain id = "AFG" value = -25 }
						add_ai_strategy = { type = support id = "AFG" value = 100 }
						add_ai_strategy = { type = befriend id = "AFG" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = -50 }
						set_country_flag = AI_STRATEGY_RAJ_support_afghanistan_active 
					}
					if = { 
						limit = {
							AFG = { has_government = fascism }
							has_country_flag = AI_STRATEGY_RAJ_support_afghanistan_active 
						}
						add_ai_strategy = { type = antagonize id = "AFG" value = 25 }
						add_ai_strategy = { type = contain id = "AFG" value = 25 }
						add_ai_strategy = { type = support id = "AFG" value = -100 }
						add_ai_strategy = { type = befriend id = "AFG" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = 50 }
						clr_country_flag = AI_STRATEGY_RAJ_support_afghanistan_active
					}	
				}
				
				#ROM Strategies	
				ROM = {
					#Support Afghanistan
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_ROM_support_afghanistan_active }
							NOT = { has_war_with = AFG }
							AFG = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "AFG" value = 50 }
						add_ai_strategy = { type = support id = "AFG" value = 150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = 20 }
						set_country_flag = AI_STRATEGY_ROM_support_afghanistan_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_ROM_support_afghanistan_active 
							OR = {
								has_war_with = AFG
								AFG = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "AFG" value = -50 }
						add_ai_strategy = { type = support id = "AFG" value = -150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = -20 }
						clr_country_flag = AI_STRATEGY_ROM_support_afghanistan_active
					}
				}
				
				#SAF Strategies
				SAF = {
					#Intevene in Central African Republic
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SAF_intervene_in_car_active }
							NOT = { has_war_with = CAR }
						}
						add_ai_strategy = { type = befriend id = "CAR" value = 50 }
						add_ai_strategy = { type = protect id = "CAR" value = 50 }
						add_ai_strategy = { type = influence id = "CAR" value = 50 }
						add_ai_strategy = { type = send_volunteers_desire id = "CAR" value = 50 }
						add_ai_strategy = { type = support id = "CAR" value = 50 }
						set_country_flag = AI_STRATEGY_SAF_intervene_in_car_active 
					}
					if = { 
						limit = { 
							has_war_with = CAR
							has_country_flag = AI_STRATEGY_SAF_intervene_in_car_active 
						}
						add_ai_strategy = { type = befriend id = "CAR" value = -50 }
						add_ai_strategy = { type = protect id = "CAR" value = -50 }
						add_ai_strategy = { type = influence id = "CAR" value = -50 }
						add_ai_strategy = { type = send_volunteers_desire id = "CAR" value = -50 }
						add_ai_strategy = { type = support id = "CAR" value = -50 }
						clr_country_flag = AI_STRATEGY_SAF_intervene_in_car_active
					}
					
					#Support Kabila
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_SAF_support_kabila_active }
							NOT = { has_war_with = DRC }
							DRC = { has_country_leader = { name = "Laurent-Dsir Kabila" } }
						}
						add_ai_strategy = { type = befriend id = "DRC" value = 50 }
						set_country_flag = AI_STRATEGY_SAF_support_kabila_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = DRC
								DRC = { NOT = { has_country_leader = { name = "Laurent-Dsir Kabila" } } }
							}
							has_country_flag = AI_STRATEGY_SAF_support_kabila_active 
						}
						add_ai_strategy = { type = befriend id = "DRC" value = -50 }
						clr_country_flag = AI_STRATEGY_SAF_support_kabila_active
					}
				}
				
				#SAU Strategies
				SAU = {
					#Saudi Arabia area priority (always active)
					if = {
						limit = {
							NOT = { has_country_flag = AI_STRATEGY_SAUarea_priority_active }
						}
						add_ai_strategy = { type = area_priority id = europe value = -50 }
						add_ai_strategy = { type = area_priority id = north_america value = -25 }
						add_ai_strategy = { type = area_priority id = caribbean value = -50 }
						add_ai_strategy = { type = area_priority id = south_america value = -50 }
						add_ai_strategy = { type = area_priority id = asia value = -25 }
						add_ai_strategy = { type = area_priority id = pacific value = -50 }
						add_ai_strategy = { type = area_priority id = oceania value = -50 }
						add_ai_strategy = { type = area_priority id = middle_east value = 200 }
						add_ai_strategy = { type = area_priority id = africa value = -25 }
						set_country_flag = AI_STRATEGY_SAUarea_priority_active 
					}
					
					#Support House of Representatives
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SAU_support_hor_active }
							NOT = { has_war_with = HOR }
						}
						add_ai_strategy = { type = befriend id = "HOR" value = 50 }
						add_ai_strategy = { type = protect id = "HOR" value = 50 }
						add_ai_strategy = { type = influence id = "HOR" value = 50 }
						add_ai_strategy = { type = support id = "HOR" value = 50 }
						set_country_flag = AI_STRATEGY_SAU_support_hor_active 
					}
					if = { 
						limit = { 
							has_war_with = HOR
							has_country_flag = AI_STRATEGY_SAU_support_hor_active 
						}
						add_ai_strategy = { type = befriend id = "HOR" value = -50 }
						add_ai_strategy = { type = protect id = "HOR" value = -50 }
						add_ai_strategy = { type = influence id = "HOR" value = -50 }
						add_ai_strategy = { type = support id = "HOR" value = -50 }
						clr_country_flag = AI_STRATEGY_SAU_support_hor_active
					}
						
					#Support Al-Nusra
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SAU_support_nusra_active }
							NOT = { has_war_with = NUS }
						}
						add_ai_strategy = { type = befriend id = "NUS" value = 25 }
						add_ai_strategy = { type = support id = "NUS" value = 150 }
						set_country_flag = AI_STRATEGY_SAU_support_nusra_active 
					}
					if = { 
						limit = { 
							has_war_with = NUS
							has_country_flag = AI_STRATEGY_SAU_support_nusra_active 
						}
						add_ai_strategy = { type = befriend id = "NUS" value = -25 }
						add_ai_strategy = { type = support id = "NUS" value = -150 }
						clr_country_flag = AI_STRATEGY_SAU_support_nusra_active
					}
					
					#Support Yemen
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SAU_support_yemen_active }
							NOT = { has_war_with = YEM }
						}
						add_ai_strategy = { type = befriend id = "YEM" value = 100 }
						add_ai_strategy = { type = protect id = "YEM" value = 100 }
						add_ai_strategy = { type = influence id = "YEM" value = 100 }
						add_ai_strategy = { type = support id = "YEM" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "YEM" value = 200 }
						set_country_flag = AI_STRATEGY_SAU_support_yemen_active 
					}
					if = { 
						limit = {
							has_war_with = YEM
							has_country_flag = AI_STRATEGY_SAU_support_yemen_active 
						}
						add_ai_strategy = { type = befriend id = "YEM" value = -100 }
						add_ai_strategy = { type = protect id = "YEM" value = -100 }
						add_ai_strategy = { type = influence id = "YEM" value = -100 }
						add_ai_strategy = { type = support id = "YEM" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "YEM" value = -200 }
						clr_country_flag = AI_STRATEGY_SAU_support_yemen_active
					}
					
					#Oman relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SAU_oman_relations_active }
							NOT = { has_war_with = OMA }
							has_opinion_modifier = Gulf_Cooperation_Council_Relations
						}
						add_ai_strategy = { type = befriend id = "OMA" value = 250 }
						add_ai_strategy = { type = alliance id = "OMA" value = 250 }
						set_country_flag = AI_STRATEGY_SAU_oman_relations_active 
					}
					if = { 
						limit = {
							has_war_with = YEM
							NOT = { has_opinion_modifier = Gulf_Cooperation_Council_Relations }
							has_country_flag = AI_STRATEGY_SAU_oman_relations_active 
						}
						add_ai_strategy = { type = befriend id = "OMA" value = -250 }
						add_ai_strategy = { type = alliance id = "OMA" value = -250 }
						clr_country_flag = AI_STRATEGY_SAU_oman_relations_active
					}
					
					#Iran relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SAU_iran_relations_active }
							NOT = { is_in_faction_with = PER }
						}
						add_ai_strategy = { type = befriend id = "PER" value = -100 }
						add_ai_strategy = { type = conquer id = "PER" value = 50 }
						add_ai_strategy = { type = invade id = "PER" value = 50 }
						add_ai_strategy = { type = protect id = "PER" value = -100 }
						add_ai_strategy = { type = antagonize id = "PER" value = 200 }
						add_ai_strategy = { type = alliance id = "PER" value = -200 }
						add_ai_strategy = { type = support id = "PER" value = -200 }
						add_ai_strategy = { type = contain id = "PER" value = 200 }
						set_country_flag = AI_STRATEGY_SAU_iran_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = PER
							has_country_flag = AI_STRATEGY_SAU_iran_relations_active 
						}
						add_ai_strategy = { type = befriend id = "PER" value = 100 }
						add_ai_strategy = { type = conquer id = "PER" value = -50 }
						add_ai_strategy = { type = invade id = "PER" value = -50 }
						add_ai_strategy = { type = protect id = "PER" value = 100 }
						add_ai_strategy = { type = antagonize id = "PER" value = -200 }
						add_ai_strategy = { type = alliance id = "PER" value = 200 }
						add_ai_strategy = { type = support id = "PER" value = 200 }
						add_ai_strategy = { type = contain id = "PER" value = -200 }
						clr_country_flag = AI_STRATEGY_SAU_iran_relations_active
					}
					
					#Houthi relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SAU_houthi_relations_active }
							NOT = { is_in_faction_with = HOU }
						}
						add_ai_strategy = { type = befriend id = "HOU" value = -100 }
						add_ai_strategy = { type = conquer id = "HOU" value = 50 }
						add_ai_strategy = { type = invade id = "HOU" value = 50 }
						add_ai_strategy = { type = protect id = "HOU" value = -100 }
						add_ai_strategy = { type = antagonize id = "HOU" value = 100 }
						add_ai_strategy = { type = alliance id = "HOU" value = -200 }
						add_ai_strategy = { type = support id = "HOU" value = -100 }
						add_ai_strategy = { type = contain id = "HOU" value = 100 }
						set_country_flag = AI_STRATEGY_SAU_houthi_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = HOU
							has_country_flag = AI_STRATEGY_SAU_houthi_relations_active 
						}
						add_ai_strategy = { type = befriend id = "HOU" value = 100 }
						add_ai_strategy = { type = conquer id = "HOU" value = -50 }
						add_ai_strategy = { type = invade id = "HOU" value = -50 }
						add_ai_strategy = { type = protect id = "HOU" value = 100 }
						add_ai_strategy = { type = antagonize id = "HOU" value = -100 }
						add_ai_strategy = { type = alliance id = "HOU" value = 200 }
						add_ai_strategy = { type = support id = "HOU" value = 100 }
						add_ai_strategy = { type = contain id = "HOU" value = -100 }
						clr_country_flag = AI_STRATEGY_SAU_houthi_relations_active
					}
					
					#Hezbollah relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SAU_hezbollah_relations_active }
							NOT = { is_in_faction_with = HEZ }
						}
						add_ai_strategy = { type = befriend id = "HEZ" value = -100 }
						add_ai_strategy = { type = conquer id = "HEZ" value = 25 }
						add_ai_strategy = { type = invade id = "HEZ" value = 25 }
						add_ai_strategy = { type = protect id = "HEZ" value = -100 }
						add_ai_strategy = { type = antagonize id = "HEZ" value = 100 }
						add_ai_strategy = { type = alliance id = "HEZ" value = -200 }
						add_ai_strategy = { type = support id = "HEZ" value = -100 }
						add_ai_strategy = { type = contain id = "HEZ" value = 100 }
						set_country_flag = AI_STRATEGY_SAU_hezbollah_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = HEZ
							has_country_flag = AI_STRATEGY_SAU_hezbollah_relations_active 
						}
						add_ai_strategy = { type = befriend id = "HEZ" value = 100 }
						add_ai_strategy = { type = conquer id = "HEZ" value = -25 }
						add_ai_strategy = { type = invade id = "HEZ" value = -25 }
						add_ai_strategy = { type = protect id = "HEZ" value = 100 }
						add_ai_strategy = { type = antagonize id = "HEZ" value = -100 }
						add_ai_strategy = { type = alliance id = "HEZ" value = 200 }
						add_ai_strategy = { type = support id = "HEZ" value = 100 }
						add_ai_strategy = { type = contain id = "HEZ" value = -100 }
						clr_country_flag = AI_STRATEGY_SAU_hezbollah_relations_active
					}
					
					#Syria relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SAU_syria_relations_active }
							NOT = { is_in_faction_with = SYR }
						}
						add_ai_strategy = { type = befriend id = "SYR" value = -100 }
						add_ai_strategy = { type = conquer id = "SYR" value = 25 }
						add_ai_strategy = { type = invade id = "SYR" value = 25 }
						add_ai_strategy = { type = protect id = "SYR" value = -100 }
						add_ai_strategy = { type = antagonize id = "SYR" value = 100 }
						add_ai_strategy = { type = alliance id = "SYR" value = -200 }
						add_ai_strategy = { type = ignore id = "SYR" value = -100 }
						add_ai_strategy = { type = support id = "SYR" value = -100 }
						add_ai_strategy = { type = contain id = "SYR" value = 100 }
						set_country_flag = AI_STRATEGY_SAU_syria_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = SYR
							has_country_flag = AI_STRATEGY_SAU_syria_relations_active 
						}
						add_ai_strategy = { type = befriend id = "SYR" value = 100 }
						add_ai_strategy = { type = conquer id = "SYR" value = -25 }
						add_ai_strategy = { type = invade id = "SYR" value = -25 }
						add_ai_strategy = { type = protect id = "SYR" value = 100 }
						add_ai_strategy = { type = antagonize id = "SYR" value = -100 }
						add_ai_strategy = { type = alliance id = "SYR" value = 200 }
						add_ai_strategy = { type = ignore id = "SYR" value = 100 }
						add_ai_strategy = { type = support id = "SYR" value = 100 }
						add_ai_strategy = { type = contain id = "SYR" value = -100 }
						clr_country_flag = AI_STRATEGY_SAU_syria_relations_active
					}
					
					#No pointless volunteers
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SAU_limit_volunteers_active }
							threat < 0.5
						}
						add_ai_strategy = { type = send_volunteers_desire id = "ROJ" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "TUA" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "PAK" value = 100 }
						set_country_flag = AI_STRATEGY_SAU_limit_volunteers_active 
					}
					if = { 
						limit = {
							threat > 0.5
							has_country_flag = AI_STRATEGY_SAU_limit_volunteers_active 
						}
						add_ai_strategy = { type = send_volunteers_desire id = "ROJ" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "TUA" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "PAK" value = -100 }
						clr_country_flag = AI_STRATEGY_SAU_limit_volunteers_active
					}
				}
				
				#SER Strategies
				SER = { 
					#Kosovo relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SER_kosovo_relations_active }
							NOT = { KOS = { is_subject_of = SER } }
						}
						add_ai_strategy = { type = antagonize id = "KOS" value = 50 }
						add_ai_strategy = { type = conquer id = "KOS" value = 50 }
						set_country_flag = AI_STRATEGY_SER_kosovo_relations_active 
					}
					if = { 
						limit = { 
							KOS = { is_subject_of = SER }
							has_country_flag = AI_STRATEGY_SER_kosovo_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "KOS" value = -50 }
						add_ai_strategy = { type = conquer id = "KOS" value = -50 }
						clr_country_flag = AI_STRATEGY_SER_kosovo_relations_active
					}
				}
				
				#SHA Strategies
				SHA = { 
					#Morocco relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SHA_morocco_relations_active }
							NOT = { owns_state = 373 }
						}
						add_ai_strategy = { type = antagonize id = "KOS" value = 50 }
						add_ai_strategy = { type = contain id = "KOS" value = 100 }
						add_ai_strategy = { type = conquer id = "KOS" value = 50 }
						set_country_flag = AI_STRATEGY_SHA_morocco_relations_active 
					}
					if = { 
						limit = { 
							owns_state = 373
							has_country_flag = AI_STRATEGY_SHA_morocco_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "KOS" value = -50 }
						add_ai_strategy = { type = contain id = "KOS" value = -100 }
						add_ai_strategy = { type = conquer id = "KOS" value = -50 }
						clr_country_flag = AI_STRATEGY_SHA_morocco_relations_active
					}
				}
				
				#SHB Strategies
				SHB = { 
					#Conquer somaliland
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SHB_conquer_somaliland_active }
							NOT = { owns_state = 237 }
							NOT = { owns_state = 238 }
							OR = {
								has_government = nationalist
								has_government = fascism
							}
						}
						add_ai_strategy = { type = antagonize id = "SML" value = 100 }
						add_ai_strategy = { type = conquer id = "SML" value = 100 }
						set_country_flag = AI_STRATEGY_SHB_conquer_somaliland_active 
					}
					if = { 
						limit = { 
							OR = {
								AND = {
									owns_state = 237
									owns_state = 238
								}
								NOT = {
									has_government = nationalist
									has_government = fascism
								}
							}
							has_country_flag = AI_STRATEGY_SHB_conquer_somaliland_active 
						}
						add_ai_strategy = { type = antagonize id = "SML" value = -100 }
						add_ai_strategy = { type = conquer id = "SML" value = -100 }
						clr_country_flag = AI_STRATEGY_SHB_conquer_somaliland_active
					}
					
					#Conquer Ogaden
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SHB_conquer_ogaden_active }
							NOT = { owns_state = 236 }
							OR = {
								has_government = nationalist
								has_government = fascism
							}
						}
						add_ai_strategy = { type = antagonize id = "ETH" value = 100 }
						add_ai_strategy = { type = conquer id = "ETH" value = 100 }
						set_country_flag = AI_STRATEGY_SHB_conquer_ogaden_active 
					}
					if = { 
						limit = { 
							OR = {
								owns_state = 236
								NOT = {
									has_government = nationalist
									has_government = fascism
								}
							}
							has_country_flag = AI_STRATEGY_SHB_conquer_ogaden_active 
						}
						add_ai_strategy = { type = antagonize id = "ETH" value = -100 }
						add_ai_strategy = { type = conquer id = "ETH" value = -100 }
						clr_country_flag = AI_STRATEGY_SHB_conquer_ogaden_active
					}
				}
				
				#SOM Strategies
				SOM = { 
					#Conquer somaliland
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SOM_conquer_somaliland_active }
							NOT = { owns_state = 237 }
							NOT = { owns_state = 238 }
							OR = {
								has_government = nationalist
								has_government = fascism
							}
						}
						add_ai_strategy = { type = antagonize id = "SML" value = 100 }
						add_ai_strategy = { type = conquer id = "SML" value = 100 }
						set_country_flag = AI_STRATEGY_SOM_conquer_somaliland_active 
					}
					if = { 
						limit = { 
							OR = {
								AND = {
									owns_state = 237
									owns_state = 238
								}
								NOT = {
									has_government = nationalist
									has_government = fascism
								}
							}
							has_country_flag = AI_STRATEGY_SOM_conquer_somaliland_active 
						}
						add_ai_strategy = { type = antagonize id = "SML" value = -100 }
						add_ai_strategy = { type = conquer id = "SML" value = -100 }
						clr_country_flag = AI_STRATEGY_SOM_conquer_somaliland_active
					}
					
					#Conquer Ogaden
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SOM_conquer_ogaden_active }
							NOT = { owns_state = 236 }
							OR = {
								has_government = nationalist
								has_government = fascism
							}
						}
						add_ai_strategy = { type = antagonize id = "ETH" value = 100 }
						add_ai_strategy = { type = conquer id = "ETH" value = 100 }
						set_country_flag = AI_STRATEGY_SOM_conquer_ogaden_active 
					}
					if = { 
						limit = { 
							OR = {
								owns_state = 236
								NOT = {
									has_government = nationalist
									has_government = fascism
								}
							}
							has_country_flag = AI_STRATEGY_SOM_conquer_ogaden_active 
						}
						add_ai_strategy = { type = antagonize id = "ETH" value = -100 }
						add_ai_strategy = { type = conquer id = "ETH" value = -100 }
						clr_country_flag = AI_STRATEGY_SOM_conquer_ogaden_active
					}
				}
				
				#SOO Strategies
				SOO = { 
					#Recognise Abkhazia
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SOO_recognise_abkhazia_active }
							NOT = { has_war_with = ABK }
							NOT = { has_country_flag = Withdrawed_recognition_of_Abkhazia }
						}
						add_ai_strategy = { type = befriend id = "ABK" value = 25 }
						set_country_flag = AI_STRATEGY_SOO_recognise_abkhazia_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = ABK
								has_country_flag = Withdrawed_recognition_of_Abkhazia
							}
							has_country_flag = AI_STRATEGY_SOO_recognise_abkhazia_active 
						}
						add_ai_strategy = { type = befriend id = "ABK" value = -25 }
						clr_country_flag = AI_STRATEGY_SOO_recognise_abkhazia_active
					}
				}
				
				#SOV Strategies
				SOV = { 
					#Russia area priority (always active)
					if = {
						limit = {
							NOT = { has_country_flag = AI_STRATEGY_SOV_area_priority_active }
						}
						add_ai_strategy = { type = area_priority id = europe value = 200 }
						add_ai_strategy = { type = area_priority id = north_america value = 50 }
						add_ai_strategy = { type = area_priority id = caribbean value = 50 }
						add_ai_strategy = { type = area_priority id = south_america value = 50 }
						add_ai_strategy = { type = area_priority id = asia value = 150 }
						add_ai_strategy = { type = area_priority id = pacific value = 50 }
						add_ai_strategy = { type = area_priority id = oceania value = 50 }
						add_ai_strategy = { type = area_priority id = middle_east value = 150 }
						add_ai_strategy = { type = area_priority id = africa value = 50 }
						set_country_flag = AI_STRATEGY_SOV_area_priority_active 
					}
					
					#Recognise Abkhazia
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SOV_recognise_abkhazia_active }
							NOT = { has_war_with = ABK }
							NOT = { has_country_flag = Withdrawed_recognition_of_Abkhazia }
						}
						add_ai_strategy = { type = befriend id = "ABK" value = 25 }
						set_country_flag = AI_STRATEGY_SOV_recognise_abkhazia_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = ABK
								has_country_flag = Withdrawed_recognition_of_Abkhazia
							}
							has_country_flag = AI_STRATEGY_SOV_recognise_abkhazia_active 
						}
						add_ai_strategy = { type = befriend id = "ABK" value = -25 }
						clr_country_flag = AI_STRATEGY_SOV_recognise_abkhazia_active
					}
					
					#Support House of Representatives
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SOV_support_hor_active }
							NOT = { has_war_with = HOR }
						}
						add_ai_strategy = { type = befriend id = "HOR" value = 50 }
						add_ai_strategy = { type = protect id = "HOR" value = 50 }
						add_ai_strategy = { type = influence id = "HOR" value = 50 }
						add_ai_strategy = { type = support id = "HOR" value = 50 }
						set_country_flag = AI_STRATEGY_SOV_support_hor_active 
					}
					if = { 
						limit = { 
							has_war_with = HOR
							has_country_flag = AI_STRATEGY_SOV_support_hor_active 
						}
						add_ai_strategy = { type = befriend id = "HOR" value = -50 }
						add_ai_strategy = { type = protect id = "HOR" value = -50 }
						add_ai_strategy = { type = influence id = "HOR" value = -50 }
						add_ai_strategy = { type = support id = "HOR" value = -50 }
						clr_country_flag = AI_STRATEGY_SOV_support_hor_active
					}
					
					#Georgian relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SOV_georgia_relations_active }
							NOT = { is_in_faction_with = GEO }
						}
						add_ai_strategy = { type = contain id = "GEO" value = 100 }
						add_ai_strategy = { type = protect id = "SOO" value = 50 }
						add_ai_strategy = { type = protect id = "ABK" value = 50 }
						set_country_flag = AI_STRATEGY_SOV_georgia_relations_active 
					}
					if = { 
						limit = { 
							is_in_faction_with = GEO
							has_country_flag = AI_STRATEGY_SOV_georgia_relations_active 
						}
						add_ai_strategy = { type = contain id = "GEO" value = -100 }
						add_ai_strategy = { type = protect id = "SOO" value = -50 }
						add_ai_strategy = { type = protect id = "ABK" value = -50 }
						clr_country_flag = AI_STRATEGY_SOV_georgia_relations_active
					}
					
					#Ukrainian relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SOV_ukraine_relations_active }
							NOT = { is_in_faction_with = UKR }
						}
						add_ai_strategy = { type = contain id = "UKR" value = 50 }
						add_ai_strategy = { type = antagonize id = "UKR" value = 25 }
						add_ai_strategy = { type = befriend id = "NOV" value = 50 }
						add_ai_strategy = { type = support id = "NOV" value = 50 }
						add_ai_strategy = { type = send_volunteers_desire id = "NOV" value = 100 }
						set_country_flag = AI_STRATEGY_SOV_ukraine_relations_active 
					}
					if = { 
						limit = { 
							is_in_faction_with = UKR
							has_country_flag = AI_STRATEGY_SOV_ukraine_relations_active 
						}
						add_ai_strategy = { type = contain id = "UKR" value = -50 }
						add_ai_strategy = { type = antagonize id = "UKR" value = -25 }
						add_ai_strategy = { type = befriend id = "NOV" value = -50 }
						add_ai_strategy = { type = support id = "NOV" value = -50 }
						add_ai_strategy = { type = send_volunteers_desire id = "NOV" value = -100 }
						clr_country_flag = AI_STRATEGY_SOV_ukraine_relations_active
					}
					
					#Syrian relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SOV_syria_relations_active }
							NOT = { has_war_with = SYR }
						}
						add_ai_strategy = { type = befriend id = "SYR" value = 225 }
						add_ai_strategy = { type = protect id = "SYR" value = 200 }
						add_ai_strategy = { type = support id = "SYR" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "SYR" value = 200 }
						set_country_flag = AI_STRATEGY_SOV_syria_relations_active 
					}
					if = { 
						limit = { 
							has_war_with = SYR
							has_country_flag = AI_STRATEGY_SOV_syria_relations_active 
						}
						add_ai_strategy = { type = befriend id = "SYR" value = -225 }
						add_ai_strategy = { type = protect id = "SYR" value = -200 }
						add_ai_strategy = { type = support id = "SYR" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "SYR" value = -200 }
						clr_country_flag = AI_STRATEGY_SOV_syria_relations_active
					}
					
					#USA relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SOV_usa_relations_active }
							NOT = { is_in_faction_with = USA }
						}
						add_ai_strategy = { type = antagonize id = "SYR" value = 50 }
						add_ai_strategy = { type = alliance id = "SYR" value = -200 }
						add_ai_strategy = { type = support id = "SYR" value = -200 }
						set_country_flag = AI_STRATEGY_SOV_usa_relations_active 
					}
					if = { 
						limit = { 
							is_in_faction_with = USA
							has_country_flag = AI_STRATEGY_SOV_usa_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "SYR" value = -50 }
						add_ai_strategy = { type = alliance id = "SYR" value = 200 }
						add_ai_strategy = { type = support id = "SYR" value = 200 }
						clr_country_flag = AI_STRATEGY_SOV_usa_relations_active
					}
					
					#Saudi relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SOV_saudi_relations_active }
							has_opinion_modifier = Arabian_Peninsula_Russia_Economical_Relations
						}
						add_ai_strategy = { type = befriend id = "SAU" value = 100 }
						add_ai_strategy = { type = alliance id = "SAU" value = 100 }
						add_ai_strategy = { type = befriend id = "UAE" value = 100 }
						add_ai_strategy = { type = alliance id = "UAE" value = 100 }
						add_ai_strategy = { type = befriend id = "QAT" value = 100 }
						add_ai_strategy = { type = alliance id = "QAT" value = 100 }
						set_country_flag = AI_STRATEGY_SOV_saudi_relations_active 
					}
					if = { 
						limit = { 
							NOT = { has_opinion_modifier = Arabian_Peninsula_Russia_Economical_Relations }
							has_country_flag = AI_STRATEGY_SOV_saudi_relations_active 
						}
						add_ai_strategy = { type = befriend id = "SAU" value = -100 }
						add_ai_strategy = { type = alliance id = "SAU" value = -100 }
						add_ai_strategy = { type = befriend id = "UAE" value = -100 }
						add_ai_strategy = { type = alliance id = "UAE" value = -100 }
						add_ai_strategy = { type = befriend id = "QAT" value = -100 }
						add_ai_strategy = { type = alliance id = "QAT" value = -100 }
						clr_country_flag = AI_STRATEGY_SOV_saudi_relations_active
					}
				}
				
				#SSU Strategies
				SSU = {
					#Support Sudanese opposition
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_SSU_support_srf_active }
							NOT = { has_war_with = SRF }
						}
						add_ai_strategy = { type = befriend id = "SRF" value = 50 }
						add_ai_strategy = { type = protect id = "SRF" value = 50 }
						add_ai_strategy = { type = influence id = "SRF" value = 50 }
						add_ai_strategy = { type = support id = "SRF" value = 50 }
						add_ai_strategy = { type = send_volunteers_desire id = "SRF" value = 50 }
						set_country_flag = AI_STRATEGY_SSU_support_srf_active 
					}
					if = { 
						limit = { 
							has_country_flag = AI_STRATEGY_SSU_support_srf_active 
							has_war_with = SRF
						}
						add_ai_strategy = { type = befriend id = "SRF" value = -50 }
						add_ai_strategy = { type = protect id = "SRF" value = -50 }
						add_ai_strategy = { type = influence id = "SRF" value = -50 }
						add_ai_strategy = { type = support id = "SRF" value = -50 }
						add_ai_strategy = { type = send_volunteers_desire id = "SRF" value = -50 }
						clr_country_flag = AI_STRATEGY_SSU_support_srf_active
					}
				}
				
				#SUD Strategies
				SUD = {
					#Support Government of National Accord
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SUD_support_gnc_active }
							NOT = { has_war_with = GNC }
						}
						add_ai_strategy = { type = befriend id = "GNC" value = 50 }
						add_ai_strategy = { type = protect id = "GNC" value = 50 }
						add_ai_strategy = { type = influence id = "GNC" value = 50 }
						add_ai_strategy = { type = support id = "GNC" value = 50 }
						set_country_flag = AI_STRATEGY_SUD_support_gnc_active 
					}
					if = { 
						limit = { 
							has_war_with = GNC
							has_country_flag = AI_STRATEGY_SUD_support_gnc_active 
						}
						add_ai_strategy = { type = befriend id = "GNC" value = -50 }
						add_ai_strategy = { type = protect id = "GNC" value = -50 }
						add_ai_strategy = { type = influence id = "GNC" value = -50 }
						add_ai_strategy = { type = support id = "GNC" value = -50 }
						clr_country_flag = AI_STRATEGY_SUD_support_gnc_active
					}
					
					#Support AGF
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SUD_support_agf_active }
							NOT = { has_war_with = AGF }
						}
						add_ai_strategy = { type = befriend id = "AGF" value = 50 }
						add_ai_strategy = { type = protect id = "AGF" value = 50 }
						add_ai_strategy = { type = influence id = "AGF" value = 50 }
						add_ai_strategy = { type = support id = "AGF" value = 50 }
						set_country_flag = AI_STRATEGY_SUD_support_agf_active 
					}
					if = { 
						limit = { 
							has_war_with = AGF
							has_country_flag = AI_STRATEGY_SUD_support_agf_active 
						}
						add_ai_strategy = { type = befriend id = "AGF" value = -50 }
						add_ai_strategy = { type = protect id = "AGF" value = -50 }
						add_ai_strategy = { type = influence id = "AGF" value = -50 }
						add_ai_strategy = { type = support id = "AGF" value = -50 }
						clr_country_flag = AI_STRATEGY_SUD_support_agf_active
					}
					
					#Support Yemen
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_SUD_support_yemen_active }
							NOT = { has_war_with = YEM }
						}
						add_ai_strategy = { type = befriend id = "YEM" value = 100 }
						add_ai_strategy = { type = protect id = "YEM" value = 100 }
						add_ai_strategy = { type = influence id = "YEM" value = 100 }
						add_ai_strategy = { type = support id = "YEM" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "YEM" value = 200 }
						set_country_flag = AI_STRATEGY_SUD_support_yemen_active 
					}
					if = { 
						limit = {
							has_war_with = YEM
							has_country_flag = AI_STRATEGY_SUD_support_yemen_active 
						}
						add_ai_strategy = { type = befriend id = "YEM" value = -100 }
						add_ai_strategy = { type = protect id = "YEM" value = -100 }
						add_ai_strategy = { type = influence id = "YEM" value = -100 }
						add_ai_strategy = { type = support id = "YEM" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "YEM" value = -200 }
						clr_country_flag = AI_STRATEGY_SUD_support_yemen_active
					}
					
					#Support Kabila
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_SUD_support_kabila_active }
							NOT = { has_war_with = DRC }
							DRC = { has_country_leader = { name = "Laurent-Dsir Kabila" } }
						}
						add_ai_strategy = { type = befriend id = "DRC" value = 50 }
						add_ai_strategy = { type = support id = "DRC" value = 100 }
						set_country_flag = AI_STRATEGY_SUD_support_kabila_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = DRC
								DRC = { NOT = { has_country_leader = { name = "Laurent-Dsir Kabila" } } }
							}
							has_country_flag = AI_STRATEGY_SUD_support_kabila_active 
						}
						add_ai_strategy = { type = befriend id = "DRC" value = -50 }
						add_ai_strategy = { type = support id = "DRC" value = -100 }
						clr_country_flag = AI_STRATEGY_SUD_support_kabila_active
					}
				}
				
				#TAI Strategies
				TAI = {
					#Antagonize China
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_TAI_antagonize_china_active }
							has_government = democratic
						}
						add_ai_strategy = { type = antagonize id = "TAI" value = 200 }
						add_ai_strategy = { type = conquer id = "TAI" value = 100 }
						set_country_flag = AI_STRATEGY_TAI_antagonize_china_active 
					}
					if = { 
						limit = { 
							NOT = { has_government = democratic }
							has_country_flag = AI_STRATEGY_TAI_antagonize_china_active 
						}
						add_ai_strategy = { type = antagonize id = "TAI" value = -200 }
						add_ai_strategy = { type = conquer id = "TAI" value = -100 }
						clr_country_flag = AI_STRATEGY_TAI_antagonize_china_active
					}
				}
				
				#TAL Strategies
				TAL = {
					#Support Al-Shabaab
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_TAL_support_al_shabaab_active }
							NOT = { has_war_with = SHB }
							has_government = fascism
							SHB = { has_government = fascism }
						}
						add_ai_strategy = { type = befriend id = "SHB" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SHB" value = 100 }
						add_ai_strategy = { type = support id = "SHB" value = 200 }
						set_country_flag = AI_STRATEGY_TAL_support_al_shabaab_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = SHB
								NOT = { has_government = fascism }
								SHB = { NOT = { has_government = fascism } }
							}
							has_country_flag = AI_STRATEGY_TAL_support_al_shabaab_active 
						}
						add_ai_strategy = { type = befriend id = "SHB" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SHB" value = -100 }
						add_ai_strategy = { type = support id = "SHB" value = -200 }
						clr_country_flag = AI_STRATEGY_TAL_support_al_shabaab_active
					}
					
					#Support TTP
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_TAL_support_ttp_active }
							NOT = { has_war_with = TTP }
							has_government = fascism
							TTP = { has_government = fascism }
						}
						add_ai_strategy = { type = befriend id = "TTP" value = 100 }
						add_ai_strategy = { type = protect id = "TTP" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "TTP" value = 300 }
						add_ai_strategy = { type = support id = "TTP" value = 200 }
						set_country_flag = AI_STRATEGY_TAL_support_ttp_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = TTP
								NOT = { has_government = fascism }
								TTP = { NOT = { has_government = fascism } }
							}
							has_country_flag = AI_STRATEGY_TAL_support_ttp_active 
						}
						add_ai_strategy = { type = befriend id = "TTP" value = -100 }
						add_ai_strategy = { type = protect id = "TTP" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "TTP" value = -300 }
						add_ai_strategy = { type = support id = "TTP" value = -200 }
						clr_country_flag = AI_STRATEGY_TAL_support_ttp_active
					}
				}
				
				#TTP Strategies
				TTP = {
					#Support Al-Shabaab
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_TTP_support_al_shabaab_active }
							NOT = { has_war_with = SHB }
							has_government = fascism
							SHB = { has_government = fascism }
						}
						add_ai_strategy = { type = befriend id = "SHB" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SHB" value = 100 }
						add_ai_strategy = { type = support id = "SHB" value = 200 }
						set_country_flag = AI_STRATEGY_TTP_support_al_shabaab_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = SHB
								NOT = { has_government = fascism }
								SHB = { NOT = { has_government = fascism } }
							}
							has_country_flag = AI_STRATEGY_TTP_support_al_shabaab_active 
						}
						add_ai_strategy = { type = befriend id = "SHB" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SHB" value = -100 }
						add_ai_strategy = { type = support id = "SHB" value = -200 }
						clr_country_flag = AI_STRATEGY_TTP_support_al_shabaab_active
					}
					
					#Support Taliban
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_TTP_support_taliban_active }
							NOT = { has_war_with = TAL }
							has_government = fascism
							TAL = { has_government = fascism }
						}
						add_ai_strategy = { type = befriend id = "TAL" value = 100 }
						add_ai_strategy = { type = protect id = "TAL" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "TAL" value = 300 }
						add_ai_strategy = { type = support id = "TAL" value = 200 }
						set_country_flag = AI_STRATEGY_TTP_support_taliban_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = TAL
								NOT = { has_government = fascism }
								TAL = { NOT = { has_government = fascism } }
							}
							has_country_flag = AI_STRATEGY_TTP_support_taliban_active 
						}
						add_ai_strategy = { type = befriend id = "TAL" value = -100 }
						add_ai_strategy = { type = protect id = "TAL" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "TAL" value = -300 }
						add_ai_strategy = { type = support id = "TAL" value = -200 }
						clr_country_flag = AI_STRATEGY_TTP_support_taliban_active
					}
				}
					
				#TNZ Strategis
				TNZ = {
					#Support Kabila
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_TNZ_support_kabila_active }
							NOT = { has_war_with = DRC }
							DRC = { has_country_leader = { name = "Laurent-Dsir Kabila" } }
						}
						add_ai_strategy = { type = befriend id = "DRC" value = 50 }
						set_country_flag = AI_STRATEGY_TNZ_support_kabila_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = DRC
								DRC = { NOT = { has_country_leader = { name = "Laurent-Dsir Kabila" } } }
							}
							has_country_flag = AI_STRATEGY_TNZ_support_kabila_active 
						}
						add_ai_strategy = { type = befriend id = "DRC" value = -50 }
						clr_country_flag = AI_STRATEGY_TNZ_support_kabila_active
					}
				}
				
				#TUR Strategies
				TUR = {
					#Support Government of National Accord
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_TUR_support_gnc_active }
							NOT = { has_war_with = GNC }
						}
						add_ai_strategy = { type = befriend id = "GNC" value = 50 }
						add_ai_strategy = { type = protect id = "GNC" value = 50 }
						add_ai_strategy = { type = influence id = "GNC" value = 50 }
						add_ai_strategy = { type = support id = "GNC" value = 50 }
						set_country_flag = AI_STRATEGY_TUR_support_gnc_active 
					}
					if = { 
						limit = { 
							has_war_with = GNC
							has_country_flag = AI_STRATEGY_TUR_support_gnc_active 
						}
						add_ai_strategy = { type = befriend id = "GNC" value = -50 }
						add_ai_strategy = { type = protect id = "GNC" value = -50 }
						add_ai_strategy = { type = influence id = "GNC" value = -50 }
						add_ai_strategy = { type = support id = "GNC" value = -50 }
						clr_country_flag = AI_STRATEGY_TUR_support_gnc_active
					}
					
					#Support FSA
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_TUR_support_fsa_active }
							NOT = { has_war_with = FSA }
							FSA = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "FSA" value = 100 }
						add_ai_strategy = { type = protect id = "FSA" value = 100 }
						add_ai_strategy = { type = support id = "FSA" value = 150 }
						add_ai_strategy = { type = send_volunteers_desire id = "FSA" value = 200 }
						set_country_flag = AI_STRATEGY_TUR_support_fsa_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_TUR_support_fsa_active 
							OR = {
								has_war_with = FSA
								FSA = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "FSA" value = -50 }
						add_ai_strategy = { type = protect id = "FSA" value = -50 }
						add_ai_strategy = { type = support id = "FSA" value = -150 }
						add_ai_strategy = { type = send_volunteers_desire id = "FSA" value = -200 }
						clr_country_flag = AI_STRATEGY_TUR_support_fsa_active
					}
					
					#Support Alawites
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_TUR_support_alawites_active }
							NOT = { has_war_with = ALA }
							158 = {
								NOT = { is_core_of = ALA }
								NOT = { is_claimed_by = ALA }
							}
						}
						add_ai_strategy = { type = support id = "ALA" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "ALA" value = 200 }
						set_country_flag = AI_STRATEGY_TUR_support_alawites_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_TUR_support_alawites_active 
							OR = {
								has_war_with = FSA
								158 = {
									OR = {
										is_core_of = ALA
										is_claimed_by = ALA
									}
								}
							}
						}
						add_ai_strategy = { type = support id = "ALA" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "ALA" value = -200 }
						clr_country_flag = AI_STRATEGY_TUR_support_alawites_active
					}
				}
				
				#UAE Strategies
				UAE = {
					#Support House of Representatives
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_UAE_support_hor_active }
							NOT = { has_war_with = HOR }
						}
						add_ai_strategy = { type = befriend id = "HOR" value = 25 }
						add_ai_strategy = { type = protect id = "HOR" value = 25 }
						add_ai_strategy = { type = influence id = "HOR" value = 25 }
						set_country_flag = AI_STRATEGY_UAE_support_hor_active 
					}
					if = { 
						limit = { 
							has_war_with = HOR
							has_country_flag = AI_STRATEGY_UAE_support_hor_active 
						}
						add_ai_strategy = { type = befriend id = "HOR" value = -25 }
						add_ai_strategy = { type = protect id = "HOR" value = -25 }
						add_ai_strategy = { type = influence id = "HOR" value = -25 }
						clr_country_flag = AI_STRATEGY_UAE_support_hor_active
					}
					
					#Support Al-Nusra
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_UAE_support_nusra_active }
							NOT = { has_war_with = NUS }
						}
						add_ai_strategy = { type = befriend id = "NUS" value = 100 }
						add_ai_strategy = { type = influence id = "NUS" value = 100 }
						add_ai_strategy = { type = support id = "NUS" value = 150 }
						set_country_flag = AI_STRATEGY_UAE_support_nusra_active 
					}
					if = { 
						limit = { 
							has_war_with = NUS
							has_country_flag = AI_STRATEGY_UAE_support_nusra_active 
						}
						add_ai_strategy = { type = befriend id = "NUS" value = -100 }
						add_ai_strategy = { type = influence id = "NUS" value = -100 }
						add_ai_strategy = { type = support id = "NUS" value = -150 }
						clr_country_flag = AI_STRATEGY_UAE_support_nusra_active
					}
					
					#Support Yemen
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_UAE_support_yemen_active }
							NOT = { has_war_with = YEM }
						}
						add_ai_strategy = { type = befriend id = "YEM" value = 100 }
						add_ai_strategy = { type = protect id = "YEM" value = 100 }
						add_ai_strategy = { type = influence id = "YEM" value = 100 }
						add_ai_strategy = { type = support id = "YEM" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "YEM" value = 200 }
						set_country_flag = AI_STRATEGY_UAE_support_yemen_active 
					}
					if = { 
						limit = {
							has_war_with = YEM
							has_country_flag = AI_STRATEGY_UAE_support_yemen_active 
						}
						add_ai_strategy = { type = befriend id = "YEM" value = -100 }
						add_ai_strategy = { type = protect id = "YEM" value = -100 }
						add_ai_strategy = { type = influence id = "YEM" value = -100 }
						add_ai_strategy = { type = support id = "YEM" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "YEM" value = -200 }
						clr_country_flag = AI_STRATEGY_UAE_support_yemen_active
					}
				}
				
				#UGA Strategies
				UGA = {
					#Support South Sudan
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_UGA_support_south_sudan_active }
							NOT = { has_war_with = SSU }
						}
						add_ai_strategy = { type = befriend id = "SSU" value = 50 }
						add_ai_strategy = { type = protect id = "SSU" value = 50 }
						add_ai_strategy = { type = influence id = "SSU" value = 50 }
						add_ai_strategy = { type = support id = "SSU" value = 50 }
						add_ai_strategy = { type = send_volunteers_desire id = "SSU" value = 50 }
						set_country_flag = AI_STRATEGY_UGA_support_south_sudan_active 
					}
					if = { 
						limit = {
							has_war_with = SSU
							has_country_flag = AI_STRATEGY_UGA_support_south_sudan_active 
						}
						add_ai_strategy = { type = befriend id = "SSU" value = -50 }
						add_ai_strategy = { type = protect id = "SSU" value = -50 }
						add_ai_strategy = { type = influence id = "SSU" value = -50 }
						add_ai_strategy = { type = support id = "SSU" value = -50 }
						add_ai_strategy = { type = send_volunteers_desire id = "SSU" value = -50 }
						clr_country_flag = AI_STRATEGY_UGA_support_south_sudan_active
					}
				}
				
				#UKR Strategies
				UKR = {
					#Novorossiya relations (always active)
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_UKR_novorossiya_relations_active }
							country_exists = NOV
						}
						add_ai_strategy = { type = antagonize id = "NOV" value = 200 }
						add_ai_strategy = { type = conquer id = "NOV" value = 100 }
						add_ai_strategy = { type = contain id = "NOV" value = 100 }
						add_ai_strategy = { type = antagonize id = "SOV" value = 50 }
						set_country_flag = AI_STRATEGY_UKR_novorossiya_relations_active 
					}
				}	
					
				#USA Strategies
				USA = {
					#Russia area priority (always active)
					if = {
						limit = {
							NOT = { has_country_flag = AI_STRATEGY_USA_area_priority_active }
						}
						add_ai_strategy = { type = area_priority id = europe value = 150 }
						add_ai_strategy = { type = area_priority id = north_america value = 50 }
						add_ai_strategy = { type = area_priority id = caribbean value = 200 }
						add_ai_strategy = { type = area_priority id = south_america value = 100 }
						add_ai_strategy = { type = area_priority id = asia value = 200 }
						add_ai_strategy = { type = area_priority id = pacific value = 150 }
						add_ai_strategy = { type = area_priority id = oceania value = 150 }
						add_ai_strategy = { type = area_priority id = middle_east value = 150 }
						add_ai_strategy = { type = area_priority id = africa value = 100 }
						set_country_flag = AI_STRATEGY_USA_area_priority_active 
					}
					
					#Support Afghanistan
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_USA_support_afghanistan_active }
							NOT = { has_war_with = AFG }
							AFG = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "AFG" value = 50 }
						add_ai_strategy = { type = support id = "AFG" value = 150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = 100 }
						set_country_flag = AI_STRATEGY_USA_support_afghanistan_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_USA_support_afghanistan_active 
							OR = {
								has_war_with = AFG
								AFG = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "AFG" value = -50 }
						add_ai_strategy = { type = support id = "AFG" value = -150 }
						add_ai_strategy = { type = send_volunteers_desire id = "AFG" value = -100 }
						clr_country_flag = AI_STRATEGY_USA_support_afghanistan_active
					}
					
					#Support House of Representatives
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_support_hor_active }
							NOT = { has_war_with = HOR }
						}
						add_ai_strategy = { type = befriend id = "HOR" value = 25 }
						add_ai_strategy = { type = protect id = "HOR" value = 25 }
						add_ai_strategy = { type = influence id = "HOR" value = 25 }
						set_country_flag = AI_STRATEGY_USA_support_hor_active 
					}
					if = { 
						limit = { 
							has_war_with = HOR
							has_country_flag = AI_STRATEGY_USA_support_hor_active 
						}
						add_ai_strategy = { type = befriend id = "HOR" value = -25 }
						add_ai_strategy = { type = protect id = "HOR" value = -25 }
						add_ai_strategy = { type = influence id = "HOR" value = -25 }
						clr_country_flag = AI_STRATEGY_USA_support_hor_active
					}
					
					#Support GNA
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_support_gna_active }
							NOT = { has_war_with = GNA }
						}
						add_ai_strategy = { type = befriend id = "GNA" value = 50 }
						add_ai_strategy = { type = protect id = "GNA" value = 50 }
						add_ai_strategy = { type = influence id = "GNA" value = 50 }
						add_ai_strategy = { type = support id = "GNA" value = 50 }
						set_country_flag = AI_STRATEGY_USA_support_gna_active 
					}
					if = { 
						limit = { 
							has_war_with = GNA
							has_country_flag = AI_STRATEGY_USA_support_gna_active 
						}
						add_ai_strategy = { type = befriend id = "GNA" value = -50 }
						add_ai_strategy = { type = protect id = "GNA" value = -50 }
						add_ai_strategy = { type = influence id = "GNA" value = -50 }
						add_ai_strategy = { type = support id = "GNA" value = -50 }
						clr_country_flag = AI_STRATEGY_USA_support_gna_active
					}
					
					#Support Somalia
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_USA_support_somalia_active }
							NOT = { has_war_with = SOM }
							SOM = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "SOM" value = 100 }
						add_ai_strategy = { type = protect id = "SOM" value = 50 }
						add_ai_strategy = { type = support id = "SOM" value = 100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SOM" value = 100 }
						set_country_flag = AI_STRATEGY_USA_support_somalia_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_USA_support_somalia_active 
							OR = {
								has_war_with = SOM
								SOM = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "SOM" value = -100 }
						add_ai_strategy = { type = protect id = "SOM" value = -50 }
						add_ai_strategy = { type = support id = "SOM" value = -100 }
						add_ai_strategy = { type = send_volunteers_desire id = "SOM" value = -100 }
						clr_country_flag = AI_STRATEGY_USA_support_somalia_active
					}
					
					#Cuban relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_cuba_relations_active }
							CUB = { NOT = { has_government = democratic } }
						}
						add_ai_strategy = { type = contain id = "SOM" value = 100 }
						add_ai_strategy = { type = antagonize id = "SOM" value = 50 }
						set_country_flag = AI_STRATEGY_USA_cuba_relations_active 
					}
					if = { 
						limit = {
							CUB = { has_government = democratic }
							has_country_flag = AI_STRATEGY_USA_cuba_relations_active 
						}
						add_ai_strategy = { type = contain id = "SOM" value = -100 }
						add_ai_strategy = { type = antagonize id = "SOM" value = -50 }
						clr_country_flag = AI_STRATEGY_USA_cuba_relations_active
					}
					
					#Korea relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_korea_relations_active }
							KOR = { has_government = democratic }
							country_exists = NKO 
						}
						add_ai_strategy = { type = befriend id = "KOR" value = 50 }
						add_ai_strategy = { type = protect id = "KOR" value = 100 }
						add_ai_strategy = { type = contain id = "KOR" value = 100 }
						add_ai_strategy = { type = antagonize id = "KOR" value = 50 }
						set_country_flag = AI_STRATEGY_USA_korea_relations_active 
					}
					if = { 
						limit = {
							OR = {
								NOT = { KOR = { has_government = democratic } }
								NOT = { country_exists = NKO }
							}
							has_country_flag = AI_STRATEGY_USA_korea_relations_active 
						}
						add_ai_strategy = { type = befriend id = "KOR" value = -50 }
						add_ai_strategy = { type = protect id = "KOR" value = -100 }
						add_ai_strategy = { type = contain id = "KOR" value = -100 }
						add_ai_strategy = { type = antagonize id = "KOR" value = -50 }
						clr_country_flag = AI_STRATEGY_USA_korea_relations_active
					}
					
					#Support FSA
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_USA_support_fsa_active }
							NOT = { has_war_with = FSA }
							FSA = { NOT = { has_government = fascism } }
						}
						add_ai_strategy = { type = befriend id = "FSA" value = 50 }
						add_ai_strategy = { type = protect id = "FSA" value = 50 }
						add_ai_strategy = { type = support id = "FSA" value = 200 }
						set_country_flag = AI_STRATEGY_USA_support_fsa_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_USA_support_fsa_active 
							OR = {
								has_war_with = FSA
								FSA = { has_government = fascism }
							}
						}
						add_ai_strategy = { type = befriend id = "FSA" value = -50 }
						add_ai_strategy = { type = protect id = "FSA" value = -50 }
						add_ai_strategy = { type = support id = "FSA" value = -200 }
						clr_country_flag = AI_STRATEGY_USA_support_fsa_active
					}
					
					#Support Rojava
					if = { 
						limit = { 
							has_start_date > 2016.1.1
							NOT = { has_country_flag = AI_STRATEGY_USA_support_rojava_active }
							ROJ = { has_war_with = ISI }
						}
						add_ai_strategy = { type = protect id = "FSA" value = 500 }
						add_ai_strategy = { type = send_volunteers_desire id = "FSA" value = 500 }
						set_country_flag = AI_STRATEGY_USA_support_rojava_active 
					}
					if = { 
						limit = {
							has_country_flag = AI_STRATEGY_USA_support_rojava_active 
							NOT = { ROJ = { has_war_with = ISI } }
						}
						add_ai_strategy = { type = protect id = "FSA" value = -500 }
						add_ai_strategy = { type = send_volunteers_desire id = "FSA" value = -500 }
						clr_country_flag = AI_STRATEGY_USA_support_rojava_active
					}
					
					#China relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_china_relations_active }
							NOT = { is_in_faction_with = CHI }
						}
						add_ai_strategy = { type = antagonize id = "CHI" value = 50 }
						add_ai_strategy = { type = alliance id = "CHI" value = -200 }
						add_ai_strategy = { type = support id = "CHI" value = -200 }
						set_country_flag = AI_STRATEGY_USA_china_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = CHI
							has_country_flag = AI_STRATEGY_USA_china_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "CHI" value = -50 }
						add_ai_strategy = { type = alliance id = "CHI" value = 200 }
						add_ai_strategy = { type = support id = "CHI" value = 200 }
						clr_country_flag = AI_STRATEGY_USA_china_relations_active
					}
					
					#Russia relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_russia_relations_active }
							NOT = { is_in_faction_with = SOV }
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = 50 }
						add_ai_strategy = { type = alliance id = "SOV" value = -200 }
						add_ai_strategy = { type = contain id = "SOV" value = 25 }
						set_country_flag = AI_STRATEGY_USA_russia_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = SOV
							has_country_flag = AI_STRATEGY_USA_russia_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "SOV" value = -50 }
						add_ai_strategy = { type = alliance id = "SOV" value = 200 }
						add_ai_strategy = { type = contain id = "SOV" value = -25 }
						clr_country_flag = AI_STRATEGY_USA_russia_relations_active
					}
					
					#Israel relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_israel_relations_active }
							NOT = { has_war_with = SOV }
						}
						add_ai_strategy = { type = protect id = "ISR" value = 200 }
						add_ai_strategy = { type = befriend id = "ISR" value = 50 }
						set_country_flag = AI_STRATEGY_USA_israel_relations_active 
					}
					if = { 
						limit = {
							has_war_with = SOV
							has_country_flag = AI_STRATEGY_USA_israel_relations_active 
						}
						add_ai_strategy = { type = protect id = "ISR" value = -200 }
						add_ai_strategy = { type = befriend id = "ISR" value = -50 }
						clr_country_flag = AI_STRATEGY_USA_israel_relations_active
					}
					
					#Iran relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_iran_relations_active }
							NOT = { is_in_faction_with = PER }
						}
						add_ai_strategy = { type = contain id = "PER" value = 100 }
						add_ai_strategy = { type = antagonize id = "PER" value = 50 }
						set_country_flag = AI_STRATEGY_USA_iran_relations_active 
					}
					if = { 
						limit = {
							is_in_faction_with = PER
							has_country_flag = AI_STRATEGY_USA_iran_relations_active 
						}
						add_ai_strategy = { type = contain id = "PER" value = -100 }
						add_ai_strategy = { type = antagonize id = "PER" value = -50 }
						clr_country_flag = AI_STRATEGY_USA_iran_relations_active
					}
					
					#Mexico relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_mexico_relations_active }
							has_country_leader = { ruling_only = yes name = "Donald Trump" }
						}
						add_ai_strategy = { type = antagonize id = "MEX" value = 25 }
						set_country_flag = AI_STRATEGY_USA_mexico_relations_active 
					}
					if = { 
						limit = {
							NOT = { has_country_leader = { ruling_only = yes name = "Donald Trump" } }
							has_country_flag = AI_STRATEGY_USA_mexico_relations_active 
						}
						add_ai_strategy = { type = antagonize id = "MEX" value = -25 }
						clr_country_flag = AI_STRATEGY_USA_mexico_relations_active
					}
					
					#Build the wall
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_mexico_wall_active }
							has_completed_focus = USA_THE_WALL
						}
						add_ai_strategy = { type = antagonize id = "MEX" value = 25 }
						set_country_flag = AI_STRATEGY_USA_mexico_wall_active 
					}
					if = { 
						limit = {
							NOT = { has_completed_focus = USA_THE_WALL }
							has_country_flag = AI_STRATEGY_USA_mexico_wall_active
						}
						add_ai_strategy = { type = antagonize id = "MEX" value = -25 }
						clr_country_flag = AI_STRATEGY_USA_mexico_wall_active
					}
					
					#Greatest Fence the wall
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_mexico_fence_active }
							has_completed_focus = USA_greatest_fence
						}
						add_ai_strategy = { type = contain id = "MEX" value = 25 }
						set_country_flag = AI_STRATEGY_USA_mexico_fence_active 
					}
					if = { 
						limit = {
							NOT = { has_completed_focus = USA_greatest_fence }
							has_country_flag = AI_STRATEGY_USA_mexico_fence_active
						}
						add_ai_strategy = { type = contain id = "MEX" value = -25 }
						clr_country_flag = AI_STRATEGY_USA_mexico_fence_active
					}
					
					#EU relations
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_eu_relations_active }
							has_government = democratic
						}
						add_ai_strategy = { type = befriend id = "ENG" value = 30 }
						add_ai_strategy = { type = befriend id = "IRE" value = 30 }
						add_ai_strategy = { type = befriend id = "FRA" value = 30 }
						add_ai_strategy = { type = befriend id = "SPR" value = 30 }
						add_ai_strategy = { type = befriend id = "POR" value = 30 }
						add_ai_strategy = { type = befriend id = "AUS" value = 30 }
						add_ai_strategy = { type = befriend id = "ITA" value = 30 }
						add_ai_strategy = { type = befriend id = "BEL" value = 30 }
						add_ai_strategy = { type = befriend id = "HOL" value = 30 }
						add_ai_strategy = { type = befriend id = "LUX" value = 30 }
						add_ai_strategy = { type = befriend id = "GER" value = 30 }
						add_ai_strategy = { type = befriend id = "DEN" value = 30 }
						add_ai_strategy = { type = befriend id = "NOR" value = 30 }
						add_ai_strategy = { type = befriend id = "SWE" value = 30 }
						add_ai_strategy = { type = befriend id = "FIN" value = 30 }
						add_ai_strategy = { type = befriend id = "POL" value = 30 }
						add_ai_strategy = { type = befriend id = "EST" value = 30 }
						add_ai_strategy = { type = befriend id = "LAT" value = 30 }
						add_ai_strategy = { type = befriend id = "LIT" value = 30 }
						add_ai_strategy = { type = befriend id = "CZE" value = 30 }
						add_ai_strategy = { type = befriend id = "SLO" value = 30 }
						add_ai_strategy = { type = befriend id = "HUN" value = 30 }
						add_ai_strategy = { type = befriend id = "ROM" value = 30 }
						add_ai_strategy = { type = befriend id = "BUL" value = 30 }
						add_ai_strategy = { type = befriend id = "CRO" value = 30 }
						add_ai_strategy = { type = befriend id = "GRE" value = 30 }
						add_ai_strategy = { type = befriend id = "TUR" value = 30 }
						add_ai_strategy = { type = befriend id = "FIN" value = 30 }
						add_ai_strategy = { type = befriend id = "SWI" value = 30 }
						add_ai_strategy = { type = befriend id = "ICE" value = 30 }
						set_country_flag = AI_STRATEGY_USA_eu_relations_active 
					}
					if = { 
						limit = {
							NOT = { has_government = democratic }
							has_country_flag = AI_STRATEGY_USA_eu_relations_active
						}
						add_ai_strategy = { type = befriend id = "ENG" value = -30 }
						add_ai_strategy = { type = befriend id = "IRE" value = -30 }
						add_ai_strategy = { type = befriend id = "FRA" value = -30 }
						add_ai_strategy = { type = befriend id = "SPR" value = -30 }
						add_ai_strategy = { type = befriend id = "POR" value = -30 }
						add_ai_strategy = { type = befriend id = "AUS" value = -30 }
						add_ai_strategy = { type = befriend id = "ITA" value = -30 }
						add_ai_strategy = { type = befriend id = "BEL" value = -30 }
						add_ai_strategy = { type = befriend id = "HOL" value = -30 }
						add_ai_strategy = { type = befriend id = "LUX" value = -30 }
						add_ai_strategy = { type = befriend id = "GER" value = -30 }
						add_ai_strategy = { type = befriend id = "DEN" value = -30 }
						add_ai_strategy = { type = befriend id = "NOR" value = -30 }
						add_ai_strategy = { type = befriend id = "SWE" value = -30 }
						add_ai_strategy = { type = befriend id = "FIN" value = -30 }
						add_ai_strategy = { type = befriend id = "POL" value = -30 }
						add_ai_strategy = { type = befriend id = "EST" value = -30 }
						add_ai_strategy = { type = befriend id = "LAT" value = -30 }
						add_ai_strategy = { type = befriend id = "LIT" value = -30 }
						add_ai_strategy = { type = befriend id = "CZE" value = -30 }
						add_ai_strategy = { type = befriend id = "SLO" value = -30 }
						add_ai_strategy = { type = befriend id = "HUN" value = -30 }
						add_ai_strategy = { type = befriend id = "ROM" value = -30 }
						add_ai_strategy = { type = befriend id = "BUL" value = -30 }
						add_ai_strategy = { type = befriend id = "CRO" value = -30 }
						add_ai_strategy = { type = befriend id = "GRE" value = -30 }
						add_ai_strategy = { type = befriend id = "TUR" value = -30 }
						add_ai_strategy = { type = befriend id = "FIN" value = -30 }
						add_ai_strategy = { type = befriend id = "SWI" value = -30 }
						add_ai_strategy = { type = befriend id = "ICE" value = -30 }
						clr_country_flag = AI_STRATEGY_USA_eu_relations_active
					}
					
					#Support Pakistan against Jihadists
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_support_pakistan_active }
							PAK = {
								has_civil_war = yes
								NOT = { has_government = fascism }
								has_country_flag = fighting_jihadis
							}
						}
						add_ai_strategy = { type = send_volunteers_desire id = "PAK" value = 300 }
						add_ai_strategy = { type = support id = "PAK" value = 300 }
						set_country_flag = AI_STRATEGY_USA_support_pakistan_active 
					}
					if = { 
						limit = {
							PAK = {
								OR = {
									NOT = { has_civil_war = yes }
									has_government = fascism
									NOT = { has_country_flag = fighting_jihadis }
								}
							}
							has_country_flag = AI_STRATEGY_USA_support_pakistan_active 
						}
						add_ai_strategy = { type = send_volunteers_desire id = "PAK" value = -300 }
						add_ai_strategy = { type = support id = "PAK" value = -300 }
						clr_country_flag = AI_STRATEGY_USA_support_pakistan_active
					}
					
					#Support Egypt against Jihadists
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_USA_support_egypt_active }
							EGY = {
								has_civil_war = yes
								NOT = { has_government = fascism }
								has_country_flag = fighting_jihadis
							}
						}
						add_ai_strategy = { type = send_volunteers_desire id = "EGY" value = 300 }
						add_ai_strategy = { type = support id = "EGY" value = 300 }
						set_country_flag = AI_STRATEGY_USA_support_egypt_active 
					}
					if = { 
						limit = {
							EGY = {
								OR = {
									NOT = { has_civil_war = yes }
									has_government = fascism
									NOT = { has_country_flag = fighting_jihadis }
								}
							}
							has_country_flag = AI_STRATEGY_USA_support_egypt_active 
						}
						add_ai_strategy = { type = send_volunteers_desire id = "EGY" value = -300 }
						add_ai_strategy = { type = support id = "EGY" value = -300 }
						clr_country_flag = AI_STRATEGY_USA_support_egypt_active
					}
				}
				
				#VEN strategies
				VEN = { 
					#Recognise Abkhazia
					if = { 
						limit = { 
							NOT = { has_country_flag = AI_STRATEGY_VEN_recognise_abkhazia_active }
							NOT = { has_war_with = ABK }
							NOT = { has_country_flag = Withdrawed_recognition_of_Abkhazia }
						}
						add_ai_strategy = { type = befriend id = "ABK" value = 25 }
						set_country_flag = AI_STRATEGY_VEN_recognise_abkhazia_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = ABK
								has_country_flag = Withdrawed_recognition_of_Abkhazia
							}
							has_country_flag = AI_STRATEGY_VEN_recognise_abkhazia_active 
						}
						add_ai_strategy = { type = befriend id = "ABK" value = -25 }
						clr_country_flag = AI_STRATEGY_VEN_recognise_abkhazia_active
					}
				}
				
				#ZAM Strategies
				ZAM = {
					#Support Kabila
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_ZAM_support_kabila_active }
							NOT = { has_war_with = DRC }
							DRC = { has_country_leader = { name = "Laurent-Dsir Kabila" } }
						}
						add_ai_strategy = { type = befriend id = "DRC" value = 100 }
						add_ai_strategy = { type = support id = "DRC" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "DRC" value = 200 }
						set_country_flag = AI_STRATEGY_ZAM_support_kabila_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = DRC
								DRC = { NOT = { has_country_leader = { name = "Laurent-Dsir Kabila" } } }
							}
							has_country_flag = AI_STRATEGY_ZAM_support_kabila_active 
						}
						add_ai_strategy = { type = befriend id = "DRC" value = -100 }
						add_ai_strategy = { type = support id = "DRC" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "DRC" value = -200 }
						clr_country_flag = AI_STRATEGY_ZAM_support_kabila_active
					}
				}
				
				#ZIM Strategies
				ZIM = {
					#Support Kabila
					if = { 
						limit = { 
							has_start_date < 2001.1.1
							NOT = { has_country_flag = AI_STRATEGY_ZIM_support_kabila_active }
							NOT = { has_war_with = DRC }
							DRC = { has_country_leader = { name = "Laurent-Dsir Kabila" } }
						}
						add_ai_strategy = { type = befriend id = "DRC" value = 100 }
						add_ai_strategy = { type = support id = "DRC" value = 200 }
						add_ai_strategy = { type = send_volunteers_desire id = "DRC" value = 200 }
						set_country_flag = AI_STRATEGY_ZIM_support_kabila_active 
					}
					if = { 
						limit = { 
							OR = {
								has_war_with = DRC
								DRC = { NOT = { has_country_leader = { name = "Laurent-Dsir Kabila" } } }
							}
							has_country_flag = AI_STRATEGY_ZIM_support_kabila_active 
						}
						add_ai_strategy = { type = befriend id = "DRC" value = -100 }
						add_ai_strategy = { type = support id = "DRC" value = -200 }
						add_ai_strategy = { type = send_volunteers_desire id = "DRC" value = -200 }
						clr_country_flag = AI_STRATEGY_ZIM_support_kabila_active
					}
				}
			}
		}
	}
}