﻿
@triggervalue_pos = 30
@triggervalue_neg = -30

# ==============================================================================
#   SHARED RESOURCE EFFECTS (REFACTOR)
# ==============================================================================

# --- Gold Effects (Tiered) ---

gptev_effect_add_gold_small = {
	if = {
		limit = { has_treasury = yes }
		add_treasury = {
			value = 15
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
	else_if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = 125 }
	}
	else = {
		add_gold = {
			value = 15
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
}

gptev_effect_remove_gold_small = {
	if = {
		limit = { has_treasury = yes }
		remove_treasury = {
			value = 15
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
	else_if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = -125 }
	}
	else = {
		remove_short_term_gold = {
			value = 15
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
}

gptev_effect_add_gold_large = {
	# Note: Source did not include provisions logic for large add
	if = {
		limit = { has_treasury = yes }
		add_treasury = {
			value = 45
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
	else = {
		add_gold = {
			value = 45
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
}

gptev_effect_remove_gold_large = {
	if = {
		limit = { has_treasury = yes }
		remove_treasury = {
			value = 45
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
	else_if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = -375 }
	}
	else = {
		remove_short_term_gold = {
			value = 45
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
}

# --- Influence / Legitimacy Effects (Tiered) ---

gptev_effect_add_influence_or_legitimacy_small = {
	if = {
		limit = { government_has_flag = government_has_influence }
		change_influence = {
			value = 10
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
	else_if = {
		limit = { has_legitimacy = yes }
		add_legitimacy = {
			value = 15
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
}

gptev_effect_remove_influence_or_legitimacy_small = {
	if = {
		limit = { government_has_flag = government_has_influence }
		change_influence = {
			value = -10
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
	else_if = {
		limit = { has_legitimacy = yes }
		add_legitimacy = {
			value = -15
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
}

gptev_effect_add_influence_or_legitimacy_large = {
	if = {
		limit = { government_has_flag = government_has_influence }
		change_influence = {
			value = 30
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
	else_if = {
		limit = { has_legitimacy = yes }
		add_legitimacy = {
			value = 45
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
}

gptev_effect_remove_influence_or_legitimacy_large = {
	if = {
		limit = { government_has_flag = government_has_influence }
		change_influence = {
			value = -30
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
	else_if = {
		limit = { has_legitimacy = yes }
		add_legitimacy = {
			value = -45
			multiply = highest_held_title_tier multiply = 0.5
		}
	}
}

# --- Prestige & Piety Effects (Tiered Math) ---

gptev_effect_add_prestige_tiered_small = {
	add_prestige = {
		value = 25
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_remove_prestige_tiered_small = {
	add_prestige = {
		value = -25
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_add_prestige_tiered_large = {
	add_prestige = {
		value = 75
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_remove_prestige_tiered_large = {
	add_prestige = {
		value = -75
		multiply = highest_held_title_tier multiply = 0.5
	}
}

gptev_effect_add_piety_tiered_small = {
	add_piety = {
		value = 25
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_remove_piety_tiered_small = {
	add_piety = {
		value = -25
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_add_piety_tiered_large = {
	add_piety = {
		value = 75
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_remove_piety_tiered_large = {
	add_piety = {
		value = -75
		multiply = highest_held_title_tier multiply = 0.5
	}
}

# --- Experience Effects (Tiered Math) ---

gptev_effect_add_prestige_experience_tiered_small = {
	add_prestige_experience = {
		value = 65
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_remove_prestige_experience_tiered_small = {
	add_prestige_experience = {
		value = -65
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_add_prestige_experience_tiered_large = {
	add_prestige_experience = {
		value = 195
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_remove_prestige_experience_tiered_large = {
	add_prestige_experience = {
		value = -195
		multiply = highest_held_title_tier multiply = 0.5
	}
}

gptev_effect_add_piety_experience_tiered_small = {
	add_piety_experience = {
		value = 50
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_remove_piety_experience_tiered_small = {
	add_piety_experience = {
		value = -50
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_add_piety_experience_tiered_large = {
	add_piety_experience = {
		value = 150
		multiply = highest_held_title_tier multiply = 0.5
	}
}
gptev_effect_remove_piety_experience_tiered_large = {
	add_piety_experience = {
		value = -150
		multiply = highest_held_title_tier multiply = 0.5
	}
}

# --- Friendly Event Costs ---

gptev_effect_friendly_event_cost_gold = {
	if = {
		limit = { has_treasury = yes }
		remove_treasury = {
			value = sub_realm_size
			multiply = highest_held_title_tier multiply = 0.5
			min = 25
			max = 175
		}
	}
	else = {
		remove_short_term_gold = {
			value = sub_realm_size
			multiply = highest_held_title_tier multiply = 0.5
			min = 25
			max = 175
		}
	}
}

gptev_effect_friendly_event_cost_prestige = {
	add_prestige = {
		value = sub_realm_size
		multiply = 2
		multiply = highest_held_title_tier multiply = 0.5
		multiply = -1
		max = -75
		min = -250
	}
}

# ==============================================================================
#   EXISTING EFFECTS
# ==============================================================================

gptev_add_prestige_small = { add_prestige = 50 }
gptev_add_prestige_medium = { add_prestige = 75 }
gptev_add_prestige_large = { add_prestige = 100 }
gptev_add_prestige_huge = { add_prestige = 150 }
gptev_remove_prestige_tiny = { add_prestige = -50 }
gptev_remove_prestige_small = { add_prestige = -75 }
gptev_remove_prestige_medium = { add_prestige = -100 }
gptev_remove_prestige_large = { add_prestige = -125 }
gptev_remove_prestige_huge = { add_prestige = -150 }
gptev_remove_prestige_massive = { add_prestige = -175 }
gptev_remove_prestige_gigantic = { add_prestige = -150 }
gptev_remove_prestige_colossal = { add_prestige = -125 }
gptev_remove_prestige_enormous = { add_prestige = -200 }

gptev_add_piety_tiny = { add_piety = 50 }
gptev_add_piety_new_large = { add_piety = 150 }
gptev_remove_piety_gigantic = { add_piety = -200 }
gptev_remove_piety_enormous = { add_piety = -300 }

gptev_add_gold_small = {
	if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = { value = 15 multiply = root.adv_pop_value min = 100 } }
	}
	else_if = {
		limit = { has_treasury = yes }
		add_treasury = 50
	}
	else = {
		add_gold = 50
	}
}

gptev_remove_gold_small_percent = {
	if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = { value = -20 multiply = root.adv_pop_value max = -200 } }
	}
	else_if = {
		limit = { has_treasury = yes }
		remove_treasury = { value = gold divide = 25 min = 20 max = 80 }
	}
	else = {
		remove_short_term_gold = { value = gold divide = 25 min = 20 max = 80 }
	}
}
gptev_remove_gold_medium_percent = {
	if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = { value = -40 multiply = root.adv_pop_value max = -250 } }
	}
	else_if = {
		limit = { has_treasury = yes }
		remove_treasury = { value = gold divide = 20 min = 25 max = 100 }
	}
	else = {
		remove_short_term_gold = { value = gold divide = 20 min = 25 max = 100 }
	}
}
gptev_remove_gold_large_percent = {
	if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = { value = -60 multiply = root.adv_pop_value max = -300 } }
	}
	else_if = {
		limit = { has_treasury = yes }
		remove_treasury = { value = gold divide = 16 min = 50 max = 200 }
	}
	else = {
		remove_short_term_gold = { value = gold divide = 16 min = 50 max = 200 }
	}
}
gptev_remove_gold_huge_percent = {
	if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = { value = -80 multiply = root.adv_pop_value max = -350 } }
	}
	else_if = {
		limit = { has_treasury = yes }
		remove_treasury = { value = gold divide = 15 min = 50 max = 200 }
	}
	else = {
		remove_short_term_gold = { value = gold divide = 15 min = 50 max = 200 }
	}
}
gptev_remove_gold_massive_percent = {
	if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = { value = -100 multiply = root.adv_pop_value max = -400 } }
	}
	else_if = {
		limit = { has_treasury = yes }
		remove_treasury = { value = gold divide = 12 min = 75 max = 300 }
	}
	else = {
		remove_short_term_gold = { value = gold divide = 12 min = 75 max = 300 }
	}
}
gptev_remove_gold_gigantic_percent = {
	if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = { value = -100 multiply = root.adv_pop_value max = -450 } }
	}
	else_if = {
		limit = { has_treasury = yes }
		remove_treasury = { value = gold divide = 10 min = 75 max = 300 }
	}
	else = {
		remove_short_term_gold = { value = gold divide = 10 min = 75 max = 300 }
	}
}
gptev_remove_gold_colossal_percent = {
	if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = { value = -125 multiply = root.adv_pop_value max = -500 } }
	}
	else_if = {
		limit = { has_treasury = yes }
		remove_treasury = { value = gold divide = 8 min = 100 max = 400 }
	}
	else = {
		remove_short_term_gold = { value = gold divide = 8 min = 100 max = 400 }
	}
}
gptev_remove_medium_gold_value = {
	if = {
		limit = { is_landless_adventurer = yes }
		domicile ?= { change_provisions = { value = -75 multiply = root.adv_pop_value max = -250 } }
	}
	else_if = {
		limit = { has_treasury = yes }
		remove_treasury = scope:actor.medium_gold_value
	}
	else = {
		remove_short_term_gold = scope:actor.medium_gold_value
	}
}

gptev_add_dread_tiny = { add_dread = 5 }
gptev_add_dread_small = { add_dread = 8 }
gptev_add_dread_medium = { add_dread = 10 }
gptev_add_dread_large = { add_dread = 12 }
gptev_add_dread_huge = { add_dread = 10 }
gptev_add_dread_massive = { add_dread = 16 }
gptev_add_dread_gigantic = { add_dread = 20 }
gptev_add_dread_colossal = { add_dread = 25 }
gptev_remove_dread_tiny = { add_dread = -5 }
gptev_remove_dread_small = { add_dread = -8 }
gptev_remove_dread_medium = { add_dread = -10 }
gptev_remove_dread_large = { add_dread = -12 }
gptev_remove_dread_huge = { add_dread = -10 }
gptev_remove_dread_massive = { add_dread = -16 }
gptev_remove_dread_gigantic = { add_dread = -20 }

gptev_add_piety_small = { add_piety = 75 }
gptev_add_piety_medium = { add_piety = 100 }
gptev_add_piety_large = { add_piety = 200 }
gptev_add_piety_huge = { add_piety = 300 }
gptev_remove_piety_tiny = { add_piety = -50 }
gptev_remove_piety_small = { add_piety = -75 }
gptev_remove_piety_medium = { add_piety = -100 }
gptev_remove_piety_large = { add_piety = -125 }
gptev_remove_piety_huge = { add_piety = -150 }
gptev_remove_piety_massive = { add_piety = -175 }

gptev_add_tyranny_tiny = { add_tyranny = 4 }
gptev_add_tyranny_small = { add_tyranny = 5 }
gptev_add_tyranny_medium = { add_tyranny = 6 }
gptev_add_tyranny_large = { add_tyranny = 8 }
gptev_add_tyranny_huge = { add_tyranny = 10 }
gptev_add_tyranny_massive = { add_tyranny = 12 }
gptev_add_tyranny_gigantic = { add_tyranny = 15 }
gptev_add_tyranny_colossal = { add_tyranny = 16 }

gptev_add_weight_small = { change_current_weight = 30 }
gptev_add_weight_medium = { change_current_weight = 45 }
gptev_add_weight_large = { change_current_weight = 70 }
gptev_remove_weight_small = { change_current_weight = -20 }
gptev_remove_weight_medium = { change_current_weight = -30 }
gptev_remove_weight_large = { change_current_weight = -40 }

gptev_massive_prestige_loss = { add_prestige = massive_prestige_loss }

gptev_consort_friendly_event_positive_cost_effect = {
	add_dread = -10
	gptev_effect_friendly_event_cost_gold = yes
	gptev_effect_friendly_event_cost_prestige = yes
}
gptev_consort_friendly_event_negative_cost_effect = {
	add_dread = 10
}

gptev_courtier_friendly_event_positive_cost_effect = {
	add_dread = -10
	gptev_effect_friendly_event_cost_gold = yes
	gptev_effect_friendly_event_cost_prestige = yes
}
gptev_courtier_friendly_event_negative_cost_effect = {
	add_dread = 10
}

gptev_courtier_1_reprimend_effect = {
	# 0001: Compassionate vs Callous/Sadistic -> Reprimand Compassionate (Side with Callous)
	if = {
		limit = { scope:courtier_1 = { has_trait = compassionate } scope:courtier_2 = { OR = { has_trait = callous has_trait = sadistic } } }
		add_dread = 10
		gptev_effect_remove_piety_tiered_small = yes
	}
	# 0001: Callous/Sadistic vs Compassionate -> Reprimand Callous (Side with Compassionate)
	else_if = {
		limit = { scope:courtier_1 = { OR = { has_trait = callous has_trait = sadistic } } scope:courtier_2 = { has_trait = compassionate } }
		add_dread = -10
		gptev_effect_add_piety_tiered_small = yes
	}
	# 0002: Just vs Arbitrary -> Reprimand Just (Side with Arbitrary)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = just } scope:courtier_2 = { has_trait = arbitrary } }
		gptev_effect_remove_influence_or_legitimacy_small = yes
		gptev_effect_add_prestige_tiered_small = yes
	}
	# 0002: Arbitrary vs Just -> Reprimand Arbitrary (Side with Just)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = arbitrary } scope:courtier_2 = { has_trait = just } }
		gptev_effect_add_influence_or_legitimacy_small = yes
		gptev_effect_remove_prestige_tiered_small = yes
	}
	# 0003: Greedy vs Generous -> Reprimand Greedy (Side with Generous)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = greedy } scope:courtier_2 = { has_trait = generous } }
		gptev_effect_remove_gold_small = yes
		gptev_effect_add_prestige_experience_tiered_small = yes
	}
	# 0003: Generous vs Greedy -> Reprimand Generous (Side with Greedy)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = generous } scope:courtier_2 = { has_trait = greedy } }
		gptev_effect_add_gold_small = yes
		gptev_effect_remove_prestige_experience_tiered_small = yes
	}
	# 0004: Brave vs Craven -> Reprimand Brave (Side with Craven)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = brave } scope:courtier_2 = { has_trait = craven } }
		add_dread = -10
		gptev_effect_add_piety_experience_tiered_small = yes
	}
	# 0004: Craven vs Brave -> Reprimand Craven (Side with Brave)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = craven } scope:courtier_2 = { has_trait = brave } }
		add_dread = 10
		gptev_effect_remove_piety_experience_tiered_small = yes
	}
	# 0005: Gregarious vs Shy -> Reprimand Gregarious (Side with Shy)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = gregarious } scope:courtier_2 = { has_trait = shy } }
		gptev_effect_remove_prestige_tiered_small = yes
		gptev_effect_add_piety_tiered_small = yes
	}
	# 0005: Shy vs Gregarious -> Reprimand Shy (Side with Gregarious)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = shy } scope:courtier_2 = { has_trait = gregarious } }
		gptev_effect_add_prestige_tiered_small = yes
		gptev_effect_remove_piety_tiered_small = yes
	}
	# 0006: Diligent vs Lazy -> Reprimand Diligent (Side with Lazy)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = diligent } scope:courtier_2 = { has_trait = lazy } }
		gptev_effect_remove_influence_or_legitimacy_small = yes
		gptev_effect_add_gold_small = yes
	}
	# 0006: Lazy vs Diligent -> Reprimand Lazy (Side with Diligent)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = lazy } scope:courtier_2 = { has_trait = diligent } }
		gptev_effect_add_influence_or_legitimacy_small = yes
		gptev_effect_remove_gold_small = yes
	}
	# 0007: Calm vs Wrathful -> Reprimand Calm (Side with Wrathful)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = calm } scope:courtier_2 = { has_trait = wrathful } }
		add_dread = 10
		gptev_effect_remove_gold_small = yes
	}
	# 0007: Wrathful vs Calm -> Reprimand Wrathful (Side with Calm)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = wrathful } scope:courtier_2 = { has_trait = calm } }
		add_dread = -10
		gptev_effect_add_gold_small = yes
	}
	# 0008: Zealous vs Cynical -> Reprimand Zealous (Side with Cynical)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = zealous } scope:courtier_2 = { has_trait = cynical } }
		gptev_effect_remove_piety_experience_tiered_small = yes
		gptev_effect_add_prestige_experience_tiered_small = yes
	}
	# 0008: Cynical vs Zealous -> Reprimand Cynical (Side with Zealous)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = cynical } scope:courtier_2 = { has_trait = zealous } }
		gptev_effect_add_piety_experience_tiered_small = yes
		gptev_effect_remove_prestige_experience_tiered_small = yes
	}
	# 0009: Vengeful vs Forgiving -> Reprimand Vengeful (Side with Forgiving)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = vengeful } scope:courtier_2 = { has_trait = forgiving } }
		add_dread = -10
		gptev_effect_add_influence_or_legitimacy_small = yes
	}
	# 0009: Forgiving vs Vengeful -> Reprimand Forgiving (Side with Vengeful)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = forgiving } scope:courtier_2 = { has_trait = vengeful } }
		add_dread = 10
		gptev_effect_remove_influence_or_legitimacy_small = yes
	}

	# --- Fixes for Traits 2 Batch (0010-0017) ---
	# Assumptions: C1 is Positive/Passive, C2 is Negative/Active (based on On_Actions fix)
	
	# 0010: Chaste vs Lustful -> Reprimand Chaste (Side with Lustful)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = chaste } scope:courtier_2 = { has_trait = lustful } }
		gptev_effect_remove_piety_tiered_small = yes
		gptev_effect_add_prestige_experience_tiered_small = yes
	}
	# 0010: Lustful vs Chaste -> Reprimand Lustful (Side with Chaste)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = lustful } scope:courtier_2 = { has_trait = chaste } }
		gptev_effect_add_piety_tiered_small = yes
		gptev_effect_remove_prestige_experience_tiered_small = yes
	}

	# 0011: Content vs Ambitious -> Reprimand Content (Side with Ambitious)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = content } scope:courtier_2 = { has_trait = ambitious } }
		gptev_effect_add_influence_or_legitimacy_small = yes
		gptev_effect_remove_gold_small = yes
	}
	# 0011: Ambitious vs Content -> Reprimand Ambitious (Side with Content)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = ambitious } scope:courtier_2 = { has_trait = content } }
		gptev_effect_remove_influence_or_legitimacy_small = yes
		gptev_effect_add_gold_small = yes
	}

	# 0012: Honest vs Deceitful -> Reprimand Honest (Side with Deceitful)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = honest } scope:courtier_2 = { has_trait = deceitful } }
		add_dread = 10
		gptev_effect_remove_prestige_tiered_small = yes
	}
	# 0012: Deceitful vs Honest -> Reprimand Deceitful (Side with Honest)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = deceitful } scope:courtier_2 = { has_trait = honest } }
		add_dread = -10
		gptev_effect_add_prestige_tiered_small = yes
	}

	# 0013: Humble vs Arrogant -> Reprimand Humble (Side with Arrogant)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = humble } scope:courtier_2 = { has_trait = arrogant } }
		gptev_effect_remove_piety_experience_tiered_small = yes
		gptev_effect_add_influence_or_legitimacy_small = yes
	}
	# 0013: Arrogant vs Humble -> Reprimand Arrogant (Side with Humble)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = arrogant } scope:courtier_2 = { has_trait = humble } }
		gptev_effect_add_piety_experience_tiered_small = yes
		gptev_effect_remove_influence_or_legitimacy_small = yes
	}

	# 0014: Patient vs Impatient -> Reprimand Patient (Side with Impatient)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = patient } scope:courtier_2 = { has_trait = impatient } }
		gptev_effect_remove_prestige_experience_tiered_small = yes
		gptev_effect_add_gold_small = yes
	}
	# 0014: Impatient vs Patient -> Reprimand Impatient (Side with Patient)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = impatient } scope:courtier_2 = { has_trait = patient } }
		gptev_effect_add_prestige_experience_tiered_small = yes
		gptev_effect_remove_gold_small = yes
	}

	# 0015: Temperate vs Gluttonous -> Reprimand Temperate (Side with Gluttonous)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = temperate } scope:courtier_2 = { has_trait = gluttonous } }
		gptev_effect_remove_piety_experience_tiered_small = yes
		gptev_effect_remove_gold_small = yes
	}
	# 0015: Gluttonous vs Temperate -> Reprimand Gluttonous (Side with Temperate)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = gluttonous } scope:courtier_2 = { has_trait = temperate } }
		gptev_effect_add_piety_experience_tiered_small = yes
		gptev_effect_add_gold_small = yes
	}

	# 0016: Trusting vs Paranoid -> Reprimand Trusting (Side with Paranoid)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = trusting } scope:courtier_2 = { has_trait = paranoid } }
		add_dread = 10
		gptev_effect_remove_prestige_experience_tiered_small = yes
	}
	# 0016: Paranoid vs Trusting -> Reprimand Paranoid (Side with Trusting)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = paranoid } scope:courtier_2 = { has_trait = trusting } }
		add_dread = -10
		gptev_effect_add_prestige_experience_tiered_small = yes
	}

	# 0017: Fickle vs Stubborn -> Reprimand Fickle (Side with Stubborn)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = fickle } scope:courtier_2 = { has_trait = stubborn } }
		gptev_effect_add_piety_tiered_small = yes
		gptev_effect_remove_influence_or_legitimacy_small = yes
	}
	# 0017: Stubborn vs Fickle -> Reprimand Stubborn (Side with Fickle)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = stubborn } scope:courtier_2 = { has_trait = fickle } }
		gptev_effect_remove_piety_tiered_small = yes
		gptev_effect_add_influence_or_legitimacy_small = yes
	}
	else = {  }

	# Standard Reprimand Outcome
	if = {
		limit = { scope:courtier_1 = { is_consort_of = root } }
		scope:courtier_1 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = consort_humbled_modifier days = 1825 }
			add_stress = 30
		}
	}
	else = {
		scope:courtier_1 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = courtier_humbled_modifier days = 1825 }
			add_stress = 30
		}
	}
	if = {
		limit = { scope:courtier_1 = { is_close_family_of = root } }
		show_as_tooltip = { custom_tooltip = gptev_family_rep_courtier_1_tt }
		add_stress = 10
	}
	else_if = {
		limit = { scope:courtier_1 = { is_close_or_extended_family_of = root } }
		show_as_tooltip = { custom_tooltip = gptev_kin_rep_courtier_1_tt }
		add_stress = 5
	}
	if = {
		limit = { reverse_opinion = { target = scope:courtier_1 value >= 80 } }
		show_as_tooltip = { custom_tooltip = gptev_maj_stress_courtier_1_tt }
		add_stress = 15
	}
	else_if = {
		limit = { reverse_opinion = { target = scope:courtier_1 value >= 50 } }
		show_as_tooltip = { custom_tooltip = gptev_mid_stress_courtier_1_tt }
		add_stress = 10
	}
	else_if = {
		limit = { reverse_opinion = { target = scope:courtier_1 value >= 20 } }
		show_as_tooltip = { custom_tooltip = gptev_min_stress_courtier_1_tt }
		add_stress = 5
	}
	scope:courtier_2 = { add_opinion = { target = root modifier = grateful_opinion opinion = 20 } }
}

gptev_courtier_2_reprimend_effect = {
	# 0001: Compassionate vs Callous/Sadistic -> Reprimand Callous (Side with Compassionate)
	if = {
		limit = { scope:courtier_2 = { OR = { has_trait = callous has_trait = sadistic } } scope:courtier_1 = { has_trait = compassionate } }
		add_dread = -10
		gptev_effect_add_piety_tiered_small = yes
	}
	# 0001: Callous/Sadistic vs Compassionate -> Reprimand Compassionate (Side with Callous)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = compassionate } scope:courtier_1 = { OR = { has_trait = callous has_trait = sadistic } } }
		add_dread = 10
		gptev_effect_remove_piety_tiered_small = yes
	}
	# 0002: Just vs Arbitrary -> Reprimand Arbitrary (Side with Just)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = arbitrary } scope:courtier_1 = { has_trait = just } }
		gptev_effect_add_influence_or_legitimacy_small = yes
		gptev_effect_remove_prestige_tiered_small = yes
	}
	# 0002: Arbitrary vs Just -> Reprimand Just (Side with Arbitrary)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = just } scope:courtier_1 = { has_trait = arbitrary } }
		gptev_effect_remove_influence_or_legitimacy_small = yes
		gptev_effect_add_prestige_tiered_small = yes
	}
	# 0003: Greedy vs Generous -> Reprimand Generous (Side with Greedy)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = generous } scope:courtier_1 = { has_trait = greedy } }
		gptev_effect_add_gold_small = yes
		gptev_effect_remove_prestige_experience_tiered_small = yes
	}
	# 0003: Generous vs Greedy -> Reprimand Greedy (Side with Generous)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = greedy } scope:courtier_1 = { has_trait = generous } }
		gptev_effect_remove_gold_small = yes
		gptev_effect_add_prestige_experience_tiered_small = yes
	}
	# 0004: Brave vs Craven -> Reprimand Craven (Side with Brave)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = craven } scope:courtier_1 = { has_trait = brave } }
		add_dread = 10
		gptev_effect_remove_piety_experience_tiered_small = yes
	}
	# 0004: Craven vs Brave -> Reprimand Brave (Side with Craven)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = brave } scope:courtier_1 = { has_trait = craven } }
		add_dread = -10
		gptev_effect_add_piety_experience_tiered_small = yes
	}
	# 0005: Gregarious vs Shy -> Reprimand Shy (Side with Gregarious)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = shy } scope:courtier_1 = { has_trait = gregarious } }
		gptev_effect_add_prestige_tiered_small = yes
		gptev_effect_remove_piety_tiered_small = yes
	}
	# 0005: Shy vs Gregarious -> Reprimand Gregarious (Side with Shy)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = gregarious } scope:courtier_1 = { has_trait = shy } }
		gptev_effect_remove_prestige_tiered_small = yes
		gptev_effect_add_piety_tiered_small = yes
	}
	# 0006: Diligent vs Lazy -> Reprimand Lazy (Side with Diligent)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = lazy } scope:courtier_1 = { has_trait = diligent } }
		gptev_effect_add_influence_or_legitimacy_small = yes
		gptev_effect_remove_gold_small = yes
	}
	# 0006: Lazy vs Diligent -> Reprimand Diligent (Side with Lazy)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = diligent } scope:courtier_1 = { has_trait = lazy } }
		gptev_effect_remove_influence_or_legitimacy_small = yes
		gptev_effect_add_gold_small = yes
	}
	# 0007: Calm vs Wrathful -> Reprimand Wrathful (Side with Calm)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = wrathful } scope:courtier_1 = { has_trait = calm } }
		add_dread = -10
		gptev_effect_add_gold_small = yes
	}
	# 0007: Wrathful vs Calm -> Reprimand Calm (Side with Wrathful)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = calm } scope:courtier_1 = { has_trait = wrathful } }
		add_dread = 10
		gptev_effect_remove_gold_small = yes
	}
	# 0008: Zealous vs Cynical -> Reprimand Cynical (Side with Zealous)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = cynical } scope:courtier_1 = { has_trait = zealous } }
		gptev_effect_add_piety_experience_tiered_small = yes
		gptev_effect_remove_prestige_experience_tiered_small = yes
	}
	# 0008: Cynical vs Zealous -> Reprimand Zealous (Side with Cynical)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = zealous } scope:courtier_1 = { has_trait = cynical } }
		gptev_effect_remove_piety_experience_tiered_small = yes
		gptev_effect_add_prestige_experience_tiered_small = yes
	}
	# 0009: Vengeful vs Forgiving -> Reprimand Forgiving (Side with Vengeful)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = forgiving } scope:courtier_1 = { has_trait = vengeful } }
		add_dread = 10
		gptev_effect_remove_influence_or_legitimacy_small = yes
	}
	# 0009: Forgiving vs Vengeful -> Reprimand Vengeful (Side with Forgiving)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = vengeful } scope:courtier_1 = { has_trait = forgiving } }
		add_dread = -10
		gptev_effect_add_influence_or_legitimacy_small = yes
	}

	# --- Fixes for Traits 2 Batch (0010-0017) ---
	# Assumptions: C1 is Positive/Passive, C2 is Negative/Active
	# If Reprimanding C2 (Negative), we are siding with C1 (Positive).

	# 0010: Chaste vs Lustful -> Reprimand Lustful (Side with Chaste)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = lustful } scope:courtier_1 = { has_trait = chaste } }
		gptev_effect_add_piety_tiered_small = yes
		gptev_effect_remove_prestige_experience_tiered_small = yes
	}
	# 0010: Lustful vs Chaste -> Reprimand Chaste (Side with Lustful)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = chaste } scope:courtier_1 = { has_trait = lustful } }
		gptev_effect_remove_piety_tiered_small = yes
		gptev_effect_add_prestige_experience_tiered_small = yes
	}

	# 0011: Content vs Ambitious -> Reprimand Ambitious (Side with Content)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = ambitious } scope:courtier_1 = { has_trait = content } }
		gptev_effect_remove_influence_or_legitimacy_small = yes
		gptev_effect_add_gold_small = yes
	}
	# 0011: Ambitious vs Content -> Reprimand Content (Side with Ambitious)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = content } scope:courtier_1 = { has_trait = ambitious } }
		gptev_effect_add_influence_or_legitimacy_small = yes
		gptev_effect_remove_gold_small = yes
	}

	# 0012: Honest vs Deceitful -> Reprimand Deceitful (Side with Honest)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = deceitful } scope:courtier_1 = { has_trait = honest } }
		add_dread = -10
		gptev_effect_add_prestige_tiered_small = yes
	}
	# 0012: Deceitful vs Honest -> Reprimand Honest (Side with Deceitful)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = honest } scope:courtier_1 = { has_trait = deceitful } }
		add_dread = 10
		gptev_effect_remove_prestige_tiered_small = yes
	}

	# 0013: Humble vs Arrogant -> Reprimand Arrogant (Side with Humble)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = arrogant } scope:courtier_1 = { has_trait = humble } }
		gptev_effect_add_piety_experience_tiered_small = yes
		gptev_effect_remove_influence_or_legitimacy_small = yes
	}
	# 0013: Arrogant vs Humble -> Reprimand Humble (Side with Arrogant)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = humble } scope:courtier_1 = { has_trait = arrogant } }
		gptev_effect_remove_piety_experience_tiered_small = yes
		gptev_effect_add_influence_or_legitimacy_small = yes
	}

	# 0014: Patient vs Impatient -> Reprimand Impatient (Side with Patient)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = impatient } scope:courtier_1 = { has_trait = patient } }
		gptev_effect_add_prestige_experience_tiered_small = yes
		gptev_effect_remove_gold_small = yes
	}
	# 0014: Impatient vs Patient -> Reprimand Patient (Side with Impatient)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = patient } scope:courtier_1 = { has_trait = impatient } }
		gptev_effect_remove_prestige_experience_tiered_small = yes
		gptev_effect_add_gold_small = yes
	}

	# 0015: Temperate vs Gluttonous -> Reprimand Gluttonous (Side with Temperate)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = gluttonous } scope:courtier_1 = { has_trait = temperate } }
		gptev_effect_add_piety_experience_tiered_small = yes
		gptev_effect_add_gold_small = yes
	}
	# 0015: Gluttonous vs Temperate -> Reprimand Temperate (Side with Gluttonous)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = temperate } scope:courtier_1 = { has_trait = gluttonous } }
		gptev_effect_remove_piety_experience_tiered_small = yes
		gptev_effect_remove_gold_small = yes
	}

	# 0016: Trusting vs Paranoid -> Reprimand Paranoid (Side with Trusting)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = paranoid } scope:courtier_1 = { has_trait = trusting } }
		add_dread = -10
		gptev_effect_add_prestige_experience_tiered_small = yes
	}
	# 0016: Paranoid vs Trusting -> Reprimand Trusting (Side with Paranoid)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = trusting } scope:courtier_1 = { has_trait = paranoid } }
		add_dread = 10
		gptev_effect_remove_prestige_experience_tiered_small = yes
	}

	# 0017: Fickle vs Stubborn -> Reprimand Stubborn (Side with Fickle)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = stubborn } scope:courtier_1 = { has_trait = fickle } }
		gptev_effect_remove_piety_tiered_small = yes
		gptev_effect_add_influence_or_legitimacy_small = yes
	}
	# 0017: Stubborn vs Fickle -> Reprimand Fickle (Side with Stubborn)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = fickle } scope:courtier_1 = { has_trait = stubborn } }
		gptev_effect_add_piety_tiered_small = yes
		gptev_effect_remove_influence_or_legitimacy_small = yes
	}
	else = {  }

	# Standard Reprimand Outcome
	if = {
		limit = { scope:courtier_2 = { is_consort_of = root } }
		scope:courtier_2 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = consort_humbled_modifier days = 1825 }
			add_stress = 30
		}
	}
	else = {
		scope:courtier_2 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = courtier_humbled_modifier days = 1825 }
			add_stress = 30
		}
	}
	if = {
		limit = { scope:courtier_2 = { is_close_family_of = root } }
		show_as_tooltip = { custom_tooltip = gptev_family_rep_courtier_2_tt }
		add_stress = 10
	}
	else_if = {
		limit = { scope:courtier_2 = { is_close_or_extended_family_of = root } }
		show_as_tooltip = { custom_tooltip = gptev_kin_rep_courtier_2_tt }
		add_stress = 5
	}
	if = {
		limit = { reverse_opinion = { target = scope:courtier_2 value >= 80 } }
		show_as_tooltip = { custom_tooltip = gptev_maj_stress_courtier_2_tt }
		add_stress = 15
	}
	else_if = {
		limit = { reverse_opinion = { target = scope:courtier_2 value >= 50 } }
		show_as_tooltip = { custom_tooltip = gptev_mid_stress_courtier_2_tt }
		add_stress = 10
	}
	else_if = {
		limit = { reverse_opinion = { target = scope:courtier_2 value >= 20 } }
		show_as_tooltip = { custom_tooltip = gptev_min_stress_courtier_2_tt }
		add_stress = 5
	}
	scope:courtier_1 = { add_opinion = { target = root modifier = grateful_opinion opinion = 20 } }
}

gptev_courtier_1_banish_effect = {
	# 0001: Compassionate vs Callous/Sadistic -> Banish Compassionate
	if = {
		limit = { scope:courtier_1 = { has_trait = compassionate } scope:courtier_2 = { OR = { has_trait = callous has_trait = sadistic } } }
		add_dread = 25
		gptev_effect_remove_piety_tiered_large = yes
	}
	# 0001: Callous/Sadistic vs Compassionate -> Banish Callous
	else_if = {
		limit = { scope:courtier_1 = { OR = { has_trait = callous has_trait = sadistic } } scope:courtier_2 = { has_trait = compassionate } }
		add_dread = -25
		gptev_effect_add_piety_tiered_large = yes
	}
	# 0002: Just vs Arbitrary -> Banish Just
	else_if = {
		limit = { scope:courtier_1 = { has_trait = just } scope:courtier_2 = { has_trait = arbitrary } }
		gptev_effect_remove_influence_or_legitimacy_large = yes
		gptev_effect_add_prestige_tiered_large = yes
	}
	# 0002: Arbitrary vs Just -> Banish Arbitrary
	else_if = {
		limit = { scope:courtier_1 = { has_trait = arbitrary } scope:courtier_2 = { has_trait = just } }
		gptev_effect_add_influence_or_legitimacy_large = yes
		gptev_effect_remove_prestige_tiered_large = yes
	}
	# 0003: Greedy vs Generous -> Banish Greedy
	else_if = {
		limit = { scope:courtier_1 = { has_trait = greedy } scope:courtier_2 = { has_trait = generous } }
		gptev_effect_remove_gold_large = yes
		gptev_effect_add_prestige_experience_tiered_large = yes
	}
	# 0003: Generous vs Greedy -> Banish Generous
	else_if = {
		limit = { scope:courtier_1 = { has_trait = generous } scope:courtier_2 = { has_trait = greedy } }
		gptev_effect_add_gold_large = yes
		gptev_effect_remove_prestige_experience_tiered_large = yes
	}
	# 0004: Brave vs Craven -> Banish Brave
	else_if = {
		limit = { scope:courtier_1 = { has_trait = brave } scope:courtier_2 = { has_trait = craven } }
		add_dread = -25
		gptev_effect_add_piety_experience_tiered_large = yes
	}
	# 0004: Craven vs Brave -> Banish Craven
	else_if = {
		limit = { scope:courtier_1 = { has_trait = craven } scope:courtier_2 = { has_trait = brave } }
		add_dread = 25
		gptev_effect_remove_piety_experience_tiered_large = yes
	}
	# 0005: Gregarious vs Shy -> Banish Gregarious
	else_if = {
		limit = { scope:courtier_1 = { has_trait = gregarious } scope:courtier_2 = { has_trait = shy } }
		gptev_effect_remove_prestige_tiered_large = yes
		gptev_effect_add_piety_tiered_large = yes
	}
	# 0005: Shy vs Gregarious -> Banish Shy
	else_if = {
		limit = { scope:courtier_1 = { has_trait = shy } scope:courtier_2 = { has_trait = gregarious } }
		gptev_effect_add_prestige_tiered_large = yes
		gptev_effect_remove_piety_tiered_large = yes
	}
	# 0006: Diligent vs Lazy -> Banish Diligent
	else_if = {
		limit = { scope:courtier_1 = { has_trait = diligent } scope:courtier_2 = { has_trait = lazy } }
		gptev_effect_remove_influence_or_legitimacy_large = yes
		gptev_effect_add_gold_large = yes
	}
	# 0006: Lazy vs Diligent -> Banish Lazy
	else_if = {
		limit = { scope:courtier_1 = { has_trait = lazy } scope:courtier_2 = { has_trait = diligent } }
		gptev_effect_add_influence_or_legitimacy_large = yes
		gptev_effect_remove_gold_large = yes
	}
	# 0007: Calm vs Wrathful -> Banish Calm
	else_if = {
		limit = { scope:courtier_1 = { has_trait = calm } scope:courtier_2 = { has_trait = wrathful } }
		add_dread = 25
		gptev_effect_remove_gold_large = yes
	}
	# 0007: Wrathful vs Calm -> Banish Wrathful
	else_if = {
		limit = { scope:courtier_1 = { has_trait = wrathful } scope:courtier_2 = { has_trait = calm } }
		add_dread = -25
		gptev_effect_add_gold_large = yes
	}
	# 0008: Zealous vs Cynical -> Banish Zealous
	else_if = {
		limit = { scope:courtier_1 = { has_trait = zealous } scope:courtier_2 = { has_trait = cynical } }
		gptev_effect_remove_piety_experience_tiered_large = yes
		gptev_effect_add_prestige_experience_tiered_large = yes
	}
	# 0008: Cynical vs Zealous -> Banish Cynical
	else_if = {
		limit = { scope:courtier_1 = { has_trait = cynical } scope:courtier_2 = { has_trait = zealous } }
		gptev_effect_add_piety_experience_tiered_large = yes
		gptev_effect_remove_prestige_experience_tiered_large = yes
	}
	# 0009: Vengeful vs Forgiving -> Banish Vengeful
	else_if = {
		limit = { scope:courtier_1 = { has_trait = vengeful } scope:courtier_2 = { has_trait = forgiving } }
		add_dread = -25
		gptev_effect_add_influence_or_legitimacy_large = yes
	}
	# 0009: Forgiving vs Vengeful -> Banish Forgiving
	else_if = {
		limit = { scope:courtier_1 = { has_trait = forgiving } scope:courtier_2 = { has_trait = vengeful } }
		add_dread = 25
		gptev_effect_remove_influence_or_legitimacy_large = yes
	}

	# --- Fixes for Traits 2 Batch (0010-0017) ---
	# Assumptions: C1 is Positive/Passive, C2 is Negative/Active
	# Banish C1 = Side with C2 (Negative reward).

	# 0010: Chaste vs Lustful -> Banish Chaste (Side with Lustful)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = chaste } scope:courtier_2 = { has_trait = lustful } }
		gptev_effect_remove_piety_tiered_large = yes
		gptev_effect_add_prestige_experience_tiered_large = yes
	}
	# 0010: Lustful vs Chaste -> Banish Lustful (Side with Chaste)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = lustful } scope:courtier_2 = { has_trait = chaste } }
		gptev_effect_add_piety_tiered_large = yes
		gptev_effect_remove_prestige_experience_tiered_large = yes
	}

	# 0011: Content vs Ambitious -> Banish Content (Side with Ambitious)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = content } scope:courtier_2 = { has_trait = ambitious } }
		gptev_effect_add_influence_or_legitimacy_large = yes
		gptev_effect_remove_gold_large = yes
	}
	# 0011: Ambitious vs Content -> Banish Ambitious (Side with Content)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = ambitious } scope:courtier_2 = { has_trait = content } }
		gptev_effect_remove_influence_or_legitimacy_large = yes
		gptev_effect_add_gold_large = yes
	}

	# 0012: Honest vs Deceitful -> Banish Honest (Side with Deceitful)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = honest } scope:courtier_2 = { has_trait = deceitful } }
		add_dread = 25
		gptev_effect_remove_prestige_tiered_large = yes
	}
	# 0012: Deceitful vs Honest -> Banish Deceitful (Side with Honest)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = deceitful } scope:courtier_2 = { has_trait = honest } }
		add_dread = -25
		gptev_effect_add_prestige_tiered_large = yes
	}

	# 0013: Humble vs Arrogant -> Banish Humble (Side with Arrogant)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = humble } scope:courtier_2 = { has_trait = arrogant } }
		gptev_effect_remove_piety_experience_tiered_large = yes
		gptev_effect_add_influence_or_legitimacy_large = yes
	}
	# 0013: Arrogant vs Humble -> Banish Arrogant (Side with Humble)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = arrogant } scope:courtier_2 = { has_trait = humble } }
		gptev_effect_add_piety_experience_tiered_large = yes
		gptev_effect_remove_influence_or_legitimacy_large = yes
	}

	# 0014: Patient vs Impatient -> Banish Patient (Side with Impatient)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = patient } scope:courtier_2 = { has_trait = impatient } }
		gptev_effect_add_prestige_experience_tiered_large = yes
		gptev_effect_remove_gold_large = yes
	}
	# 0014: Impatient vs Patient -> Banish Impatient (Side with Patient)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = impatient } scope:courtier_2 = { has_trait = patient } }
		gptev_effect_remove_prestige_experience_tiered_large = yes
		gptev_effect_add_gold_large = yes
	}

	# 0015: Temperate vs Gluttonous -> Banish Temperate (Side with Gluttonous)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = temperate } scope:courtier_2 = { has_trait = gluttonous } }
		gptev_effect_remove_piety_experience_tiered_large = yes
		gptev_effect_add_gold_large = yes
	}
	# 0015: Gluttonous vs Temperate -> Banish Gluttonous (Side with Temperate)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = gluttonous } scope:courtier_2 = { has_trait = temperate } }
		gptev_effect_add_piety_experience_tiered_large = yes
		gptev_effect_remove_gold_large = yes
	}

	# 0016: Trusting vs Paranoid -> Banish Trusting (Side with Paranoid)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = trusting } scope:courtier_2 = { has_trait = paranoid } }
		add_dread = 25
		gptev_effect_remove_prestige_experience_tiered_large = yes
	}
	# 0016: Paranoid vs Trusting -> Banish Paranoid (Side with Trusting)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = paranoid } scope:courtier_2 = { has_trait = trusting } }
		add_dread = -25
		gptev_effect_add_prestige_experience_tiered_large = yes
	}

	# 0017: Fickle vs Stubborn -> Banish Fickle (Side with Stubborn)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = fickle } scope:courtier_2 = { has_trait = stubborn } }
		gptev_effect_add_piety_tiered_large = yes
		gptev_effect_remove_influence_or_legitimacy_large = yes
	}
	# 0017: Stubborn vs Fickle -> Banish Stubborn (Side with Fickle)
	else_if = {
		limit = { scope:courtier_1 = { has_trait = stubborn } scope:courtier_2 = { has_trait = fickle } }
		gptev_effect_remove_piety_tiered_large = yes
		gptev_effect_add_influence_or_legitimacy_large = yes
	}
	else = {  }

	# Standard Banish Outcome
	if = {
		limit = { scope:courtier_1 = { is_consort_of = root } }
		divorce = scope:courtier_1
		scope:courtier_1 = {
			add_opinion = { target = root modifier = forced_divorce_opinion }
			add_stress = 50
		}
	}
	else = {
		remove_courtier_or_guest = scope:courtier_1
		scope:courtier_1 = {
			set_variable = { name = non_recruitable_var value = root }
			add_opinion = { target = root modifier = humiliated_opinion opinion = -30 }
			add_stress = 60
		}
	}
	if = {
		limit = { scope:courtier_1 = { is_close_family_of = root } }
		show_as_tooltip = { custom_tooltip = gptev_family_ban_courtier_1_tt }
		add_stress = 20
	}
	else_if = {
		limit = { scope:courtier_1 = { is_close_or_extended_family_of = root } }
		show_as_tooltip = { custom_tooltip = gptev_kin_ban_courtier_1_tt }
		add_stress = 10
	}
	if = {
		limit = { reverse_opinion = { target = scope:courtier_1 value >= 80 } }
		show_as_tooltip = { custom_tooltip = gptev_maj_stress_courtier_1_tt }
		add_stress = 30
		stress_impact = { forgiving = 20 }
	}
	else_if = {
		limit = { reverse_opinion = { target = scope:courtier_1 value >= 50 } }
		show_as_tooltip = { custom_tooltip = gptev_mid_stress_courtier_1_tt }
		add_stress = 20
		stress_impact = { forgiving = 15 }
	}
	else_if = {
		limit = { reverse_opinion = { target = scope:courtier_1 value >= 20 } }
		show_as_tooltip = { custom_tooltip = gptev_min_stress_courtier_1_tt }
		add_stress = 10
		stress_impact = { forgiving = 10 }
	}
	else = {
		stress_impact = { forgiving = 10 }
	}
	scope:courtier_2 = { add_opinion = { target = root modifier = grateful_opinion opinion = 40 } }
}

gptev_courtier_2_banish_effect = {
	# 0001: Compassionate vs Callous/Sadistic -> Banish Callous (Side with Compassionate)
	if = {
		limit = { scope:courtier_2 = { OR = { has_trait = callous has_trait = sadistic } } scope:courtier_1 = { has_trait = compassionate } }
		add_dread = -25
		gptev_effect_add_piety_tiered_large = yes
	}
	# 0001: Callous/Sadistic vs Compassionate -> Banish Compassionate (Side with Callous)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = compassionate } scope:courtier_1 = { OR = { has_trait = callous has_trait = sadistic } } }
		add_dread = 25
		gptev_effect_remove_piety_tiered_large = yes
	}
	# 0002: Just vs Arbitrary -> Banish Arbitrary (Side with Just)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = arbitrary } scope:courtier_1 = { has_trait = just } }
		gptev_effect_add_influence_or_legitimacy_large = yes
		gptev_effect_remove_prestige_tiered_large = yes
	}
	# 0002: Arbitrary vs Just -> Banish Just (Side with Arbitrary)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = just } scope:courtier_1 = { has_trait = arbitrary } }
		gptev_effect_remove_influence_or_legitimacy_large = yes
		gptev_effect_add_prestige_tiered_large = yes
	}
	# 0003: Greedy vs Generous -> Banish Generous (Side with Greedy)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = generous } scope:courtier_1 = { has_trait = greedy } }
		gptev_effect_add_gold_large = yes
		gptev_effect_remove_prestige_experience_tiered_large = yes
	}
	# 0003: Generous vs Greedy -> Banish Greedy (Side with Generous)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = greedy } scope:courtier_1 = { has_trait = generous } }
		gptev_effect_remove_gold_large = yes
		gptev_effect_add_prestige_experience_tiered_large = yes
	}
	# 0004: Brave vs Craven -> Banish Craven (Side with Brave)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = craven } scope:courtier_1 = { has_trait = brave } }
		add_dread = 10
		gptev_effect_remove_piety_experience_tiered_large = yes
	}
	# 0004: Craven vs Brave -> Banish Brave (Side with Craven)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = brave } scope:courtier_1 = { has_trait = craven } }
		add_dread = -10
		gptev_effect_add_piety_experience_tiered_large = yes
	}
	# 0005: Gregarious vs Shy -> Banish Shy (Side with Gregarious)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = shy } scope:courtier_1 = { has_trait = gregarious } }
		gptev_effect_add_prestige_tiered_large = yes
		gptev_effect_remove_piety_tiered_large = yes
	}
	# 0005: Shy vs Gregarious -> Banish Gregarious (Side with Shy)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = gregarious } scope:courtier_1 = { has_trait = shy } }
		gptev_effect_remove_prestige_tiered_large = yes
		gptev_effect_add_piety_tiered_large = yes
	}
	# 0006: Diligent vs Lazy -> Banish Lazy (Side with Diligent)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = lazy } scope:courtier_1 = { has_trait = diligent } }
		gptev_effect_add_influence_or_legitimacy_large = yes
		gptev_effect_remove_gold_large = yes
	}
	# 0006: Lazy vs Diligent -> Banish Diligent (Side with Lazy)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = diligent } scope:courtier_1 = { has_trait = lazy } }
		gptev_effect_remove_influence_or_legitimacy_large = yes
		gptev_effect_add_gold_large = yes
	}
	# 0007: Calm vs Wrathful -> Banish Wrathful (Side with Calm)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = wrathful } scope:courtier_1 = { has_trait = calm } }
		add_dread = -25
		gptev_effect_add_gold_large = yes
	}
	# 0007: Wrathful vs Calm -> Banish Calm (Side with Wrathful)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = calm } scope:courtier_1 = { has_trait = wrathful } }
		add_dread = 25
		gptev_effect_remove_gold_large = yes
	}
	# 0008: Zealous vs Cynical -> Banish Cynical (Side with Zealous)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = cynical } scope:courtier_1 = { has_trait = zealous } }
		gptev_effect_add_piety_experience_tiered_large = yes
		gptev_effect_remove_prestige_experience_tiered_large = yes
	}
	# 0008: Cynical vs Zealous -> Banish Zealous (Side with Cynical)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = zealous } scope:courtier_1 = { has_trait = cynical } }
		gptev_effect_remove_piety_experience_tiered_large = yes
		gptev_effect_add_prestige_experience_tiered_large = yes
	}
	# 0009: Vengeful vs Forgiving -> Banish Forgiving (Side with Vengeful)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = forgiving } scope:courtier_1 = { has_trait = vengeful } }
		add_dread = 10
		gptev_effect_remove_influence_or_legitimacy_large = yes
	}
	# 0009: Forgiving vs Vengeful -> Banish Vengeful (Side with Forgiving)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = vengeful } scope:courtier_1 = { has_trait = forgiving } }
		add_dread = -10
		gptev_effect_add_influence_or_legitimacy_large = yes
	}

	# --- Fixes for Traits 2 Batch (0010-0017) ---
	# Assumptions: C1 is Positive/Passive, C2 is Negative/Active
	# Banish C2 = Side with C1 (Positive reward).

	# 0010: Chaste vs Lustful -> Banish Lustful (Side with Chaste)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = lustful } scope:courtier_1 = { has_trait = chaste } }
		gptev_effect_add_piety_tiered_large = yes
		gptev_effect_remove_prestige_experience_tiered_large = yes
	}
	# 0010: Lustful vs Chaste -> Banish Chaste (Side with Lustful)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = chaste } scope:courtier_1 = { has_trait = lustful } }
		gptev_effect_remove_piety_tiered_large = yes
		gptev_effect_add_prestige_experience_tiered_large = yes
	}

	# 0011: Content vs Ambitious -> Banish Ambitious (Side with Content)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = ambitious } scope:courtier_1 = { has_trait = content } }
		gptev_effect_add_influence_or_legitimacy_large = yes
		gptev_effect_remove_gold_large = yes
	}
	# 0011: Ambitious vs Content -> Banish Content (Side with Ambitious)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = content } scope:courtier_1 = { has_trait = ambitious } }
		gptev_effect_remove_influence_or_legitimacy_large = yes
		gptev_effect_add_gold_large = yes
	}

	# 0012: Honest vs Deceitful -> Banish Deceitful (Side with Honest)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = deceitful } scope:courtier_1 = { has_trait = honest } }
		add_dread = -25
		gptev_effect_add_prestige_tiered_large = yes
	}
	# 0012: Deceitful vs Honest -> Banish Honest (Side with Deceitful)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = honest } scope:courtier_1 = { has_trait = deceitful } }
		add_dread = 25
		gptev_effect_remove_prestige_tiered_large = yes
	}

	# 0013: Humble vs Arrogant -> Banish Arrogant (Side with Humble)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = arrogant } scope:courtier_1 = { has_trait = humble } }
		gptev_effect_add_piety_experience_tiered_large = yes
		gptev_effect_remove_influence_or_legitimacy_large = yes
	}
	# 0013: Arrogant vs Humble -> Banish Humble (Side with Arrogant)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = humble } scope:courtier_1 = { has_trait = arrogant } }
		gptev_effect_remove_piety_experience_tiered_large = yes
		gptev_effect_add_influence_or_legitimacy_large = yes
	}

	# 0014: Patient vs Impatient -> Banish Impatient (Side with Patient)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = impatient } scope:courtier_1 = { has_trait = patient } }
		gptev_effect_add_prestige_experience_tiered_large = yes
		gptev_effect_remove_gold_large = yes
	}
	# 0014: Impatient vs Patient -> Banish Patient (Side with Impatient)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = patient } scope:courtier_1 = { has_trait = impatient } }
		gptev_effect_remove_prestige_experience_tiered_large = yes
		gptev_effect_add_gold_large = yes
	}

	# 0015: Temperate vs Gluttonous -> Banish Gluttonous (Side with Temperate)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = gluttonous } scope:courtier_1 = { has_trait = temperate } }
		gptev_effect_add_piety_experience_tiered_large = yes
		gptev_effect_remove_gold_large = yes
	}
	# 0015: Gluttonous vs Temperate -> Banish Temperate (Side with Gluttonous)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = temperate } scope:courtier_1 = { has_trait = gluttonous } }
		gptev_effect_remove_piety_experience_tiered_large = yes
		gptev_effect_add_gold_large = yes
	}

	# 0016: Trusting vs Paranoid -> Banish Paranoid (Side with Trusting)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = paranoid } scope:courtier_1 = { has_trait = trusting } }
		add_dread = -25
		gptev_effect_add_prestige_experience_tiered_large = yes
	}
	# 0016: Paranoid vs Trusting -> Banish Trusting (Side with Paranoid)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = trusting } scope:courtier_1 = { has_trait = paranoid } }
		add_dread = 25
		gptev_effect_remove_prestige_experience_tiered_large = yes
	}

	# 0017: Fickle vs Stubborn -> Banish Stubborn (Side with Fickle)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = stubborn } scope:courtier_1 = { has_trait = fickle } }
		gptev_effect_add_piety_tiered_large = yes
		gptev_effect_remove_influence_or_legitimacy_large = yes
	}
	# 0017: Stubborn vs Fickle -> Banish Fickle (Side with Stubborn)
	else_if = {
		limit = { scope:courtier_2 = { has_trait = fickle } scope:courtier_1 = { has_trait = stubborn } }
		gptev_effect_remove_piety_tiered_large = yes
		gptev_effect_add_influence_or_legitimacy_large = yes
	}
	else = {  }

	# Standard Banish Outcome
	if = {
		limit = { scope:courtier_2 = { is_consort_of = root } }
		divorce = scope:courtier_2
		scope:courtier_2 = {
			add_opinion = { target = root modifier = forced_divorce_opinion }
			add_stress = 50
		}
	}
	else = {
		remove_courtier_or_guest = scope:courtier_2
		scope:courtier_2 = {
			set_variable = { name = non_recruitable_var value = root }
			add_opinion = { target = root modifier = humiliated_opinion opinion = -30 }
			add_stress = 60
		}
	}
	if = {
		limit = { scope:courtier_2 = { is_close_family_of = root } }
		show_as_tooltip = { custom_tooltip = gptev_family_ban_courtier_2_tt }
		add_stress = 20
	}
	else_if = {
		limit = { scope:courtier_2 = { is_close_or_extended_family_of = root } }
		show_as_tooltip = { custom_tooltip = gptev_kin_ban_courtier_2_tt }
		add_stress = 10
	}
	if = {
		limit = { reverse_opinion = { target = scope:courtier_2 value >= 80 } }
		show_as_tooltip = { custom_tooltip = gptev_maj_stress_courtier_2_tt }
		add_stress = 30
		stress_impact = { forgiving = 20 }
	}
	else_if = {
		limit = { reverse_opinion = { target = scope:courtier_2 value >= 50 } }
		show_as_tooltip = { custom_tooltip = gptev_mid_stress_courtier_2_tt }
		add_stress = 20
		stress_impact = { forgiving = 15 }
	}
	else_if = {
		limit = { reverse_opinion = { target = scope:courtier_2 value >= 20 } }
		show_as_tooltip = { custom_tooltip = gptev_min_stress_courtier_2_tt }
		add_stress = 10
		stress_impact = { forgiving = 10 }
	}
	else = {
		stress_impact = { forgiving = 10 }
	}
	scope:courtier_1 = { add_opinion = { target = root modifier = grateful_opinion opinion = 40 } }
}


gptev_consort_1_reprimend_effect = {
	if = {
		limit = { scope:courtier_1 = { is_consort_of = root } }
		scope:courtier_1 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = consort_humbled_modifier days = 1825 } # 5 years
			add_stress = 30
		}
		scope:courtier_2 = {
			add_character_modifier = { modifier = consort_elevated_modifier days = 1825 } # 5 years
			add_prestige = {
				value = 50
				multiply = root.highest_held_title_tier multiply = 0.5
			}
		}
	}
	else = {
		scope:courtier_1 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = courtier_humbled_modifier days = 1825 } # 5 years
			add_stress = 30
		}
	}
	if = {
		limit = {
			scope:courtier_1 = { is_close_family_of = root }
		}
		show_as_tooltip = { custom_tooltip = gptev_family_rep_courtier_1_tt }
		add_stress = 10
	}
	else_if = {
		limit = {
			scope:courtier_1 = { is_close_or_extended_family_of = root }
		}
		show_as_tooltip = { custom_tooltip = gptev_kin_rep_courtier_1_tt }
		add_stress = 5
	}
	if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_1
				value >= 80
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_maj_stress_courtier_1_tt }
		add_stress = 15
	}
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_1
				value >= 50
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_mid_stress_courtier_1_tt }
		add_stress = 10
	}
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_1
				value >= 20
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_min_stress_courtier_1_tt }
		add_stress = 5
	}
	scope:courtier_2 = { add_opinion = { target = root modifier = grateful_opinion opinion = 20 } }
}

gptev_consort_1_divorce_effect = {
	if = {
		limit = { scope:courtier_1 = { is_consort_of = root } }
		divorce = scope:courtier_1
		scope:courtier_1 = {
			add_opinion = {
				target = root
				modifier = forced_divorce_opinion
			}
			add_stress = 50
		}
		scope:courtier_2 = {
			add_character_modifier = { modifier = consort_elevated_modifier days = 1825 } # 5 years
			add_prestige = {
				value = 100
				multiply = root.highest_held_title_tier multiply = 0.5
			}
		}
	}
	else = {
		remove_courtier_or_guest = scope:courtier_1
		scope:courtier_1 = {
			set_variable = {
				name = non_recruitable_var
				value = root 
			}
			add_opinion = {
				target = root
				modifier = humiliated_opinion
				opinion = -30
			}
			add_stress = 60
		}
	}
	if = {
		limit = {
			scope:courtier_1 = { is_close_family_of = root }
		}
		show_as_tooltip = { custom_tooltip = gptev_family_ban_courtier_1_tt }
		add_stress = 20
	}
	else_if = {
		limit = {
			scope:courtier_1 = { is_close_or_extended_family_of = root }
		}
		show_as_tooltip = { custom_tooltip = gptev_kin_ban_courtier_1_tt }
		add_stress = 10
	}
	if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_1
				value >= 80
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_maj_stress_courtier_1_tt }
		add_stress = 30
		stress_impact = { forgiving = 20 }
	}
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_1
				value >= 50
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_mid_stress_courtier_1_tt }
		add_stress = 20
		stress_impact = { forgiving = 15 }
	}
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_1
				value >= 20
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_min_stress_courtier_1_tt }
		add_stress = 10
		stress_impact = { forgiving = 10 }
	}
	else = {
		stress_impact = { forgiving = 10 }
	}
	scope:courtier_2 = { add_opinion = { target = root modifier = grateful_opinion opinion = 40 } }
}

gptev_consort_2_reprimend_effect = {
	if = {
		limit = { scope:courtier_2 = { is_consort_of = root } }
		scope:courtier_2 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = consort_humbled_modifier days = 1825 } # 5 years
			add_stress = 30
		}
		scope:courtier_1 = {
			add_character_modifier = { modifier = consort_elevated_modifier days = 1825 } # 5 years
			add_prestige = {
				value = 50
				multiply = root.highest_held_title_tier multiply = 0.5
			}
		}
	}
	else = {
		scope:courtier_2 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = courtier_humbled_modifier days = 1825 } # 5 years
			add_stress = 30
		}
	}
	if = {
		limit = {
			scope:courtier_2 = { is_close_family_of = root }
		}
		show_as_tooltip = { custom_tooltip = gptev_family_rep_courtier_2_tt }
		add_stress = 10
	}
	else_if = {
		limit = {
			scope:courtier_2 = { is_close_or_extended_family_of = root }
		}
		show_as_tooltip = { custom_tooltip = gptev_kin_rep_courtier_2_tt }
		add_stress = 5
	}
	if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_2
				value >= 80
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_maj_stress_courtier_2_tt }
		add_stress = 15
	}
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_2
				value >= 50
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_mid_stress_courtier_2_tt }
		add_stress = 10
	}
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_2
				value >= 20
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_min_stress_courtier_2_tt }
		add_stress = 5
	}
	scope:courtier_1 = { add_opinion = { target = root modifier = grateful_opinion opinion = 20 } }
}

gptev_consort_2_divorce_effect = {
	if = {
		limit = { scope:courtier_2 = { is_consort_of = root } }
		divorce = scope:courtier_2
		scope:courtier_2 = {
			add_opinion = {
				target = root
				modifier = forced_divorce_opinion
			}
			add_stress = 50
		}
		scope:courtier_1 = {
			add_character_modifier = { modifier = consort_elevated_modifier days = 1825 } # 5 years
			add_prestige = {
				value = 100
				multiply = root.highest_held_title_tier multiply = 0.5
			}
		}
	}
	else = {
		remove_courtier_or_guest = scope:courtier_2
		scope:courtier_2 = {
			set_variable = {
				name = non_recruitable_var
				value = root 
			}
			add_opinion = {
				target = root
				modifier = humiliated_opinion
				opinion = -30
			}
			add_stress = 60
		}
	}
	if = {
		limit = {
			scope:courtier_2 = { is_close_family_of = root }
		}
		show_as_tooltip = { custom_tooltip = gptev_family_ban_courtier_2_tt }
		add_stress = 20
	}
	else_if = {
		limit = {
			scope:courtier_2 = { is_close_or_extended_family_of = root }
		}
		show_as_tooltip = { custom_tooltip = gptev_kin_ban_courtier_2_tt }
		add_stress = 10
	}
	if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_2
				value >= 80
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_maj_stress_courtier_2_tt }
		add_stress = 30
		stress_impact = { forgiving = 20 }
	}
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_2
				value >= 50
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_mid_stress_courtier_2_tt }
		add_stress = 20
		stress_impact = { forgiving = 15 }
	}
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:courtier_2
				value >= 20
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_min_stress_courtier_2_tt }
		add_stress = 10
		stress_impact = { forgiving = 10 }
	}
	else = {
		stress_impact = { forgiving = 10 }
	}
	scope:courtier_1 = { add_opinion = { target = root modifier = grateful_opinion opinion = 40 } }
}


gptev_child_1_reprimend_effect = {
	if = {
		limit = { scope:child_1 = { is_consort_of = root } }
		scope:child_1 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = child_humbled_modifier days = 1825 } # 5 years
			add_stress = 30
		}
		scope:child_2 = {
			add_character_modifier = { modifier = child_elevated_modifier days = 1825 } # 5 years
			add_prestige = {
				value = 50
				multiply = root.highest_held_title_tier multiply = 0.5
			}
		}
	}
	else = {
		scope:child_1 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = courtier_humbled_modifier days = 1825 } # 5 years
			add_stress = 30
		}
	}
	if = {
		limit = {
			reverse_opinion = {
				target = scope:child_1
				value >= 80
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_maj_stress_child_1_tt }
		add_stress = 10
	}
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:child_1
				value >= 50
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_mid_stress_child_1_tt }
		add_stress = 5
	}
	scope:child_2 = { add_opinion = { target = root modifier = grateful_opinion opinion = 20 } }
}

gptev_child_2_reprimend_effect = {
	if = {
		limit = { scope:child_2 = { is_consort_of = root } }
		scope:child_2 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = consort_humbled_modifier days = 1825 } # 5 years
			add_stress = 30
		}
		scope:child_1 = {
			add_character_modifier = { modifier = consort_elevated_modifier days = 1825 } # 5 years
			add_prestige = {
				value = 50
				multiply = root.highest_held_title_tier multiply = 0.5
			}
		}
	}
	else = {
		scope:child_2 = {
			add_opinion = { target = root modifier = publicly_ridiculed opinion = -20 }
			add_character_modifier = { modifier = courtier_humbled_modifier days = 1825 } # 5 years
			add_stress = 30
		}
	}
	if = {
		limit = {
			reverse_opinion = {
				target = scope:child_2
				value >= 80
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_maj_stress_child_2_tt }
		add_stress = 10
	}
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:child_2
				value >= 50
			}
		}
		show_as_tooltip = { custom_tooltip = gptev_mid_stress_child_2_tt }
		add_stress = 5
	}
	scope:child_1 = { add_opinion = { target = root modifier = grateful_opinion opinion = 20 } }
}



gptev_child_friendly_event_positive_cost_effect = {
	add_dread = -10
	gptev_effect_friendly_event_cost_gold = yes
	gptev_effect_friendly_event_cost_prestige = yes
}
gptev_child_friendly_event_negative_cost_effect = {
	add_dread = 10
}



gptev_add_minor_opinion_effect = {
	show_as_tooltip = { custom_tooltip = gptev_add_minor_opinion_effect_tt }
	hidden_effect = {
		every_vassal = {
			limit = { opinion = { target = root value < 0 } }
			add_opinion = {
				target = root
				modifier = bribed_opinion
				opinion = 30
			}
		}
	}
}

gptev_add_major_opinion_effect = {
	show_as_tooltip = { custom_tooltip = gptev_add_major_opinion_effect_tt }
	hidden_effect = {
		every_vassal = {
			limit = { opinion = { target = root value < -50 } }
			add_opinion = {
				target = root
				modifier = bribed_opinion
				opinion = 30
			}
		}
		every_vassal = {
			limit = { opinion = { target = root value < 0 } }
			add_opinion = {
				target = root
				modifier = bribed_opinion
				opinion = 30
			}
		}
	}
}

gptev_vassal_remove_prestige_effect = {
	add_prestige = {
		value = gptev_add_gold_value
		multiply = -1
	}
}

gptev_add_dread_effect = {
	add_dread = {
		value = 10
		multiply = highest_held_title_tier multiply = 0.5
	}
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_add_dread }
		hidden_effect = {
			every_vassal = {
				add_dread = {
					value = 5
					multiply = highest_held_title_tier multiply = 0.5
				}
			}
		}
	}
}

gptev_remove_dread_effect = {
	add_dread = {
		value = -10
		multiply = highest_held_title_tier multiply = 0.5
	}
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_remove_dread }
		hidden_effect = {
			every_vassal = {
				add_dread = {
					value = -5
					multiply = highest_held_title_tier multiply = 0.5
				}
			}
		}
	}
}

gptev_add_gold_effect = {
	if = {
		limit = { has_treasury = yes }
		add_treasury = gptev_add_gold_value
	}
	else = {
		add_gold = gptev_add_gold_value
	}
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_add_gold }
		hidden_effect = {
			every_vassal = {
				if = {
					limit = { has_treasury = yes }
					add_treasury = {
						value = gptev_add_gold_value
						divide = 8
						multiply = highest_held_title_tier
					}
				}
				else = {
					add_gold = {
						value = gptev_add_gold_value
						divide = 8
						multiply = highest_held_title_tier
					}
				}
			}
		}
	}
}

gptev_remove_gold_effect = {
	if = {
		limit = { has_treasury = yes }
		remove_treasury = gptev_remove_gold_value
	}
	else = {
		remove_short_term_gold = gptev_remove_gold_value
	}
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_remove_gold }
		hidden_effect = {
			every_vassal = {
				if = {
					limit = { has_treasury = yes }
					remove_treasury = {
						value = gptev_remove_gold_value
						divide = 8
						multiply = highest_held_title_tier
					}
				}
				else = {
					remove_short_term_gold = {
						value = gptev_remove_gold_value
						divide = 8
						multiply = highest_held_title_tier
					}
				}
			}
		}
	}
}

gptev_add_prestige_effect = {
	add_prestige = gptev_add_prestige_value
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_add_prestige }
		hidden_effect = {
			every_vassal = {
				add_prestige = {
					value = gptev_add_prestige_value
					divide = 8
					multiply = highest_held_title_tier
				}
			}
		}
	}
}

gptev_remove_prestige_effect = {
	add_prestige = gptev_remove_prestige_value
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_remove_prestige }
		hidden_effect = {
			every_vassal = {
				add_prestige = {
					value = gptev_remove_prestige_value
					divide = 8
					multiply = highest_held_title_tier
				}
			}
		}
	}
}

gptev_add_fame_effect = {
	add_prestige_experience = gptev_add_fame_value
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_add_fame }
		hidden_effect = {
			every_vassal = {
				add_prestige_experience = {
					value = gptev_add_fame_value
					divide = 8
					multiply = highest_held_title_tier
				}
			}
		}
	}
}

gptev_remove_fame_effect = {
	add_prestige_experience = gptev_remove_fame_value
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_remove_fame }
		hidden_effect = {
			every_vassal = {
				add_prestige_experience = {
					value = gptev_remove_fame_value
					divide = 8
					multiply = highest_held_title_tier
				}
			}
		}
	}
}

gptev_add_piety_effect = {
	add_piety = gptev_add_piety_value
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_add_piety }
		hidden_effect = {
			every_vassal = {
				add_piety = {
					value = gptev_add_piety_value
					divide = 8
					multiply = highest_held_title_tier
				}
			}
		}
	}
}

gptev_remove_piety_effect = {
	add_piety = gptev_remove_piety_value
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_remove_piety }
		hidden_effect = {
			every_vassal = {
				add_piety = {
					value = gptev_remove_piety_value
					divide = 8
					multiply = highest_held_title_tier
				}
			}
		}
	}
}

gptev_add_devotion_effect = {
	add_piety_experience = gptev_add_devotion_value
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_add_devotion }
		hidden_effect = {
			every_vassal = {
				add_piety_experience = {
					value = gptev_add_devotion_value
					divide = 8
					multiply = highest_held_title_tier
				}
			}
		}
	}
}

gptev_remove_devotion_effect = {
	add_piety_experience = gptev_remove_devotion_value
	if = { 
		limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
		show_as_tooltip = { custom_tooltip = gptev_tt_remove_devotion }
		hidden_effect = {
			every_vassal = {
				add_piety_experience = {
					value = gptev_remove_devotion_value
					divide = 8
					multiply = highest_held_title_tier
				}
			}
		}
	}
}

gptev_add_renown_effect = {
	if = {
		limit = {
			exists = dynasty
		}
		dynasty = { add_dynasty_prestige = gptev_add_renown_value }
		if = { 
			limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
			show_as_tooltip = { custom_tooltip = gptev_tt_add_influence }
			hidden_effect = {
				every_vassal = {
					if = {
						limit = {
							exists = dynasty
						}
						dynasty = { 
							add_dynasty_prestige = {
								value = gptev_add_renown_value
								divide = 8
								multiply = prev.highest_held_title_tier
							}
						}
					}
				}
			}
		}
	}
}

gptev_remove_renown_effect = {
	if = {
		limit = {
			exists = dynasty
		}
		dynasty = { add_dynasty_prestige = gptev_remove_renown_value }
		if = { 
			limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
			show_as_tooltip = { custom_tooltip = gptev_tt_remove_influence }
			hidden_effect = {
				every_vassal = {
					if = {
						limit = {
							exists = dynasty
						}
						dynasty = { 
							add_dynasty_prestige = {
								value = gptev_remove_renown_value
								divide = 8
								multiply = prev.highest_held_title_tier
							}
						}
					}
				}
			}
		}
	}
}

gptev_add_legitimacy_or_influence_effect = {
	if = {
		limit = {
			government_has_flag = government_has_influence
		}
		change_influence = gptev_add_influence_value
		if = { 
			limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
			show_as_tooltip = { custom_tooltip = gptev_tt_add_influence }
			hidden_effect = {
				every_vassal = {
					if = {
						limit = {
							is_lowborn = no
							government_has_flag = government_has_influence
						}
						change_influence = {
							value = gptev_add_influence_value
							divide = 10
							multiply = highest_held_title_tier
						}
					}
				}
			}
		}
	}
	else = {
		if = {
			limit = { has_legitimacy = yes }
			add_legitimacy = gptev_add_legitimacy_value
		}
		if = { 
			limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
			show_as_tooltip = { custom_tooltip = gptev_tt_add_legitimacy }
			hidden_effect = {
				every_vassal = {
					if = {
						limit = {
							is_lowborn = no
							NOT = { government_has_flag = government_has_influence }
						}
						add_legitimacy = {
							value = gptev_add_legitimacy_value
							divide = 8
							multiply = highest_held_title_tier
						}
					}
				}
			}
		}
	}
}

gptev_remove_legitimacy_or_influence_effect = {
	if = {
		limit = {
			government_has_flag = government_has_influence
		}
		change_influence = gptev_remove_influence_value
		if = { 
			limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
			show_as_tooltip = { custom_tooltip = gptev_tt_remove_influence }
			hidden_effect = {
				every_vassal = {
					if = {
						limit = {
							is_lowborn = no
							government_has_flag = government_has_influence
						}
						change_influence = {
							value = gptev_remove_influence_value
							divide = 10
							multiply = highest_held_title_tier
						}
					}
				}
			}
		}
	}
	else = {
		if = {
			limit = { has_legitimacy = yes }
			add_legitimacy = gptev_remove_legitimacy_value
		}
		if = { 
			limit = { OR = { is_independent_ruler = yes is_tributary = yes } }
			show_as_tooltip = { custom_tooltip = gptev_tt_remove_legitimacy }
			hidden_effect = {
				every_vassal = {
					if = {
						limit = {
							is_lowborn = no
							NOT = { government_has_flag = government_has_influence }
						}
						add_legitimacy = {
							value = gptev_remove_legitimacy_value
							divide = 8
							multiply = highest_held_title_tier
						}
					}
				}
			}
		}
	}
}