# This is a special strategy that sets the default values for different AI scores
# All AIs always load data from this strategy, which can then be either added to or overridden by data from its other strategies

ai_strategy_default = {
	icon = "gfx/interface/icons/ai_strategy_icons/placate_population.dds" # Never shown

	# These are the tax levels the AI will try to stay within, though it can go above max tax level if in a financial emergency
    # Using a different value in a strategy will override these values
	desired_tax_level = medium
	max_tax_level = high
	min_tax_level = low
	
    # The AI will avoid getting this much infamy unless it's a wargoal it really wants
    # Using a different value in a strategy will override this value
    undesirable_infamy_level = {
        value = 50
    }
    
    # The AI will never deliberately add wargoals that will bring its infamy this high
    # Using a different value in a strategy will override this value
    unacceptable_infamy_level = {
        value = 100
    }

    # How much is the AI's diplomatic acceptance, etc affected by government ideological differences
    # Using a different value in a strategy will override this value
    ideological_opinion_effect_mult = {
        value = 1.0
    }    
    
    # Chance each day that the AI will stop enacting a law that is going to spark a civil war (1 aversion should translate into ~25% chance of avoiding a civil war)
    # Using a different value in a strategy will override this value
    revolution_aversion = {
        value = 5 
    }
    
    # If base chance for law to pass is below this, don't enact it
    # Using a different value in a strategy will override this value
    min_law_chance_to_pass = {
        value = 50
    }

    # How progressive is the AI willing to be when passing laws
    # Using a different value in a strategy will override this value
    max_progressiveness = {
        value = 25
    }  
    
    # How regressive is the AI willing to be when passing laws
    # Using a different value in a strategy will override this value
    max_regressiveness = {
        value = 25 
    }
    
    # Added to base neutrality in diplomatic plays    
    # Using this value in other strategies will function additively
    diplomatic_play_neutrality = {
        value = 50

		if = {
			limit = { has_modifier = neutrality }
			add = 1000
		}
        value = 50

		if = {
			limit = { has_modifier = neutrality }
			add = 1000
		}
    }
	
    # Added to base boldness in diplomatic plays    
    # Using this value in other strategies will function additively
    diplomatic_play_boldness = {
        value = 50 

        if = { #Taiping should never surrender against China.
            limit = {
                exists = c:TPG
                THIS = c:TPG
                is_diplomatic_play_initiator = yes
            }
            add = 1000
        }

		# Never surrender example
        if = {
            limit = {
                exists = c:IUS
                THIS = c:IUS
                is_diplomatic_play_initiator = yes
            }
            add = 1000
        }
    } 
        
    # How many maneuvers are we OK with using up in the initial phase to add more wargoals
    # Using this value in other strategies will function additively (values below 0 or above 1 have no further effect)
    wargoal_maneuvers_fraction = {
        value = 0.35
        
        if = {
            limit = { 
                scope:enemy_country.country_rank > country_rank 
            }
            
            add = -0.1
        }    
    }
    
    # How many barracks relative to incorporated population should the AI have
    # Using a different value in a strategy will override this value
    wanted_army_ratio = {
        value = 200000 # 1 barrack per 200k incorporated population
    }
    
    # How many naval bases relative to incorporated coastal population should the AI have
    # Using a different value in a strategy will override this value
    wanted_navy_ratio = {
        value = 400000 # 1 naval base per 400k coastal incorporated population
    }    
    
    # Chance each update that the AI is willing to start changing a law (1 = 1%)
    # Using this value in other strategies will function additively
    change_law_chance = { 
        value = 1
    }

    # Which IGs should the AI try to put in power
    # Using this value in other strategies will function additively
    pro_interest_groups = {}
	
    # Which IGs should the AI try to avoid putting in power
    # Using this value in other strategies will function additively
    anti_interest_groups = {}    
    
    # Which institutions should the AI prefer to invest in
    # Using this value in other strategies will function additively
    institution_scores = {
        institution_colonial_affairs = {    
            value = 10        
        }                
        institution_social_security = {    
            value = 10        
        }
        institution_workplace_safety = {    
            value = 10        
        }        
        institution_schools = {    
            value = 10    
        }        
        institution_police = {    
            value = 10        
        }        
        institution_health_system = {    
            value = 10    
        }        
        institution_home_affairs = {    
            value = 10        
        }                
    }
	
	# How much value does the AI place on an obligation from another country?
	# Using this value in other strategies will function additively
	obligation_value = {
		value = 5
	
		# Compare ranks - higher rank than us has increased value, lower rank decreased value
		add = {
			value = scope:target_country.country_rank
			multiply = 2
		}
		subtract = {
			value = country_rank
			multiply = 2
		}
		
		# Domineering/Protective AI wants to use the obligation to cajole the country into a subordinate relationship
		if = {
			limit = {
				OR = {
					has_attitude = {
						who = scope:target_country
						attitude = protective
					}
					has_attitude = {
						who = scope:target_country
						attitude = domineering
					}			
				}			
			}
			add = 15
		}
		
		# Rebellious AI wants to use the obligation to break free
		if = {
			limit = {
				has_attitude = {
					who = scope:target_country
					attitude = rebellious
				}				
			}
			add = 30 
		}
		
		# Having an obligation can stop a country from attacking us
		if = {
			limit = {
				scope:target_country = {
					OR = {
						has_attitude = {
							who = root
							attitude = belligerent
						}
						has_attitude = {
							who = root
							attitude = domineering
						}			
					}
				}
			}
			add = 10 
		}

		# Small boost for generally friendly attitudes
		if = {
			limit = {
				OR = {
					has_attitude = {
						who = scope:target_country
						attitude = genial
					}
					has_attitude = {
						who = scope:target_country
						attitude = cooperative
					}						
				}			
			}
			add = 5
		}	

		# If AI doesn't care about them, they don't want an obligation
		if = {
			limit = {
				OR = {
					has_attitude = {
						who = scope:target_country
						attitude = cautious
					}
					has_attitude = {
						who = scope:target_country
						attitude = disinterested
					}				
				}			
			}
			add = -100
		}			
		
		# Countries with Economic Imperialism is always looking to bring more countries into their market
		if = {
			limit = {
				has_strategy = ai_strategy_economic_imperialism
				scope:target_country.country_rank < country_rank
				NOR = {
					scope:target_country = { is_subject = yes }
					has_diplomatic_pact = {
						who = scope:target_country
						type = customs_union
					}					
				}
			}		
			add = 5
		}
	
		multiply = {
			value = "scope:target_country.relations:root"
			multiply = 0.01
			add = 1
			min = 0.5
			max = 2.0				
		}	

		multiply = {
			value = "scope:target_country.ai_army_comparison(root)"
			divide = 10
			add = 1
			min = 0.5
			max = 2.0
		}

		multiply = {
			value = "ai_ideological_opinion(scope:target_country)"
			multiply = 0.025
			add = 1
			min = 0.5
			max = 1.5
		}

		min = 0
		max = 30
	}
	
    # Recklessness multiplies the AI's estimation of its own strength, so at recklessness 2 it believes its forces to be twice as strong as they actually are
    # The AI wants to have at least parity in what it believes its own forces to be and what the enemy forces are, so at recklessness 2 it's OK with only having 50% of the enemy strength
    # Using this value in other strategies will function additively
    recklessness = {
		value = 1
		
		# Braver against pariah countries
		if = {
			limit = {
				scope:target_country.infamy >= infamy_threshold:pariah		
			}
			add = 1
		}		
		
		# Braver against own overlord in general
		if = {
			limit = {
				is_subject_of = scope:target_country				
			}
			add = 1
		}		
	
		# Opium wars aggressor should be confident
		if = {
			limit = {
				has_journal_entry = je_opium_wars
				scope:target_country = {
					has_variable = opium_wars_target
					is_banning_goods = g:opium
				}
			}
			add = 1
		}
		
		# Caladero Wants Incan Land
		if = {
			limit = {
				AND = {
					has_journal_entry = je_caladeran_strike_southwards
					scope:target_country = {
						OR = {
							owns_entire_state_region = STATE_TILCARA
							owns_entire_state_region = STATE_ATACAMA
							owns_entire_state_region = STATE_CHARCAS
							owns_entire_state_region = STATE_TIWANAKU
							owns_entire_state_region = STATE_ANTISUYU
						}
					}
				}
			}
			add = 5
		}

		# One Kongsi war will happen
		if = {
			limit = {
				AND = {
					has_journal_entry = je_one_kongsi
					scope:target_country = {
						OR = {
							owns_entire_state_region = STATE_QINGSHUI
							owns_entire_state_region = STATE_GUANSHAN
							owns_entire_state_region = STATE_XINXIANG
							owns_entire_state_region = STATE_YONGLING
							owns_entire_state_region = STATE_ZHENG_HE
							owns_entire_state_region = STATE_WEIHUAI
							owns_entire_state_region = STATE_TAITUNG
						}
					}
				}
			}
			add = 50
		}
		
		# Unify Zhusha into Zhourao
		if = {
			limit = {
				AND = {
					has_journal_entry = je_invade_zhusha
					scope:target_country = {
						OR = {
							owns_entire_state_region = STATE_WEIZHOU
							owns_entire_state_region = STATE_JINZHOU
							owns_entire_state_region = STATE_WENCHENG
						}
					}
				}
			}
			add = 50
		}

		# Ottomans should be extremely confident against owners of sick man claims when they have the relevant JE's
		if = {
			limit = {
				OR = {
					AND = {
						has_journal_entry = je_sick_man_macedonia
						scope:target_country = {
							OR = {
								owns_entire_state_region = STATE_SKOPIA
								owns_entire_state_region = STATE_MACEDONIA
								owns_entire_state_region = STATE_WESTERN_THRACE
								owns_entire_state_region = STATE_NORTHERN_THRACE
								owns_entire_state_region = STATE_BULGARIA
							}
						}
					}
					AND = {
						has_journal_entry = je_sick_man_albania
						scope:target_country = {
							OR = {
								owns_entire_state_region = STATE_ALBANIA
							}
						}
					}
					AND = {
						has_journal_entry = je_sick_man_iraq
						scope:target_country = {
							OR = {
								owns_entire_state_region = STATE_MOSUL
								owns_entire_state_region = STATE_BAGHDAD
								owns_entire_state_region = STATE_BASRA
								owns_entire_state_region = STATE_LURISTAN
								owns_entire_state_region = STATE_KHUZESTAN
							}
						}
					}
				}
			}
			add = 10
		}

		# Ottomans should be confident against owners of claims when they have the relevant JE's
		if = {
			limit = {
				OR = {
					AND = {
						has_journal_entry = je_tur_reclaim_macedonia
						scope:target_country = {
							OR = {
								owns_entire_state_region = STATE_SKOPIA
								owns_entire_state_region = STATE_MACEDONIA
								owns_entire_state_region = STATE_WESTERN_THRACE
								owns_entire_state_region = STATE_NORTHERN_THRACE
								owns_entire_state_region = STATE_BULGARIA
							}
						}
					}
					AND = {
						has_journal_entry = je_tur_reclaim_albania
						scope:target_country = {
							OR = {
								owns_entire_state_region = STATE_ALBANIA
							}
						}
					}
					AND = {
						has_journal_entry = je_tur_reclaim_iraq
						scope:target_country = {
							OR = {
								owns_entire_state_region = STATE_MOSUL
								owns_entire_state_region = STATE_BAGHDAD
								owns_entire_state_region = STATE_BASRA
								owns_entire_state_region = STATE_LURISTAN
								owns_entire_state_region = STATE_KHUZESTAN
							}
						}
					}
					AND = {
						has_journal_entry = je_tur_reclaim_serbia
						scope:target_country = {
							OR = {
								owns_entire_state_region = STATE_NORTHERN_SERBIA
								owns_entire_state_region = STATE_SOUTHERN_SERBIA
							}
						}
					}
				}
			}
			add = 1
		}
		
		#GCO wants cuba
		if = {
			limit = {
				has_journal_entry = je_conquer_kuba_gran_colombia
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_CUBA
						}
					}
				}
			}
			add = 5
		}

		#Tiwantisuyu should at least try to get their capital back
		if = {
			limit = {
				has_journal_entry = je_tawantisuyu_reconquer_the_capital
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_CUZCO
							state_region = s:STATE_CUNTISUYU
						}
					}
				}
			}
			add = 10
		}
		
		#Spain wants an empire again africa
		if = {
			limit = {
				has_journal_entry = je_spanish_africa
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_INNER_MOROCCO
							state_region = s:STATE_LINDI
							state_region = s:STATE_ZANZIBAR
							state_region = s:STATE_TANGANYIKA
							state_region = s:STATE_KENYA
							state_region = s:STATE_RIFT_VALLEY
							state_region = s:STATE_UGANDA
						}
					}
				}
			}
			add = 10
		}
		
		#Spain wants an empire again india
		if = {
			limit = {
				has_journal_entry = je_spanish_india
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_PEGU
							state_region = s:STATE_BURMA
							state_region = s:STATE_SHAN_STATES
							state_region = s:STATE_KACHIN
							state_region = s:STATE_ASSAM
							state_region = s:STATE_NORTH_BENGAL
							state_region = s:STATE_SOUTH_BENGAL
						}
					}
				}
			}
			add = 10
		}

		#Burgundy wants an empire in india
		if = {
			limit = {
				# Todo: Should maybe be a journal in the future?
				country_has_primary_culture = cu:burgundian
				year >= 1860
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_MADRAS
							state_region = s:STATE_CIRCARS
							state_region = s:STATE_ORISSA
							state_region = s:STATE_TRAVANCORE
							state_region = s:STATE_MYSORE
							state_region = s:STATE_HYDERABAD
						}
					}
				}
			}
			add = 10
		}

		#DM wants an empire in india
		if = {
			limit = {
				# Todo: Should maybe be a journal in the future?
				OR = {
					country_has_primary_culture = cu:anglois
					country_has_primary_culture = cu:british
				}
				year >= 1860
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_NORTH_BENGAL
							state_region = s:STATE_SOUTH_BENGAL
							state_region = s:STATE_ASSAM
							state_region = s:STATE_BIHAR
							state_region = s:STATE_AWADH
						}
					}
				}
			}
			add = 10
		}

		#Scandinavia wants an empire in india
		if = {
			limit = {
				# Todo: Should maybe be a journal in the future?
				country_has_primary_culture = cu:scandinavian
				year >= 1860
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_GUJARAT
							state_region = s:STATE_SINDH
							state_region = s:STATE_RAJPUTANA
							state_region = s:STATE_PUNJAB
						}
					}
				}
			}
			add = 5
		}

		#Burgundian East Indies expansion
		if = {
			limit = {
				country_has_primary_culture = cu:burgundian
				year >= 1860
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_EAST_BORNEO
							state_region = s:STATE_WEST_BORNEO
							state_region = s:STATE_CELEBES
							state_region = s:STATE_SOUTH_SUMATRA
							state_region = s:STATE_NORTH_SUMATRA
							state_region = s:STATE_ACEH
						}
					}
				}
			}
			add = 10
		}

		#Scandinavian East Indies expansion
		if = {
			limit = {
				country_has_primary_culture = cu:scandinavian
				year >= 1860
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_NORTH_BORNEO
							state_region = s:STATE_EAST_BORNEO
							state_region = s:STATE_VISAYAS
							state_region = s:STATE_LUZON
							state_region = s:STATE_MALAYA
						}
					}
				}
			}
			add = 10
		}

		#Tiwantisuyu should at least try to get their empire back
		if = {
			limit = {
				has_journal_entry = je_tawantisuyu_reconquer_the_empire
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_LIMA
							state_region = s:STATE_CAJAMARCA
							state_region = s:STATE_ECUADOR
							state_region = s:STATE_PASTAZA
							state_region = s:STATE_CAUCA
							state_region = s:STATE_NEAR_ANTISUYU
						}
					}
				}
			}
			add = 20
		}

		# # USA should be confident against owners of their Manifest Destiny states
		# if = {
			# limit = {
				# has_journal_entry = je_manifest_destiny_mexico
				# scope:target_country = {
					# any_scope_state = {
						# OR = {
							# state_region = s:STATE_CALIFORNIA
							# state_region = s:STATE_NEVADA
							# state_region = s:STATE_UTAH
							# state_region = s:STATE_ARIZONA
							# state_region = s:STATE_NEW_MEXICO
							# state_region = s:STATE_TEXAS
						# }
					# }
				# }
			# }
			# add = 1
		# }	
		 
		# Tawantinsuyu should be confident against holders of Collasuyu
		if = {
			 limit = {
				 has_journal_entry = je_seizing_collasuyu
				 scope:target_country = {
					 any_scope_state = {
						OR = {
							state_region = s:STATE_COLLASUYU
						}
					}
				}
			}
			add = 1
		}

		# Having Rohnnst Journal should add confidence against owners of their Manifest Destiny states
		if = {
			limit = {
				has_journal_entry = je_manifest_destiny_rohnnst
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_ROHNNST
						}
					}
				}
			}		
		 	add = 1
		}

		# Competitors for the Cone should be confident against holders of Land's End
		if = {
			limit = {
				has_journal_entry = je_the_cone
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_LANDS_END
						}
					}
				}
			}
			add = 1
		}
		# Lotharingia and Odonia will try to reunite Lotharian homelands until JEs are complete or failed
		
		if = {
			limit = {
				has_journal_entry = je_reconquering_atlantia
				scope:target_country = {
					any_scope_state = {
						state_region = s:STATE_COTE_DU_CAFE
						
					}
				}
			}
			add = 1
		}
		
		if = {
			limit = {
				has_journal_entry = je_reuniting_lotharingia
				scope:target_country = {
					any_scope_state = {
						state_region = s:STATE_COTE_DU_CAFE
						state_region = s:STATE_LIBREVILLE
						state_region = s:STATE_BOURGOGNE_DU_SUD
						state_region = s:STATE_NOUVELLE_ALSACE
						state_region = s:STATE_MARCHES_OUEST
						state_region = s:STATE_CHACO_BOREAL
						state_region = s:STATE_GRAND_CHACO
						state_region = s:STATE_LORRAINE_ATLANTIQUE
						state_region = s:STATE_SERMOISE_SUR_ODON
						state_region = s:STATE_BRUXELLES_SUR_ODON
						state_region = s:STATE_TRANSFLEUVE
					}
				}
			}
			add = 1
		}
		
		if = {
			limit = {
				has_journal_entry = je_odonia_unite
				scope:target_country = {
					any_scope_state = {
						state_region = s:STATE_COTE_DU_CAFE
						state_region = s:STATE_LIBREVILLE
						state_region = s:STATE_BOURGOGNE_DU_SUD
						state_region = s:STATE_NOUVELLE_ALSACE
						state_region = s:STATE_MARCHES_OUEST
						state_region = s:STATE_CHACO_BOREAL
						state_region = s:STATE_GRAND_CHACO
						state_region = s:STATE_LORRAINE_ATLANTIQUE
						state_region = s:STATE_SERMOISE_SUR_ODON
						state_region = s:STATE_BRUXELLES_SUR_ODON
						state_region = s:STATE_TRANSFLEUVE
					}
				}
			}
			add = 1
		}
		
		if = {
			limit = {
				has_journal_entry = je_guarani_unite
				scope:target_country = {
					any_scope_state = {
						state_region = s:STATE_EOFERWIC
						state_region = s:STATE_NORTHUMBRIA
						state_region = s:STATE_WESSEX
						state_region = s:STATE_TRANSFLEUVE
						state_region = s:STATE_MARCHES_OUEST
						state_region = s:STATE_CHACO_BOREAL
						state_region = s:STATE_GRAND_CHACO
						state_region = s:STATE_SERMOISE_SUR_ODON
						state_region = s:STATE_BRUXELLES_SUR_ODON
					}
				}
			}
			add = 1
		}
		
		if = {
			limit = {
				has_journal_entry = je_smo_reconquest
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_SMOLENSK
							state_region = s:STATE_BRYANSK
						}
					}
				}
			}
			add = 5
		}

		if = {
			limit = {
				has_journal_entry = je_mus_southern_expansion
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_SLOBOZ
							state_region = s:STATE_DANU
							state_region = s:STATE_ROSTOV
							state_region = s:STATE_KURSK
						}
					}
				}
			}
			add = 5
		}	

		if = {
			limit = {
				has_journal_entry = je_rus_kazan_expansion
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_TARTARIA
							state_region = s:STATE_IDEL
						}
					}
				}
			}
			add = 5
		}	

		if = {
			limit = {
				has_journal_entry = je_restore_order_korea
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_BUSAN
							state_region = s:STATE_YANGHO
							state_region = s:STATE_SEOUL
							state_region = s:STATE_PYONGYANG
							state_region = s:STATE_SARIWON
						}
					}
				}
			}
			add = 5
		}	

		# # Ethiopian Thunderdome
		# if = {
			# limit = {
				# has_journal_entry = je_age_of_princes
				# scope:target_country = {
					# has_journal_entry = je_age_of_princes
				# }
			# }
			# add = 0.5
		# }

		# Persian Thunderdome
		if = {
			limit = {
				OR = {
					country_has_primary_culture = cu:turkmen
					country_has_primary_culture = cu:persian
				}
				scope:target_country = {
					OR = {
						country_has_primary_culture = cu:turkmen
						country_has_primary_culture = cu:persian
					}
				}
			}
			add = 1
		}

		#Italian Nightmare
		if = {
			limit = {
				has_journal_entry = je_italian_unification
				scope:target_country = {
					has_journal_entry = je_italian_unification
				}
			}
			add = 0.5
		}
		
		# # Warlord China Thunderdome
		# if = {
			# limit = {
				# has_global_variable = china_shatters
				# has_variable = warlord_state
				# scope:target_country = {
					# has_variable = warlord_state
				# }
			# }
			# add = 0.5
		# }	
	
        #Taiping
        #if = { 
        #    limit = {
        #        exists = c:TPG
        #        THIS = c:TPG
        #        scope:target_country = {
        #            has_journal_entry = je_taiping
        #        }
        #    }
        #    add = 3
        #} 

		#Saxony Destiny
		if = {
			limit = {
				has_journal_entry = je_saxon_destiny
				scope:target_country = {
					has_journal_entry = je_saxon_destiny
				}
			}
			add = 5
		}

		if = {
			limit = {
				has_journal_entry = je_reconquer_england
				scope:target_country = {
					any_scope_state = {
						state_region = s:STATE_HOME_COUNTIES
						state_region = s:STATE_LANCASHIRE
						state_region = s:STATE_YORKSHIRE
						state_region = s:STATE_MIDLANDS
						state_region = s:STATE_EAST_ANGLIA
						state_region = s:STATE_WEST_COUNTRY
					}
				}
			}
			add = 5
		}

		if = {
			limit = {
				has_journal_entry = je_conquer_wales
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_WALES
						}
					}
				}
			}
			add = 5
		}

		if = {
			limit = {
				has_journal_entry = je_fra_annex_occ
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_LANGUEDOC
							state_region = s:STATE_RHONE
							state_region = s:STATE_ARMAGNAC
							state_region = s:STATE_AUVERGNE
							state_region = s:STATE_AQUITAINE
						}
					}
				}
			}
			add = 5
		}
	}
	
	# How likely is the AI to start a diplomatic play against another country if their attitude allows for it
    # Using this value in other strategies will function additively
	aggression = {
		value = 0

		# Higher aggression against pariah countries
		if = {
			limit = {
				scope:target_country.infamy >= infamy_threshold:pariah		
			}
			add = 5
		}
		
		# Higher aggression against subject/overlord if domineering or rebellious
		if = {
			limit = {
				OR = {
					is_subject_of = scope:target_country
					scope:target_country = { is_subject_of = root }
				}				
			}
			add = 5
		}		
		
		# Very high aggression against pariah countries by Great Powers
		if = {
			limit = {
				country_rank = rank_value:great_power
				scope:target_country = {
					infamy >= infamy_threshold:pariah
					is_diplomatic_play_committed_participant = no
					is_at_war = no
				}
			}
			add = 25
		}		
		
		# Opium wars aggressor should be very, very aggressive against target if they're banning opium
		if = {
			limit = {
				has_journal_entry = je_opium_wars
				scope:target_country = {
					has_variable = opium_wars_target
					is_banning_goods = g:opium
				}
			}
			add = 100
		}
		
		if = { #Carving up China
			limit = {
				country_rank >= rank_value:great_power
				exists = c:CHI
				any_country = {
					NOT = { THIS = ROOT }
					country_is_in_europe = yes
					any_scope_state = {
						OR = {
							region = sr:region_north_china
							region = sr:region_south_china
							region = sr:region_manchuria
						}
						is_treaty_port = yes
					}
				}
				scope:target_country = {
					this ?= c:CHI
				}
			}
			add = 10
		}
		else_if = {
			limit = {
				country_rank >= rank_value:great_power
				exists = c:CHI
				any_country = {
					NOT = { THIS = ROOT }
					country_rank >= rank_value:great_power
					any_scope_state = {
						OR = {
							region = sr:region_north_china
							region = sr:region_south_china
							region = sr:region_manchuria
						}
						is_treaty_port = yes
					}
				}
				scope:target_country = {
					this ?= c:CHI
				}
			}
			add = 25
		}

		# One Kongsi war will happen
		if = {
			limit = {
				AND = {
					has_journal_entry = je_one_kongsi
					scope:target_country = {
						OR = {
							owns_entire_state_region = STATE_QINGSHUI
							owns_entire_state_region = STATE_GUANSHAN
							owns_entire_state_region = STATE_XINXIANG
							owns_entire_state_region = STATE_YONGLING
							owns_entire_state_region = STATE_ZHENG_HE
							owns_entire_state_region = STATE_WEIHUAI
							owns_entire_state_region = STATE_TAITUNG
						}
					}
				}
			}
			add = 100
		}

		# Unify Zhusha into Zhourao
		if = {
			limit = {
				AND = {
					has_journal_entry = je_invade_zhusha
					scope:target_country = {
						OR = {
							owns_entire_state_region = STATE_WEIZHOU
							owns_entire_state_region = STATE_JINZHOU
							owns_entire_state_region = STATE_WENCHENG
						}
					}
				}
			}
			add = 50
		}

		# Ottomans should be extremely aggressive against owners of Macedonia and Albania when they have the relevant JE's
		if = {
			limit = {
				OR = {
					AND = {
						has_journal_entry = je_sick_man_macedonia
						scope:target_country = {
							OR = {
								owns_entire_state_region = STATE_SKOPIA
								owns_entire_state_region = STATE_MACEDONIA
								owns_entire_state_region = STATE_WESTERN_THRACE
								owns_entire_state_region = STATE_NORTHERN_THRACE
								owns_entire_state_region = STATE_BULGARIA
							}
						}
					}
					AND = {
						has_journal_entry = je_sick_man_albania
						scope:target_country = {
							OR = {
								owns_entire_state_region = STATE_ALBANIA
							}
						}
					}
					AND = {
						has_journal_entry = je_sick_man_iraq
						scope:target_country = {
							OR = {
								owns_entire_state_region = STATE_MOSUL
								owns_entire_state_region = STATE_BAGHDAD
								owns_entire_state_region = STATE_BASRA
								owns_entire_state_region = STATE_LURISTAN
								owns_entire_state_region = STATE_KHUZESTAN
							}
						}
					}
				}
			}
			add = 100
		}

		# Ottomans should be extremely aggressive against owners of their reclaim states
		if = {
			limit = {
				OR = {
					AND = {
						has_journal_entry = je_tur_reclaim_macedonia
						scope:target_country = {
							any_scope_state = {
								OR = {
									state_region = s:STATE_SKOPIA
									state_region = s:STATE_MACEDONIA
									state_region = s:STATE_WESTERN_THRACE
									state_region = s:STATE_NORTHERN_THRACE
									state_region = s:STATE_BULGARIA
								}
							}
						}
					}
					AND = {
						has_journal_entry = je_tur_reclaim_albania
						scope:target_country = {
							any_scope_state = {
								OR = {
									state_region = s:STATE_ALBANIA
								}
							}
						}
					}
					AND = {
						has_journal_entry = je_tur_reclaim_iraq
						scope:target_country = {
							any_scope_state = {
								OR = {
									state_region = s:STATE_MOSUL
									state_region = s:STATE_BAGHDAD
									state_region = s:STATE_BASRA
									state_region = s:STATE_LURISTAN
									state_region = s:STATE_KHUZESTAN
								}
							}
						}
					}
					AND = {
						has_journal_entry = je_tur_reclaim_serbia
						scope:target_country = {
							any_scope_state = {
								OR = {
									state_region = s:STATE_NORTHERN_SERBIA
									state_region = s:STATE_SOUTHERN_SERBIA
								}
							}
						}
					}
				}
			}
			add = 100
		}
		
		#Spain wants Viceroys
		if = {
			limit = {
				has_journal_entry = je_reconquer_new_spain
				OR = {
					AND = {
						exists = c:UCA
						scope:target_country = c:UCA
					}
					AND = {
						exists = c:MEX
						scope:target_country = c:MEX
					}
					AND = {
						exists = c:LUS
						scope:target_country = c:LUS
					}
					AND = {
						exists = c:GCO
						scope:target_country = c:GCO
					}
				}
			}
			add = 100
		}
		
		#Please stop killing your vassal burgundy
		if = {
			limit = {
				root = c:BRG
				AND = {
					exists = c:NVZ
					scope:target_country = c:NVZ
				}
			}
			add = -100
		}
		
		#GCO wants cuba
		if = {
			limit = {
				has_journal_entry = je_conquer_kuba_gran_colombia
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_CUBA
						}
					}
				}
			}
			add = 100
		}

		# # USA should be extremely aggressive against owners of their Manifest Destiny states
		# if = {
			# limit = {
				# has_journal_entry = je_manifest_destiny_mexico
				# scope:target_country = {
					# any_scope_state = {
						# OR = {
							# state_region = s:STATE_CALIFORNIA
							# state_region = s:STATE_NEVADA
							# state_region = s:STATE_UTAH
							# state_region = s:STATE_ARIZONA
							# state_region = s:STATE_NEW_MEXICO
							# state_region = s:STATE_TEXAS
						# }
					# }
				# }
			# }
			# add = 100
		# }
		
		# Tawantinsuyu should be extremely aggressive against owners of Collasuyu
		if = {
			limit = {
				has_journal_entry = je_seizing_collasuyu
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_COLLASUYU
						}
					}
				}
			}
			add = 100
		}
		
		# Competitors for the Cone should be confident against holders of Land's End
		if = {
			limit = {
				has_journal_entry = je_the_cone
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_LANDS_END
						}
					}
				}
			}
			add = 100
		}

		# Lotharingia and Odonia will try to reunite Lotharian homelands until JEs are complete or failed
		if = {
			limit = {
				has_journal_entry = je_reconquering_atlantia
				scope:target_country = {
					any_scope_state = {
						state_region = s:STATE_COTE_DU_CAFE	
					}
				}
			}
			add = 100
		}
		
		if = {
			limit = {
				has_journal_entry = je_reuniting_lotharingia
				scope:target_country = {
					any_scope_state = {
						state_region = s:STATE_COTE_DU_CAFE
						state_region = s:STATE_LIBREVILLE
						state_region = s:STATE_BOURGOGNE_DU_SUD
						state_region = s:STATE_NOUVELLE_ALSACE
						state_region = s:STATE_MARCHES_OUEST
						state_region = s:STATE_CHACO_BOREAL
						state_region = s:STATE_BRUXELLES_SUR_ODON
						state_region = s:STATE_GRAND_CHACO
						state_region = s:STATE_LORRAINE_ATLANTIQUE
						state_region = s:STATE_SERMOISE_SUR_ODON
						state_region = s:STATE_BRUXELLES_SUR_ODON
						state_region = s:STATE_TRANSFLEUVE
					}
				}
			}
			add = 100
		}
		
		if = {
			limit = {
				has_journal_entry = je_odonia_unite
				scope:target_country = {
					any_scope_state = {
						state_region = s:STATE_COTE_DU_CAFE
						state_region = s:STATE_LIBREVILLE
						state_region = s:STATE_BOURGOGNE_DU_SUD
						state_region = s:STATE_NOUVELLE_ALSACE
						state_region = s:STATE_MARCHES_OUEST
						state_region = s:STATE_CHACO_BOREAL
						state_region = s:STATE_BRUXELLES_SUR_ODON
						state_region = s:STATE_GRAND_CHACO
						state_region = s:STATE_LORRAINE_ATLANTIQUE
						state_region = s:STATE_SERMOISE_SUR_ODON
						state_region = s:STATE_BRUXELLES_SUR_ODON
						state_region = s:STATE_TRANSFLEUVE
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				has_journal_entry = je_guarani_unite
				scope:target_country = {
					any_scope_state = {
						state_region = s:STATE_EOFERWIC
						state_region = s:STATE_NORTHUMBRIA
						state_region = s:STATE_WESSEX
						state_region = s:STATE_TRANSFLEUVE
						state_region = s:STATE_MARCHES_OUEST
						state_region = s:STATE_CHACO_BOREAL
						state_region = s:STATE_GRAND_CHACO
						state_region = s:STATE_SERMOISE_SUR_ODON
						state_region = s:STATE_BRUXELLES_SUR_ODON
					}
				}
			}
			add = 100
		}
		
		#Spain wants an empire again africa aggressively
		if = {
			limit = {
				has_journal_entry = je_spanish_africa
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_INNER_MOROCCO
							state_region = s:STATE_LINDI
							state_region = s:STATE_ZANZIBAR
							state_region = s:STATE_TANGANYIKA
							state_region = s:STATE_KENYA
							state_region = s:STATE_RIFT_VALLEY
							state_region = s:STATE_UGANDA
						}
					}
				}
			}
			add = 100
		}
		
		#Spain wants an empire again india aggressively
		if = {
			limit = {
				has_journal_entry = je_spanish_india
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_PEGU
							state_region = s:STATE_BURMA
							state_region = s:STATE_SHAN_STATES
							state_region = s:STATE_KACHIN
							state_region = s:STATE_ASSAM
							state_region = s:STATE_NORTH_BENGAL
							state_region = s:STATE_SOUTH_BENGAL
						}
					}
				}
			}
			add = 100
		}

		#Burgundy wants an empire again india aggressively
		if = {
			limit = {
				country_has_primary_culture = cu:burgundian
				year >= 1860
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_MADRAS
							state_region = s:STATE_CIRCARS
							state_region = s:STATE_ORISSA
							state_region = s:STATE_TRAVANCORE
							state_region = s:STATE_MYSORE
							state_region = s:STATE_HYDERABAD
						}
					}
				}
			}
			add = 100
		}

		#DM wants an empire again india aggressively
		if = {
			limit = {
				OR = {
					country_has_primary_culture = cu:anglois
					country_has_primary_culture = cu:british
				}
				year >= 1860
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_NORTH_BENGAL
							state_region = s:STATE_SOUTH_BENGAL
							state_region = s:STATE_ASSAM
							state_region = s:STATE_BIHAR
							state_region = s:STATE_AWADH
						}
					}
				}
			}
			add = 100
		}

		#Scandinavian wants an empire again india aggressively
		if = {
			limit = {
				country_has_primary_culture = cu:scandinavian
				year >= 1860
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_GUJARAT
							state_region = s:STATE_SINDH
							state_region = s:STATE_RAJPUTANA
							state_region = s:STATE_PUNJAB
						}
					}
				}
			}
			add = 100
		}

		#Burgundian East Indies
		if = {
			limit = {
				country_has_primary_culture = cu:burgundian
				year >= 1860
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_EAST_BORNEO
							state_region = s:STATE_WEST_BORNEO
							state_region = s:STATE_CELEBES
							state_region = s:STATE_SOUTH_SUMATRA
							state_region = s:STATE_NORTH_SUMATRA
							state_region = s:STATE_ACEH
						}
					}
				}
			}
			add = 100
		}

		#Scandinavian East Indies
		if = {
			limit = {
				country_has_primary_culture = cu:burgundian
				year >= 1860
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_NORTH_BORNEO
							state_region = s:STATE_EAST_BORNEO
							state_region = s:STATE_VISAYAS
							state_region = s:STATE_LUZON
							state_region = s:STATE_MALAYA
						}
					}
				}
			}
			add = 100
		}

		# Should extremely aggressive against owners of Rohnnst Manifest Destiny states
		if = {
			limit = {
				has_journal_entry = je_manifest_destiny_rohnnst
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_ROHNNST
						}
					}
				}
			}
			add = 100
		}

		# # Extra french aggression for Haiti renouncing debt payments
		# if = {
			# limit = {
				# has_variable = haiti_stops_paying_france_aggressor				
				# scope:target_country = {
					# has_variable = haiti_stops_paying_france_target
					# any_state = {
						# has_claim_by = root
					# }
				# }				
			# }
			# add = 10
		# }

		# # Extra aggression against Peru-Bolivia
		# if = {
			# limit = {
				# scope:target_country = {
					# has_journal_entry = je_peru_bolivia
				# }
				# OR = {
					# country_has_primary_culture = cu:south_andean
					# country_has_primary_culture = cu:north_andean
				# }
			# }
			# add = 25
		# }

		# # Ethiopian Thunderdome
		# if = {
			# limit = {
				# has_journal_entry = je_age_of_princes
				# scope:target_country = {
					# has_journal_entry = je_age_of_princes
				# }
			# }
			# add = 25
		# }

		# Persian Thunderdome
		if = {
			limit = {
				OR = {
					country_has_primary_culture = cu:turkmen
					country_has_primary_culture = cu:persian
				}
				scope:target_country = {
					OR = {
						country_has_primary_culture = cu:turkmen
						country_has_primary_culture = cu:persian
					}
				}
			}
			add = 25
		}

		# # Warlord China Thunderdome
		# if = {
			# limit = {
				# has_global_variable = china_shatters
				# has_variable = warlord_state
				# scope:target_country = {
					# has_variable = warlord_state
				# }
			# }
			# add = 50
		# }

		# # Veiled Protectorate
		# if = {
			# limit = {
				# has_journal_entry = je_veiled_protectorate
				# exists = c:EGY
				# scope:target_country = {
					# THIS = c:EGY
				# }
			# }
			# add = 25
		# }

		# # East India Company vs its neighbors
		# if = {
			# limit = {
				# has_journal_entry = je_consolidate_colonial_rule
				# scope:target_country = {
					# NOT = { is_subject_of = ROOT }
					# any_scope_state = {
						# OR = {
							# state_region = s:STATE_BURMA
							# state_region = s:STATE_KACHIN
							# state_region = s:STATE_SHAN_STATES
							# state_region = s:STATE_SINDH
							# state_region = s:STATE_PUNJAB
							# state_region = s:STATE_KASHMIR
							# state_region = s:STATE_PASHTUNISTAN
							# state_region = s:STATE_BALUCHISTAN
							# state_region = s:STATE_HIMALAYAS
						# }
					# }
				# }
			# }
			# add = 25
		# }

		if = { #Russian Caucasus
			limit = {
				country_has_primary_culture = cu:russian
				has_law = law_type:law_national_supremacy
				owns_entire_state_region = STATE_ASTRAKHAN
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_KUBAN
							state_region = s:STATE_DAGESTAN
						}
					}
				}
			}
			add = 15
		}

		#if = { #Russian Far East
		#	limit = {
		#		has_journal_entry = je_the_eastern_border
		#		scope:target_country = {
		#			any_scope_state = {
		#				OR = {
		#					state_region = s:STATE_OUTER_MANCHURIA
		#					state_region = s:STATE_JETISY
		#					state_region = s:STATE_TOMSK
		#					state_region = s:STATE_KIRGHIZIA
		#				}
		#			}
		#		}
		#	}
		#	add = 10
		#}

		if = { #Russian Central Asia
			limit = {
				owns_entire_state_region = STATE_URAL
				owns_entire_state_region = STATE_BASHKORTOSTAN
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_URALSK
							state_region = s:STATE_AKMOLINSK
							state_region = s:STATE_UZBEKIA
							state_region = s:STATE_SEMIRECHE
						}
					}
				}
				can_reach_target_country = yes
			}
			add = 25
		}

		if = { #Russian Central Asia
			limit = {
				owns_entire_state_region = STATE_UPPER_YENISEYSK
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_IRKUTSK
							state_region = s:STATE_TOMSK
							state_region = s:STATE_TUVA
						}
					}
				}
				can_reach_target_country = yes
			}
			add = 25
		}

		if = { #Aragon Africa
			limit = {
				owns_entire_state_region = STATE_ALGIERS
				owns_entire_state_region = STATE_TLEMCEN
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_CONSTANTINE
							state_region = s:STATE_SAHARA
						}
					}
				}
				can_reach_target_country = yes
			}
			add = 25
		}

		if = { #Ottomans Kurdish
			limit = {
				country_has_primary_culture = cu:turkish
				owns_entire_state_region = STATE_TRABZON
				owns_entire_state_region = STATE_ANKARA
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_ERZURUM
							state_region = s:STATE_DIYARBAKIR
							state_region = s:STATE_MOSUL
						}
					}
				}
				can_reach_target_country = yes
			}
			add = 25
		}

		if = {
			limit = {
				has_journal_entry = je_mus_southern_expansion
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_SLOBOZ
							state_region = s:STATE_DANU
							state_region = s:STATE_ROSTOV
							state_region = s:STATE_KURSK
						}
					}
				}
			}
			add = 100
		}	

		if = {
			limit = {
				has_journal_entry = je_rus_kazan_expansion
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_TARTARIA
							state_region = s:STATE_IDEL
						}
					}
				}
			}
			add = 100
		}	

		if = {
			limit = {
				has_journal_entry = je_restore_order_korea
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_BUSAN
							state_region = s:STATE_YANGHO
							state_region = s:STATE_SEOUL
							state_region = s:STATE_PYONGYANG
							state_region = s:STATE_SARIWON
						}
					}
				}
			}
			add = 50
		}

		if = {
			limit = {
				has_journal_entry = je_saxon_destiny
				scope:target_country = {
					has_journal_entry = je_saxon_destiny
				}
			}
			add = 25
		}

		if = {
			limit = {
				has_journal_entry = je_reconquer_england
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_HOME_COUNTIES
							state_region = s:STATE_LANCASHIRE
							state_region = s:STATE_YORKSHIRE
							state_region = s:STATE_MIDLANDS
							state_region = s:STATE_EAST_ANGLIA
							state_region = s:STATE_WEST_COUNTRY
						}
					}
				}
				can_reach_target_state = yes
			}
			add = 100
		}

		if = {
			limit = {
				has_journal_entry = je_conquer_wales
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_WALES
						}
					}
				}
				can_reach_target_state = yes
			}
			add = 100
		}

		if = {
			limit = {
				has_journal_entry = je_fra_annex_occ
				scope:target_country = {
					any_scope_state = {
						OR = {
							state_region = s:STATE_LANGUEDOC
							state_region = s:STATE_RHONE
							state_region = s:STATE_ARMAGNAC
							state_region = s:STATE_AUVERGNE
							state_region = s:STATE_AQUITAINE
						}
					}
				}
			}
			add = 100
		}

		# Aggression against radical leftists
		if = {
			limit = {	
				AND = {
					has_radical_leftist_government = no
					scope:target_country = {
						has_radical_leftist_government = yes
					}
				}
			}
			add = 0.5
		}
		
		if = {
			limit = {	
				has_radical_leftist_economy = no
				scope:target_country = {
					has_radical_leftist_economy = yes				
				}				
			}
			add = 0.5
		}

		#if = { #Indian suzerain will be aggressive against Russia
		#	limit = {
		#		AND = {
		#			c:RUS ?= {
		#				any_scope_state = {
		#					OR = {
		#						state_region = s:STATE_UZBEKIA
		#						state_region = s:STATE_KIRGHIZIA
		#						state_region = s:STATE_KHIVA
		#						state_region = s:STATE_TURKMENIA
		#						state_region = s:STATE_TAJIKISTAN
		#					}
		#				}
		#			}
		#			ROOT = {
		#				country_is_in_europe = yes
		#				OR = {
		#					any_scope_state = {
		#						OR = {
		#							region = sr:region_north_india
		#							region = sr:region_south_india
		#						}
		#						count >= 3
		#					}
		#					any_country = {
		#						is_subject_of = prev
		#						any_scope_state = {
		#							OR = {
		#								region = sr:region_north_india
		#								region = sr:region_south_india
		#							}
		#							count >= 3
		#						}
		#					}
		#				}
		#			}
		#			scope:target_country = {
		#				any_scope_state = {
		#					OR = {
		#						state_region = s:STATE_EASTERN_AFGHANISTAN
		#						state_region = s:STATE_WESTERN_AFGHANISTAN
		#						state_region = s:STATE_MOSCOW
		#					}
		#				}
		#			}
		#		}
		#	}
		#	add = 25
		#}
	}
	
	# How many levels of construction sector should the AI aim to have
    # Using this value in other strategies will function additively
    wanted_construction_sector_levels = {
        value = 0
        
        add = {
            value = gdp
            divide = 2000000 # 1 construction sector per 2 million gdp                                
        }    

        add = {
            value = total_population
            divide = 2000000 # 1 construction sector per 2 million pop                    
        }    
        
        if = {
            limit = { has_law = law_type:law_traditionalism }
            multiply = 0.75
        }
        
        if = {
            limit = { 
                OR = {
                    has_law = law_type:law_land_based_taxation 
                    has_law = law_type:law_consumption_based_taxation
                }
            }
            multiply = 0.75
        }
                
        if = {
            limit = { 
                OR = {
                    has_strategy = ai_strategy_resource_expansion
                    has_strategy = ai_strategy_industrial_expansion                
                }
            }
            multiply = 1.5        
        }        

        if = {
            limit = { has_strategy = ai_strategy_placate_population }
            multiply = 0.5        
        }
        
        if = {
            limit = { has_strategy = ai_strategy_maintain_mandate_of_heaven }
            multiply = 0.1        
        }        

        min = 1
        max = 100
	}

    # Add a multiplier to the score AI assigns to particular building groups (default 1)
    # Using this value in other strategies will result in several multiplications
    building_group_weights = {}

	# Which buildings should the AI subsidize
    # Using a different value in a strategy will override this value
	subsidies = {
		building_power_plant = should_have
		building_railway = should_have
		building_trade_center = should_have		
	}
	
	# Specifying values here will override subsidy priorities while at war
    # Using a different value in a strategy will override this value
    war_subsidies = {}    
    
    # How should the AI plan for production and trade of specific goods
    # Using a different value in a strategy will override this value

	goods_stances = {
		small_arms = {
			stance = wants_high_supply
			trigger = {
				has_technology_researched = napoleonic_warfare
			}
		}
		artillery = {
			stance = wants_high_supply
			trigger = {
				has_technology_researched = artillery
			}
		}
		ammunition = {
			stance = wants_high_supply
			trigger = {
				has_technology_researched = general_staff
			}
		}
		aeroplanes = {
			stance = wants_high_supply
			trigger = {
				has_technology_researched = military_aviation
				country_rank >= rank_value:major_power
			}
		}
		tanks = {
			stance = wants_high_supply
			trigger = {
				has_technology_researched = mobile_armor
				country_rank >= rank_value:major_power
			}
		}
		clippers = {
			stance = wants_high_supply
			trigger = {
				has_technology_researched = navigation
				NAND = {
					has_technology_researched = ironclad_tech
					has_technology_researched = gantry_cranes				
				}
				has_port = yes
				country_rank >= rank_value:major_power
			}
		}
		manowars = {
			stance = wants_high_supply
			trigger = {
				has_technology_researched = admiralty
				NAND = {
					has_technology_researched = ironclad_tech
					has_technology_researched = gantry_cranes				
				}
				has_port = yes
				country_rank >= rank_value:major_power
			}
		}	
		steamers = {
			stance = wants_high_supply
			trigger = {
				has_technology_researched = ironclad_tech
				has_technology_researched = gantry_cranes
				has_port = yes
				country_rank >= rank_value:major_power
			}
		}			
		ironclads = {
			stance = wants_high_supply
			trigger = {
				has_technology_researched = ironclad_tech
				has_technology_researched = gantry_cranes
				has_port = yes
				country_rank >= rank_value:major_power				
			}
		}	
		paper = {
			stance = wants_high_supply
			trigger = {
				has_technology_researched = centralization
				total_population >= 1000000
				NOT = { has_law = law_type:law_traditionalism }
			}
		}
		electricity = { 
			stance = wants_high_supply
			trigger = {
				has_technology_researched = electrical_generation
			}
		}			
		coal = { 
			stance = wants_high_supply
			trigger = {
				has_technology_researched = railways
			}
		}	
		engines = { 
			stance = wants_high_supply
			trigger = {
				has_technology_researched = railways
			}
		}		
		dye = { 
			stance = wants_high_supply 
			trigger = {
				has_building = building_textile_mills
				has_technology_researched = lathe
			}
		}
		silk = { 
			stance = wants_high_supply 
			trigger = {
				has_building = building_textile_mills
				total_population >= 1000000
			}
		}
		hardwood = { 
			stance = wants_high_supply 
			trigger = {
				has_building = building_furniture_manufacturies
				total_population >= 1000000
			}
		}		
	}
	
	# How many of its interests should the AI dedicate to regions with unrecognized and decentralized powers
    # Using a different value in a strategy will override this value
	colonial_interest_ratio = {
		value = 0.0

		if = {
			limit = { 
				is_country_type = recognized
				navy_size >= 25 				
			}
			add = 0.1
		}
		
		if = {
			limit = { 
				is_country_type = recognized
				navy_size >= 50 		
			}
			add = 0.1
		}		
		
		if = {
			limit = { 
				is_country_type = recognized
				navy_size >= 75 				
			}
			add = 0.1
		}		
	}

	# How important is it that the AI maintains an interest in a specific strategic region (added on top of region value calculations set in defines)
    # Using this value in other strategies will function additively
	strategic_region_scores = {
		region_japan = {	
			if = {
				limit = { # Great Powers should try to open Japan
					exists = c:JAP
					c:JAP = { has_law = law_type:law_isolationism }
					has_technology_researched = civilizing_mission	
					country_rank = rank_value:great_power
					navy_size >= 50
				}
				add = 1000
			}
			if = {
				limit = {
					exists = c:JAP
					c:JAP = { has_law = law_type:law_isolationism }
					NOT = { country_rank = rank_value:great_power }
				}
				add = -50
			}			
		}				
		region_nile_basin = {
			if = {
				limit = {
					OR = {
						AND = {
							country_rank = rank_value:great_power
							has_technology_researched = malaria_prevention
						}
						has_journal_entry = scramble_for_africa
					}						
				}
				add = 200
			}		
		}
		region_north_africa = {
			if = {
				limit = {
					OR = {
						AND = {
							country_rank = rank_value:great_power
							has_technology_researched = malaria_prevention
						}
						has_journal_entry = scramble_for_africa
					}		
				}
				add = 200
			}		
		}
		region_senegal = {
			if = {
				limit = {
					OR = {
						AND = {
							country_rank = rank_value:great_power
							has_technology_researched = malaria_prevention
						}
						has_journal_entry = scramble_for_africa
					}		
				}
				add = 200
			}		
		}
		region_niger = {
			if = {
				limit = {
					OR = {
						AND = {
							country_rank = rank_value:great_power
							has_technology_researched = malaria_prevention
						}
						has_journal_entry = scramble_for_africa
					}		
				}
				add = 200
			}		
		}
		region_congo = {
			if = {
				limit = {
					OR = {
						AND = {
							country_rank = rank_value:great_power
							has_technology_researched = malaria_prevention
						}
						has_journal_entry = scramble_for_africa
					}		
				}
				add = 200
			}		
		}
		region_southern_africa = {
			if = {
				limit = {
					OR = {
						AND = {
							country_rank = rank_value:great_power
							has_technology_researched = malaria_prevention
						}
						has_journal_entry = scramble_for_africa
					}		
				}
				add = 200
			}		
		}
		region_zanj = {
			if = {
				limit = {
					OR = {
						AND = {
							country_rank = rank_value:great_power
							has_technology_researched = malaria_prevention
						}
						has_journal_entry = scramble_for_africa
					}		
				}
				add = 200
			}		
		}
		region_north_germany = {
			if = {
				limit = {
					country_is_in_europe = yes
					country_rank >= rank_value:great_power
				}
				add = 100
			}
			if = {
				limit = {
					has_journal_entry = je_german_unification
				}
				add = 1000
			}			
		}
		region_south_germany = {
			if = {
				limit = {
					country_is_in_europe = yes
					country_rank >= rank_value:great_power
				}
				add = 100
			}
			if = {
				limit = {
					has_journal_entry = je_german_unification
				}
				add = 1000
			}				
		}		
		region_italy = {
			if = {
				limit = {
					country_is_in_europe = yes
					country_rank >= rank_value:great_power
				}
				add = 100
			}
		}
		region_balkans = {
			if = {
				limit = {
					country_is_in_europe = yes
					country_rank >= rank_value:great_power
				}
				add = 50
			}
		}
		region_caucasus = {
			if = {
				limit = {
					country_has_primary_culture = cu:cossack
				}
				add = 100
			}
			if = {
				limit = {
					has_journal_entry = je_mus_southern_expansion
				}
				add = 100
			}	
		}
		region_dnieper = {
			if = {
				limit = {
					country_has_primary_culture = cu:cossack
				}
				add = 100
			}	
		}
		region_russia = {
			if = {
				limit = {
					country_has_primary_culture = cu:cossack
				}
				add = 50
			}	
		}
		region_central_asia = {
			if = {
				limit = {
					has_journal_entry = je_rus_kazan_expansion
				}
				add = 1000
			}
		}
		region_england = {
			if = {
				limit = {
					country_is_in_europe = yes
					country_rank >= rank_value:great_power
				}
				add = 50
			}
		}	
		region_iberia = {
			if = {
				limit = {
					country_is_in_europe = yes
					country_rank >= rank_value:great_power
				}
				add = 50
			}
		}
		region_rhine = {
			if = {
				limit = {
					country_is_in_europe = yes
					country_rank >= rank_value:great_power
				}
				add = 50
			}
		}
		region_north_china = {
			if = {
				limit = {
					country_is_in_europe = yes
					country_rank >= rank_value:great_power
					any_country = {
						country_rank >= rank_value:great_power
						any_scope_state = {
							region = sr:region_north_china
							is_treaty_port = yes
						}
					}
				}
				add = 50
			}
		}	
		region_manchuria = {
			if = {
				limit = {
					country_is_in_europe = yes
					country_rank >= rank_value:great_power
					any_country = {
						country_rank >= rank_value:great_power
						any_scope_state = {
							region = sr:region_manchuria
							is_treaty_port = yes
						}
					}
				}
				add = 50
			}
		}
		region_south_china = {
			if = {
				limit = {
					has_journal_entry = je_opium_wars	
				}
				add = 1000
			}			
			if = {
				limit = {
					country_is_in_europe = yes
					country_rank >= rank_value:great_power
					any_country = {
						country_rank >= rank_value:great_power
						any_scope_state = {
							region = sr:region_south_china
							is_treaty_port = yes
						}
					}
				}
				add = 50
			}
		}
		region_new_england = {
			if = {
				limit = {
					country_is_in_north_america = yes
					country_rank >= rank_value:great_power
				}
				add = 50
			}
		}
		region_great_plains = {
			if = {
				limit = {
					country_is_in_north_america = yes
					country_rank >= rank_value:great_power
				}
				add = 50
			}
			if = { #Ensure north americans keep interest to colonize
				limit = {
					country_is_in_north_america = yes
					any_scope_state = {
						region = sr:region_great_plains
						is_incorporated = no
					}
				}
				add = 1000
			}
		}
		region_the_midwest = {
			if = {
				limit = {
					country_is_in_north_america = yes
					country_rank >= rank_value:great_power
				}
				add = 50
			}
		}
		region_dixie = {
			if = {
				limit = {
					country_is_in_north_america = yes
					country_rank >= rank_value:great_power
				}
				add = 50
			}
		}
		region_la_plata = {
			if = { #Ensure keep interest to colonize
				limit = {
					country_is_in_south_america = yes
					any_scope_state = {
						region = sr:region_la_plata
						is_incorporated = no
					}
				}
				add = 1000
			}			
		}
	}

	# How likely should the AI be to have a particular strategic desire towards another country
    # Using this value in other strategies will function additively
    # scope:target_country = target country
	secret_goal_scores = {
		none = {
			value = 0
			
			if = {
				limit = {		
					scope:target_country = { NOT = { is_subject_of = root } }
					root = { NOT = { is_subject_of = scope:target_country } }
				}
				add = 150	
			}				
			
			# Minor german states shouldn't have far-reaching diplomatic ambitions
			if = {
				limit = {
					country_rank < rank_value:major_power
					OR = {
						country_has_primary_culture = cu:north_german
						country_has_primary_culture = cu:south_german					
					}
					scope:target_country = {
						NOR = {
							country_has_primary_culture = cu:north_german
							country_has_primary_culture = cu:south_german						
						}
					}
					scope:target_country = { NOT = { is_subject_of = root } }
					root = { NOT = { is_subject_of = scope:target_country } }					
					NOT = { is_adjacent = scope:target_country }
				}
				add = 1000
			}
			
			if = {
				limit = {
					country_rank = scope:target_country.country_rank
				}
				multiply = 0.5
			}		
		}	
		befriend = {
			value = 200
			
			if = {
				limit = {	
					country_rank <= scope:target_country.country_rank
				}
				add = 100
			}
			
			multiply = {
				value = "ai_ideological_opinion(scope:target_country)"
				multiply = 0.05
				add = 1
				min = 0.25
				max = 2.0
			}
			
			if = {
				limit = {	
					AND = {
						has_radical_leftist_government = yes
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
				}
				multiply = 1.5
			}
			
			if = {
				limit = {	
					AND = {
						has_radical_leftist_economy = yes
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
				}
				multiply = 1.5
			}			

			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				multiply = 0.5
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				multiply = 0.5
			}
			
			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
				}
				multiply = 1.5
			}
			
			if = {
				limit = {
					harsh_ai_behavior_trigger = yes
				}
				multiply = 0.75
			}	

			if = {
				limit = {
					scope:target_country.infamy >= infamy_threshold:infamous
				}
				multiply = 0.9
			}	

			if = {
				limit = {
					scope:target_country.infamy >= infamy_threshold:notorious
				}
				multiply = 0.9
			}	

			if = {
				limit = {
					scope:target_country.infamy >= infamy_threshold:pariah
				}
				multiply = 0.5
			}				
			
			if = {
				limit = {
					OR = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = rivalry
						}					
						scope:target_country = { relations:root <= relations_threshold:poor }					
					}				
				}
				multiply = 0.0
			}
		}
		reconcile = {
			value = 0

			if = {
				limit = {
					OR = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = rivalry
						}	
						scope:target_country = { relations:root <= relations_threshold:poor }		
					}
											
				}
				
				add = 100					
			}
			
			multiply = {
				value = "ai_ideological_opinion(scope:target_country)"
				multiply = 0.05
				add = 1
				min = 0.25
				max = 2.0
			}			
			
			if = {
				limit = {	
					AND = {
						has_radical_leftist_government = yes
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
				}
				multiply = 1.5
			}
			
			if = {
				limit = {	
					AND = {
						has_radical_leftist_economy = yes
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
				}
				multiply = 1.5
			}			

			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				multiply = 0.5
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				multiply = 0.5
			}

			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
				}
				multiply = 1.5
			}
			
			if = {
				limit = {
					harsh_ai_behavior_trigger = yes
				}
				multiply = 0.75
			}	

			if = {
				limit = {
					scope:target_country.infamy >= infamy_threshold:infamous
				}
				multiply = 0.9
			}	

			if = {
				limit = {
					scope:target_country.infamy >= infamy_threshold:notorious
				}
				multiply = 0.9
			}	

			if = {
				limit = {
					scope:target_country.infamy >= infamy_threshold:pariah
				}
				multiply = 0.5
			}					
		}		
		protect = {
			value = 0
			
			if = {
				limit = {
					OR = {
						country_rank > scope:target_country.country_rank	
						scope:target_country = { is_subject_of = root }	
					}
				}
				add = 200
			}
			
			multiply = {
				value = "ai_ideological_opinion(scope:target_country)"
				multiply = 0.05
				add = 1
				min = 0.25
				max = 2.0
			}	

			if = {
				limit = {	
					AND = {
						has_radical_leftist_government = yes
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
				}
				multiply = 1.5
			}
			
			if = {
				limit = {	
					AND = {
						has_radical_leftist_economy = yes
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
				}
				multiply = 1.5
			}			

			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				multiply = 0.5
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				multiply = 0.5
			}

			if = {
				limit = {
					harsh_ai_behavior_trigger = yes
				}
				multiply = 0.75
			}

			if = {
				limit = {
					scope:target_country.infamy >= infamy_threshold:infamous
				}
				multiply = 0.9
			}	

			if = {
				limit = {
					scope:target_country.infamy >= infamy_threshold:notorious
				}
				multiply = 0.9
			}	

			if = {
				limit = {
					scope:target_country.infamy >= infamy_threshold:pariah
				}
				multiply = 0.5
			}				

			if = {
				limit = {
					OR = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = rivalry
						}					
						scope:target_country = { relations:root <= relations_threshold:poor }					
					}				
				}
				multiply = 0.0
			}	

			if = {
				limit = {		
					NOR = {
						country_rank = rank_value:great_power
						has_strategic_adjacency = scope:target_country
						AND = {
							country_rank >= rank_value:major_power
							scope:target_country = { is_country_type = unrecognized }
						}						
					}
				}
				multiply = 0.0					
			}

			if = {
				limit = {		
					is_subject_of = scope:target_country	
				}
				multiply = 0.0	
			}				
		}		
		antagonize = {
			value = 0
			
			if = {
				limit = {
					countries_are_valid_rivals = yes
				}
				add = 50
			}
			
			if = {
				limit = {		
					has_diplomatic_pact = {
						who = scope:target_country
						type = rivalry
					}	
				}
				add = 100
			}
			
			if = {
				limit = {
					can_reach_target_country = yes	
					NOT = { is_subject_of = scope:target_country }
				}
				add = 50
			}			
			
			if = {
				limit = {		
					is_subject_of = scope:target_country	
				}
				add = 100			
			}
			
			multiply = {
				value = "ai_ideological_opinion(scope:target_country)"
				multiply = -0.05
				add = 1
				min = 0.25
				max = 2.0
			}							
			
			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
				}
				multiply = 0.75
			}
			
			if = {
				limit = {
					harsh_ai_behavior_trigger = yes
				}
				multiply = 1.5
			}	
			
			if = {
				limit = {
					has_game_rule = high_ai_aggression
				}
				multiply = 0.75 # Yes, this is actually intended to be a decrease - AI should want to conquer/dominate more instead
			}			

			if = {
				limit = {
					has_game_rule = low_ai_aggression
				}
				multiply = 1.5 # Yes, this is actually intended to be an increase - it's to partially compensate for lowered conquer/dominate desires
			}				
			
			if = {
				limit = {		
					scope:target_country = { is_subject_of = root }		
				}
				multiply = 0.0	
			}
			
			if = {
				limit = {	
					AND = {
						has_radical_leftist_government = yes
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
				}
				multiply = 0.5
			}
			
			if = {
				limit = {	
					AND = {
						has_radical_leftist_economy = yes
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
				}
				multiply = 0.5
			}			

			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				multiply = 1.5
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				multiply = 1.5
			}		

			# Shouldn't usually upset diplomatic pacts unless they're bankrupt or infamous
			if = {
				limit = {
					scope:target_country = { 
						in_default = no 
						infamy < infamy_threshold:notorious
					}						
				}

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = defensive_pact
						}	
					}
					multiply = 0.5
				}	

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = alliance
						}		
					}
					multiply = 0.25
				}	

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = trade_agreement
						}			
					}
					multiply = 0.5
				}				

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = customs_union
						}								
					}
					multiply = 0.25
				}				
			}				
			
			if = {
				limit = { is_still_learning = yes }
				multiply = 0
			}		
		}
		conquer = {
			value = 0
	
			if = {
				limit = {
					can_reach_target_country = yes
					NOT = { is_country_type = unrecognized }
					scope:target_country = { NOT = { is_country_type = unrecognized } }
				}
				add = 10	
			}		
	
			if = {
				limit = {
					can_reach_target_country = yes
					NOT = { is_country_type = unrecognized }
					scope:target_country = { is_country_type = unrecognized }
				}
				add = 50
				
				if = {
					limit = { has_technology_researched = civilizing_mission }
					add = 50
				}					
			}			
			
			if = { 
				limit = {
					can_reach_target_country = yes
					is_country_type = unrecognized
					scope:target_country = { is_country_type = unrecognized }						
				}
				add = 25
			}
			
			if = {
				limit = {
					can_reach_target_country = yes
					scope:target_country = { 
						any_scope_state = {
							root = { has_claim = prev }
						}	
					}
				}
				add = 200
			}
		
			if = {
				limit = {
					has_journal_entry = je_eliminate_inca
					exists = c:TWT
					scope:target_country = c:TWT
				}
				add = 200
			}
			
			if = {
				limit = {
					has_journal_entry = je_sick_man_macedonia
					exists = c:MCD
					scope:target_country = c:MCD
				}
				add = 200
			}

			if = {
				limit = {
					has_journal_entry = je_sick_man_iraq
					exists = c:IRQ
					scope:target_country = c:IRQ
				}
				add = 200
			}

			if = {
				limit = {
					has_journal_entry = je_sick_man_iraq
					exists = c:KU1
					scope:target_country = c:KU1
				}
				add = 100
			}

			if = {
				limit = {
					has_journal_entry = je_sick_man_albania
					exists = c:ALB
					scope:target_country = c:ALB
				}
				add = 200
			}
			
			if = {
				limit = {
					has_journal_entry = je_opium_wars
					scope:target_country = {
						has_variable = opium_wars_target
					}
				}
				add = 200
			}
			
			if = {
				limit = {
					has_journal_entry = je_one_kongsi
					scope:target_country = {
						OR = {
							AND = {
								exists = c:MJN
								scope:target_country = c:MJN
							}
							AND = {
								exists = c:YLO
								scope:target_country = c:YLO
							}
						}
					}
				}
				add = 200
			}
			
			if = {
				limit = {
					has_journal_entry = je_invade_zhusha
					scope:target_country = {
						AND = {
							exists = c:ZSA
							scope:target_country = c:ZSA
						}
					}
				}
				add = 200
			}
			
			# if = {
				# limit = {
					# has_journal_entry = je_boxer_rebellion
					# scope:target_country = {
						# any_scope_state = {
							# state_region = { is_homeland = cu:han }
						# }
					# }
				# }
				# add = 200
			# }
			
			# if = {
				# limit = {
					# has_journal_entry = je_greek_nationalism
					# scope:target_country = {
						# any_scope_state = {
							# state_region = { is_homeland = cu:greek }
						# }
					# }
				# }
				# add = 200
			# }
			
			# if = {
				# limit = {
					# has_journal_entry = je_consolidate_colonial_rule
					# scope:target_country = {
						# any_scope_state = {
							# OR = {
								# state_region = s:STATE_BURMA
								# state_region = s:STATE_KACHIN
								# state_region = s:STATE_SHAN_STATES
								# state_region = s:STATE_SINDH
								# state_region = s:STATE_PUNJAB
								# state_region = s:STATE_KASHMIR
								# state_region = s:STATE_PASHTUNISTAN
								# state_region = s:STATE_BALUCHISTAN
								# state_region = s:STATE_HIMALAYAS
							# }
						# }
					# }
				# }
				# add = 200
			# }
			
			# if = {
				# limit = {
					# has_journal_entry = je_age_of_princes
					# scope:target_country = {
						# any_scope_state = {
							# OR = {
								# state_region = s:STATE_AMHARA
								# state_region = s:STATE_GONDER
							# }
						# }
					# }
				# }
				# add = 200
			# }

			if = {
				limit = {
					OR = {
						country_has_primary_culture = cu:turkmen
						country_has_primary_culture = cu:persian
					}
					is_adjacent = scope:target_country
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_KHUZESTAN
								state_region = s:STATE_LURISTAN
								state_region = s:STATE_FARS
								state_region = s:STATE_LARISTAN
								state_region = s:STATE_SISTAN
								state_region = s:STATE_IRAKAJEMI
								state_region = s:STATE_KHORASAN
								state_region = s:STATE_ISFAHAN
								state_region = s:STATE_MAZANDARAN
								state_region = s:STATE_TABRIZ
							}
						}
					}
				}
				add = 200
			}
			
			if = { # Wants to conquer nations that have their homelands
				limit = {
					OR = {
						country_has_primary_culture = cu:tatar
						country_has_primary_culture = cu:cossack
					}
					can_reach_target_country = yes
					scope:target_country = {
						any_scope_state = {
							is_homeland_of_country_cultures = ROOT
						}
					}
				}
				add = 200
			}

			# if = {
				# limit = {
					# has_journal_entry = je_manifest_destiny_mexico
					# scope:target_country = {
						# any_scope_state = {
							# OR = {
								# state_region = s:STATE_CALIFORNIA
								# state_region = s:STATE_NEVADA
								# state_region = s:STATE_UTAH
								# state_region = s:STATE_ARIZONA
								# state_region = s:STATE_NEW_MEXICO
								# state_region = s:STATE_TEXAS
							# }
						# }
					# }
				# }
				# add = 1000
			# }

			if = {
				limit = {
					country_has_primary_culture = cu:russian
					has_law = law_type:law_national_supremacy
					owns_entire_state_region = STATE_ASTRAKHAN
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_KUBAN
								state_region = s:STATE_DAGESTAN
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					country_has_primary_culture = cu:russian
					has_law = law_type:law_national_supremacy
					OR = {
						AND = {	
							exists = c:IUS
							scope:target_country = {
								this = c:IUS
							}
						}
						AND = {	
							exists = c:BAK
							scope:target_country = {
								this = c:BAK
							}
						}
						AND = {	
							exists = c:DZU
							scope:target_country = {
								this = c:DZU
							}
						}
						AND = {	
							exists = c:SBR
							scope:target_country = {
								this = c:SBR
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					country_has_primary_culture = cu:turkish
					OR = {
						AND = {
							exists = c:KU1
							scope:target_country = c:KU1
						}
						AND = {
							exists = c:KU2
							scope:target_country = c:KU2
						}
						AND = {
							exists = c:KU3
							scope:target_country = c:KU3
						}
						AND = {
							exists = c:KU4
							scope:target_country = c:KU4
						}
					}
					can_reach_target_country = yes
				}
			 	add = 1000
			}

			if = {
				limit = {
					country_has_primary_culture = cu:catalan
					has_technology_researched = nationalism
					OR = {
						AND = {	
							exists = c:ALD
							scope:target_country = {
								this = c:ALD
							}
						}
						AND = {	
							exists = c:TUN
							scope:target_country = {
								this = c:TUN
							}
						}
					}
					can_reach_target_country = yes
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_seizing_collasuyu
					scope:target_country = {
						any_scope_state = {
							state_region = s:STATE_COLLASUYU
						}
					}
				}
				add = 1000
			}
			
			if = {
				limit = {
					has_journal_entry = je_the_cone
					scope:target_country = {
						any_scope_state = {
							state_region = s:STATE_LANDS_END
						}
					}
				}
				add = 1000
			}
			
			if = {
				limit = {
					has_journal_entry = je_reconquering_atlantia
					scope:target_country = {
						any_scope_state = {
							state_region = s:STATE_COTE_DU_CAFE
						}
					}
				}
				add = 1000
			}
			
			if = {
				limit = {
					has_journal_entry = je_reuniting_lotharingia
					scope:target_country = {
						any_scope_state = {
							state_region = s:STATE_COTE_DU_CAFE
							state_region = s:STATE_LIBREVILLE
							state_region = s:STATE_BOURGOGNE_DU_SUD
							state_region = s:STATE_NOUVELLE_ALSACE
							state_region = s:STATE_MARCHES_OUEST
							state_region = s:STATE_CHACO_BOREAL
							state_region = s:STATE_BRUXELLES_SUR_ODON
							state_region = s:STATE_GRAND_CHACO
							state_region = s:STATE_LORRAINE_ATLANTIQUE
							state_region = s:STATE_SERMOISE_SUR_ODON
							state_region = s:STATE_BRUXELLES_SUR_ODON
							state_region = s:STATE_TRANSFLEUVE
						}
					}
				}
				add = 1000
			}
			
			if = {
				limit = {
					has_journal_entry = je_odonia_unite
					scope:target_country = {
						any_scope_state = {
							state_region = s:STATE_COTE_DU_CAFE
							state_region = s:STATE_LIBREVILLE
							state_region = s:STATE_BOURGOGNE_DU_SUD
							state_region = s:STATE_NOUVELLE_ALSACE
							state_region = s:STATE_MARCHES_OUEST
							state_region = s:STATE_CHACO_BOREAL
							state_region = s:STATE_BRUXELLES_SUR_ODON
							state_region = s:STATE_GRAND_CHACO
							state_region = s:STATE_LORRAINE_ATLANTIQUE
							state_region = s:STATE_SERMOISE_SUR_ODON
							state_region = s:STATE_BRUXELLES_SUR_ODON
							state_region = s:STATE_TRANSFLEUVE
						}
					}
				}
				add = 1000
			}
			
			if = {
				limit = {
					has_journal_entry = je_guarani_unite
					scope:target_country = {
						any_scope_state = {
							state_region = s:STATE_EOFERWIC
							state_region = s:STATE_NORTHUMBRIA
							state_region = s:STATE_WESSEX
							state_region = s:STATE_TRANSFLEUVE
							state_region = s:STATE_MARCHES_OUEST
							state_region = s:STATE_CHACO_BOREAL
							state_region = s:STATE_GRAND_CHACO
							state_region = s:STATE_SERMOISE_SUR_ODON
							state_region = s:STATE_BRUXELLES_SUR_ODON
						}
					}
				}
				add = 1000
			}
			
			if = {
				limit = {
					has_journal_entry = je_smo_reconquest
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_SMOLENSK
								state_region = s:STATE_BRYANSK
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_mus_southern_expansion
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_SLOBOZ
								state_region = s:STATE_DANU
								state_region = s:STATE_ROSTOV
								state_region = s:STATE_KURSK
							}
						}
					}
				}
				add = 1000
			}
			
			if = {
				limit = {
					has_journal_entry = je_rus_kazan_expansion
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_TARTARIA
								state_region = s:STATE_IDEL
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_mus_northern_expansion
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_NOVGOROD
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_restore_order_korea
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_BUSAN
								state_region = s:STATE_YANGHO
								state_region = s:STATE_SEOUL
								state_region = s:STATE_PYONGYANG
								state_region = s:STATE_SARIWON
							}
						}
					}
				}
				add = 1000
			}
			
			if = {
				limit = {
					has_journal_entry = je_tawantisuyu_reconquer_the_empire
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_LIMA
								state_region = s:STATE_CAJAMARCA
								state_region = s:STATE_ECUADOR
								state_region = s:STATE_PASTAZA
								state_region = s:STATE_CAUCA
								state_region = s:STATE_NEAR_ANTISUYU
							}
						}
					}
				}
				add = 1000
			}
			
			if = {
				limit = {
					has_journal_entry = je_tawantisuyu_reconquer_the_capital
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_CUZCO
								state_region = s:STATE_CUNTISUYU
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_tur_reclaim_macedonia
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_SKOPIA
								state_region = s:STATE_MACEDONIA
								state_region = s:STATE_WESTERN_THRACE
								state_region = s:STATE_NORTHERN_THRACE
								state_region = s:STATE_BULGARIA
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_tur_reclaim_iraq
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_MOSUL
								state_region = s:STATE_BAGHDAD
								state_region = s:STATE_BASRA
								state_region = s:STATE_LURISTAN
								state_region = s:STATE_KHUZESTAN
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_tur_reclaim_albania
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_ALBANIA
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_tur_reclaim_serbia
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_NORTHERN_SERBIA
								state_region = s:STATE_SOUTHERN_SERBIA
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_conquer_kuba_gran_colombia
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_CUBA
							}
						}
					}
				}
				add = 1000
			}
			
			if = {
				limit = {
					has_journal_entry = je_spanish_africa
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_INNER_MOROCCO
								state_region = s:STATE_LINDI
								state_region = s:STATE_ZANZIBAR
								state_region = s:STATE_TANGANYIKA
								state_region = s:STATE_KENYA
								state_region = s:STATE_RIFT_VALLEY
								state_region = s:STATE_UGANDA
							}
						}
					}
				}
				add = 500
			}
		
			if = {
				limit = {
					has_journal_entry = je_spanish_india
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_PEGU
								state_region = s:STATE_BURMA
								state_region = s:STATE_SHAN_STATES
								state_region = s:STATE_KACHIN
								state_region = s:STATE_ASSAM
								state_region = s:STATE_NORTH_BENGAL
								state_region = s:STATE_SOUTH_BENGAL
							}
						}
					}
				}
				add = 500
			}

			if = {
				limit = {
					country_has_primary_culture = cu:burgundian
					year >= 1860
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_MADRAS
								state_region = s:STATE_CIRCARS
								state_region = s:STATE_ORISSA
								state_region = s:STATE_TRAVANCORE
								state_region = s:STATE_MYSORE
								state_region = s:STATE_HYDERABAD
							}
						}
					}
				}
				add = 500
			}

			if = {
				limit = {
					OR = {
						country_has_primary_culture = cu:anglois
						country_has_primary_culture = cu:british
					}
					year >= 1860
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_NORTH_BENGAL
								state_region = s:STATE_SOUTH_BENGAL
								state_region = s:STATE_ASSAM
								state_region = s:STATE_BIHAR
								state_region = s:STATE_AWADH
							}
						}
					}
				}
				add = 500
			}

			if = {
				limit = {
					country_has_primary_culture = cu:scandinavian
					year >= 1860
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_GUJARAT
								state_region = s:STATE_SINDH
								state_region = s:STATE_RAJPUTANA
								state_region = s:STATE_PUNJAB
							}
						}
					}
				}
				add = 500
			}

			if = {
				limit = {
					country_has_primary_culture = cu:burgundian
					year >= 1860
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_EAST_BORNEO
								state_region = s:STATE_WEST_BORNEO
								state_region = s:STATE_CELEBES
								state_region = s:STATE_SOUTH_SUMATRA
								state_region = s:STATE_NORTH_SUMATRA
								state_region = s:STATE_ACEH
							}
						}
					}
				}
				add = 500
			}

			if = {
				limit = {
					country_has_primary_culture = cu:burgundian
					year >= 1860
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_NORTH_BORNEO
								state_region = s:STATE_EAST_BORNEO
								state_region = s:STATE_VISAYAS
								state_region = s:STATE_LUZON
								state_region = s:STATE_MALAYA
							}
						}
					}
				}
				add = 500
			}

			if = {
				limit = {
					has_journal_entry = je_saxon_destiny
					scope:target_country = {
						has_journal_entry = je_saxon_destiny
					}
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_reconquer_england
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_HOME_COUNTIES
								state_region = s:STATE_LANCASHIRE
								state_region = s:STATE_YORKSHIRE
								state_region = s:STATE_MIDLANDS
								state_region = s:STATE_EAST_ANGLIA
								state_region = s:STATE_WEST_COUNTRY
							}
						}
					}
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_conquer_wales
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_WALES
							}
						}
					}
					can_reach_target_state = yes
				}
				add = 1000
			}

			if = {
				limit = {
					has_journal_entry = je_fra_annex_occ
					scope:target_country = {
						any_scope_state = {
							OR = {
								state_region = s:STATE_LANGUEDOC
								state_region = s:STATE_RHONE
								state_region = s:STATE_ARMAGNAC
								state_region = s:STATE_AUVERGNE
								state_region = s:STATE_AQUITAINE
							}
						}
					}
				}
				add = 1000
			}

			multiply = {
				value = "ai_ideological_opinion(scope:target_country)"
				multiply = -0.05
				add = 1
				min = 0.25
				max = 2.0
			}	

			if = {
				limit = { scope:target_country = { has_modifier = declared_bankruptcy } }
				multiply = 2.0
			}			

			if = {
				limit = {	
					AND = {
						has_radical_leftist_government = yes
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
				}
				multiply = 0.5
			}
			
			if = {
				limit = {	
					AND = {
						has_radical_leftist_economy = yes
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
				}
				multiply = 0.5
			}			

			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				multiply = 1.5
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				multiply = 1.5
			}
			
			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
				}
				multiply = 0.25
			}
			
			if = {
				limit = {
					harsh_ai_behavior_trigger = yes
				}
				multiply = 1.25
			}
			
			if = {
				limit = {
					has_game_rule = high_ai_aggression
				}
				multiply = 1.5
			}
			
			if = {
				limit = {
					has_game_rule = low_ai_aggression
				}
				multiply = 0.5
			}			

			# Shouldn't usually upset diplomatic pacts unless they're bankrupt or infamous
			if = {
				limit = {
					scope:target_country = { 
						in_default = no 
						infamy < infamy_threshold:notorious
					}						
				}

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = defensive_pact
						}	
					}
					multiply = 0.5
				}	

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = alliance
						}		
					}
					multiply = 0.25
				}	

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = trade_agreement
						}			
					}
					multiply = 0.5
				}				

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = customs_union
						}								
					}
					multiply = 0.25
				}				
			}

			if = {
				limit = {		
					is_subject_of = scope:target_country	
				}
				multiply = 0.0	
			}			
			
			if = {
				limit = { is_still_learning = yes }
				multiply = 0
			}
		}		
		dominate = {
			value = 0	
				
			if = {
				limit = {
					scope:target_country = { 
						is_subject_of = root
						relations:root < relations_threshold:cordial 
						scope:target_country.country_rank < rank_value:major_power
					}
				}
				add = 50
			}		
			
			if = {
				limit = {
					can_reach_target_country = yes
					country_rank > scope:target_country.country_rank
					NOT = { is_country_type = unrecognized }
					scope:target_country = { is_country_type = unrecognized }
					scope:target_country = { NOT = { is_subject_of = root }	}
				}
				add = 25
				
				if = {
					limit = { has_technology_researched = civilizing_mission }
					add = 25
				}					
			}			
			
			if = {
				limit = {
					can_reach_target_country = yes
					country_rank > scope:target_country.country_rank
					scope:target_country.country_rank < rank_value:major_power
					scope:target_country = { NOT = { is_subject_of = root }	}
				}
				add = 25
			}
			
			# if = {
				# limit = {
					# OR = {
						# has_journal_entry = je_sick_man_syria
						# has_journal_entry = je_veiled_protectorate
					# }
					# exists = c:EGY
					# scope:target_country = c:EGY
				# }
				# add = 200
			# }
			
			multiply = {
				value = "ai_ideological_opinion(scope:target_country)"
				multiply = -0.05
				add = 1
				min = 0.25
				max = 2.0
			}			
			
			if = {
				limit = {	
					AND = {
						has_radical_leftist_government = yes
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
				}
				multiply = 0.5
			}
			
			if = {
				limit = {	
					AND = {
						has_radical_leftist_economy = yes
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
				}
				multiply = 0.5
			}			

			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				multiply = 1.5
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				multiply = 1.5
			}

			if = {
				limit = {
					country_has_primary_culture = cu:russian
					has_law = law_type:law_national_supremacy
					OR = {
						AND = {	
							exists = c:IUS
							scope:target_country = {
								this = c:IUS
							}
						}
						AND = {	
							exists = c:BAK
							scope:target_country = {
								this = c:BAK
							}
						}
						AND = {	
							exists = c:DZU
							scope:target_country = {
								this = c:DZU
							}
						}
						AND = {	
							exists = c:SBR
							scope:target_country = {
								this = c:SBR
							}
						}
					}
				}
				add = 100
			}
			
			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
				}
				multiply = 0.50
			}		
			
			if = {
				limit = { scope:target_country = { has_modifier = declared_bankruptcy } }
				multiply = 2.0
			}			
			
			if = {
				limit = {
					harsh_ai_behavior_trigger = yes
				}
				multiply = 1.5
			}	

			if = {
				limit = {
					has_game_rule = high_ai_aggression
				}
				multiply = 1.5
			}
			
			if = {
				limit = {
					has_game_rule = low_ai_aggression
				}
				multiply = 0.5
			}
			
			# Shouldn't usually upset diplomatic pacts unless they're bankrupt or infamous
			if = {
				limit = {
					scope:target_country = { 
						in_default = no 
						infamy < infamy_threshold:notorious
					}						
				}

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = defensive_pact
						}	
					}
					multiply = 0.5
				}	

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = alliance
						}		
					}
					multiply = 0.25
				}	

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = trade_agreement
						}			
					}
					multiply = 0.5
				}				

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = customs_union
						}								
					}
					multiply = 0.25
				}				
			}			

			if = {
				limit = {		
					NOR = {
						country_rank = rank_value:great_power
						has_strategic_adjacency = scope:target_country 
						AND = {
							country_rank >= rank_value:major_power
							scope:target_country = { is_country_type = unrecognized }
						}
					}
				}
				multiply = 0.0					
			}			
			
			if = {
				limit = {		
					is_subject_of = scope:target_country	
				}
				multiply = 0.0	
			}
			
			if = {
				limit = { is_still_learning = yes }
				multiply = 0
			}
		}			
	}

	# How much should the AI value a wargoal against another country/state
    # Using this value in other strategies will function additively
    # scope:target_country = wargoal target country
    # scope:target_state = wargoal target state (if any)
	wargoal_scores = {
		conquer_state = {
			value = 0

			## Default checks

			if = {
				limit = {
					has_secret_goal = {
						who = scope:target_country
						secret_goal = conquer
					}					
					can_reach_target_state = yes			
				}
				add = {
					value = 20
				
					add = {
						value = scope:target_state.state_population
						divide = 100000
						max = 20						
					}
					
					add = {
						value = scope:target_state.gdp
						divide = 100000
						max = 20						
					}	

                    if = {
                        limit = {
                            scope:target_state = { 
                                is_split_state = yes 
                                region = { 
                                    any_scope_state = { owner = ROOT }
                                }
                            }
                        }
                        add = 40
                        if = {
                            limit = {
                                scope:target_state = { 
                                    is_homeland_of_country_cultures = ROOT
                                }
                            }
                            add = 20
                        }
                    }

					if = {
						limit = { 
							NOT = { has_strategic_land_adjacency = scope:target_state } 
							scope:target_state = { has_port = no }
						}
						multiply = 0.5
					}
					
					if = {
                        limit = { 
                            has_strategic_land_adjacency = scope:target_state
                            NOT = { is_adjacent = scope:target_state }
                        }
                        multiply = 0.5
                    }

					if = {
						limit = {
							has_strategic_land_adjacency = scope:target_country
							NOT = { has_strategic_land_adjacency = scope:target_state }
						}
						multiply = 0.1
					}					
					else_if = {
						limit = {
							is_adjacent = scope:target_country
							NOT = { is_adjacent = scope:target_state }
						}
						multiply = 0.5
					}															
				
					if = {
						limit = {
							scope:target_state = { is_homeland_of_country_cultures = root }
						}
						multiply = 1.5
					}	
				}
			}	
			else_if = {
				limit = {
					OR = {
						has_attitude = {
							who = scope:target_country
							attitude = antagonistic
						}				
						is_diplomatic_play_enemy_of = scope:target_country
						has_war_with = scope:target_country							
					}
					has_strategic_adjacency = scope:target_state
					scope:target_state = { is_homeland_of_country_cultures = root }
				}
				add = {
					value = 10
				
					add = {
						value = scope:target_state.state_population
						divide = 100000
						max = 10						
					}
					
					add = {
						value = scope:target_state.gdp
						divide = 100000
						max = 10						
					}
					
					if = {
                        limit = {
                            scope:target_state = { 
                                is_split_state = yes 
                                region = { 
                                    any_scope_state = { owner = ROOT }
                                }
                            }
                        }
                        add = 40
                        if = {
                            limit = {
                                scope:target_state = { 
                                    is_homeland_of_country_cultures = ROOT
                                }
                            }
                            add = 20
                        }
                    }

					if = {
						limit = { 
							NOT = { has_strategic_land_adjacency = scope:target_state } 
							scope:target_state = { has_port = no }
						}
						multiply = 0.5
					}									

					if = {
						limit = {
							has_strategic_land_adjacency = scope:target_country
							NOT = { has_strategic_land_adjacency = scope:target_state }
						}
						multiply = 0.1
					}					
					else_if = {
						limit = {
							is_adjacent = scope:target_country
							NOT = { is_adjacent = scope:target_state }
						}
						multiply = 0.5
					}							

					if = {
						limit = {
							country_rank < scope:target_country.country_rank
						}
						multiply = 0.5
					}
				}
			}
			
			## Country specific checks

			#if = {
			#	limit = {
			#		has_journal_entry = je_the_eastern_border
			#		scope:target_state = {
			#			OR = {
			#				state_region = s:STATE_OUTER_MANCHURIA
			#				state_region = s:STATE_JETISY
			#				state_region = s:STATE_TOMSK
			#				state_region = s:STATE_KIRGHIZIA
			#			}
			#		}
			#	}
			#	add = 50
			#}

			if = { #Russian Central Asia
				limit = {
					owns_entire_state_region = STATE_URAL
					owns_entire_state_region = STATE_BASHKORTOSTAN
					scope:target_state = {
						OR = {
							state_region = s:STATE_URALSK
							state_region = s:STATE_AKMOLINSK
							state_region = s:STATE_UZBEKIA
							state_region = s:STATE_SEMIRECHE
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = { #Russian Central Asia
				limit = {
					owns_entire_state_region = STATE_UPPER_YENISEYSK
					scope:target_state = {
						OR = {
							state_region = s:STATE_IRKUTSK
							state_region = s:STATE_TOMSK
							state_region = s:STATE_TUVA
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = { #Aragon Africa
				limit = {
					owns_entire_state_region = STATE_ALGIERS
					owns_entire_state_region = STATE_TLEMCEN
					scope:target_state = {
						OR = {
							state_region = s:STATE_CONSTANTINE
							state_region = s:STATE_SAHARA
						}
					}
					can_reach_target_country = yes
				}
				add = 25
			}

			if = {
				limit = {
					country_has_primary_culture = cu:russian
					has_law = law_type:law_national_supremacy
					OR = {
						AND = {	
							exists = c:IUS
							scope:target_state.owner = {
								this = c:IUS
							}
						}
						AND = {	
							exists = c:BAK
							scope:target_state.owner = {
								this = c:BAK
							}
						}
						AND = {	
							exists = c:DZU
							scope:target_state.owner = {
								this = c:DZU
							}
						}
						AND = {	
							exists = c:SBR
							scope:target_state.owner = {
								this = c:SBR
							}
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}
			
			if = { #Ottomans Kurdish
				limit = {
					country_has_primary_culture = cu:turkish
					owns_entire_state_region = STATE_TRABZON
					owns_entire_state_region = STATE_ANKARA
					scope:target_state = {
						OR = {
							state_region = s:STATE_ERZURUM
							state_region = s:STATE_DIYARBAKIR
							state_region = s:STATE_MOSUL
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = {
				limit = {
					has_journal_entry = je_seizing_collasuyu
					scope:target_state = {
						OR = {
							state_region = s:STATE_COLLASUYU
						}
					}
				}
				add = 50
			}


			if = {
				limit = {
					has_journal_entry = je_the_cone
					scope:target_state = {
						OR = {
							state_region = s:STATE_LANDS_END
						}
					}
				}
				add = 50
			}

			if = {
				limit = {
					has_journal_entry = je_smo_reconquest
					scope:target_state = {
						OR = {
							state_region = s:STATE_SMOLENSK
							state_region = s:STATE_BRYANSK
						}
					}
				}
				add = 50
			}

			if = {
				limit = {
					has_journal_entry = je_mus_southern_expansion
					scope:target_state = {
						OR = {
							state_region = s:STATE_SLOBOZ
							state_region = s:STATE_DANU
							state_region = s:STATE_ROSTOV
							state_region = s:STATE_KURSK
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = {
				limit = {
					has_journal_entry = je_rus_kazan_expansion
					scope:target_state = {
						OR = {
							state_region = s:STATE_TARTARIA
							state_region = s:STATE_IDEL
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = {
				limit = {
					has_journal_entry = je_restore_order_korea
					scope:target_state = {
						OR = {
							state_region = s:STATE_BUSAN
							state_region = s:STATE_YANGHO
							state_region = s:STATE_SEOUL
							state_region = s:STATE_PYONGYANG
							state_region = s:STATE_SARIWON
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			# Increase conquer state score for Rohnnst for Manifest Destiny
			if = {
				limit = {
					has_journal_entry = je_manifest_destiny_rohnnst
					scope:target_state = {
						OR = {
							state_region = s:STATE_ROHNNST
						}
					}
				}
				add = 50
			}
			
			# Increase conquer state score for Caladero
			if = {
				limit = {
					has_journal_entry = je_manifest_destiny_rohnnst
					scope:target_state = {
						OR = {
							state_region = s:STATE_TILCARA
							state_region = s:STATE_ATACAMA
							state_region = s:STATE_CHARCAS
							state_region = s:STATE_TIWANAKU
						}
					}
				}
				add = 50
			}
			
			if = { #Spanish India
				limit = {
					has_journal_entry = je_spanish_india
					scope:target_state = {
						OR = {
							state_region = s:STATE_PEGU
							state_region = s:STATE_BURMA
							state_region = s:STATE_SHAN_STATES
							state_region = s:STATE_KACHIN
							state_region = s:STATE_ASSAM
							state_region = s:STATE_NORTH_BENGAL
							state_region = s:STATE_SOUTH_BENGAL
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = { #Burgundian India
				limit = {
					country_has_primary_culture = cu:burgundian
					year >= 1860
					scope:target_state = {
						OR = {
							state_region = s:STATE_MADRAS
							state_region = s:STATE_CIRCARS
							state_region = s:STATE_ORISSA
							state_region = s:STATE_TRAVANCORE
							state_region = s:STATE_MYSORE
							state_region = s:STATE_HYDERABAD
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = { #Anglois India
				limit = {
					OR = {
						country_has_primary_culture = cu:anglois
						country_has_primary_culture = cu:british
					}
					year >= 1860
					scope:target_state = {
						OR = {
							state_region = s:STATE_NORTH_BENGAL
							state_region = s:STATE_SOUTH_BENGAL
							state_region = s:STATE_ASSAM
							state_region = s:STATE_BIHAR
							state_region = s:STATE_AWADH
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = { #Scandinavian India
				limit = {
					country_has_primary_culture = cu:scandinavian
					year >= 1860
					scope:target_state = {
						OR = {
							state_region = s:STATE_GUJARAT
							state_region = s:STATE_SINDH
							state_region = s:STATE_RAJPUTANA
							state_region = s:STATE_PUNJAB
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = { #Burgundian East Indies
				limit = {
					country_has_primary_culture = cu:burgundian
					year >= 1860
					scope:target_state = {
						OR = {
							state_region = s:STATE_EAST_BORNEO
							state_region = s:STATE_WEST_BORNEO
							state_region = s:STATE_CELEBES
							state_region = s:STATE_SOUTH_SUMATRA
							state_region = s:STATE_NORTH_SUMATRA
							state_region = s:STATE_ACEH
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = { #Scandinavian East Indies
				limit = {
					country_has_primary_culture = cu:burgundian
					year >= 1860
					scope:target_state = {
						OR = {
							state_region = s:STATE_NORTH_BORNEO
							state_region = s:STATE_EAST_BORNEO
							state_region = s:STATE_VISAYAS
							state_region = s:STATE_LUZON
							state_region = s:STATE_MALAYA
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = {
				limit = {
					has_journal_entry = je_saxon_destiny
					scope:target_country = {
						has_journal_entry = je_saxon_destiny
					}
					scope:target_state = {
						OR = {
							state_region = s:STATE_SAXONY
							state_region = s:STATE_THURINGIA
							state_region = s:STATE_HANNOVER
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = {
				limit = {
					has_journal_entry = je_reconquer_england
					scope:target_state = {
						OR = {
							state_region = s:STATE_HOME_COUNTIES
							state_region = s:STATE_LANCASHIRE
							state_region = s:STATE_YORKSHIRE
							state_region = s:STATE_MIDLANDS
							state_region = s:STATE_EAST_ANGLIA
							state_region = s:STATE_WEST_COUNTRY
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = {
				limit = {
					has_journal_entry = je_conquer_wales
					scope:target_state = {
						OR = {
							state_region = s:STATE_WALES
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = {
				limit = {
					has_journal_entry = je_fra_annex_occ
					scope:target_state = {
						OR = {
							state_region = s:STATE_LANGUEDOC
							state_region = s:STATE_RHONE
							state_region = s:STATE_ARMAGNAC
							state_region = s:STATE_AUVERGNE
							state_region = s:STATE_AQUITAINE
						}
					}
					can_reach_target_state = yes
				}
				add = 50
			}

			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
					scope:target_state = { is_homeland_of_country_cultures = scope:target_country }
				}
				multiply = 0.0
			}

			if = {
				limit = {
					has_journal_entry = je_opium_wars
					scope:target_country = {
						has_variable = opium_wars_target
					}
				}
				multiply = 0
			}
			
			if = { #Stay out of europe
				limit = {
					scope:target_country = {
						country_is_in_europe = yes
					}				
					OR = {
						country_is_in_north_america = yes
						country_is_in_south_america = yes
					}
				}
				multiply = 0
			}
			
			if = { # Decrease interest in taking full states in China and Japan
				limit = {
					scope:target_state = {
						OR = {
							region = sr:region_north_china
							region = sr:region_south_china
							region = sr:region_manchuria
							region = sr:region_japan
						}
					}				
					OR = {
						country_is_in_north_america = yes
						country_is_in_europe = yes
						country_is_in_south_america = yes
					}
				}
				multiply = 0.25
			}

			if = { # Decrease interest in taking full states in Indochina, unless already done so
				limit = {
					scope:target_state = {
						OR = {
							region = sr:region_indochina
						}
					}				
					OR = {
						country_is_in_north_america = yes
						country_is_in_europe = yes
						country_is_in_south_america = yes
					}
					NOT = {
						country_rank >= rank_value:major_power
						OR = {
							country_is_in_north_america = yes
							country_is_in_europe = yes
							country_is_in_south_america = yes
						}
						any_scope_state = {
							NOT = { is_treaty_port = yes }
							OR = {
								region = sr:region_indochina
							}
						}				
					}
				}
				multiply = 0.25
			}

			if = { # Decrease interest in taking full states in India, unless already done so
				limit = {
					scope:target_state = {
						OR = {
							region = sr:region_north_india
							region = sr:region_south_india
						}
					}				
					OR = {
						country_is_in_north_america = yes
						country_is_in_europe = yes
						country_is_in_south_america = yes
					}
					NOR = { # These cultures do not get decreased interests
						country_has_primary_culture = cu:anglois
						country_has_primary_culture = cu:british
						country_has_primary_culture = cu:french
						country_has_primary_culture = cu:burgundian
						country_has_primary_culture = cu:spanish
						country_has_primary_culture = cu:scandinavian
					}
					NOT = {
						country_rank >= rank_value:major_power
						OR = {
							country_is_in_north_america = yes
							country_is_in_europe = yes
							country_is_in_south_america = yes
						}
						any_scope_state = {
							NOT = { is_treaty_port = yes }
							OR = {
								region = sr:region_north_india
								region = sr:region_south_india
							}
						}				
					}
				}
				multiply = 0.25
			}

			if = { #Do Not Take Chinese States In Full, unless another power has already done so
				limit = {
					country_rank >= rank_value:major_power
					scope:target_state = {
						#owner = { has_journal_entry = je_warlord_china }
						OR = {
							region = sr:region_north_china
							region = sr:region_south_china
							region = sr:region_manchuria
						}
					}				
					OR = {
						country_is_in_north_america = yes
						country_is_in_europe = yes
						country_is_in_south_america = yes
					}					
					NOT = {
						any_country = {
							NOT = { THIS = ROOT }
							country_rank >= rank_value:major_power
							OR = {
								country_is_in_north_america = yes
								country_is_in_europe = yes
								country_is_in_south_america = yes
							}
							any_scope_state = {
								NOT = { is_treaty_port = yes }
								OR = {
									region = sr:region_north_china
									region = sr:region_south_china
									region = sr:region_manchuria
								}
							}
						}					
					}
				}
				multiply = 0
			} 
			
			min = 0
			max = 100			
		}
		
		return_state = {
			value = 40

			add = {
				value = scope:target_state.state_population
				divide = 100000
				max = 40						
			}
			
			add = {
				value = scope:target_state.gdp
				divide = 100000
				max = 40						
			}					
					
			if = {
				limit = {
					has_strategic_land_adjacency = scope:target_state
					scope:target_state = { 
						is_split_state = yes 
						region = { 
							any_scope_state = { owner = ROOT }
						}
					}
				}
				add = 60
				if = {
					limit = {
						scope:target_state = { 
							is_homeland_of_country_cultures = ROOT
						}
					}
					add = 30
				}
			}

			if = {
				limit = { 
					NOT = { has_strategic_land_adjacency = scope:target_state } 
					scope:target_state = { has_port = no }
				}
				multiply = 0.5
			}

			if = {
				limit = {
					has_strategic_land_adjacency = scope:target_country
					NOT = { has_strategic_land_adjacency = scope:target_state }
				}
				multiply = 0.1
			}

			if = {
				limit = { 
					has_strategic_land_adjacency = scope:target_state
					NOT = { is_adjacent = scope:target_state }
				}
				multiply = 0.5
			}
			else_if = {
				limit = {
					is_adjacent = scope:target_country
					NOT = { is_adjacent = scope:target_state }
				}
				multiply = 0.5
			}
																		
			if = {
				limit = {
					scope:target_state = { is_homeland_of_country_cultures = root }
				}
				multiply = 1.5
			}	
			
			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
					scope:target_state = { is_homeland_of_country_cultures = scope:target_country }
				}
				multiply = 0.0
			}

			if = { # Fixes some edge cases when we gave to much claims
				limit = {
					can_reach_target_state = no
				}
				multiply = 0.0
			}
			
			min = 0
			max = 200	
		}	
		
		take_treaty_port = {
			value = 0
			
			if = {
                limit = {    
                    scope:target_state = { 
                        is_treaty_port = yes 
                        region = { 
                            any_scope_state = { 
                                OR = {
                                    owner = { is_subject_of = ROOT }
                                    owner = ROOT
                                }
                            }
                        }
                    }
                }
                add = 40
            }

			if = {
				limit = {
					scope:target_country = {
						has_diplomatic_pact = {
							who = root
							type = embargo
						}	
					}
				}
				add = 25
			}

			if = {
				limit = {
					"num_mutual_trade_route_levels_with_country(root)" >= 10
					OR = {
						has_strategy = ai_strategy_economic_imperialism
						AND = {
							NOT = { is_country_type = unrecognized }
							scope:target_country = { is_country_type = unrecognized }
						}
					}
				}

				add = {
					value = 5
				
					add = {
						value = scope:target_state.state_population
						divide = 200000
						max = 10						
					}
					
					add = {
						value = scope:target_state.gdp
						divide = 200000
						max = 10						
					}				
				
					if = {
						limit = {
							any_scope_building = {
								is_building_type = building_trade_center
								level > 0
							}						
						}
						
						add = 5
					}
						
					if = {
						limit = {
							has_strategic_adjacency = scope:target_state		
						}
						multiply = 1.25
					}					
				}										
			}		
						
			if = {
				limit = {
					has_journal_entry = je_opium_wars
					scope:target_country = {
						has_variable = opium_wars_target
					}
				}
				add = 50
			}
			if = {
				limit = {
					has_journal_entry = je_opium_wars
					scope:target_country = {
						has_variable = opium_wars_target
					}
					scope:target_state = {
						state_region = s:STATE_SHAOZHOU
					}					
				}
				add = 100
			}	

			if = {
				limit = {
					has_treaty_port_in_country = scope:target_country
				}
				multiply = 0
			}
			
			if = {
				limit = {
					scope:target_country = {
						has_diplomatic_pact = {
							who = root
							type = trade_agreement
						}	
					}
				}
				multiply = 0
			}
			
			if = {
				limit = {
					can_reach_target_state = no
				}
				multiply = 0
			}			

			if = { #No treaty ports please
				limit = {
					scope:target_country = {
						OR = {
							country_is_in_europe = yes
							country_is_in_north_america = yes
							country_is_in_central_america = yes
							country_is_in_south_america = yes
							country_is_in_middle_east = yes
						}
					}
				}
				multiply = 0
			}

			min = 0
			max = 100			
		}

		make_puppet = {
			if = {
				limit = {
					OR = {
						has_secret_goal = {
							who = scope:target_country
							secret_goal = protect
						}
						has_secret_goal = {
							who = scope:target_country
							secret_goal = dominate
						}						
					}
				}
			
				add = {
					value = 50
				
					add = {
						value = scope:target_country.gdp
						divide = 200000
						max = 50						
					}

					if = {
						limit = {
							has_strategic_adjacency = scope:target_country
						}
						multiply = 1.25
					}						
				}			
			}			
			
			# if = {
				# limit = {
					# OR = {
						# has_journal_entry = je_sick_man_egypt
						# has_journal_entry = je_veiled_protectorate
					# }
					# exists = c:EGY
					# scope:target_country = c:EGY
				# }
				# add = 100
			# }

			if = {
				limit = {
					country_has_primary_culture = cu:turkish
					OR = {
						AND = {
							exists = c:KU1
							scope:target_country = c:KU1
						}
						AND = {
							exists = c:KU2
							scope:target_country = c:KU2
						}
						AND = {
							exists = c:KU3
							scope:target_country = c:KU3
						}
						AND = {
							exists = c:KU4
							scope:target_country = c:KU4
						}
					}
					can_reach_target_country = yes
				}
			 	add = 100
			}

			if = {
				limit = {
					country_has_primary_culture = cu:russian
					has_law = law_type:law_national_supremacy
					OR = {
						AND = {	
							exists = c:IUS
							scope:target_country = {
								this = c:IUS
							}
						}
						AND = {	
							exists = c:BAK
							scope:target_country = {
								this = c:BAK
							}
						}
						AND = {	
							exists = c:DZU
							scope:target_country = {
								this = c:DZU
							}
						}
						AND = {	
							exists = c:SBR
							scope:target_country = {
								this = c:SBR
							}
						}
					}
				}
				add = 100
			}

			#if = { #Indian suzerain will be aggressive against Afganistan, if Afghanistan is threatened by Russia.
			#	limit = {
			#		AND = {
			#			c:RUS ?= {
			#				any_scope_state = {
			#					OR = {
			#						state_region = s:STATE_UZBEKIA
			#						state_region = s:STATE_KIRGHIZIA
			#						state_region = s:STATE_KHIVA
			#						state_region = s:STATE_TURKMENIA
			#						state_region = s:STATE_TAJIKISTAN
			#					}
			#				}
			#			}
			#			ROOT = {
			#				country_is_in_europe = yes
			#        		OR = {
			#        			any_scope_state = {
			#        				OR = {
			#    						region = sr:region_north_india
			#    						region = sr:region_south_india
			#    					}
			#						count >= 3
			#        			}
			#        			any_country = {
			#        				is_subject_of = prev
			#        				any_scope_state = {
			#        					OR = {
			#        						region = sr:region_north_india
			#        						region = sr:region_south_india
			#        					}
			#							count >= 3
			#	        			}
			#        			}
			#        		}
			#			}
			#			scope:target_country = {
			#				any_scope_state = {
			#					OR = {
			#						state_region = s:STATE_EASTERN_AFGHANISTAN
			#						state_region = s:STATE_WESTERN_AFGHANISTAN
			#					}
			#				}
			#			}
			#		}
			#	}
			#	add = 50
			#}
			
			if = {
				limit = {
					has_journal_entry = je_reconquer_new_spain
					OR = {
						AND = {
							exists = c:UCA
							scope:target_country = c:UCA
						}
						AND = {
							exists = c:MEX
							scope:target_country = c:MEX
						}
						AND = {
							exists = c:LUS
							scope:target_country = c:LUS
						}
						AND = {
							exists = c:GCO
							scope:target_country = c:GCO
						}
					}
				}
				add = 200
			}

			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
				}
				multiply = 0.5
			}

			
			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				multiply = 1.5
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				multiply = 1.5
			}

			min = 0
			max = 100			
		}
		
		make_dominion = {
			if = {
				limit = {
					OR = {
						has_secret_goal = {
							who = scope:target_country
							secret_goal = protect
						}
						has_secret_goal = {
							who = scope:target_country
							secret_goal = dominate
						}			
					}
				}
				
				add = {
					value = 50
				
					add = {
						value = scope:target_country.gdp
						divide = 200000
						max = 50						
					}

					if = {
						limit = {
							has_strategic_adjacency = scope:target_country
						}
						multiply = 1.25
					}						
				}
			}
			
			if = {
				limit = {
					has_journal_entry = je_reconquer_new_spain
					OR = {
						AND = {
							exists = c:UCA
							scope:target_country = c:UCA
						}
						AND = {
							exists = c:MEX
							scope:target_country = c:MEX
						}
						AND = {
							exists = c:LUS
							scope:target_country = c:LUS
						}
						AND = {
							exists = c:GCO
							scope:target_country = c:GCO
						}
					}
				}
				add = 100
			}
			
			# if = {
				# limit = {
					# OR = {
						# has_journal_entry = je_sick_man_egypt
						# has_journal_entry = je_veiled_protectorate
					# }
					# exists = c:EGY
					# scope:target_country = c:EGY
				# }
				# add = 100
			# }	

						#if = { #Indian suzerain will be aggressive against Afganistan, if Afghanistan is threatened by Russia.
			#	limit = {
			#		AND = {
			#			c:RUS ?= {
			#				any_scope_state = {
			#					OR = {
			#						state_region = s:STATE_UZBEKIA
			#						state_region = s:STATE_KIRGHIZIA
			#						state_region = s:STATE_KHIVA
			#						state_region = s:STATE_TURKMENIA
			#						state_region = s:STATE_TAJIKISTAN
			#					}
			#				}
			#			}
			#			ROOT = {
			#				country_is_in_europe = yes
			#        		OR = {
			#        			any_scope_state = {
			#        				OR = {
			#    						region = sr:region_north_india
			#    						region = sr:region_south_india
			#    					}
			#						count >= 3
			#        			}
			#        			any_country = {
			#        				is_subject_of = prev
			#        				any_scope_state = {
			#        					OR = {
			#        						region = sr:region_north_india
			#        						region = sr:region_south_india
			#        					}
			#							count >= 3
			#	        			}
			#        			}
			#        		}
			#			}
			#			scope:target_country = {
			#				any_scope_state = {
			#					OR = {
			#						state_region = s:STATE_EASTERN_AFGHANISTAN
			#						state_region = s:STATE_WESTERN_AFGHANISTAN
			#					}
			#				}
			#			}
			#		}
			#	}
			#	add = 50
			#}

			if = {
				limit = {
					country_has_primary_culture = cu:turkish
					OR = {
						AND = {
							exists = c:KU1
							scope:target_country = c:KU1
						}
						AND = {
							exists = c:KU2
							scope:target_country = c:KU2
						}
						AND = {
							exists = c:KU3
							scope:target_country = c:KU3
						}
						AND = {
							exists = c:KU4
							scope:target_country = c:KU4
						}
					}
					can_reach_target_country = yes
				}
			 	add = 100
			}

			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				multiply = 1.5
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				multiply = 1.5
			}

			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
				}
				multiply = 0.5
			}

			min = 0
			max = 100				
		}
		
		make_vassal = {
			if = {
				limit = {
					OR = {
						has_secret_goal = {
							who = scope:target_country
							secret_goal = protect
						}
						has_secret_goal = {
							who = scope:target_country
							secret_goal = dominate
						}				
					}
				}
				
				add = {
					value = 50
				
					add = {
						value = scope:target_country.gdp
						divide = 200000
						max = 50						
					}

					if = {
						limit = {
							has_strategic_adjacency = scope:target_country
						}
						multiply = 1.25
					}						
				}
			}
			
			# if = {
				# limit = {
					# OR = {
						# has_journal_entry = je_sick_man_egypt
						# has_journal_entry = je_veiled_protectorate
					# }
					# exists = c:EGY
					# scope:target_country = c:EGY
				# }
				# add = 100
			# }	

			if = {
				limit = {
					country_has_primary_culture = cu:turkish
					OR = {
						AND = {
							exists = c:KU1
							scope:target_country = c:KU1
						}
						AND = {
							exists = c:KU2
							scope:target_country = c:KU2
						}
						AND = {
							exists = c:KU3
							scope:target_country = c:KU3
						}
						AND = {
							exists = c:KU4
							scope:target_country = c:KU4
						}
					}
					can_reach_target_country = yes
				}
			 	add = 100
			}
			
			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				multiply = 1.5
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				multiply = 1.5
			}

			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
				}
				multiply = 0.5
			}	

			min = 0
			max = 100			
		}	

		war_reparations = {
			value = 0
			
			add = {
				value = "scope:target_country.ai_gdp_comparison(root)"
				add = 1
				multiply = 5
				min = 0
				max = 15

				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = rivalry
						}						
					}
					
					multiply = 1.5
				}
			}
			
			if = {
				limit = {
					has_journal_entry = je_opium_wars
					scope:target_country = {
						has_variable = opium_wars_target
					}
				}
				add = 50
			}	

			if = {
				limit = {
					has_journal_entry = je_opium_obsession
					scope:target_country = {
						has_variable = opium_wars_aggressor
					}
				}
				add = 50
			}

			min = 0
			max = 100			
		}	

		humiliation = {
			value = 25
		}	

		regime_change = {
			value = 0
			
			if = {
				limit = {
					country_rank >= rank_value:major_power					
					OR = {
						has_diplomatic_pact = {
							who = scope:target_country.top_overlord
							type = rivalry
						}	
						"ai_ideological_opinion(scope:target_country)" <= -25	
					}
				}
				add = 10
			}

			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				add = 100
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				add = 100
			}
		}		
		
		open_market = {
			value = 0
			
			if = {
				limit = {
					scope:target_country = {
						has_diplomatic_pact = {
							who = root
							type = embargo
						}	
					}
					can_reach_target_country = yes
				}
				add = 50
			}			
		
			if = {
				limit = {
					has_journal_entry = je_opium_wars
					scope:target_country = {
						has_variable = opium_wars_target
					}
				}
				add = 75
			}

			if = {
				limit = {
					AND = {
						has_radical_leftist_government = no			
						scope:target_country = {
							has_radical_leftist_government = yes
						}
					}
					
				}
				add = 50
			}
	
			if = {
				limit = {
					AND = {
						has_radical_leftist_economy = no			
						scope:target_country = {
							has_radical_leftist_economy = yes
						}
					}
					
				}
				add = 50
			}					
			
			# Don't want to open our own market...
			if = {
				limit = {
					market_capital.market = scope:target_country.market_capital.market
				}
				multiply = 0
			}			
		}

		ban_slavery = {
			value = 0
			
			if = {
				limit = {
					country_rank >= rank_value:major_power
					OR = {
						has_strategy = ai_strategy_progressive_agenda
						has_strategy = ai_strategy_egalitarian_agenda
					}					
				}

				add = {
					value = scope:target_country.gdp
					divide = 100000
					max = 25						
				}

				
				# Relations with target
				multiply = {
					value = "scope:target_country.relations:root"
					multiply = -0.01
					add = 1
					min = 0.5
					max = 2.0				
				}
				
				# Ideological opinion of target
				multiply = {
					value = "ai_ideological_opinion(scope:target_country)"
					multiply = -0.05
					add = 1
					min = 0.5
					max = 2.0
				}				
			}
			
			min = 0
			max = 100
		}		

		revoke_claim = {
			value = 10
			
			add = {
				value = scope:target_state.state_population
				divide = 200000
				max = 10						
			}
			
			add = {
				value = scope:target_state.gdp
				divide = 200000
				max = 10						
			}											
			
			if = {
				limit = {
					scope:target_state = { is_homeland_of_country_cultures = root }
				}
				multiply = 1.25
			}

			if = {
				limit = {
					scope:target_state = { is_incorporated = no }
				}
				multiply = 0.5
			}

			min = 0
			max = 50			
		}	

		contain_threat = {
			value = 1000
		}	

		annex_country = {
			value = 100
		
			add = {
				value = scope:target_country.gdp
				divide = 100000
				max = 100						
			}

			if = {
				limit = {
					has_strategic_adjacency = scope:target_country
				}
				multiply = 1.5
			}									
			
			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
				}
				multiply = 0.0
			}

			if = {
				limit = {
					country_has_primary_culture = cu:russian
					has_law = law_type:law_national_supremacy
					OR = {
						AND = {	
							exists = c:IUS
							scope:target_country = c:IUS
						}
						AND = {	
							exists = c:BAK
							scope:target_country = c:BAK
						}
						AND = {	
							exists = c:DZU
							scope:target_country = c:DZU
						}
						AND = {	
							exists = c:SBR
							scope:target_country = c:SBR
						}
					}
				}
				add = 100
			}

			if = {
				limit = {
					OR = {
						country_has_primary_culture = cu:persian
						country_has_primary_culture = cu:turkmen
					}
					scope:target_country = {
						OR = {
							country_has_primary_culture = cu:persian
							country_has_primary_culture = cu:turkmen
						}
					}
					can_reach_target_country = yes
				}
				add = 300
			}

			if = {
				limit = {
					year >= 1858
					country_has_primary_culture = cu:burgundian
					OR = {
						AND = {	
							exists = c:PLM
							scope:target_country = c:PLM
						}
						AND = {	
							exists = c:CEL
							scope:target_country = c:CEL
						}
					}
				}
				add = 100
			}

			min = 0
			max = 200			
		}			
		
		colonization_rights = {
			value = 100
		}	

		unification = {
			value = 500
		
			add = {
				value = scope:target_country.gdp
				divide = 100000
				max = 100						
			}

			if = {
				limit = {
					has_strategic_adjacency = scope:target_country
				}
				multiply = 1.5
			}	
			
			if = {
				limit = {
					lenient_ai_behavior_trigger = yes
				}
				multiply = 0.0
			}

			min = 0
			max = 1000				
		}			

		liberate_subject = {
			value = 0	
			
			if = {
				limit = {
					scope:target_country.top_overlord.infamy >= infamy_threshold:notorious		
				}
				add = 25
				
				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country.top_overlord
							type = rivalry
						}							
					}
					add = 25
				}

				if = {
					limit = {
						scope:target_country.top_overlord.infamy >= infamy_threshold:pariah
					}
					add = 25
				}

				# Relations with subject
				multiply = {
					value = "scope:target_country.relations:root"
					multiply = 0.01
					add = 1
					min = 0.25
					max = 2.0				
				}
				
				# Ideological opinion of subject
				multiply = {
					value = "ai_ideological_opinion(scope:target_country)"
					multiply = 0.05
					add = 1
					min = 0.25
					max = 2.0
				}				
			}	

			min = 0
			max = 100			
		}	

		liberate_country = {
			value = 0
		
			if = {
				limit = {
					scope:target_country.infamy >= infamy_threshold:notorious
				}
				add = 25
				
				if = {
					limit = {
						has_diplomatic_pact = {
							who = scope:target_country
							type = rivalry
						}			
					}
					add = 25
				}

				if = {
					limit = {
						scope:target_country.infamy >= infamy_threshold:pariah
					}
					add = 25
				}

				# Relations with target
				multiply = {
					value = "scope:target_country.relations:root"
					multiply = -0.01
					add = 1
					min = 0.5
					max = 2.0				
				}
				
				# Ideological opinion of target
				multiply = {
					value = "ai_ideological_opinion(scope:target_country)"
					multiply = -0.05
					add = 1
					min = 0.5
					max = 2.0
				}				
			}

			min = 0
			max = 100				
		}

		force_recognition = {
			value = 0
			
			if = {
				limit = {
					country_rank = rank_value:unrecognized_major_power
					navy_size >= 50
					army_size >= 200
					OR = {
						has_strategy = ai_strategy_nationalist_agenda
						has_strategy = ai_strategy_progressive_agenda
						has_strategy = ai_strategy_egalitarian_agenda
					}
				}
				add = 100
			}
		}	

		independence = {
			value = 100
		}	

		secession = {
			value = 100
		}		
	}

	# Trigger for whether this strategy can be randomly allocated to a country
	possible = {
		always = no
	}
	
	weight = {
		value = 0		
	}
}
