reconquista_struggle = {

	##################################################
	# Setup
	##################################################
	cultures = {
		# Northern
		basque
		castilian
		catalan
		portuguese
		galician
		asturleonese
		aragonese
		# Southern
		andalusian
		# Outsider
		bedouin
		levantine
		maghrebi
		baranis
		visigothic
		punic
		roman
		egyptian
	}
	faiths = {
		viaequitum viavindicta vianoctis viaregalis apostlesthirdcaine viahumanitatis pathoftheheavenlyabode viaprometheus viacaeli viacain viachristi
		tariqelsama tariqelumma tariqelharb tariqelbedouin tariqelalaam sheperdsofislam tariqelhaqim pathofrighteousness sisterhoodoferinyes viaeinherjar
	}
	regions = { 
		world_europe_west_iberia
	}

	# A culture or faith becomes involved if 80% of the total number of counties belonging to it are inside the struggle region.
	involvement_prerequisite_percentage = 1

	on_start = {
		# Starting Events
		trigger_event = neutral_struggle.0001
	}

	on_change_phase = {

		# Set up AI Intent
		# trigger_event = fp2_struggle.0003	
	}
	
	# Root = the current struggle
	# scope:character = the character which has joined the struggle
 	on_join = {
		if = {
			limit = {
				is_ai = no
			}
			
				#if = {
				#	limit = {
				#		NOT = { has_character_flag =  pod_reconquista_struggle_intro_event_flag }
				#	}
				#	add_character_flag = pod_reconquista_struggle_intro_event_flag
				#}
			trigger_event = pod_reconquista_struggle.0501
		}
		#else = {
		#	# assign an intent to the freshly joined character
		#	trigger_event = fp2_struggle.004
		#}
 	}  

	##################################################
	# Phases
	##################################################
	start_phase = struggle_reconquista_phase_shadows	
	
	phase_list = {

		struggle_reconquista_phase_shadows = {
			##################################################
			# General Set-Up

			#background = "gfx/interface/illustrations/struggle_#backgrounds/struggle_opportunity_bg.dds"
			
			future_phases = {
				struggle_reconquista_phase_hostility = {						
					catalysts = {
						catalyst_passing_of_time = minimal_struggle_catalyst_gain
						catalyst_gain_claim_on_title_fp2 = minor_struggle_catalyst_gain
						catalyst_win_any_war_within_the_region = minor_struggle_catalyst_gain # Good
						catalyst_new_building_in_castle = minor_struggle_catalyst_gain # How to do AI?
						catalyst_becomes_rival_with_involved = major_struggle_catalyst_gain # Good
						catalyst_using_a_hook_on_very_important_character = medium_struggle_catalyst_gain # good
						catalyst_unnatural_death_important_character = medium_struggle_catalyst_gain
						catalyst_usurp_title_fp2 = major_struggle_catalyst_gain # good
						catalyst_forced_conversion = medium_struggle_catalyst_gain
						catalyst_reveal_secret_important = major_struggle_catalyst_gain
						catalyst_broke_truce_against_important_character = massive_struggle_catalyst_gain # Cannot motivate the AI to do that without code support
					}
				}
				struggle_reconquista_phase_reprieve = {
					catalysts = {
						catalyst_gift_independent_ruler = minor_struggle_catalyst_gain
						catalyst_became_friend_lover_with_character = minor_struggle_catalyst_gain
						catalyst_learned_new_language_important = minor_struggle_catalyst_gain
						catalyst_new_building_in_city = minor_struggle_catalyst_gain
						catalyst_sign_truce_outside_war = minor_struggle_catalyst_gain
						catalyst_formed_interreligious_alliance_with_important_character = minor_struggle_catalyst_gain
						catalyst_ransom_important = medium_struggle_catalyst_gain
						catalyst_grant_privilege_to_diff_faith_culture_vassal = medium_struggle_catalyst_gain
						catalyst_independence_from_non_dejure_vassal = major_struggle_catalyst_gain
						catalyst_grant_land_local_noble = major_struggle_catalyst_gain
						catalyst_became_best_friend_soulmate_with_very_important_character = major_struggle_catalyst_gain
						catalyst_convert_local_culture_faith = major_struggle_catalyst_gain
						catalyst_release_important = massive_struggle_catalyst_gain
					}
				}
			}

			war_effects = {
				###### Common

				# Nothing

				###### Involved
				involved_parameters = {
					unlocks_border_raid_casus_belli = yes
					unlocks_contract_assistance_interaction = yes
					unlocks_bargain_fealty_interaction = yes
				}

				involved_character_modifier = {
					max_hostile_schemes_add = 1
					ai_war_chance = -0.25
					ai_war_cooldown = 0.25				
				}

				###### Interlopers
				interloper_parameters = {
				}

				###### Uninvolved
			}

			faith_effects = {
				###### Common
				common_parameters = {
					cheaper_to_convert_to_struggle_faith = yes
					county_faith_conversion_in_region_proceeds_faster = yes
					holy_wars_in_region_cannot_be_declared = yes
				}

				###### Involved
				involved_parameters = {
				}

				###### Interlopers

				# Nothing

				###### Uninvolved

				# Nothing

			}

			culture_effects = {
				###### Common
				common_parameters = {
				}

				###### Involved
				involved_parameters = {
					learning_languages_gives_prestige = yes
					granting_title_to_local_noble_gives_prestige = yes
					gain_acceptance_when_developing_other_culture_county = yes
				}

				###### Interlopers

				# Nothing

				###### Uninvolved

				# Nothing
			}

			other_effects = {
				###### Common

				# Nothing


				###### Involved
				involved_parameters = {
					unlocks_buy_claim_for_all = yes
					unlocks_demand_payments_for_all = yes
					unlocks_abduct_for_all = yes
					unlocks_fabricate_hooks_for_all = yes
					unlocks_claim_throne_for_all = yes
					unlocks_incite_revolts_interaction = yes
					struggle_unlocks_befriend_schemes_for_everyone = yes
				}

				###### Interlopers
				interloper_parameters = {
					unlocks_secure_reconquista_foothold_decision = yes
				}

				interloper_character_modifier = {
					county_opinion_add = -5
					tax_mult = -0.1
				}

				###### Uninvolved
				uninvolved_parameters = {
					unlocks_secure_reconquista_foothold_decision = yes
				}

				# Really hard for them to stay here
				uninvolved_county_modifier = {
					tax_mult = -0.5
					county_opinion_add = -20
					garrison_size = -0.5
					supply_limit_mult = -0.5
				}

			}

			#We are listing all available decision to give players insights on how they can end the Struggle
			ending_decisions = {
				shadow_reconquista_objective_decision
				ashirra_deconquista_objective_decision
				noconquista_objective_decision
			 }
		}

		# The Hostility phase accounts for the more brutal & fundamentalist side of the struggle; intolerance and violence break out even in stable areas & resentments over slights real or imagined escalate dramatically.
		struggle_reconquista_phase_hostility = {
			##################################################
			# General Set-Up

			#background = "gfx/interface/illustrations/struggle_#backgrounds/struggle_hostility_bg.dds"

			future_phases = {
				struggle_reconquista_phase_reprieve = {
					catalysts = {
						catalyst_passing_of_time = minimal_struggle_catalyst_gain
						catalyst_improve_development_vassal_diff_faith_culture = minimal_struggle_catalyst_gain
						catalyst_gift_independent_ruler = minor_struggle_catalyst_gain
						catalyst_became_friend_lover_with_character = minor_struggle_catalyst_gain
						catalyst_learned_new_language_important = minor_struggle_catalyst_gain
						catalyst_new_building_in_city = minor_struggle_catalyst_gain
						catalyst_sign_truce_outside_war = minor_struggle_catalyst_gain
						catalyst_formed_interreligious_alliance_with_important_character = minor_struggle_catalyst_gain
						catalyst_ransom_important = medium_struggle_catalyst_gain
						catalyst_grant_privilege_to_diff_faith_culture_vassal = medium_struggle_catalyst_gain
						catalyst_independence_from_non_dejure_vassal = major_struggle_catalyst_gain
						catalyst_grant_land_local_noble = major_struggle_catalyst_gain
						catalyst_became_best_friend_soulmate_with_very_important_character = major_struggle_catalyst_gain
						catalyst_convert_local_culture_faith = major_struggle_catalyst_gain
						catalyst_release_important = massive_struggle_catalyst_gain
					}
				}
			}

			war_effects = {
				###### Common
				
				# Nothing

				##### Involved
				involved_parameters = {
					struggle_cb_cost_minor = yes
					truces_by_involved_or_interlopers_within_region_shorter = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_piety_costs = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_costs = yes
					unlocks_border_raid_casus_belli = yes
					unlocks_forced_vassalization_casus_belli = yes
				}

				involved_character_modifier = {
					max_hostile_schemes_add = -1
					same_culture_mercenary_hire_cost_mult = -0.3
					ai_war_chance = 1
					ai_war_cooldown = -0.5
					army_pursuit_mult = 0.2
					army_siege_value_mult = 0.2
					enemy_hard_casualty_modifier = 0.5
				}

				###### Interlopers
				interloper_parameters = {
					truces_by_involved_or_interlopers_within_region_shorter = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_piety_costs = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_costs = yes
				}

				interloper_character_modifier = {
					enemy_hard_casualty_modifier = 0.5
				}

				###### Uninvolved
				uninvolved_parameters = {
				}

			}

			faith_effects = {
				###### Common
				common_parameters = {
					county_faith_conversion_in_region_proceeds_slower = yes
				}

				###### Involved
				involved_parameters = {
				}

				involved_character_modifier = {
					levy_reinforcement_rate_same_faith = 0.5
					domain_tax_different_faith_mult = -0.5
					holy_order_hire_cost_mult = -0.25

					opinion_of_different_faith = -10
				}

				###### Interlopers
				interloper_character_modifier = {
				}

				###### Uninvolved

				# Nothing
			}

			culture_effects = {

				###### Common
				common_parameters = {
					county_culture_conversion_in_region_proceeds_slower = yes
				}

				###### Involved
				involved_character_modifier = {
					opinion_of_different_culture = -10

					cultural_head_fascination_mult = -0.5
					cultural_head_acceptance_gain_mult = -0.5
				}
				###### Interlopers
				interloper_character_modifier = {
					cultural_head_fascination_mult = -0.25
					cultural_head_acceptance_gain_mult = -0.25
				}
				###### Uninvolved

				# Nothing
			}

			other_effects = {
				###### Common
				
				# Nothing

				###### Involved
				involved_parameters = {
					powerful_vassal_can_claim_liege_titles = yes
					unlocks_claim_throne_for_powerful_vassals = yes
					unlocks_truce_purchasing_interaction = yes
					unlocks_expedite_scheme_decision = yes
				}

				involved_character_modifier = {
				}

				involved_county_modifier = {
					development_growth_factor = -0.3
				}

				###### Interlopers
				interloper_parameters = {
					unlocks_secure_reconquista_foothold_decision = yes
				}

				interloper_county_modifier = {
					development_growth_factor = -0.4
				}

				###### Uninvolved
				uninvolved_parameters = {
					unlocks_secure_reconquista_foothold_decision = yes
				}

				uninvolved_county_modifier = {
					development_growth_factor = -0.5
				}
			}

			##################################################
			# Ending

			#We are listing all available decision to give players insights on how they can end the Struggle
			ending_decisions = {
				shadow_reconquista_objective_decision
				ashirra_deconquista_objective_decision
				noconquista_objective_decision
			 }
		}

		# Compromise happens either when Hostility has gone on so long that people are sick of it, or else when Hostility has been narrowly avoided after a bout of Tension and folks're relieved; shared trauma and too much violence encourage people to calm down and live and let live.
		struggle_reconquista_phase_reprieve = {
			##################################################
			# General Set-Up

			#background = "gfx/interface/illustrations/struggle_#backgrounds/struggle_compromise_bg.dds"

			future_phases = {
				struggle_reconquista_phase_shadows = {
					catalysts = {
						catalyst_passing_of_time = minimal_struggle_catalyst_gain
						catalyst_gain_claim_on_title_fp2 = minor_struggle_catalyst_gain
						catalyst_becomes_rival_with_involved = major_struggle_catalyst_gain # Good
						catalyst_using_a_hook_on_very_important_character = medium_struggle_catalyst_gain # good
						catalyst_unnatural_death_important_character = medium_struggle_catalyst_gain
						catalyst_usurp_title_fp2 = major_struggle_catalyst_gain # good
						catalyst_broke_truce_against_important_character = massive_struggle_catalyst_gain # Cannot motivate the AI to do that without code support
					}
				}
				struggle_reconquista_phase_hostility = {						
					catalysts = {
						catalyst_gain_claim_on_title_fp2 = minor_struggle_catalyst_gain
						catalyst_win_any_war_within_the_region = minor_struggle_catalyst_gain # Good
						catalyst_new_building_in_castle = minor_struggle_catalyst_gain # How to do AI?
						catalyst_usurp_title_fp2 = major_struggle_catalyst_gain # good
						catalyst_forced_conversion = medium_struggle_catalyst_gain
						catalyst_reveal_secret_important = major_struggle_catalyst_gain
						catalyst_broke_truce_against_important_character = massive_struggle_catalyst_gain # Cannot motivate the AI to do that without code support
					}
				}				
			}

			war_effects = {
				###### Common
				common_parameters = {
					struggle_clash_restricted_to_single_county = yes
				}

				###### Involved
				involved_parameters = {
					white_peace_acceptance_between_involved_or_interloper_with_region_easier = yes
					truces_by_involved_or_interlopers_within_region_longer = yes
					struggle_cheaper_buy_truce = yes
					unlocks_enforce_truces_interaction = yes
					unlocks_iberian_reclamation_casus_belli = yes
					struggle_cb_cost_major = yes
					involved_or_interloper_diff_faith_wars_in_struggle_region_more_expensive_prestige_costs = yes
					apply_truce_when_sending_ward = yes
					invasion_conquest_war_cannot_be_declared = yes
				}

				involved_character_modifier = {
					ai_war_chance = -0.5
					ai_war_cooldown = 0.25

					levy_reinforcement_rate_friendly_territory = 0.5
					levy_reinforcement_rate_same_faith = 0.5
					garrison_size = 0.25
					defender_advantage = 5
				}
				###### Interlopers
				interloper_parameters = {
					white_peace_acceptance_between_involved_or_interloper_with_region_easier = yes
					truces_by_involved_or_interlopers_within_region_longer = yes
					involved_or_interloper_diff_faith_wars_in_struggle_region_more_expensive_prestige_costs = yes
				}

				interloper_county_modifier = {
					monthly_county_control_decline_at_war_add = -0.01
					monthly_county_control_decline_at_war_factor = -0.25
				}

				###### Uninvolved
				uninvolved_county_modifier = {
					monthly_county_control_decline_at_war_add = -0.02
					monthly_county_control_decline_at_war_factor = -0.5

					defender_holding_advantage = -10
				}
			}

			faith_effects = {
				###### Common
				common_parameters = {
					holy_wars_in_region_cannot_be_declared = yes
					county_faith_conversion_in_region_proceeds_slower = yes
				}

				###### Involved
				involved_parameters = {
					piety_from_new_alliance = yes
					completing_building_in_temple_gives_piety = yes
					release_prisoner_diff_faith_gives_prestige = yes
					same_faith_friend_piety_gain = yes
				}

				involved_character_modifier = {
				}

				###### Interlopers
				interloper_character_modifier = {
				}

				###### Uninvolved

				# Nothing
			}

			culture_effects = {
				###### Common
				common_parameters = {
					county_culture_conversion_in_region_proceeds_faster = yes
				}

				###### Involved
				involved_parameters = {
					release_prisoner_diff_culture_gives_prestige = yes
				}

				involved_character_modifier = {
					cultural_head_acceptance_gain_mult = 0.5
					max_learn_language_schemes_add = 1
				}

				###### Interlopers
				interloper_character_modifier = {
					max_learn_language_schemes_add = 1
				}

				###### Uninvolved

				# Nothing
			}

			other_effects = {
				###### Common
				
				all_county_modifier = {
					development_growth_factor = 0.3
				}
				
				# Nothing

				###### Involved

				involved_parameters = {
					granting_independence_to_non_dejure_gives_renown = yes
					struggle_grant_titles_diff_faith_culture_gives_prestige = yes
				}

				involved_county_modifier = {
					castle_holding_build_gold_cost = -0.25
					castle_holding_holding_build_gold_cost = -0.25
				}

				###### Interlopers
				interloper_character_modifier = {
					county_opinion_add = -10
					tax_mult = -0.25
				}

				###### Uninvolved
				uninvolved_county_modifier = {
					county_opinion_add = -25
					tax_mult = -0.5
				}
			}

			##################################################
			# Ending

			#We are listing all available decision to give players insights on how they can end the Struggle
			ending_decisions = {
				shadow_reconquista_objective_decision
				ashirra_deconquista_objective_decision
				noconquista_objective_decision
			 }
		}

	}
}

assamite_struggle = {

	##################################################
	# Setup
	##################################################
	cultures = {
		egyptian
		persian
		baranis
		levantine
		ashkenazi
		butr
		assyrian
		armenian
		bedouin
		sindhi
		maghrebi
		turkish
		kurdish
		afghan
		greek
		ethiopian
	}
	faiths = {
		roadofagramainyu roadofahuramazda cultofzilah viaanima  
		tariqelsama tariqelumma tariqelharb tariqelbedouin tariqelalaam sheperdsofislam tariqelhaqim pathofrighteousness sisterhoodoferinyes
	}
	regions = { 
		world_middle_east_persia
	}

	# A culture or faith becomes involved if 80% of the total number of counties belonging to it are inside the struggle region.
	involvement_prerequisite_percentage = 1

	on_start = {
		# Starting Events
		#trigger_event = pod_assamite_struggle.0001
		#trigger_event = pod_assamite_struggle.0002
	}

	on_change_phase = {

		# Set up AI Intent
		# trigger_event = fp2_struggle.0003	
	}
	
	# Root = the current struggle
	# scope:character = the character which has joined the struggle
 	on_join = {
		if = {
			limit = {
				is_ai = no
			}

			#if = {
			#		limit = {
			#			NOT = { has_character_flag = pod_assamite_struggle_intro_event_flag }
			#		}
			#		add_character_flag = pod_assamite_struggle_intro_event_flag
			#}
			trigger_event = pod_assamite_struggle.0501
			trigger_event = pod_assamite_struggle.0002
		}
		#else = {
		#	# assign an intent to the freshly joined character
		#	trigger_event = fp2_struggle.004
		#}
 	}  

	##################################################
	# Phases
	##################################################
	start_phase = struggle_assamite_phase_shadows	
	
	phase_list = {

		struggle_assamite_phase_shadows = {
			##################################################
			# General Set-Up

			#background = "gfx/interface/illustrations/struggle_#backgrounds/struggle_opportunity_bg.dds"
			
			future_phases = {
				struggle_assamite_phase_hostility = {						
					catalysts = {
						catalyst_massive_influence_losttribe = medium_struggle_catalyst_gain
						catalyst_massive_influence_wok = medium_struggle_catalyst_gain
						catalyst_no_influence_council = medium_struggle_catalyst_gain
						catalyst_no_influence_ashirra = minimal_struggle_catalyst_gain
						catalyst_no_influence_silsila = minimal_struggle_catalyst_gain

						catalyst_gain_claim_on_title_fp3 = minor_struggle_catalyst_gain
	
						catalyst_becomes_rival_with_involved = major_struggle_catalyst_gain # Good
						catalyst_using_a_hook_on_very_important_character = medium_struggle_catalyst_gain # good
						catalyst_unnatural_death_important_character = medium_struggle_catalyst_gain
						catalyst_usurp_title_fp3 = major_struggle_catalyst_gain # good
						catalyst_forced_conversion = medium_struggle_catalyst_gain
						catalyst_reveal_secret_important = major_struggle_catalyst_gain
					}
				}
				struggle_assamite_phase_reprieve = {
					catalysts = {
						catalyst_no_influence_losttribe = medium_struggle_catalyst_gain
						catalyst_no_influence_wok = medium_struggle_catalyst_gain
						catalyst_massive_influence_council = medium_struggle_catalyst_gain
						catalyst_massive_influence_ashirra = minimal_struggle_catalyst_gain
						catalyst_massive_influence_silsila = minimal_struggle_catalyst_gain

						catalyst_gift_independent_ruler = minimal_struggle_catalyst_gain #changed from minor to 'minimal'
						catalyst_became_friend_lover_with_character = minor_struggle_catalyst_gain
						catalyst_learned_new_language_important = minor_struggle_catalyst_gain
						catalyst_ransom_important = medium_struggle_catalyst_gain
						catalyst_grant_privilege_to_diff_faith_culture_vassal = medium_struggle_catalyst_gain
						catalyst_independence_from_non_dejure_vassal = major_struggle_catalyst_gain
						catalyst_grant_land_local_noble = major_struggle_catalyst_gain
						catalyst_became_best_friend_soulmate_with_very_important_character = major_struggle_catalyst_gain
						catalyst_release_important = massive_struggle_catalyst_gain
					}
				}
			}

			war_effects = {
				###### Common

				# Nothing

				###### Involved
				involved_parameters = {
					unlocks_no_wars = yes
					unlocks_bargain_fealty_interaction = yes
				}

				involved_character_modifier = {
					max_hostile_schemes_add = 1
					hostile_scheme_phase_duration_add = -25
				}

				###### Interlopers
				interloper_parameters = {
				}

				interloper_character_modifier = {
					enemy_hostile_scheme_phase_duration_add = -25
				}

				###### Uninvolved
			}

			faith_effects = {
				###### Common
				common_parameters = {
					county_faith_conversion_in_region_proceeds_faster = yes
				}

				###### Involved
				involved_parameters = {
				}

				###### Interlopers

				# Nothing

				###### Uninvolved

				# Nothing

			}

			culture_effects = {
				###### Common
				common_parameters = {
				}

				###### Involved
				involved_parameters = {
					learning_languages_gives_prestige = yes
				}

				###### Interlopers

				# Nothing

				###### Uninvolved

				# Nothing
			}

			other_effects = {
				###### Common

				# Nothing


				###### Involved
				involved_parameters = {
					unlocks_demand_payments_for_all = yes
					unlocks_abduct_for_all = yes
					unlocks_fabricate_hooks_for_all = yes
					unlocks_claim_throne_for_all = yes
					unlocks_incite_revolts_interaction = yes
					struggle_unlocks_befriend_schemes_for_everyone = yes
				}

				###### Interlopers
				interloper_parameters = {
					unlocks_secure_assamite_foothold_decision = yes
				}

				interloper_character_modifier = {
					county_opinion_add = -10
					tax_mult = -0.25
				}

				###### Uninvolved
				uninvolved_parameters = {
					unlocks_secure_assamite_foothold_decision = yes
				}

				# Really hard for them to stay here
				uninvolved_county_modifier = {
					tax_mult = -0.5
					county_opinion_add = -20
					garrison_size = -0.5
					supply_limit_mult = -0.5
				}

			}

			#We are listing all available decision to give players insights on how they can end the Struggle
			ending_decisions = {
				urshulgi_victory_objective_decision
				assamite_victory_objective_decision
				silsila_victory_objective_decision
				losttribe_victory_objective_decision
			 }
		}

		# The Hostility phase accounts for the more brutal & fundamentalist side of the struggle; intolerance and violence break out even in stable areas & resentments over slights real or imagined escalate dramatically.
		struggle_assamite_phase_hostility = {
			##################################################
			# General Set-Up

			#background = "gfx/interface/illustrations/struggle_#backgrounds/struggle_hostility_bg.dds"

			future_phases = {
				struggle_assamite_phase_reprieve = {
					catalysts = {
						catalyst_no_influence_losttribe = medium_struggle_catalyst_gain
						catalyst_no_influence_wok = medium_struggle_catalyst_gain
						catalyst_massive_influence_council = medium_struggle_catalyst_gain
						catalyst_massive_influence_ashirra = minimal_struggle_catalyst_gain
						catalyst_no_influence_silsila = minimal_struggle_catalyst_gain

						#catalyst_gift_independent_ruler = minor_struggle_catalyst_gain
						catalyst_became_friend_lover_with_character = minor_struggle_catalyst_gain
						catalyst_learned_new_language_important = minor_struggle_catalyst_gain
						catalyst_ransom_important = medium_struggle_catalyst_gain
						catalyst_grant_privilege_to_diff_faith_culture_vassal = medium_struggle_catalyst_gain
						catalyst_independence_from_non_dejure_vassal = major_struggle_catalyst_gain
						catalyst_grant_land_local_noble = major_struggle_catalyst_gain
						catalyst_became_best_friend_soulmate_with_very_important_character = major_struggle_catalyst_gain
						catalyst_release_important = massive_struggle_catalyst_gain
					}
				}
				struggle_assamite_phase_shadows = {						
					catalysts = {
						catalyst_massive_influence_silsila = medium_struggle_catalyst_gain
						catalyst_no_influence_ashirra = medium_struggle_catalyst_gain
						catalyst_massive_influence_losttribe = minimal_struggle_catalyst_gain
						catalyst_massive_influence_wok = minimal_struggle_catalyst_gain
						catalyst_no_influence_council = minimal_struggle_catalyst_gain

						catalyst_gain_claim_on_title_fp3 = minor_struggle_catalyst_gain
	
						catalyst_becomes_rival_with_involved = major_struggle_catalyst_gain # Good
						catalyst_using_a_hook_on_very_important_character = medium_struggle_catalyst_gain # good
						catalyst_unnatural_death_important_character = medium_struggle_catalyst_gain
						catalyst_usurp_title_fp3 = major_struggle_catalyst_gain # good
						catalyst_forced_conversion = medium_struggle_catalyst_gain
						catalyst_reveal_secret_important = major_struggle_catalyst_gain
					}
				}
			}

			war_effects = {
				###### Common
				
				# Nothing

				##### Involved
				involved_parameters = {
					struggle_cb_cost_minor = yes
					truces_by_involved_or_interlopers_within_region_shorter = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_piety_costs = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_costs = yes
					unlocks_border_raid_casus_belli = yes
					unlocks_forced_vassalization_casus_belli = yes
				}

				involved_character_modifier = {
					max_hostile_schemes_add = -1
					levy_size = 0.2
					same_culture_mercenary_hire_cost_mult = -0.3
					ai_war_chance = 1
					ai_war_cooldown = -0.5
					army_pursuit_mult = 0.2
					army_siege_value_mult = 0.2
					enemy_hard_casualty_modifier = 0.5
				}

				###### Interlopers
				interloper_parameters = {
					truces_by_involved_or_interlopers_within_region_shorter = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_piety_costs = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_costs = yes
				}

				interloper_character_modifier = {
					enemy_hard_casualty_modifier = 0.5
				}

				###### Uninvolved
				uninvolved_parameters = {
				}

			}

			faith_effects = {
				###### Common
				common_parameters = {
					county_faith_conversion_in_region_proceeds_slower = yes
				}

				###### Involved
				involved_parameters = {
				}

				involved_character_modifier = {
					levy_reinforcement_rate_same_faith = 0.5
					domain_tax_different_faith_mult = -0.5
					holy_order_hire_cost_mult = -0.25

					opinion_of_different_faith = -20
				}

				###### Interlopers
				interloper_character_modifier = {
				}

				###### Uninvolved

				# Nothing
			}

			culture_effects = {

				###### Common
				common_parameters = {
					county_culture_conversion_in_region_proceeds_slower = yes
				}

				###### Involved
				involved_character_modifier = {

					cultural_head_fascination_mult = -0.5
					cultural_head_acceptance_gain_mult = -0.5
				}
				###### Interlopers
				interloper_character_modifier = {
					cultural_head_fascination_mult = -0.25
					cultural_head_acceptance_gain_mult = -0.25
				}
				###### Uninvolved

				# Nothing
			}

			other_effects = {
				###### Common
				
				# Nothing

				###### Involved
				involved_parameters = {
					powerful_vassal_can_claim_liege_titles = yes
					unlocks_claim_throne_for_powerful_vassals = yes
					unlocks_truce_purchasing_interaction = yes
					unlocks_expedite_scheme_decision = yes
				}

				involved_character_modifier = {
				}

				involved_county_modifier = {
					development_growth_factor = -0.3
				}

				###### Interlopers
				interloper_parameters = {
					unlocks_secure_assamite_foothold_decision = yes
				}

				interloper_county_modifier = {
					development_growth_factor = -0.4
				}

				###### Uninvolved
				uninvolved_parameters = {
					unlocks_secure_assamite_foothold_decision = yes
				}

				uninvolved_county_modifier = {
					development_growth_factor = -0.5
				}
			}

			##################################################
			# Ending

			#We are listing all available decision to give players insights on how they can end the Struggle
			ending_decisions = {
				urshulgi_victory_objective_decision
				assamite_victory_objective_decision
				silsila_victory_objective_decision
				losttribe_victory_objective_decision
			 }
		}

		# Compromise happens either when Hostility has gone on so long that people are sick of it, or else when Hostility has been narrowly avoided after a bout of Tension and folks're relieved; shared trauma and too much violence encourage people to calm down and live and let live.
		struggle_assamite_phase_reprieve = {
			##################################################
			# General Set-Up

			#background = "gfx/interface/illustrations/struggle_#backgrounds/struggle_compromise_bg.dds"

			future_phases = {
				struggle_assamite_phase_shadows = {						
					catalysts = {
						catalyst_massive_influence_silsila = minimal_struggle_catalyst_gain
						catalyst_massive_influence_ashirra = minimal_struggle_catalyst_gain
						catalyst_massive_influence_council = minimal_struggle_catalyst_gain
						catalyst_massive_influence_wok = minimal_struggle_catalyst_gain
						catalyst_massive_influence_losttribe = minimal_struggle_catalyst_gain

						catalyst_no_influence_silsila = minimal_struggle_catalyst_gain
						catalyst_no_influence_ashirra = minimal_struggle_catalyst_gain
						catalyst_no_influence_council = minimal_struggle_catalyst_gain
						catalyst_no_influence_wok = minimal_struggle_catalyst_gain
						catalyst_no_influence_losttribe = minimal_struggle_catalyst_gain

						catalyst_gain_claim_on_title_fp3 = minor_struggle_catalyst_gain
	
						catalyst_becomes_rival_with_involved = major_struggle_catalyst_gain # Good
						catalyst_using_a_hook_on_very_important_character = medium_struggle_catalyst_gain # good
						catalyst_unnatural_death_important_character = medium_struggle_catalyst_gain
						catalyst_usurp_title_fp3 = major_struggle_catalyst_gain # good
						catalyst_forced_conversion = medium_struggle_catalyst_gain
						catalyst_reveal_secret_important = major_struggle_catalyst_gain
					}
				}				
			}

			war_effects = {
				###### Common
				common_parameters = {
					unlocks_no_wars = yes
				}

				###### Involved
				involved_parameters = {
					truces_by_involved_or_interlopers_within_region_longer = yes
				}

				involved_character_modifier = {
					ai_war_chance = -0.5
					ai_war_cooldown = 0.25

					levy_reinforcement_rate_friendly_territory = 0.5
					levy_reinforcement_rate_same_faith = 0.5
					garrison_size = 0.25
					defender_advantage = 5
				}
				###### Interlopers
				interloper_parameters = {
				}

				interloper_county_modifier = {
					monthly_county_control_decline_at_war_add = -0.01
					monthly_county_control_decline_at_war_factor = -0.25
				}

				###### Uninvolved
				uninvolved_county_modifier = {
					monthly_county_control_decline_at_war_add = -0.02
					monthly_county_control_decline_at_war_factor = -0.5

					defender_holding_advantage = -10
				}
			}

			faith_effects = {
				###### Common
				common_parameters = {
				}

				###### Involved
				involved_parameters = {
					piety_from_new_alliance = yes
					release_prisoner_diff_faith_gives_prestige = yes
					same_faith_friend_piety_gain = yes
				}

				involved_character_modifier = {
				}

				###### Interlopers
				interloper_character_modifier = {
				}

				###### Uninvolved

				# Nothing
			}

			culture_effects = {
				###### Common
				common_parameters = {
					county_culture_conversion_in_region_proceeds_faster = yes
				}

				###### Involved
				involved_parameters = {
					release_prisoner_diff_culture_gives_prestige = yes
				}

				involved_character_modifier = {
					cultural_head_acceptance_gain_mult = 0.5
					max_learn_language_schemes_add = 1
				}

				###### Interlopers
				interloper_character_modifier = {
					max_learn_language_schemes_add = 1
				}

				###### Uninvolved

				# Nothing
			}

			other_effects = {
				###### Common
				
				all_county_modifier = {
					development_growth_factor = 0.3
				}
				
				# Nothing

				###### Involved

				involved_parameters = {
					granting_independence_to_non_dejure_gives_renown = yes
					struggle_grant_titles_diff_faith_culture_gives_prestige = yes
				}

				involved_county_modifier = {
					castle_holding_build_gold_cost = -0.25
					castle_holding_holding_build_gold_cost = -0.25
				}

				###### Interlopers
				interloper_character_modifier = {
					county_opinion_add = -10
					tax_mult = -0.25
				}

				###### Uninvolved
				uninvolved_county_modifier = {
					county_opinion_add = -25
					tax_mult = -0.5
				}
			}

			##################################################
			# Ending

			#We are listing all available decision to give players insights on how they can end the Struggle
			ending_decisions = {
				urshulgi_victory_objective_decision
				assamite_victory_objective_decision
				silsila_victory_objective_decision
				losttribe_victory_objective_decision
			 }
		}

	}
}


french_struggle = {

	##################################################
	# Setup
	##################################################
	cultures = {
		french
		occitan
		norman
		breton
		frankish
		visigothic
		greek
		mycenean #for alex
	}
	faiths = {
		viaequitum viavindicta vianoctis viaregalis pathoftheeightfoldwheel viahumanitatis viacain viaprometheus viacaeli viachristi viapura
		eternalsenate viatyrannus viaconsuasor viaredemptio tremerecode viamithras viaadversarius viaanima viacommunitas viamercator viapenaculum
	}
	regions = { 
		world_europe_west_francia
	}

	# A culture or faith becomes involved if 80% of the total number of counties belonging to it are inside the struggle region.
	involvement_prerequisite_percentage = 0.8

	on_start = {
		# Starting Events
		#trigger_event = pod_french_struggle.0001
	}

	on_change_phase = {

		# Set up AI Intent
		# trigger_event = fp2_struggle.0003	
	}
	
	# Root = the current struggle
	# scope:character = the character which has joined the struggle
 	on_join = {
		if = {
			limit = {
				is_ai = no
			}
			
			#if = {
			#		limit = {
			#			NOT = { has_character_flag = pod_french_struggle_intro_event_flag }
			#		}
			#		add_character_flag = pod_french_struggle_intro_event_flag
			#}
			trigger_event = pod_french_struggle.0501
			trigger_event = pod_french_struggle.0001
		}
		#else = {
		#	# assign an intent to the freshly joined character
		#	trigger_event = fp2_struggle.004
		#}
 	}  

	##################################################
	# Phases
	##################################################
	start_phase = struggle_french_phase_chaos	
	
	phase_list = {

		struggle_french_phase_chaos = {
			##################################################
			# General Set-Up

			#background = "gfx/interface/illustrations/struggle_#backgrounds/struggle_hostility_bg.dds"
			
		future_phases = {
				struggle_french_phase_reprieve = {
					catalysts = {
						catalyst_passing_of_time = minimal_struggle_catalyst_gain
						catalyst_improve_development_vassal_diff_faith_culture = minimal_struggle_catalyst_gain
						catalyst_gift_independent_ruler = minor_struggle_catalyst_gain
						catalyst_became_friend_lover_with_character = minor_struggle_catalyst_gain
						catalyst_learned_new_language_important = minor_struggle_catalyst_gain
						catalyst_new_building_in_city = minor_struggle_catalyst_gain
						catalyst_formed_interreligious_alliance_with_important_character = minor_struggle_catalyst_gain
						catalyst_ransom_important = medium_struggle_catalyst_gain
						catalyst_grant_privilege_to_diff_faith_culture_vassal = medium_struggle_catalyst_gain
						catalyst_independence_from_non_dejure_vassal = major_struggle_catalyst_gain
						catalyst_grant_land_local_noble = major_struggle_catalyst_gain
						catalyst_became_best_friend_soulmate_with_very_important_character = major_struggle_catalyst_gain
						catalyst_release_important = massive_struggle_catalyst_gain
					}
				}
			}

			war_effects = {
				###### Common
				
				# Nothing

				##### Involved
				involved_parameters = {
					struggle_cb_cost_minor = yes
					truces_by_involved_or_interlopers_within_region_shorter = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_piety_costs = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_costs = yes
					unlocks_border_raid_casus_belli = yes
					unlocks_forced_vassalization_casus_belli = yes
				}

				involved_character_modifier = {
					max_hostile_schemes_add = -1
					same_culture_mercenary_hire_cost_mult = -0.3
					ai_war_chance = 1
					ai_war_cooldown = -0.5
					army_pursuit_mult = 0.2
					army_siege_value_mult = 0.2
					enemy_hard_casualty_modifier = 0.5
				}

				###### Interlopers
				interloper_parameters = {
					truces_by_involved_or_interlopers_within_region_shorter = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_piety_costs = yes
					involved_or_interloper_wars_in_struggle_region_cheaper_costs = yes
				}

				interloper_character_modifier = {
					enemy_hard_casualty_modifier = 0.5
				}

				###### Uninvolved
				uninvolved_parameters = {
				}

			}

			faith_effects = {
				###### Common
				common_parameters = {
					county_faith_conversion_in_region_proceeds_slower = yes
				}

				###### Involved
				involved_parameters = {
				}

				involved_character_modifier = {
				}

				###### Interlopers
				interloper_character_modifier = {
				}

				###### Uninvolved

				# Nothing
			}

			culture_effects = {

				###### Common
				common_parameters = {
					county_culture_conversion_in_region_proceeds_slower = yes
				}

				###### Involved
				involved_character_modifier = {
					opinion_of_different_culture = -15

					cultural_head_fascination_mult = -0.5
					cultural_head_acceptance_gain_mult = -0.5
				}
				###### Interlopers
				interloper_character_modifier = {
				}
				###### Uninvolved

				# Nothing
			}

			other_effects = {
				###### Common
				
				# Nothing

				###### Involved
				involved_parameters = {
					struggle_parameter_less_factions_by_involved = yes
					struggle_parameter_no_revoke_by_involved = yes
					powerful_vassal_can_claim_liege_titles = yes
					unlocks_claim_throne_for_powerful_vassals = yes
				}

				involved_character_modifier = {
				}

				involved_county_modifier = {
					development_growth_factor = -0.3
				}

				###### Interlopers
				interloper_parameters = {
				}

				interloper_county_modifier = {
				}

				###### Uninvolved
				uninvolved_parameters = {
				}

				uninvolved_county_modifier = {
				}
			}

			##################################################
			# Ending

			#We are listing all available decision to give players insights on how they can end the Struggle
			ending_decisions = {
				french_victory_objective_decision
				english_victory_objective_decision
				german_victory_objective_decision
			 }
		}

		# The Hostility phase accounts for the more brutal & fundamentalist side of the struggle; intolerance and violence break out even in stable areas & resentments over slights real or imagined escalate dramatically.
		struggle_french_phase_reprieve = {
			##################################################
			# General Set-Up

			#background = "gfx/interface/illustrations/struggle_#backgrounds/struggle_hostility_bg.dds"

			future_phases = {
				struggle_french_phase_chaos = {
					catalysts = {
						catalyst_passing_of_time = minimal_struggle_catalyst_gain						
						catalyst_gain_claim_on_title_fp3 = minor_struggle_catalyst_gain
						catalyst_win_any_war_within_the_region = minor_struggle_catalyst_gain # Good
						catalyst_new_building_in_castle = minor_struggle_catalyst_gain # How to do AI?
						catalyst_usurp_title_fp3 = major_struggle_catalyst_gain # good
						catalyst_forced_conversion = medium_struggle_catalyst_gain
						catalyst_reveal_secret_important = major_struggle_catalyst_gain
						catalyst_broke_truce_against_important_character = massive_struggle_catalyst_gain
					}
				}
			}

			war_effects = {
				###### Common
				
				# Nothing

				##### Involved
				involved_parameters = {
					struggle_parameter_no_revoke_by_involved = yes
					unlocks_border_raid_casus_belli = yes
					unlocks_contract_assistance_interaction = yes
					unlocks_bargain_fealty_interaction = yes
				}

				involved_character_modifier = {
					max_hostile_schemes_add = 1
					max_personal_schemes_add = 1
				}

				###### Interlopers
				interloper_parameters = {
					truces_by_involved_or_interlopers_within_region_shorter = yes
				}

				interloper_character_modifier = {
				}

				###### Uninvolved
				uninvolved_parameters = {
				}

			}

			faith_effects = {
				###### Common
				common_parameters = {
					county_faith_conversion_in_region_proceeds_slower = yes
				}

				###### Involved
				involved_parameters = {
				}

				involved_character_modifier = {
					levy_reinforcement_rate_same_faith = 0.5
				}

				###### Interlopers
				interloper_character_modifier = {
				}

				###### Uninvolved

				# Nothing
			}

			culture_effects = {

				###### Common
				common_parameters = {
					county_culture_conversion_in_region_proceeds_slower = yes
				}

				###### Involved
				involved_character_modifier = {
					cultural_head_fascination_mult = 0.25
					cultural_head_acceptance_gain_mult = 0.25
				}
				###### Interlopers
				interloper_character_modifier = {
				}
				###### Uninvolved

				# Nothing
			}

			other_effects = {
				###### Common
				
				# Nothing

				###### Involved
				involved_parameters = {
					powerful_vassal_can_claim_liege_titles = yes
					unlocks_claim_throne_for_powerful_vassals = yes
					unlocks_truce_purchasing_interaction = yes
				}

				involved_character_modifier = {
				}

				involved_county_modifier = {
				}

				###### Interlopers
				interloper_parameters = {
				}

				interloper_county_modifier = {
				}

				###### Uninvolved
				uninvolved_parameters = {
				}

				uninvolved_county_modifier = {
				}
			}

			##################################################
			# Ending

			#We are listing all available decision to give players insights on how they can end the Struggle
			ending_decisions = {
				french_victory_objective_decision
				english_victory_objective_decision
				german_victory_objective_decision
			 }
		}

	}
}
