CHL_communist_ai_behavior = {
	name = "Chilean Communist Plan"
	desc = ""

	allowed = {
		original_tag = CHL
	}
	enable = {
		OR = {
			has_country_flag = CHL_AI_RANDOM_COMMUNIST
			has_game_rule = {
				rule = CHL_ai_behavior
				option = COMMUNIST
			}
		}
		has_dlc = "Trial of Allegiance"
	}
	abort = {
		is_subject = yes
	}

	ai_national_focuses = {
		#Things to do ASAP
		CHL_union_of_hispanic_republics # 70
		CHL_establish_corfo # 70
		CHL_low_cost_housing # 70
		CHL_strengthen_instituto_nacional # 70
		CHL_increase_presidential_powers # 35
		CHL_the_future_of_Chile # 70
		CHL_support_for_the_international_revolution # 35
		CHL_sponsor_american_revolutions # 70

		# 1936  
		CHL_endorse_the_constitution # 35
		CHL_policies_of_arturo_alessandri # 35
		CHL_suppress_the_nacistas # 35
		SMB_army # 35
		CHL_impose_new_taxes # 35
		CHL_public_works # 70
		CHL_construct_new_hydroelectric_stations # 70
		
		#1937
		CHL_cooperation_with_the_falange # 35
		SMB_air_force # 35
		SMB_navy # 35
		CHL_issue_bonds # 70
		CHL_construct_the_estadio_nacional # 70
		
		
		# 1938 
		CHL_development_inwards # 70
		CHL_an_attempt_to_maintain_our_neutrality # 70
		CHL_land_reforms # 70
		CHL_enact_stricter_labor_laws # 70
		CHL_enact_universal_suffrage # 70

		# 1939
		CHL_enforce_stricter_secularism # 70
		CHL_socialist_youth # 70

		# 1940 
		

		# 1941
		
	
		# 1942
		

		# 1943


		# 1944
	}

	research = {

	}

	ideas = {

	}
	traits = {
		
	}

	

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}


CHL_naziist_ai_behavior = {
	name = "Chilean Bolivar Plan"
	desc = ""

	allowed = {
		original_tag = CHL
	}
	enable = {
		GER = { has_government = fascism }
		OR = {
			has_country_flag = CHL_AI_RANDOM_OPERATION_BOLIVAR
			has_game_rule = {
				rule = CHL_ai_behavior
				option = OPERATION_BOLIVAR
			}
		}
		has_dlc = "Trial of Allegiance"
	}
	abort = {
		OR = {	
			NOT = { GER = { has_government = fascism } }
			is_subject = yes
		}
	}

	ai_national_focuses = {
		#Things to do ASAP
		CHL_restore_the_old_kingdom # 70
		CHL_denounce_the_anarchy # 35
		CHL_empower_the_preparation_department # 70
		CHL_sway_ariosto_hererra # 35
		CHL_inflitrate_the_carabinieros # 35
		CHL_unify_the_fascist_movements # 35
		CHL_more_funds_or_the_propaganda_department # 35
		CHL_request_foreign_support # 35
		CHL_the_popular_freedom_alliance # 35
		CHL_rally_the_people # 35
		
		#1937
		CHL_commence_the_counter_revolution # 70
		CHL_chilean_anti_communist_action # 70
		CHL_syndicalize_the_production_sector # 70
		CHL_departamento_de_la_juventad_nacista # 35
		CHL_expand_the_department_of_provinces # 35
		CHL_ban_liberalism # 35
		CHL_recruit_young_officers # 35
		CHL_enforce_the_chilean_identity # 35
		
		# 1938 
		CHL_promote_broad_anti_americansim # 35
		CHL_cooperate_with_operation_bolivar # 35
		CHL_host_german_intelligence # 35
		CHL_law_of_permanent_defense # 70
		CHL_organize_patriotic_leagues # 70
		CHL_expand_the_investigations_police # 35
		CHL_revoke_the_treaty_of_lima # 70

		# 1939
		CHL_militarize_the_state # 70
		CHL_the_spirit_of_the_war_of_the_pacific # 70
		CHL_demand_the_fireland # 70
		CHL_dissolve_covensa # 70
		CHL_issue_bonds # 70

		# 1940 
		SMB_army # 35
		SMB_military_facilities # 35
		CHL_support_the_colonial_plan # 35
		CHL_demand_demilitarization_of_patagonia # 35
		CHL_enter_patagonia # 70
		CHL_controlled_education # 70

		# 1941
		CHL_impose_new_taxes # 35
		CHL_defense_of_the_hemisphere # 35
	
		# 1942
		

		# 1943


		# 1944
	}

	research = {

	}

	ideas = {

	}
	traits = {
		
	}

	

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}

CHL_pan_hispanist_ai_behavior = {
	name = "Chilean Pan-Hispanic Plan"
	desc = ""

	allowed = {
		original_tag = CHL
	}
	enable = {
		OR = {
			has_country_flag = CHL_AI_RANDOM_PAN_HISPANISM
			has_game_rule = {
				rule = CHL_ai_behavior
				option = PAN_HISPANISM
			}
			AND = {
				OR = {
					has_country_flag = CHL_AI_RANDOM_OPERATION_BOLIVAR
					has_game_rule = {
						rule = CHL_ai_behavior
						option = OPERATION_BOLIVAR
					}
				}
				NOT = { GER = { has_government = fascism } }
			}
		}
		has_dlc = "Trial of Allegiance"
	}
	abort = {
		is_subject = yes
	}

	ai_national_focuses = {
		#Things to do ASAP
		

		# 1936  
		CHL_denounce_the_anarchy # 35
		CHL_empower_the_preparation_department # 70
		CHL_sway_ariosto_hererra # 35
		CHL_inflitrate_the_carabinieros # 35
		CHL_unify_the_fascist_movements # 35
		CHL_more_funds_or_the_propaganda_department # 35
		CHL_proliferate_national_populism # 35
		CHL_the_popular_freedom_alliance # 35
		CHL_rally_the_people # 35
		
		#1937
		CHL_commence_the_counter_revolution # 70
		CHL_syndicalize_the_production_sector # 70
		CHL_departemento_de_las_tropas_nacistas_de_asalto # 35
		CHL_expand_the_department_of_provinces # 35
		CHL_recruit_young_officers # 35
		CHL_enforce_the_chilean_identity # 35
		CHL_chilean_anti_communist_action # 70
		
		# 1938 
		CHL_abide_by_the_francoist_model # 35
		CHL_promote_pan_hispanic_rhetoric # 35
		CHL_military_excercises # 35
		CHL_cultivate_fanaticism # 35
		CHL_law_of_permanent_defense # 70
		CHL_organize_patriotic_leagues # 70
		CHL_the_path_to_conquest
		CHL_the_might_to_defend_our_homes
		CHL_revoke_the_treaty_of_lima
		CHL_demand_the_fireland
		CHL_escalate_the_laguna_del_desierto_issue
		CHL_demand_demilitarization_of_patagonia
		CHL_enter_patagonia
		CHL_controlled_education
		CHL_restore_the_old_kingdom
		CHL_modern_conquistadors
		CHL_an_empire_on_the_pacific



		CHL_push_past_the_darien_gap
		CHL_demand_the_guayanas
		CHL_liberate_the_caribbean
		CHL_press_our_demands
		CHL_unite_hispanic_america
	}

	research = {

	}

	ideas = {

	}
	traits = {
		
	}

	

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}


CHL_anti_imperialist_ai_behavior = {
	name = "Chilean Anti-Imperialist Plan"
	desc = ""

	allowed = {
		original_tag = CHL
	}
	enable = {
		OR = {
			has_country_flag = CHL_AI_RANDOM_ANTI_IMPERIALISM
			has_game_rule = {
				rule = CHL_ai_behavior
				option = ANTI_IMPERIALISM
			}
		}

		has_dlc = "Trial of Allegiance"
	}
	abort = {
		is_subject = yes
	}

	ai_national_focuses = {
		CHL_look_to_tradition # 35
		CHL_ibanezs_coup # 70
		CHL_address_the_mapuche_conflict # 35
		CHL_undermine_the_carabineros_de_chile
		CHL_sociedad_caupolican_defensora_de_la_araucania # 70
		CHL_la_corporacion_araucania # 70
		CHL_union_araucana # 70
		CHL_la_moderna_araucania # 70
		CHL_electing_a_toqui # 35
		CHL_convene_the_araucanian_congress # 35
		CHL_avenge_the_pacification_of_araucania # 70
		SMB_army
		SMB_military_facilities
		SMB_air_force
		CHL_revise_the_social_classes # 70
		CHL_adopt_mapundungun # 35
		CHL_embrace_indigenous_corporatism # 70
		CHL_enlarge_the_textile_industries
		CHL_silverworking # 35
		CHL_expand_the_agricultural_field
		CHL_focus_on_cattle_and_wool
		CHL_honor_the_legacy_of_caupolican # 70
		CHL_incorporate_machi_into_the_army # 35
		CHL_the_patagonian_giants # 70
		CHL_union_of_american_indigenous_peoples # 35
		CHL_taking_back_patagonia # 70
		CHL_crusade_against_imperialism # 70

		CHL_dissolve_covensa
		CHL_we_must_dig_deeper
		CHL_devalue_the_peso
		CHL_public_works
		CHL_expand_the_forestry
		CHL_expand_southern_infrastructure
		CHL_impose_new_taxes
		CHL_issue_bonds
		CHL_utlilize_famae
		CHL_domestic_production_of_the_willys_mb
		CHL_advancements_in_telecommunications
		CHL_establish_the_ministry_of_mining
		CHL_the_nationalization_of_copper
		CHL_high_quality_nitrate
		CHL_strengthen_the_central_bank
	}

	research = {

	}

	ideas = {

	}
	traits = {
		
	}

	

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}


CHL_le_deluge_ai_behavior = {
	name = "Kingdom of Araucania and Patagonia Plan"
	desc = ""

	allowed = {
		original_tag = CHL
	}
	enable = {
		OR = {
			has_country_flag = CHL_AI_RANDOM_LE_DELUGE
			has_game_rule = {
				rule = CHL_ai_behavior
				option = LE_DELUGE
			}
		}
		has_dlc = "Trial of Allegiance"
	}
	abort = {
		is_subject = yes
	}

	ai_national_focuses = {
		CHL_look_to_tradition # 35
		CHL_ibanezs_coup # 70
		CHL_rule_by_decree # 70

		CHL_strengthen_the_carabinieros
		CHL_increase_spending_on_public_works
		CHL_seek_foreign_investments
		CHL_outlaw_socialism
		CHL_sell_arica_to_peru

		#Things to do ASAP
		CHL_crown_antoine_as_sovereign_king # 35

		CHL_request_assistance_in_the_war # 35
		CHL_mobilize_the_veteran_legionaries # 35
		CHL_strike_a_deal_with_the_mapuche # 70
		CHL_attract_additional_french_investments # 35
		CHL_establish_a_royal_guard # 35
		SMB_army
		SMB_military_facilities
		SMB_air_force


		CHL_an_absolute_monarchy # 35
		CHL_invite_french_aristocracy # 70
		CHL_invite_french_academia # 70
		CHL_strengthen_control # 70
		CHL_invite_carlist_refugees
		CHL_introduce_the_franc # 35
		CHL_expand_the_officer_corps # 35
		CHL_the_scouts_monarchist_youth_organization # 35
		CHL_state_catholicism # 70
		CHL_a_new_araucanian_noble_class # 70
		CHL_establish_the_royal_mountaineers # 70
		CHL_the_patagonian_giants # 70
		CHL_taking_back_patagonia # 70
		CHL_an_imperial_capital # 35
		CHL_satellite_kingdoms # 35
		CHL_secure_the_brazilian_border # 35
		CHL_a_new_empire_of_brazil # 70
		CHL_a_french_alliance
		CHL_return_to_the_continent
		CHL_joint_invasion_of_mexico
		CHL_reclaiming_quebec
		CHL_je_suis_le_deluge # 70
		
		#1937
		
		# 1938 

		# 1939

		# 1940 
		CHL_enlarge_the_textile_industries # 70



		CHL_dissolve_covensa
		CHL_we_must_dig_deeper
		CHL_devalue_the_peso
		CHL_public_works
		CHL_expand_the_forestry
		CHL_expand_southern_infrastructure
		CHL_impose_new_taxes
		CHL_issue_bonds
		CHL_utlilize_famae
		CHL_domestic_production_of_the_willys_mb
		CHL_advancements_in_telecommunications
		CHL_establish_the_ministry_of_mining
		CHL_the_nationalization_of_copper
		CHL_high_quality_nitrate
		CHL_strengthen_the_central_bank
	}

	research = {

	}

	ideas = {

	}
	traits = {
		
	}

	

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}



CHL_le_deluge_ai_behavior_B = {
	name = "Kingdom of Araucania and Patagonia Plan"
	desc = ""

	allowed = {
		original_tag = CHL
	}
	enable = {
		OR = {
			has_country_flag = CHL_AI_RANDOM_LE_DELUGE_2
			has_game_rule = {
				rule = CHL_ai_behavior
				option = LE_DELUGE_2
			}
		}
		has_dlc = "Trial of Allegiance"
	}
	abort = {
		is_subject = yes
	}

	ai_national_focuses = {
		CHL_look_to_tradition # 35
		CHL_ibanezs_coup # 70
		CHL_rule_by_decree # 70

		CHL_strengthen_the_carabinieros
		CHL_increase_spending_on_public_works
		CHL_seek_foreign_investments
		CHL_outlaw_socialism
		CHL_sell_arica_to_peru

		#Things to do ASAP
		CHL_crown_antoine_as_sovereign_king # 35

		CHL_request_assistance_in_the_war # 35
		CHL_mobilize_the_veteran_legionaries # 35
		CHL_strike_a_deal_with_the_mapuche # 70
		CHL_attract_additional_french_investments # 35
		CHL_establish_a_royal_guard # 35
		SMB_army
		SMB_military_facilities
		SMB_air_force


		CHL_ibanez_as_prime_minister
		CHL_invite_french_aristocracy # 70
		CHL_invite_french_academia # 70
		CHL_strengthen_control # 70
		CHL_introduce_the_franc # 35
		CHL_expand_the_officer_corps # 35
		CHL_the_scouts_monarchist_youth_organization # 35
		CHL_state_catholicism # 70
		CHL_a_new_araucanian_noble_class # 70
		CHL_establish_the_royal_mountaineers # 70
		CHL_the_patagonian_giants # 70
		CHL_taking_back_patagonia # 70
		CHL_an_imperial_capital # 35
		CHL_satellite_kingdoms # 35
		CHL_secure_the_brazilian_border # 35
		CHL_a_new_empire_of_brazil # 70
		CHL_a_french_alliance
		CHL_return_to_the_continent
		CHL_joint_invasion_of_mexico
		CHL_reclaiming_quebec
		CHL_je_suis_le_deluge # 70
		
		CHL_the_straight_line
		CHL_a_grand_armada

		CHL_enlarge_the_textile_industries # 70



		CHL_dissolve_covensa
		CHL_we_must_dig_deeper
		CHL_devalue_the_peso
		CHL_public_works
		CHL_expand_the_forestry
		CHL_expand_southern_infrastructure
		CHL_impose_new_taxes
		CHL_issue_bonds
		CHL_utlilize_famae
		CHL_domestic_production_of_the_willys_mb
		CHL_advancements_in_telecommunications
		CHL_establish_the_ministry_of_mining
		CHL_the_nationalization_of_copper
		CHL_high_quality_nitrate
		CHL_strengthen_the_central_bank
	}

	research = {

	}

	ideas = {

	}
	traits = {
		
	}

	

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}






