# Written by Killerrabbit

# air_factory_balance
# alliance
# antagonize
# area_priority
# befriend
# build_army
# build_building
# build_ship
# conquer
# contain
# equipment_production_factor
# equipment_stockpile
# garrison
# ignore
# influence
# invade
# pp_spend_priority
# protect
# research_tech
# role_ratio
# send_volunteers_desire
# support
# template_prio
# template_xp_reserve 
# unit_ratio


### Strategy vs ISIS ### (should prio rebels)
SYR_vs_ISIS = {

	enable = {
		OR = {
		original_tag = SYR
		original_tag = HEZ
		original_tag = PER
		original_tag = SOV
		}
	}
	
	abort = {
		NOT = { country_exists = NUS }
		NOT = { country_exists = FSA }
	}
	
	ai_strategy = {
		type = conquer 
		id = "ISI"
		value = -200
	}
	
	ai_strategy = {
		type = invade 
		id = "ISI"
		value = -200
	}
	
	ai_strategy = {
		type = antagonize
		id = "ISI"
		value = -200
	}
	
	ai_strategy = {
		type = contain
		id = "ISI"
		value = -200
	}
	
	ai_strategy = {
		type = ignore 
		id = "ISI"
		value = 200
	}
}

SYR_vs_NUS = {

	enable = {
	OR = {
		original_tag = SYR
		original_tag = HEZ
		original_tag = PER
		original_tag = SOV
		}
	}
	
	abort = {
				NOT = { country_exists = FSA }
	}
	
	ai_strategy = {
		type = conquer 
		id = "NUS"
		value = 50
	}
	
	ai_strategy = {
		type = invade 
		id = "NUS"
		value = 50
	}
	
	ai_strategy = {
		type = antagonize
		id = "NUS"
		value = 100
	}
	
	ai_strategy = {
		type = contain
		id = "NUS"
		value = 100
	}
	
	ai_strategy = {
		type = ignore 
		id = "NUS"
		value = -200
	}
}

SYR_vs_FSA = {

	enable = {
		OR = {
		original_tag = SYR
		original_tag = HEZ
		original_tag = PER
		original_tag = SOV
		}
	}
	
	abort = {
		NOT = { country_exists = NUS }
	}
	
	ai_strategy = {
		type = conquer 
		id = "FSA"
		value = 200
	}
	
	ai_strategy = {
		type = invade 
		id = "FSA"
		value = 200
	}
	
	ai_strategy = {
		type = antagonize
		id = "FSA"
		value = 100
	}
	
	ai_strategy = {
		type = contain
		id = "FSA"
		value = 100
	}
	
	ai_strategy = {
		type = ignore 
		id = "FSA"
		value = -200
	}
}

FSA_take_out_NUS = {
	enable = {
		original_tag = FSA
		has_annex_war_goal = NUS
	}
	abort = {
		NUS = { is_subject_of = FSA }
	}
	ai_strategy = {
		type = conquer
		id = "NUS"
		value = 200
	}
	ai_strategy = {
		type = antagonize
		id = "NUS"
		value = 200
	}
}

NUS_take_out_FSA = {
	enable = {
		original_tag = NUS
		has_annex_war_goal = FSA
	}
	abort = {
		FSA = { is_subject_of = NUS }
	}
	ai_strategy = {
		type = conquer
		id = "FSA"
		value = 200
	}
	ai_strategy = {
		type = antagonize
		id = "FSA"
		value = 200
	}
}

#Syria is friends with Abkhazia
SYR_relations_ABK = {
	enable = {
		original_tag = SYR
	}
	abort = {
		has_war_with = ABK
	}
	ai_strategy = {
		type = befriend
		id = "ABK"
		value = 25
	}
}

#NUS support Al Qaeda 
NUS_support_al_qaeda = {

	reversed = yes
	
	enable = {
		NOT = { original_tag = NUS }
		NUS = { has_completed_focus = SYR_tahrir_show_true_colors }
		OR = {
			original_tag = AQY
			original_tag = SHB
			original_tag = TAL
			original_tag = TTP
		}
		has_government = fascism
	}
	
	abort = {
		NOT = { has_government = fascism }
	}
	
	ai_strategy = {
		type = support
		id = "NUS"
		value = 200
	}
	ai_strategy = {
		type = send_volunteers_desire 
		id = "NUS"
		value = 200
	}
}

#Resist Hezbollah
Resist_hezbollah = {

	enable = {
		has_completed_focus = SYR_against_hezbollah
	}
	
	abort = {
		OR = {
			HEZ = { is_subject_of = ROOT }
			is_in_faction_with = HEZ
		}
	}
	
	ai_strategy = {
		type = antagonize
		id = "HEZ"
		value = 50
	}
	ai_strategy = {
		type = befriend
		id = "HEZ"
		value = -50
	}
	ai_strategy = {
		type = contain
		id = "HEZ"
		value = 50
	}
	
}

#Support Hezbollah
Support_hezbollah = {

	enable = {
		has_completed_focus = SYR_support_hezbollah
	}
	
	abort = {
		has_war_with = HEZ
	}
	
	ai_strategy = {
		type = support
		id = "HEZ"
		value = 50
	}
	ai_strategy = {
		type = befriend
		id = "HEZ"
		value = 50
	}
	
}

#Cooperation with Lebanon against Hezbollah
Syria_help_Lebanon = {
	
	enable = {
		OR = {
			original_tag = SYR
			original_tag = NUS
			original_tag = FSA
		}
		has_country_flag = LEB_agreed_to_help_SYR
	}
	abort = {
		OR = {
			has_war_with = LEB
			NOT = { has_country_flag = LEB_agreed_to_help_SYR }
		}
	}

	ai_strategy = {
		type = befriend
		id = "LEB"
		value = 50
	}
	ai_strategy = {
		type = support
		id = "LEB"
		value = 50
	}
	ai_strategy = {
		type = alliance
		id = "LEB"
		value = 50
	}
}

#Occupy resisting Lebanon
Syria_occupy_Lebanon = {
	
	enable = {
		has_country_flag = Occupy_Lebanon
	}
	abort = {
		OR = {
			LEB = { is_subject_of = ROOT }
			HEZ = { is_subject_of = ROOT }
		}
	}

	ai_strategy = {
		type = conquer
		id = "LEB"
		value = 200
	}
	ai_strategy = {
		type = conquer
		id = "HEZ"
		value = 200
	}
}