### Modifier Menu Customizer ###

modifier_plus_25 = {
	modifier_plus_1 = yes
	hidden_effect = {
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
	}
}

modifier_plus_5 = {
	modifier_plus_1 = yes
	hidden_effect = {
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
		modifier_plus_1 = yes
	}
}

modifier_plus_1 = {
	if = {
		limit = { has_character_flag = diplomacy_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomacy_per_prestige_level_neg } }
			add_character_modifier = { modifier = diplomacy_per_prestige_level }
		}
		else = { remove_character_modifier = diplomacy_per_prestige_level_neg }
	}
	if = {
		limit = { has_character_flag = martial_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = martial_per_prestige_level_neg } }
			add_character_modifier = { modifier = martial_per_prestige_level }
		}
		else = { remove_character_modifier = martial_per_prestige_level_neg }
	}
	if = {
		limit = { has_character_flag = stewardship_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = stewardship_per_prestige_level_neg } }
			add_character_modifier = { modifier = stewardship_per_prestige_level }
		}
		else = { remove_character_modifier = stewardship_per_prestige_level_neg }
	}
	if = {
		limit = { has_character_flag = intrigue_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = intrigue_per_prestige_level_neg } }
			add_character_modifier = { modifier = intrigue_per_prestige_level }
		}
		else = { remove_character_modifier = intrigue_per_prestige_level_neg }
	}
	if = {
		limit = { has_character_flag = learning_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = learning_per_prestige_level_neg } }
			add_character_modifier = { modifier = learning_per_prestige_level }
		}
		else = { remove_character_modifier = learning_per_prestige_level_neg }
	}
	if = {
		limit = { has_character_flag = prowess_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = prowess_per_prestige_level_neg } }
			add_character_modifier = { modifier = prowess_per_prestige_level }
		}
		else = { remove_character_modifier = prowess_per_prestige_level_neg }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_neg } }
			add_character_modifier = { modifier = monthly_prestige }
		}
		else = { remove_character_modifier = monthly_prestige_neg }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_mult_neg } }
			add_character_modifier = { modifier = monthly_prestige_gain_mult }
		}
		else = { remove_character_modifier = monthly_prestige_gain_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal_neg } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_happy_powerful_vassal }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal_neg }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal_mult_neg } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_happy_powerful_vassal_mult }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_dread_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_dread_neg } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_dread }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_dread_neg }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_dread_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_dread_mult_neg } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_dread_mult }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_dread_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_knight_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_knight_neg } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_knight }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_knight_neg }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_knight_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_knight_mult_neg } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_knight_mult }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_knight_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_from_buildings_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_from_buildings_mult_neg } }
			add_character_modifier = { modifier = monthly_prestige_from_buildings_mult }
		}
		else = { remove_character_modifier = monthly_prestige_from_buildings_mult_neg }
	}
	if = {
		limit = { has_character_flag = prestige_level_impact_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = prestige_level_impact_mult_neg } }
			add_character_modifier = { modifier = prestige_level_impact_mult }
		}
		else = { remove_character_modifier = prestige_level_impact_mult_neg }
	}
	if = {
		limit = { has_character_flag = diplomacy_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomacy_per_piety_level_neg } }
			add_character_modifier = { modifier = diplomacy_per_piety_level }
		}
		else = { remove_character_modifier = diplomacy_per_piety_level_neg }
	}
	if = {
		limit = { has_character_flag = martial_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = martial_per_piety_level_neg } }
			add_character_modifier = { modifier = martial_per_piety_level }
		}
		else = { remove_character_modifier = martial_per_piety_level_neg }
	}
	if = {
		limit = { has_character_flag = stewardship_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = stewardship_per_piety_level_neg } }
			add_character_modifier = { modifier = stewardship_per_piety_level }
		}
		else = { remove_character_modifier = stewardship_per_piety_level_neg }
	}
	if = {
		limit = { has_character_flag = intrigue_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = intrigue_per_piety_level_neg } }
			add_character_modifier = { modifier = intrigue_per_piety_level }
		}
		else = { remove_character_modifier = intrigue_per_piety_level_neg }
	}
	if = {
		limit = { has_character_flag = learning_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = learning_per_piety_level_neg } }
			add_character_modifier = { modifier = learning_per_piety_level }
		}
		else = { remove_character_modifier = learning_per_piety_level_neg }
	}
	if = {
		limit = { has_character_flag = prowess_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = prowess_per_piety_level_neg } }
			add_character_modifier = { modifier = prowess_per_piety_level }
		}
		else = { remove_character_modifier = prowess_per_piety_level_neg }
	}
	if = {
		limit = { has_character_flag = monthly_piety_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_neg } }
			add_character_modifier = { modifier = monthly_piety }
		}
		else = { remove_character_modifier = monthly_piety_neg }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_mult_neg } }
			add_character_modifier = { modifier = monthly_piety_gain_mult }
		}
		else = { remove_character_modifier = monthly_piety_gain_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_happy_powerful_vassal_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_happy_powerful_vassal_neg } }
			add_character_modifier = { modifier = monthly_piety_gain_per_happy_powerful_vassal }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_happy_powerful_vassal_neg }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_happy_powerful_vassal_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_happy_powerful_vassal_mult_neg } }
			add_character_modifier = { modifier = monthly_piety_gain_per_happy_powerful_vassal_mult }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_happy_powerful_vassal_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_dread_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_dread_neg } }
			add_character_modifier = { modifier = monthly_piety_gain_per_dread }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_dread_neg }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_dread_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_dread_mult_neg } }
			add_character_modifier = { modifier = monthly_piety_gain_per_dread_mult }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_dread_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_knight_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_knight_neg } }
			add_character_modifier = { modifier = monthly_piety_gain_per_knight }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_knight_neg }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_knight_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_knight_mult_neg } }
			add_character_modifier = { modifier = monthly_piety_gain_per_knight_mult }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_knight_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_piety_from_buildings_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_from_buildings_mult_neg } }
			add_character_modifier = { modifier = monthly_piety_from_buildings_mult }
		}
		else = { remove_character_modifier = monthly_piety_from_buildings_mult_neg }
	}
	if = {
		limit = { has_character_flag = piety_level_impact_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = piety_level_impact_mult_neg } }
			add_character_modifier = { modifier = piety_level_impact_mult }
		}
		else = { remove_character_modifier = piety_level_impact_mult_neg }
	}
	if = {
		limit = { has_character_flag = faith_conversion_piety_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = faith_conversion_piety_cost_neg } }
			add_character_modifier = { modifier = faith_conversion_piety_cost }
		}
		else = { remove_character_modifier = faith_conversion_piety_cost_neg }
	}
	if = {
		limit = { has_character_flag = faith_conversion_piety_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = faith_conversion_piety_cost_mult_neg } }
			add_character_modifier = { modifier = faith_conversion_piety_cost_mult }
		}
		else = { remove_character_modifier = faith_conversion_piety_cost_mult_neg }
	}
	if = {
		limit = { has_character_flag = faith_creation_piety_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = faith_creation_piety_cost_neg } }
			add_character_modifier = { modifier = faith_creation_piety_cost }
		}
		else = { remove_character_modifier = faith_creation_piety_cost_neg }
	}
	if = {
		limit = { has_character_flag = faith_creation_piety_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = faith_creation_piety_cost_mult_neg } }
			add_character_modifier = { modifier = faith_creation_piety_cost_mult }
		}
		else = { remove_character_modifier = faith_creation_piety_cost_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_income_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_income_neg } }
			add_character_modifier = { modifier = monthly_income }
		}
		else = { remove_character_modifier = monthly_income_neg }
	}
	if = {
		limit = { has_character_flag = monthly_income_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_income_mult_neg } }
			add_character_modifier = { modifier = monthly_income_mult }
		}
		else = { remove_character_modifier = monthly_income_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_war_income_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_war_income_neg } }
			add_character_modifier = { modifier = monthly_war_income }
		}
		else = { remove_character_modifier = monthly_war_income_neg }
	}
	if = {
		limit = { has_character_flag = monthly_war_income_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_war_income_mult_neg } }
			add_character_modifier = { modifier = monthly_war_income_mult }
		}
		else = { remove_character_modifier = monthly_war_income_mult_neg }
	}
	if = {
		limit = { has_character_flag = tax_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = tax_mult_neg } }
			add_character_modifier = { modifier = tax_mult }
		}
		else = { remove_character_modifier = tax_mult_neg }
	}
	if = {
		limit = { has_character_flag = domain_tax_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_mult_neg } }
			add_character_modifier = { modifier = domain_tax_mult }
		}
		else = { remove_character_modifier = domain_tax_mult_neg }
	}
	if = {
		limit = { has_character_flag = domain_tax_same_faith_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_same_faith_mult_neg } }
			add_character_modifier = { modifier = domain_tax_same_faith_mult }
		}
		else = { remove_character_modifier = domain_tax_same_faith_mult_neg }
	}
	if = {
		limit = { has_character_flag = domain_tax_different_faith_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_different_faith_mult_neg } }
			add_character_modifier = { modifier = domain_tax_different_faith_mult }
		}
		else = { remove_character_modifier = domain_tax_different_faith_mult_neg }
	}
	if = {
		limit = { has_character_flag = domain_tax_mult_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_mult_even_if_baron_neg } }
			add_character_modifier = { modifier = domain_tax_mult_even_if_baron }
		}
		else = { remove_character_modifier = domain_tax_mult_even_if_baron_neg }
	}
	if = {
		limit = { has_character_flag = domain_tax_same_faith_mult_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_same_faith_mult_even_if_baron_neg } }
			add_character_modifier = { modifier = domain_tax_same_faith_mult_even_if_baron }
		}
		else = { remove_character_modifier = domain_tax_same_faith_mult_even_if_baron_neg }
	}
	if = {
		limit = { has_character_flag = domain_tax_different_faith_mult_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_different_faith_mult_even_if_baron_neg } }
			add_character_modifier = { modifier = domain_tax_different_faith_mult_even_if_baron }
		}
		else = { remove_character_modifier = domain_tax_different_faith_mult_even_if_baron_neg }
	}
	if = {
		limit = { has_character_flag = vassal_tax_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_tax_mult_neg } }
			add_character_modifier = { modifier = vassal_tax_mult }
		}
		else = { remove_character_modifier = vassal_tax_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_income_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_income_per_stress_level_neg } }
			add_character_modifier = { modifier = monthly_income_per_stress_level }
		}
		else = { remove_character_modifier = monthly_income_per_stress_level_neg }
	}
	if = {
		limit = { has_character_flag = monthly_income_per_stress_level_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_income_per_stress_level_mult_neg } }
			add_character_modifier = { modifier = monthly_income_per_stress_level_mult }
		}
		else = { remove_character_modifier = monthly_income_per_stress_level_mult_neg }
	}
	if = {
		limit = { has_character_flag = opinion_of_male_rulers_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_male_rulers_neg } }
			add_character_modifier = { modifier = opinion_of_male_rulers }
		}
		else = { remove_character_modifier = opinion_of_male_rulers_neg }
	}
	if = {
		limit = { has_character_flag = opinion_of_female_rulers_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_female_rulers_neg } }
			add_character_modifier = { modifier = opinion_of_female_rulers }
		}
		else = { remove_character_modifier = opinion_of_female_rulers_neg }
	}
	if = {
		limit = { has_character_flag = opinion_of_same_culture_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_same_culture_neg } }
			add_character_modifier = { modifier = opinion_of_same_culture }
		}
		else = { remove_character_modifier = opinion_of_same_culture_neg }
	}
	if = {
		limit = { has_character_flag = opinion_of_different_culture_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_different_culture_neg } }
			add_character_modifier = { modifier = opinion_of_different_culture }
		}
		else = { remove_character_modifier = opinion_of_different_culture_neg }
	}
	if = {
		limit = { has_character_flag = opinion_of_same_faith_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_same_faith_neg } }
			add_character_modifier = { modifier = opinion_of_same_faith }
		}
		else = { remove_character_modifier = opinion_of_same_faith_neg }
	}
	if = {
		limit = { has_character_flag = opinion_of_different_faith_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_different_faith_neg } }
			add_character_modifier = { modifier = opinion_of_different_faith }
		}
		else = { remove_character_modifier = opinion_of_different_faith_neg }
	}
	if = {
		limit = { has_character_flag = opinion_of_liege_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_liege_neg } }
			add_character_modifier = { modifier = opinion_of_liege }
		}
		else = { remove_character_modifier = opinion_of_liege_neg }
	}
	if = {
		limit = { has_character_flag = opinion_of_vassal_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_vassal_neg } }
			add_character_modifier = { modifier = opinion_of_vassal }
		}
		else = { remove_character_modifier = opinion_of_vassal_neg }
	}
	if = {
		limit = { has_character_flag = opinion_of_different_faith_liege_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_different_faith_liege_neg } }
			add_character_modifier = { modifier = opinion_of_different_faith_liege }
		}
		else = { remove_character_modifier = opinion_of_different_faith_liege_neg }
	}
	if = {
		limit = { has_character_flag = same_culture_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_culture_opinion_neg } }
			add_character_modifier = { modifier = same_culture_opinion }
		}
		else = { remove_character_modifier = same_culture_opinion_neg }
	}
	if = {
		limit = { has_character_flag = different_culture_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = different_culture_opinion_neg } }
			add_character_modifier = { modifier = different_culture_opinion }
		}
		else = { remove_character_modifier = different_culture_opinion_neg }
	}
	if = {
		limit = { has_character_flag = same_faith_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_faith_opinion_neg } }
			add_character_modifier = { modifier = same_faith_opinion }
		}
		else = { remove_character_modifier = same_faith_opinion_neg }
	}
	if = {
		limit = { has_character_flag = different_faith_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = different_faith_opinion_neg } }
			add_character_modifier = { modifier = different_faith_opinion }
		}
		else = { remove_character_modifier = different_faith_opinion_neg }
	}
	if = {
		limit = { has_character_flag = direct_vassal_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = direct_vassal_opinion_neg } }
			add_character_modifier = { modifier = direct_vassal_opinion }
		}
		else = { remove_character_modifier = direct_vassal_opinion_neg }
	}
	if = {
		limit = { has_character_flag = fellow_vassal_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = fellow_vassal_opinion_neg } }
			add_character_modifier = { modifier = fellow_vassal_opinion }
		}
		else = { remove_character_modifier = fellow_vassal_opinion_neg }
	}
	if = {
		limit = { has_character_flag = independent_ruler_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = independent_ruler_opinion_neg } }
			add_character_modifier = { modifier = independent_ruler_opinion }
		}
		else = { remove_character_modifier = independent_ruler_opinion_neg }
	}
	if = {
		limit = { has_character_flag = general_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = general_opinion_neg } }
			add_character_modifier = { modifier = general_opinion }
		}
		else = { remove_character_modifier = general_opinion_neg }
	}
	if = {
		limit = { has_character_flag = attraction_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = attraction_opinion_neg } }
			add_character_modifier = { modifier = attraction_opinion }
		}
		else = { remove_character_modifier = attraction_opinion_neg }
	}
	if = {
		limit = { has_character_flag = religious_vassal_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = religious_vassal_opinion_neg } }
			add_character_modifier = { modifier = religious_vassal_opinion }
		}
		else = { remove_character_modifier = religious_vassal_opinion_neg }
	}
	if = {
		limit = { has_character_flag = religious_head_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = religious_head_opinion_neg } }
			add_character_modifier = { modifier = religious_head_opinion }
		}
		else = { remove_character_modifier = religious_head_opinion_neg }
	}
	if = {
		limit = { has_character_flag = spouse_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = spouse_opinion_neg } }
			add_character_modifier = { modifier = spouse_opinion }
		}
		else = { remove_character_modifier = spouse_opinion_neg }
	}
	if = {
		limit = { has_character_flag = twin_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = twin_opinion_neg } }
			add_character_modifier = { modifier = twin_opinion }
		}
		else = { remove_character_modifier = twin_opinion_neg }
	}
	if = {
		limit = { has_character_flag = close_relative_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = close_relative_opinion_neg } }
			add_character_modifier = { modifier = close_relative_opinion }
		}
		else = { remove_character_modifier = close_relative_opinion_neg }
	}
	if = {
		limit = { has_character_flag = dynasty_house_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = dynasty_house_opinion_neg } }
			add_character_modifier = { modifier = dynasty_house_opinion }
		}
		else = { remove_character_modifier = dynasty_house_opinion_neg }
	}
	if = {
		limit = { has_character_flag = dynasty_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = dynasty_opinion_neg } }
			add_character_modifier = { modifier = dynasty_opinion }
		}
		else = { remove_character_modifier = dynasty_opinion_neg }
	}
	if = {
		limit = { has_character_flag = liege_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = liege_opinion_neg } }
			add_character_modifier = { modifier = liege_opinion }
		}
		else = { remove_character_modifier = liege_opinion_neg }
	}
	if = {
		limit = { has_character_flag = different_faith_liege_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = different_faith_liege_opinion_neg } }
			add_character_modifier = { modifier = different_faith_liege_opinion }
		}
		else = { remove_character_modifier = different_faith_liege_opinion_neg }
	}
	if = {
		limit = { has_character_flag = vassal_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_opinion_neg } }
			add_character_modifier = { modifier = vassal_opinion }
		}
		else = { remove_character_modifier = vassal_opinion_neg }
	}
	if = {
		limit = { has_character_flag = clergy_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = clergy_opinion_neg } }
			add_character_modifier = { modifier = clergy_opinion }
		}
		else = { remove_character_modifier = clergy_opinion_neg }
	}
	if = {
		limit = { has_character_flag = councillor_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = councillor_opinion_neg } }
			add_character_modifier = { modifier = councillor_opinion }
		}
		else = { remove_character_modifier = councillor_opinion_neg }
	}
	if = {
		limit = { has_character_flag = realm_priest_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = realm_priest_opinion_neg } }
			add_character_modifier = { modifier = realm_priest_opinion }
		}
		else = { remove_character_modifier = realm_priest_opinion_neg }
	}
	if = {
		limit = { has_character_flag = powerful_vassal_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = powerful_vassal_opinion_neg } }
			add_character_modifier = { modifier = powerful_vassal_opinion }
		}
		else = { remove_character_modifier = powerful_vassal_opinion_neg }
	}
	if = {
		limit = { has_character_flag = courtier_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = courtier_opinion_neg } }
			add_character_modifier = { modifier = courtier_opinion }
		}
		else = { remove_character_modifier = courtier_opinion_neg }
	}
	if = {
		limit = { has_character_flag = guest_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = guest_opinion_neg } }
			add_character_modifier = { modifier = guest_opinion }
		}
		else = { remove_character_modifier = guest_opinion_neg }
	}
	if = {
		limit = { has_character_flag = courtier_and_guest_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = courtier_and_guest_opinion_neg } }
			add_character_modifier = { modifier = courtier_and_guest_opinion }
		}
		else = { remove_character_modifier = courtier_and_guest_opinion_neg }
	}
	if = {
		limit = { has_character_flag = prisoner_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = prisoner_opinion_neg } }
			add_character_modifier = { modifier = prisoner_opinion }
		}
		else = { remove_character_modifier = prisoner_opinion_neg }
	}
	if = {
		limit = { has_character_flag = player_heir_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = player_heir_opinion_neg } }
			add_character_modifier = { modifier = player_heir_opinion }
		}
		else = { remove_character_modifier = player_heir_opinion_neg }
	}
	if = {
		limit = { has_character_flag = child_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = child_opinion_neg } }
			add_character_modifier = { modifier = child_opinion }
		}
		else = { remove_character_modifier = child_opinion_neg }
	}
	if = {
		limit = { has_character_flag = child_except_player_heir_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = child_except_player_heir_opinion_neg } }
			add_character_modifier = { modifier = child_except_player_heir_opinion }
		}
		else = { remove_character_modifier = child_except_player_heir_opinion_neg }
	}
	if = {
		limit = { has_character_flag = eligible_child_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = eligible_child_opinion_neg } }
			add_character_modifier = { modifier = eligible_child_opinion }
		}
		else = { remove_character_modifier = eligible_child_opinion_neg }
	}
	if = {
		limit = { has_character_flag = eligible_child_except_player_heir_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = eligible_child_except_player_heir_opinion_neg } }
			add_character_modifier = { modifier = eligible_child_except_player_heir_opinion }
		}
		else = { remove_character_modifier = eligible_child_except_player_heir_opinion_neg }
	}
	if = {
		limit = { has_character_flag = county_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = county_opinion_neg } }
			add_character_modifier = { modifier = county_opinion_add }
		}
		else = { remove_character_modifier = county_opinion_neg }
	}
	if = {
		limit = { has_character_flag = different_faith_county_opinion_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = different_faith_county_opinion_mult_neg } }
			add_character_modifier = { modifier = different_faith_county_opinion_mult }
		}
		else = { remove_character_modifier = different_faith_county_opinion_mult_neg }
	}
	if = {
		limit = { has_character_flag = county_opinion_add_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = county_opinion_add_even_if_baron_neg } }
			add_character_modifier = { modifier = county_opinion_add_even_if_baron }
		}
		else = { remove_character_modifier = county_opinion_add_even_if_baron_neg }
	}
	if = {
		limit = { has_character_flag = different_faith_county_opinion_mult_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = different_faith_county_opinion_mult_even_if_baron_neg } }
			add_character_modifier = { modifier = different_faith_county_opinion_mult_even_if_baron }
		}
		else = { remove_character_modifier = different_faith_county_opinion_mult_even_if_baron_neg }
	}
	if = {
		limit = { has_character_flag = fertility_flag }
		if = {
			limit = { NOT= { has_character_modifier = fertility_modifier_neg } }
			add_character_modifier = { modifier = fertility_modifier }
		}
		else = { remove_character_modifier = fertility_modifier_neg }
	}
	if = {
		limit = { has_character_flag = health_flag }
		if = {
			limit = { NOT= { has_character_modifier = health_modifier_neg } }
			add_character_modifier = { modifier = health_modifier }
		}
		else = { remove_character_modifier = health_modifier_neg }
	}
	if = {
		limit = { has_character_flag = negate_fertility_penalty_flag }
		if = {
			limit = { NOT= { has_character_modifier = negate_fertility_penalty_neg } }
			add_character_modifier = { modifier = negate_fertility_penalty }
		}
		else = { remove_character_modifier = negate_fertility_penalty_neg }
	}
	if = {
		limit = { has_character_flag = negate_health_penalty_flag }
		if = {
			limit = { NOT= { has_character_modifier = negate_health_penalty_neg } }
			add_character_modifier = { modifier = negate_health_penalty }
		}
		else = { remove_character_modifier = negate_health_penalty_neg }
	}
	if = {
		limit = { has_character_flag = monthly_dynasty_prestige_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_dynasty_prestige_neg } }
			add_character_modifier = { modifier = monthly_dynasty_prestige }
		}
		else = { remove_character_modifier = monthly_dynasty_prestige_neg }
	}
	if = {
		limit = { has_character_flag = monthly_dynasty_prestige_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_dynasty_prestige_mult_neg } }
			add_character_modifier = { modifier = monthly_dynasty_prestige_mult }
		}
		else = { remove_character_modifier = monthly_dynasty_prestige_mult_neg }
	}
	# if = {
	# 	limit = { has_character_flag = random_skills_per_child_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = random_skills_per_child_neg } }
	# 		add_character_modifier = { modifier = random_skills_per_child }
	# 	}
	# 	else = { remove_character_modifier = random_skills_per_child_neg }
	# }
	if = {
		limit = { has_character_flag = inbreeding_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = inbreeding_chance_neg } }
			add_character_modifier = { modifier = inbreeding_chance }
		}
		else = { remove_character_modifier = inbreeding_chance_neg }
	}
	if = {
		limit = { has_character_flag = positive_inactive_inheritance_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = positive_inactive_inheritance_chance_neg } }
			add_character_modifier = { modifier = positive_inactive_inheritance_chance }
		}
		else = { remove_character_modifier = positive_inactive_inheritance_chance_neg }
	}
	if = {
		limit = { has_character_flag = negative_inactive_inheritance_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = negative_inactive_inheritance_chance_neg } }
			add_character_modifier = { modifier = negative_inactive_inheritance_chance }
		}
		else = { remove_character_modifier = negative_inactive_inheritance_chance_neg }
	}
	if = {
		limit = { has_character_flag = positive_random_genetic_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = positive_random_genetic_chance_neg } }
			add_character_modifier = { modifier = positive_random_genetic_chance }
		}
		else = { remove_character_modifier = positive_random_genetic_chance_neg }
	}
	if = {
		limit = { has_character_flag = negative_random_genetic_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = negative_random_genetic_chance_neg } }
			add_character_modifier = { modifier = negative_random_genetic_chance }
		}
		else = { remove_character_modifier = negative_random_genetic_chance_neg }
	}
	if = {
		limit = { has_character_flag = genetic_trait_strengthen_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = genetic_trait_strengthen_chance_neg } }
			add_character_modifier = { modifier = genetic_trait_strengthen_chance }
		}
		else = { remove_character_modifier = genetic_trait_strengthen_chance_neg }
	}
	if = {
		limit = { has_character_flag = life_expectancy_flag }
		if = {
			limit = { NOT= { has_character_modifier = life_expectancy_modifier_neg } }
			add_character_modifier = { modifier = life_expectancy_modifier }
		}
		else = { remove_character_modifier = life_expectancy_modifier_neg }
	}
	if = {
		limit = { has_character_flag = years_of_fertility_flag }
		if = {
			limit = { NOT= { has_character_modifier = years_of_fertility_neg } }
			add_character_modifier = { modifier = years_of_fertility }
		}
		else = { remove_character_modifier = years_of_fertility_neg }
	}
	if = {
		limit = { has_character_flag = diplomacy_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomacy_per_stress_level_neg } }
			add_character_modifier = { modifier = diplomacy_per_stress_level }
		}
		else = { remove_character_modifier = diplomacy_per_stress_level_neg }
	}
	if = {
		limit = { has_character_flag = martial_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = martial_per_stress_level_neg } }
			add_character_modifier = { modifier = martial_per_stress_level }
		}
		else = { remove_character_modifier = martial_per_stress_level_neg }
	}
	if = {
		limit = { has_character_flag = stewardship_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = stewardship_per_stress_level_neg } }
			add_character_modifier = { modifier = stewardship_per_stress_level }
		}
		else = { remove_character_modifier = stewardship_per_stress_level_neg }
	}
	if = {
		limit = { has_character_flag = intrigue_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = intrigue_per_stress_level_neg } }
			add_character_modifier = { modifier = intrigue_per_piety_level }
		}
		else = { remove_character_modifier = intrigue_per_stress_level_neg }
	}
	if = {
		limit = { has_character_flag = learning_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = learning_per_stress_level_neg } }
			add_character_modifier = { modifier = learning_per_stress_level }
		}
		else = { remove_character_modifier = learning_per_stress_level_neg }
	}
	if = {
		limit = { has_character_flag = prowess_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = prowess_per_stress_level_neg } }
			add_character_modifier = { modifier = prowess_per_stress_level }
		}
		else = { remove_character_modifier = prowess_per_stress_level_neg }
	}
	if = {
		limit = { has_character_flag = stress_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = stress_gain_mult_neg } }
			add_character_modifier = { modifier = stress_gain_mult }
		}
		else = { remove_character_modifier = stress_gain_mult_neg }
	}
	if = {
		limit = { has_character_flag = stress_loss_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = stress_loss_mult_neg } }
			add_character_modifier = { modifier = stress_loss_mult }
		}
		else = { remove_character_modifier = stress_loss_mult_neg }
	}
	# if = {
	# 	limit = { has_character_flag = scheme_power_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = scheme_power_neg } }
	# 		add_character_modifier = { modifier = scheme_power }
	# 	}
	# 	else = { remove_character_modifier = scheme_power_neg }
	# }
	# if = {
	# 	limit = { has_character_flag = scheme_resistance_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = scheme_resistance_neg } }
	# 		add_character_modifier = { modifier = scheme_resistance }
	# 	}
	# 	else = { remove_character_modifier = scheme_resistance_neg }
	# }
	# if = {
	# 	limit = { has_character_flag = scheme_secrecy_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = scheme_secrecy_neg } }
	# 		add_character_modifier = { modifier = scheme_secrecy }
	# 	}
	# 	else = { remove_character_modifier = scheme_secrecy_neg }
	# }
	if = {
		limit = { has_character_flag = vassal_levy_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_levy_contribution_neg } }
			add_character_modifier = { modifier = vassal_levy_contribution }
		}
		else = { remove_character_modifier = vassal_levy_contribution_neg }
	}
	# if = {
	# 	limit = { has_character_flag = scheme_success_chance_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = scheme_success_chance_neg } }
	# 		add_character_modifier = { modifier = scheme_success_chance }
	# 	}
	# 	else = { remove_character_modifier = scheme_success_chance_neg }
	# }
	if = {
		limit = { has_character_flag = hostile_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = hostile_scheme_power_neg } }
			add_character_modifier = { modifier = hostile_scheme_power }
		}
		else = { remove_character_modifier = hostile_scheme_power_neg }
	}
	if = {
		limit = { has_character_flag = personal_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = personal_scheme_power_neg } }
			add_character_modifier = { modifier = personal_scheme_power }
		}
		else = { remove_character_modifier = personal_scheme_power_neg }
	}
	if = {
		limit = { has_character_flag = hostile_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = hostile_scheme_resistance_neg } }
			add_character_modifier = { modifier = hostile_scheme_resistance }
		}
		else = { remove_character_modifier = hostile_scheme_resistance_neg }
	}
	if = {
		limit = { has_character_flag = personal_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = personal_scheme_resistance_neg } }
			add_character_modifier = { modifier = personal_scheme_resistance }
		}
		else = { remove_character_modifier = personal_scheme_resistance_neg }
	}
	if = {
		limit = { has_character_flag = diplomacy_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomacy_scheme_power_neg } }
			add_character_modifier = { modifier = diplomacy_scheme_power }
		}
		else = { remove_character_modifier = diplomacy_scheme_power_neg }
	}
	if = {
		limit = { has_character_flag = intrigue_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = intrigue_scheme_power_neg } }
			add_character_modifier = { modifier = intrigue_scheme_power }
		}
		else = { remove_character_modifier = intrigue_scheme_power_neg }
	}
	if = {
		limit = { has_character_flag = stewardship_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = stewardship_scheme_power_neg } }
			add_character_modifier = { modifier = stewardship_scheme_power }
		}
		else = { remove_character_modifier = stewardship_scheme_power_neg }
	}
	if = {
		limit = { has_character_flag = martial_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = martial_scheme_power_neg } }
			add_character_modifier = { modifier = martial_scheme_power }
		}
		else = { remove_character_modifier = martial_scheme_power_neg }
	}
	if = {
		limit = { has_character_flag = prowess_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = prowess_scheme_power_neg } }
			add_character_modifier = { modifier = prowess_scheme_power }
		}
		else = { remove_character_modifier = prowess_scheme_power_neg }
	}
	if = {
		limit = { has_character_flag = learning_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = learning_scheme_power_neg } }
			add_character_modifier = { modifier = learning_scheme_power }
		}
		else = { remove_character_modifier = learning_scheme_power_neg }
	}
	if = {
		limit = { has_character_flag = diplomacy_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomacy_scheme_resistance_neg } }
			add_character_modifier = { modifier = diplomacy_scheme_resistance }
		}
		else = { remove_character_modifier = diplomacy_scheme_resistance_neg }
	}
	if = {
		limit = { has_character_flag = intrigue_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = intrigue_scheme_resistance_neg } }
			add_character_modifier = { modifier = intrigue_scheme_resistance }
		}
		else = { remove_character_modifier = intrigue_scheme_resistance_neg }
	}
	if = {
		limit = { has_character_flag = stewardship_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = stewardship_scheme_resistance_neg } }
			add_character_modifier = { modifier = stewardship_scheme_resistance }
		}
		else = { remove_character_modifier = stewardship_scheme_resistance_neg }
	}
	if = {
		limit = { has_character_flag = martial_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = martial_scheme_resistance_neg } }
			add_character_modifier = { modifier = martial_scheme_resistance }
		}
		else = { remove_character_modifier = martial_scheme_resistance_neg }
	}
	if = {
		limit = { has_character_flag = prowess_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = prowess_scheme_resistance_neg } }
			add_character_modifier = { modifier = prowess_scheme_resistance }
		}
		else = { remove_character_modifier = prowess_scheme_resistance_neg }
	}
	if = {
		limit = { has_character_flag = learning_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = learning_scheme_resistance_neg } }
			add_character_modifier = { modifier = learning_scheme_resistance }
		}
		else = { remove_character_modifier = learning_scheme_resistance_neg }
	}
	if = {
		limit = { has_character_flag = scheme_discovery_chance_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = scheme_discovery_chance_mult_neg } }
			add_character_modifier = { modifier = scheme_discovery_chance_mult }
		}
		else = { remove_character_modifier = scheme_discovery_chance_mult_neg }
	}
	if = {
		limit = { has_character_flag = max_personal_schemes_flag }
		if = {
			limit = { NOT= { has_character_modifier = max_personal_schemes_neg } }
			add_character_modifier = { modifier = max_personal_schemes }
		}
		else = { remove_character_modifier = max_personal_schemes_neg }
	}
	if = {
		limit = { has_character_flag = max_hostile_schemes_flag }
		if = {
			limit = { NOT= { has_character_modifier = max_hostile_schemes_neg } }
			add_character_modifier = { modifier = max_hostile_schemes }
		}
		else = { remove_character_modifier = max_hostile_schemes_neg }
	}
	if = {
		limit = { has_character_flag = owned_hostile_scheme_success_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = owned_hostile_scheme_success_chance_neg } }
			add_character_modifier = { modifier = owned_hostile_scheme_success_chance }
		}
		else = { remove_character_modifier = owned_hostile_scheme_success_chance_neg }
	}
	if = {
		limit = { has_character_flag = owned_personal_scheme_success_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = owned_personal_scheme_success_chance_neg } }
			add_character_modifier = { modifier = owned_personal_scheme_success_chance }
		}
		else = { remove_character_modifier = owned_personal_scheme_success_chance_neg }
	}
	if = {
		limit = { has_character_flag = enemy_hostile_scheme_success_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = enemy_hostile_scheme_success_chance_neg } }
			add_character_modifier = { modifier = enemy_hostile_scheme_success_chance }
		}
		else = { remove_character_modifier = enemy_hostile_scheme_success_chance_neg }
	}
	if = {
		limit = { has_character_flag = enemy_personal_scheme_success_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = enemy_personal_scheme_success_chance_neg } }
			add_character_modifier = { modifier = enemy_personal_scheme_success_chance }
		}
		else = { remove_character_modifier = enemy_personal_scheme_success_chance_neg }
	}
	if = {
		limit = { has_character_flag = monthly_dread_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_dread_neg } }
			add_character_modifier = { modifier = monthly_dread }
		}
		else = { remove_character_modifier = monthly_dread_neg }
	}
	if = {
		limit = { has_character_flag = dread_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_gain_mult_neg } }
			add_character_modifier = { modifier = dread_gain_mult }
		}
		else = { remove_character_modifier = dread_gain_mult_neg }
	}
	if = {
		limit = { has_character_flag = dread_loss_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_loss_mult_neg } }
			add_character_modifier = { modifier = dread_loss_mult }
		}
		else = { remove_character_modifier = dread_loss_mult_neg }
	}
	if = {
		limit = { has_character_flag = tyranny_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = tyranny_gain_mult_neg } }
			add_character_modifier = { modifier = tyranny_gain_mult }
		}
		else = { remove_character_modifier = tyranny_gain_mult_neg }
	}
	if = {
		limit = { has_character_flag = tyranny_loss_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = tyranny_loss_mult_neg } }
			add_character_modifier = { modifier = tyranny_loss_mult }
		}
		else = { remove_character_modifier = tyranny_loss_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_tyranny_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_tyranny_neg } }
			add_character_modifier = { modifier = monthly_tyranny }
		}
		else = { remove_character_modifier = monthly_tyranny_neg }
	}
	if = {
		limit = { has_character_flag = dread_baseline_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_baseline_neg } }
			add_character_modifier = { modifier = dread_baseline }
		}
		else = { remove_character_modifier = dread_baseline_neg }
	}
	if = {
		limit = { has_character_flag = dread_decay_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_decay_neg } }
			add_character_modifier = { modifier = dread_decay }
		}
		else = { remove_character_modifier = dread_decay_neg }
	}
	if = {
		limit = { has_character_flag = dread_decay_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_decay_mult_neg } }
			add_character_modifier = { modifier = dread_decay_mult }
		}
		else = { remove_character_modifier = dread_decay_mult_neg }
	}
	if = {
		limit = { has_character_flag = dread_per_tyranny_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_per_tyranny_neg } }
			add_character_modifier = { modifier = dread_per_tyranny }
		}
		else = { remove_character_modifier = dread_per_tyranny_neg }
	}
	if = {
		limit = { has_character_flag = dread_per_tyranny_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_per_tyranny_mult_neg } }
			add_character_modifier = { modifier = dread_per_tyranny_mult }
		}
		else = { remove_character_modifier = dread_per_tyranny_mult_neg }
	}
	if = {
		limit = { has_character_flag = domain_limit_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_limit_neg } }
			add_character_modifier = { modifier = domain_limit }
		}
		else = { remove_character_modifier = domain_limit_neg }
	}
	if = {
		limit = { has_character_flag = vassal_limit_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_limit_neg } }
			add_character_modifier = { modifier = vassal_limit }
		}
		else = { remove_character_modifier = vassal_limit_neg }
	}
	if = {
		limit = { has_character_flag = short_reign_duration_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = short_reign_duration_mult_neg } }
			add_character_modifier = { modifier = short_reign_duration_mult }
		}
		else = { remove_character_modifier = short_reign_duration_mult_neg }
	}
	if = {
		limit = { has_character_flag = long_reign_bonus_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = long_reign_bonus_mult_neg } }
			add_character_modifier = { modifier = long_reign_bonus_mult }
		}
		else = { remove_character_modifier = long_reign_bonus_mult_neg }
	}
	if = {
		limit = { has_character_flag = diplomatic_range_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomatic_range_mult_neg } }
			add_character_modifier = { modifier = diplomatic_range_mult }
		}
		else = { remove_character_modifier = diplomatic_range_mult_neg }
	}
	if = {
		limit = { has_character_flag = title_creation_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = title_creation_cost_neg } }
			add_character_modifier = { modifier = title_creation_cost }
		}
		else = { remove_character_modifier = title_creation_cost_neg }
	}
	if = {
		limit = { has_character_flag = title_creation_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = title_creation_cost_mult_neg } }
			add_character_modifier = { modifier = title_creation_cost_mult }
		}
		else = { remove_character_modifier = title_creation_cost_mult_neg }
	}
	if = {
		limit = { has_character_flag = vassal_tax_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_tax_contribution_neg } }
			add_character_modifier = { modifier = vassal_tax_contribution }
		}
		else = { remove_character_modifier = vassal_tax_contribution_neg }
	}
	if = {
		limit = { has_character_flag = vassal_tax_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_tax_contribution_mult_neg } }
			add_character_modifier = { modifier = vassal_tax_contribution_mult }
		}
		else = { remove_character_modifier = vassal_tax_contribution_mult_neg }
	}
	if = {
		limit = { has_character_flag = intimidated_vassal_tax_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = intimidated_vassal_tax_contribution_neg } }
			add_character_modifier = { modifier = intimidated_vassal_tax_contribution }
		}
		else = { remove_character_modifier = intimidated_vassal_tax_contribution_neg }
	}
	if = {
		limit = { has_character_flag = intimidated_vassal_tax_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = intimidated_vassal_tax_contribution_mult_neg } }
			add_character_modifier = { modifier = intimidated_vassal_tax_contribution_mult }
		}
		else = { remove_character_modifier = intimidated_vassal_tax_contribution_mult_neg }
	}
	if = {
		limit = { has_character_flag = cowed_vassal_tax_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = cowed_vassal_tax_contribution_neg } }
			add_character_modifier = { modifier = cowed_vassal_tax_contribution }
		}
		else = { remove_character_modifier = cowed_vassal_tax_contribution_neg }
	}
	if = {
		limit = { has_character_flag = cowed_vassal_tax_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = cowed_vassal_tax_contribution_mult_neg } }
			add_character_modifier = { modifier = cowed_vassal_tax_contribution_mult }
		}
		else = { remove_character_modifier = cowed_vassal_tax_contribution_mult_neg }
	}
	if = {
		limit = { has_character_flag = vassal_levy_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_levy_contribution_neg } }
			add_character_modifier = { modifier = vassal_levy_contribution }
		}
		else = { remove_character_modifier = vassal_levy_contribution_neg }
	}
	if = {
		limit = { has_character_flag = vassal_levy_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_levy_contribution_mult_neg } }
			add_character_modifier = { modifier = vassal_levy_contribution_mult }
		}
		else = { remove_character_modifier = vassal_levy_contribution_mult_neg }
	}
	if = {
		limit = { has_character_flag = intimidated_vassal_levy_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = intimidated_vassal_levy_contribution_neg } }
			add_character_modifier = { modifier = intimidated_vassal_levy_contribution }
		}
		else = { remove_character_modifier = intimidated_vassal_levy_contribution_neg }
	}
	if = {
		limit = { has_character_flag = intimidated_vassal_levy_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = intimidated_vassal_levy_contribution_mult_neg } }
			add_character_modifier = { modifier = intimidated_vassal_levy_contribution_mult }
		}
		else = { remove_character_modifier = intimidated_vassal_levy_contribution_mult_neg }
	}
	if = {
		limit = { has_character_flag = cowed_vassal_levy_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = cowed_vassal_levy_contribution_neg } }
			add_character_modifier = { modifier = cowed_vassal_levy_contribution }
		}
		else = { remove_character_modifier = cowed_vassal_levy_contribution_neg }
	}
	if = {
		limit = { has_character_flag = cowed_vassal_levy_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = cowed_vassal_levy_contribution_mult_neg } }
			add_character_modifier = { modifier = cowed_vassal_levy_contribution_mult }
		}
		else = { remove_character_modifier = cowed_vassal_levy_contribution_mult_neg }
	}
	if = {
		limit = { has_character_flag = happy_powerful_vassal_tax_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = happy_powerful_vassal_tax_contribution_neg } }
			add_character_modifier = { modifier = happy_powerful_vassal_tax_contribution }
		}
		else = { remove_character_modifier = happy_powerful_vassal_tax_contribution_neg }
	}
	if = {
		limit = { has_character_flag = happy_powerful_vassal_tax_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = happy_powerful_vassal_tax_contribution_mult_neg } }
			add_character_modifier = { modifier = happy_powerful_vassal_tax_contribution_mult }
		}
		else = { remove_character_modifier = happy_powerful_vassal_tax_contribution_mult_neg }
	}
	if = {
		limit = { has_character_flag = happy_powerful_vassal_levy_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = happy_powerful_vassal_levy_contribution_neg } }
			add_character_modifier = { modifier = happy_powerful_vassal_levy_contribution }
		}
		else = { remove_character_modifier = happy_powerful_vassal_levy_contribution_neg }
	}
	if = {
		limit = { has_character_flag = happy_powerful_vassal_levy_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = happy_powerful_vassal_levy_contribution_mult_neg } }
			add_character_modifier = { modifier = happy_powerful_vassal_levy_contribution_mult }
		}
		else = { remove_character_modifier = happy_powerful_vassal_levy_contribution_mult_neg }
	}
	if = {
		limit = { has_character_flag = build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = build_speed_neg } }
			add_character_modifier = { modifier = build_speed }
		}
		else = { remove_character_modifier = build_speed_neg }
	}
	if = {
		limit = { has_character_flag = build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = build_gold_cost_neg } }
			add_character_modifier = { modifier = build_gold_cost }
		}
		else = { remove_character_modifier = build_gold_cost_neg }
	}
	if = {
		limit = { has_character_flag = build_piety_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = build_piety_cost_neg } }
			add_character_modifier = { modifier = build_piety_cost }
		}
		else = { remove_character_modifier = build_piety_cost_neg }
	}
	if = {
		limit = { has_character_flag = build_prestige_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = build_prestige_cost_neg } }
			add_character_modifier = { modifier = build_prestige_cost }
		}
		else = { remove_character_modifier = build_prestige_cost_neg }
	}
	if = {
		limit = { has_character_flag = holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = holding_build_speed_neg } }
			add_character_modifier = { modifier = holding_build_speed }
		}
		else = { remove_character_modifier = holding_build_speed_neg }
	}
	if = {
		limit = { has_character_flag = holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = holding_build_gold_cost_neg } }
			add_character_modifier = { modifier = holding_build_gold_cost }
		}
		else = { remove_character_modifier = holding_build_gold_cost_neg }
	}
	if = {
		limit = { has_character_flag = holding_build_piety_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = holding_build_piety_cost_neg } }
			add_character_modifier = { modifier = holding_build_piety_cost }
		}
		else = { remove_character_modifier = holding_build_piety_cost_neg }
	}
	if = {
		limit = { has_character_flag = holding_build_prestige_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = holding_build_prestige_cost_neg } }
			add_character_modifier = { modifier = holding_build_prestige_cost }
		}
		else = { remove_character_modifier = holding_build_prestige_cost_neg }
	}
	if = {
		limit = { has_character_flag = development_growth_factor_flag }
		if = {
			limit = { NOT= { has_character_modifier = development_growth_factor_neg } }
			add_character_modifier = { modifier = development_growth_factor }
		}
		else = { remove_character_modifier = development_growth_factor_neg }
	}
	if = {
		limit = { has_character_flag = development_growth_flag }
		if = {
			limit = { NOT= { has_character_modifier = development_growth_neg } }
			add_character_modifier = { modifier = development_growth }
		}
		else = { remove_character_modifier = development_growth_neg }
	}
	if = {
		limit = { has_character_flag = character_capital_county_monthly_development_growth_flag }
		if = {
			limit = { NOT= { has_character_modifier = character_capital_county_monthly_development_growth_neg } }
			add_character_modifier = { modifier = character_capital_county_monthly_development_growth }
		}
		else = { remove_character_modifier = character_capital_county_monthly_development_growth_neg }
	}
	if = {
		limit = { has_character_flag = monthly_county_control_change_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_county_control_change_neg } }
			add_character_modifier = { modifier = monthly_county_control_change }
		}
		else = { remove_character_modifier = monthly_county_control_change_neg }
	}
	if = {
		limit = { has_character_flag = monthly_county_control_change_factor_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_county_control_change_factor_neg } }
			add_character_modifier = { modifier = monthly_county_control_change_factor }
		}
		else = { remove_character_modifier = monthly_county_control_change_factor_neg }
	}
	if = {
		limit = { has_character_flag = monthly_county_control_change_add_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_county_control_change_add_even_if_baron_neg } }
			add_character_modifier = { modifier = monthly_county_control_change_add_even_if_baron }
		}
		else = { remove_character_modifier = monthly_county_control_change_add_even_if_baron_neg }
	}
	if = {
		limit = { has_character_flag = monthly_county_control_change_factor_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_county_control_change_factor_even_if_baron_neg } }
			add_character_modifier = { modifier = monthly_county_control_change_factor_even_if_baron }
		}
		else = { remove_character_modifier = monthly_county_control_change_factor_even_if_baron_neg }
	}
	if = {
		limit = { has_character_flag = castle_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = castle_holding_build_speed_neg } }
			add_character_modifier = { modifier = castle_holding_build_speed }
		}
		else = { remove_character_modifier = castle_holding_build_speed_neg }
	}
	if = {
		limit = { has_character_flag = castle_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = castle_holding_build_gold_cost_neg } }
			add_character_modifier = { modifier = castle_holding_build_gold_cost }
		}
		else = { remove_character_modifier = castle_holding_build_gold_cost_neg }
	}
	if = {
		limit = { has_character_flag = castle_holding_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = castle_holding_holding_build_speed_neg } }
			add_character_modifier = { modifier = castle_holding_holding_build_speed }
		}
		else = { remove_character_modifier = castle_holding_holding_build_speed_neg }
	}
	if = {
		limit = { has_character_flag = castle_holding_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = castle_holding_holding_build_gold_cost_neg } }
			add_character_modifier = { modifier = castle_holding_holding_build_gold_cost }
		}
		else = { remove_character_modifier = castle_holding_holding_build_gold_cost_neg }
	}
	if = {
		limit = { has_character_flag = tribal_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = tribal_holding_build_speed_neg } }
			add_character_modifier = { modifier = tribal_holding_build_speed }
		}
		else = { remove_character_modifier = tribal_holding_build_speed_neg }
	}
	if = {
		limit = { has_character_flag = tribal_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = tribal_holding_build_gold_cost_neg } }
			add_character_modifier = { modifier = tribal_holding_build_gold_cost }
		}
		else = { remove_character_modifier = tribal_holding_build_gold_cost_neg }
	}
	if = {
		limit = { has_character_flag = tribal_holding_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = tribal_holding_holding_build_speed_neg } }
			add_character_modifier = { modifier = tribal_holding_holding_build_speed }
		}
		else = { remove_character_modifier = tribal_holding_holding_build_speed_neg }
	}
	if = {
		limit = { has_character_flag = tribal_holding_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = tribal_holding_holding_build_gold_cost_neg } }
			add_character_modifier = { modifier = tribal_holding_holding_build_gold_cost }
		}
		else = { remove_character_modifier = tribal_holding_holding_build_gold_cost_neg }
	}
	if = {
		limit = { has_character_flag = city_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = city_holding_build_speed_neg } }
			add_character_modifier = { modifier = city_holding_build_speed }
		}
		else = { remove_character_modifier = city_holding_build_speed_neg }
	}
	if = {
		limit = { has_character_flag = city_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = city_holding_build_gold_cost_neg } }
			add_character_modifier = { modifier = city_holding_build_gold_cost }
		}
		else = { remove_character_modifier = city_holding_build_gold_cost_neg }
	}
	if = {
		limit = { has_character_flag = city_holding_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = city_holding_holding_build_speed_neg } }
			add_character_modifier = { modifier = city_holding_holding_build_speed }
		}
		else = { remove_character_modifier = city_holding_holding_build_speed_neg }
	}
	if = {
		limit = { has_character_flag = city_holding_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = city_holding_holding_build_gold_cost_neg } }
			add_character_modifier = { modifier = city_holding_holding_build_gold_cost }
		}
		else = { remove_character_modifier = city_holding_holding_build_gold_cost_neg }
	}
	if = {
		limit = { has_character_flag = church_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = church_holding_build_speed_neg } }
			add_character_modifier = { modifier = church_holding_build_speed }
		}
		else = { remove_character_modifier = church_holding_build_speed_neg }
	}
	if = {
		limit = { has_character_flag = church_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = church_holding_build_gold_cost_neg } }
			add_character_modifier = { modifier = church_holding_build_gold_cost }
		}
		else = { remove_character_modifier = church_holding_build_gold_cost_neg }
	}
	if = {
		limit = { has_character_flag = church_holding_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = church_holding_holding_build_speed_neg } }
			add_character_modifier = { modifier = church_holding_holding_build_speed }
		}
		else = { remove_character_modifier = church_holding_holding_build_speed_neg }
	}
	if = {
		limit = { has_character_flag = church_holding_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = church_holding_holding_build_gold_cost_neg } }
			add_character_modifier = { modifier = church_holding_holding_build_gold_cost }
		}
		else = { remove_character_modifier = church_holding_holding_build_gold_cost_neg }
	}
	if = {
		limit = { has_character_flag = hostile_raid_time_flag }
		if = {
			limit = { NOT= { has_character_modifier = hostile_raid_time_neg } }
			add_character_modifier = { modifier = hostile_raid_time }
		}
		else = { remove_character_modifier = hostile_raid_time_neg }
	}
	if = {
		limit = { has_character_flag = levy_size_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_size_neg } }
			add_character_modifier = { modifier = levy_size }
		}
		else = { remove_character_modifier = levy_size_neg }
	}
	if = {
		limit = { has_character_flag = garrison_size_flag }
		if = {
			limit = { NOT= { has_character_modifier = garrison_size_neg } }
			add_character_modifier = { modifier = garrison_size }
		}
		else = { remove_character_modifier = garrison_size_neg }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_neg } }
			add_character_modifier = { modifier = levy_reinforcement_rate }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_neg }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_same_faith_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_same_faith_neg } }
			add_character_modifier = { modifier = levy_reinforcement_rate_same_faith }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_same_faith_neg }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_different_faith_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_different_faith_neg } }
			add_character_modifier = { modifier = levy_reinforcement_rate_different_faith }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_different_faith_neg }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_even_if_baron_neg } }
			add_character_modifier = { modifier = levy_reinforcement_rate_even_if_baron }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_even_if_baron_neg }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_same_faith_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_same_faith_even_if_baron_neg } }
			add_character_modifier = { modifier = levy_reinforcement_rate_same_faith_even_if_baron }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_same_faith_even_if_baron_neg }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_different_faith_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_different_faith_even_if_baron_neg } }
			add_character_modifier = { modifier = levy_reinforcement_rate_different_faith_even_if_baron }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_different_faith_even_if_baron_neg }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_friendly_territory_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_friendly_territory_neg } }
			add_character_modifier = { modifier = levy_reinforcement_rate_friendly_territory }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_friendly_territory_neg }
	}
	# if = {
	# 	limit = { has_character_flag = mercenary_count_mult_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = mercenary_count_mult_neg } }
	# 		add_character_modifier = { modifier = mercenary_count_mult }
	# 	}
	# 	else = { remove_character_modifier = mercenary_count_mult_neg }
	# }
	if = {
		limit = { has_character_flag = supply_capacity_flag }
		if = {
			limit = { NOT= { has_character_modifier = supply_capacity_neg } }
			add_character_modifier = { modifier = supply_capacity }
		}
		else = { remove_character_modifier = supply_capacity_neg }
	}
	if = {
		limit = { has_character_flag = supply_capacity_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = supply_capacity_mult_neg } }
			add_character_modifier = { modifier = supply_capacity_mult }
		}
		else = { remove_character_modifier = supply_capacity_mult_neg }
	}
	if = {
		limit = { has_character_flag = mercenary_hire_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = mercenary_hire_cost_neg } }
			add_character_modifier = { modifier = mercenary_hire_cost }
		}
		else = { remove_character_modifier = mercenary_hire_cost_neg }
	}
	if = {
		limit = { has_character_flag = mercenary_hire_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = mercenary_hire_cost_mult_neg } }
			add_character_modifier = { modifier = mercenary_hire_cost_mult }
		}
		else = { remove_character_modifier = mercenary_hire_cost_mult_neg }
	}
	if = {
		limit = { has_character_flag = same_culture_mercenary_hire_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_culture_mercenary_hire_cost_neg } }
			add_character_modifier = { modifier = same_culture_mercenary_hire_cost }
		}
		else = { remove_character_modifier = same_culture_mercenary_hire_cost_neg }
	}
	if = {
		limit = { has_character_flag = same_culture_mercenary_hire_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_culture_mercenary_hire_cost_mult_neg } }
			add_character_modifier = { modifier = same_culture_mercenary_hire_cost_mult }
		}
		else = { remove_character_modifier = same_culture_mercenary_hire_cost_mult_neg }
	}
	if = {
		limit = { has_character_flag = holy_order_hire_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = holy_order_hire_cost_mult_neg } }
			add_character_modifier = { modifier = holy_order_hire_cost_mult }
		}
		else = { remove_character_modifier = holy_order_hire_cost_mult_neg }
	}
	if = {
		limit = { has_character_flag = holy_order_hire_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = holy_order_hire_cost_neg } }
			add_character_modifier = { modifier = holy_order_hire_cost }
		}
		else = { remove_character_modifier = holy_order_hire_cost_neg }
	}
	if = {
		limit = { has_character_flag = same_culture_holy_order_hire_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_culture_holy_order_hire_cost_mult_neg } }
			add_character_modifier = { modifier = same_culture_holy_order_hire_cost_mult }
		}
		else = { remove_character_modifier = same_culture_holy_order_hire_cost_mult_neg }
	}
	if = {
		limit = { has_character_flag = same_culture_holy_order_hire_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_culture_holy_order_hire_cost_neg } }
			add_character_modifier = { modifier = same_culture_holy_order_hire_cost }
		}
		else = { remove_character_modifier = same_culture_holy_order_hire_cost_neg }
	}
	if = {
		limit = { has_character_flag = men_at_arms_maintenance_flag }
		if = {
			limit = { NOT= { has_character_modifier = men_at_arms_maintenance_neg } }
			add_character_modifier = { modifier = men_at_arms_maintenance }
		}
		else = { remove_character_modifier = men_at_arms_maintenance_neg }
	}
	if = {
		limit = { has_character_flag = men_at_arms_maintenance_per_dread_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = men_at_arms_maintenance_per_dread_mult_neg } }
			add_character_modifier = { modifier = men_at_arms_maintenance_per_dread_mult }
		}
		else = { remove_character_modifier = men_at_arms_maintenance_per_dread_mult_neg }
	}
	if = {
		limit = { has_character_flag = army_maintenance_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = army_maintenance_mult_neg } }
			add_character_modifier = { modifier = army_maintenance_mult }
		}
		else = { remove_character_modifier = army_maintenance_mult_neg }
	}
	if = {
		limit = { has_character_flag = knight_limit_flag }
		if = {
			limit = { NOT= { has_character_modifier = knight_limit_neg } }
			add_character_modifier = { modifier = knight_limit }
		}
		else = { remove_character_modifier = knight_limit_neg }
	}
	if = {
		limit = { has_character_flag = knight_effectiveness_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = knight_effectiveness_mult_neg } }
			add_character_modifier = { modifier = knight_effectiveness_mult }
		}
		else = { remove_character_modifier = knight_effectiveness_mult_neg }
	}
	if = {
		limit = { has_character_flag = pursue_efficiency_flag }
		if = {
			limit = { NOT= { has_character_modifier = pursue_efficiency_neg } }
			add_character_modifier = { modifier = pursue_efficiency }
		}
		else = { remove_character_modifier = pursue_efficiency_neg }
	}
	if = {
		limit = { has_character_flag = counter_efficiency_flag }
		if = {
			limit = { NOT= { has_character_modifier = counter_efficiency_neg } }
			add_character_modifier = { modifier = counter_efficiency }
		}
		else = { remove_character_modifier = counter_efficiency_neg }
	}
	if = {
		limit = { has_character_flag = min_combat_roll_flag }
		if = {
			limit = { NOT= { has_character_modifier = min_combat_roll_neg } }
			add_character_modifier = { modifier = min_combat_roll }
		}
		else = { remove_character_modifier = min_combat_roll_neg }
	}
	if = {
		limit = { has_character_flag = max_combat_roll_flag }
		if = {
			limit = { NOT= { has_character_modifier = max_combat_roll_neg } }
			add_character_modifier = { modifier = max_combat_roll }
		}
		else = { remove_character_modifier = max_combat_roll_neg }
	}
	if = {
		limit = { has_character_flag = men_at_arms_limit_flag }
		if = {
			limit = { NOT= { has_character_modifier = men_at_arms_limit_neg } }
			add_character_modifier = { modifier = men_at_arms_limit }
		}
		else = { remove_character_modifier = men_at_arms_limit_neg }
	}
	if = {
		limit = { has_character_flag = men_at_arms_cap_flag }
		if = {
			limit = { NOT= { has_character_modifier = men_at_arms_cap_neg } }
			add_character_modifier = { modifier = men_at_arms_cap }
		}
		else = { remove_character_modifier = men_at_arms_cap_neg }
	}
	if = {
		limit = { has_character_flag = embarkation_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = embarkation_cost_mult_neg } }
			add_character_modifier = { modifier = embarkation_cost_mult }
		}
		else = { remove_character_modifier = embarkation_cost_mult_neg }
	}
	if = {
		limit = { has_character_flag = naval_movement_speed_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = naval_movement_speed_mult_neg } }
			add_character_modifier = { modifier = naval_movement_speed_mult }
		}
		else = { remove_character_modifier = naval_movement_speed_mult_neg }
	}
	if = {
		limit = { has_character_flag = siege_phase_time_flag }
		if = {
			limit = { NOT= { has_character_modifier = siege_phase_time_neg } }
			add_character_modifier = { modifier = siege_phase_time }
		}
		else = { remove_character_modifier = siege_phase_time_neg }
	}
	if = {
		limit = { has_character_flag = siege_morale_loss_flag }
		if = {
			limit = { NOT= { has_character_modifier = siege_morale_loss_neg } }
			add_character_modifier = { modifier = siege_morale_loss }
		}
		else = { remove_character_modifier = siege_morale_loss_neg }
	}
	if = {
		limit = { has_character_flag = revolting_siege_morale_loss_flag }
		if = {
			limit = { NOT= { has_character_modifier = revolting_siege_morale_loss_neg } }
			add_character_modifier = { modifier = revolting_siege_morale_loss }
		}
		else = { remove_character_modifier = revolting_siege_morale_loss_neg }
	}
	if = {
		limit = { has_character_flag = revolting_siege_morale_loss_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = revolting_siege_morale_loss_mult_neg } }
			add_character_modifier = { modifier = revolting_siege_morale_loss_mult }
		}
		else = { remove_character_modifier = revolting_siege_morale_loss_mult_neg }
	}
	if = {
		limit = { has_character_flag = movement_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = movement_speed_neg } }
			add_character_modifier = { modifier = movement_speed }
		}
		else = { remove_character_modifier = movement_speed_neg }
	}
	if = {
		limit = { has_character_flag = retreat_losses_flag }
		if = {
			limit = { NOT= { has_character_modifier = retreat_losses_neg } }
			add_character_modifier = { modifier = retreat_losses }
		}
		else = { remove_character_modifier = retreat_losses_neg }
	}
	if = {
		limit = { has_character_flag = hard_casualty_modifier_flag }
		if = {
			limit = { NOT= { has_character_modifier = hard_casualty_modifier_neg } }
			add_character_modifier = { modifier = hard_casualty_modifier }
		}
		else = { remove_character_modifier = hard_casualty_modifier_neg }
	}
	if = {
		limit = { has_character_flag = enemy_hard_casualty_modifier_flag }
		if = {
			limit = { NOT= { has_character_modifier = enemy_hard_casualty_modifier_neg } }
			add_character_modifier = { modifier = enemy_hard_casualty_modifier }
		}
		else = { remove_character_modifier = enemy_hard_casualty_modifier_neg }
	}
	if = {
		limit = { has_character_flag = advantage_flag }
		if = {
			limit = { NOT= { has_character_modifier = advantage_neg } }
			add_character_modifier = { modifier = advantage }
		}
		else = { remove_character_modifier = advantage_neg }
	}
	if = {
		limit = { has_character_flag = attacker_advantage_flag }
		if = {
			limit = { NOT= { has_character_modifier = attacker_advantage_neg } }
			add_character_modifier = { modifier = attacker_advantage }
		}
		else = { remove_character_modifier = attacker_advantage_neg }
	}
	if = {
		limit = { has_character_flag = defender_advantage_flag }
		if = {
			limit = { NOT= { has_character_modifier = defender_advantage_neg } }
			add_character_modifier = { modifier = defender_advantage }
		}
		else = { remove_character_modifier = defender_advantage_neg }
	}
	if = {
		limit = { has_character_flag = enemy_terrain_advantage_flag }
		if = {
			limit = { NOT= { has_character_modifier = enemy_terrain_advantage_neg } }
			add_character_modifier = { modifier = enemy_terrain_advantage }
		}
		else = { remove_character_modifier = enemy_terrain_advantage_neg }
	}
	if = {
		limit = { has_character_flag = tolerance_advantage_mod_flag }
		if = {
			limit = { NOT= { has_character_modifier = tolerance_advantage_neg } }
			add_character_modifier = { modifier = tolerance_advantage }
		}
		else = { remove_character_modifier = tolerance_advantage_neg }
	}
	if = {
		limit = { has_character_flag = advantage_against_coreligionists_flag }
		if = {
			limit = { NOT= { has_character_modifier = advantage_against_coreligionists_neg } }
			add_character_modifier = { modifier = advantage_against_coreligionists }
		}
		else = { remove_character_modifier = advantage_against_coreligionists_neg }
	}
	if = {
		limit = { has_character_flag = controlled_province_advantage_flag }
		if = {
			limit = { NOT= { has_character_modifier = controlled_province_advantage_neg } }
			add_character_modifier = { modifier = controlled_province_advantage }
		}
		else = { remove_character_modifier = controlled_province_advantage_neg }
	}
	if = {
		limit = { has_character_flag = raid_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = raid_speed_neg } }
			add_character_modifier = { modifier = raid_speed }
		}
		else = { remove_character_modifier = raid_speed_neg }
	}
	if = {
		limit = { has_character_flag = hostile_county_attrition_flag }
		if = {
			limit = { NOT= { has_character_modifier = hostile_county_attrition_neg } }
			add_character_modifier = { modifier = hostile_county_attrition }
		}
		else = { remove_character_modifier = hostile_county_attrition_neg }
	}
	if = {
		limit = { has_character_flag = supply_duration_flag }
		if = {
			limit = { NOT= { has_character_modifier = supply_duration_neg } }
			add_character_modifier = { modifier = supply_duration }
		}
		else = { remove_character_modifier = supply_duration_neg }
	}
	if = {
		limit = { has_character_flag = supply_limit_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = supply_limit_mult_neg } }
			add_character_modifier = { modifier = supply_limit_mult }
		}
		else = { remove_character_modifier = supply_limit_mult_neg }
	}
	if = {
		limit = { has_character_flag = supply_limit_flag }
		if = {
			limit = { NOT= { has_character_modifier = supply_limit_neg } }
			add_character_modifier = { modifier = supply_limit }
		}
		else = { remove_character_modifier = supply_limit_neg }
	}
	if = {
		limit = { has_character_flag = fort_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = fort_level_neg } }
			add_character_modifier = { modifier = fort_level }
		}
		else = { remove_character_modifier = fort_level_neg }
	}
	if = {
		limit = { has_character_flag = cultural_head_fascination_flag }
		if = {
			limit = { NOT= { has_character_modifier = cultural_head_fascination_neg } }
			add_character_modifier = { modifier = cultural_head_fascination }
		}
		else = { remove_character_modifier = cultural_head_fascination_neg }
	}
	if = {
		limit = { has_character_flag = cultural_head_fascination_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = cultural_head_fascination_mult_neg } }
			add_character_modifier = { modifier = cultural_head_fascination_mult }
		}
		else = { remove_character_modifier = cultural_head_fascination_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_diplomacy_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_diplomacy_lifestyle_xp_gain_mult_neg } }
			add_character_modifier = { modifier = monthly_diplomacy_lifestyle_xp_gain_mult }
		}
		else = { remove_character_modifier = monthly_diplomacy_lifestyle_xp_gain_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_martial_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_martial_lifestyle_xp_gain_mult_neg } }
			add_character_modifier = { modifier = monthly_martial_lifestyle_xp_gain_mult }
		}
		else = { remove_character_modifier = monthly_martial_lifestyle_xp_gain_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_stewardship_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_stewardship_lifestyle_xp_gain_mult_neg } }
			add_character_modifier = { modifier = monthly_stewardship_lifestyle_xp_gain_mult }
		}
		else = { remove_character_modifier = monthly_stewardship_lifestyle_xp_gain_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_intrigue_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_intrigue_lifestyle_xp_gain_mult_neg } }
			add_character_modifier = { modifier = monthly_intrigue_lifestyle_xp_gain_mult }
		}
		else = { remove_character_modifier = monthly_intrigue_lifestyle_xp_gain_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_learning_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_learning_lifestyle_xp_gain_mult_neg } }
			add_character_modifier = { modifier = monthly_learning_lifestyle_xp_gain_mult }
		}
		else = { remove_character_modifier = monthly_learning_lifestyle_xp_gain_mult_neg }
	}
	if = {
		limit = { has_character_flag = monthly_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_lifestyle_xp_gain_mult_neg } }
			add_character_modifier = { modifier = monthly_lifestyle_xp_gain_mult }
		}
		else = { remove_character_modifier = monthly_lifestyle_xp_gain_mult_neg }
	}
}

remove_all_modifier_flags = {
	if = { limit = { has_character_flag = diplomacy_per_prestige_level_flag } remove_character_flag = diplomacy_per_prestige_level_flag }
	if = { limit = { has_character_flag = martial_per_prestige_level_flag } remove_character_flag = martial_per_prestige_level_flag }
	if = { limit = { has_character_flag = stewardship_per_prestige_level_flag } remove_character_flag = stewardship_per_prestige_level_flag }
	if = { limit = { has_character_flag = intrigue_per_prestige_level_flag } remove_character_flag = intrigue_per_prestige_level_flag }
	if = { limit = { has_character_flag = learning_per_prestige_level_flag } remove_character_flag = learning_per_prestige_level_flag }
	if = { limit = { has_character_flag = prowess_per_prestige_level_flag } remove_character_flag = prowess_per_prestige_level_flag }
	if = { limit = { has_character_flag = monthly_prestige_flag } remove_character_flag = monthly_prestige_flag }
	if = { limit = { has_character_flag = monthly_prestige_gain_mult_flag } remove_character_flag = monthly_prestige_gain_mult_flag }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_flag } remove_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_flag }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_mult_flag } remove_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_mult_flag }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_dread_flag } remove_character_flag = monthly_prestige_gain_per_dread_flag }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_dread_mult_flag } remove_character_flag = monthly_prestige_gain_per_dread_mult_flag }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_knight_flag } remove_character_flag = monthly_prestige_gain_per_knight_flag }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_knight_mult_flag } remove_character_flag = monthly_prestige_gain_per_knight_mult_flag }
	if = { limit = { has_character_flag = monthly_prestige_from_buildings_mult_flag } remove_character_flag = monthly_prestige_from_buildings_mult_flag }
	if = { limit = { has_character_flag = prestige_level_impact_mult_flag } remove_character_flag = prestige_level_impact_mult_flag }
	if = { limit = { has_character_flag = diplomacy_per_piety_level_flag } remove_character_flag = diplomacy_per_piety_level_flag }
	if = { limit = { has_character_flag = martial_per_piety_level_flag } remove_character_flag = martial_per_piety_level_flag }
	if = { limit = { has_character_flag = stewardship_per_piety_level_flag } remove_character_flag = stewardship_per_piety_level_flag }
	if = { limit = { has_character_flag = intrigue_per_piety_level_flag } remove_character_flag = intrigue_per_piety_level_flag }
	if = { limit = { has_character_flag = learning_per_piety_level_flag } remove_character_flag = learning_per_piety_level_flag }
	if = { limit = { has_character_flag = prowess_per_piety_level_flag } remove_character_flag = prowess_per_piety_level_flag }
	if = { limit = { has_character_flag = monthly_piety_flag } remove_character_flag = monthly_piety_flag }
	if = { limit = { has_character_flag = monthly_piety_gain_mult_flag } remove_character_flag = monthly_piety_gain_mult_flag }
	if = { limit = { has_character_flag = monthly_piety_gain_per_happy_powerful_vassal_flag } remove_character_flag = monthly_piety_gain_per_happy_powerful_vassal_flag }
	if = { limit = { has_character_flag = monthly_piety_gain_per_happy_powerful_vassal_mult_flag } remove_character_flag = monthly_piety_gain_per_happy_powerful_vassal_mult_flag }
	if = { limit = { has_character_flag = monthly_piety_gain_per_dread_flag } remove_character_flag = monthly_piety_gain_per_dread_flag }
	if = { limit = { has_character_flag = monthly_piety_gain_per_dread_mult_flag } remove_character_flag = monthly_piety_gain_per_dread_mult_flag }
	if = { limit = { has_character_flag = monthly_piety_gain_per_knight_flag } remove_character_flag = monthly_piety_gain_per_knight_flag }
	if = { limit = { has_character_flag = monthly_piety_gain_per_knight_mult_flag } remove_character_flag = monthly_piety_gain_per_knight_mult_flag }
	if = { limit = { has_character_flag = monthly_piety_from_buildings_mult_flag } remove_character_flag = monthly_piety_from_buildings_mult_flag }
	if = { limit = { has_character_flag = piety_level_impact_mult_flag } remove_character_flag = piety_level_impact_mult_flag }
	if = { limit = { has_character_flag = faith_conversion_piety_cost_flag } remove_character_flag = faith_conversion_piety_cost_flag }
	if = { limit = { has_character_flag = faith_conversion_piety_cost_mult_flag } remove_character_flag = faith_conversion_piety_cost_mult_flag }
	if = { limit = { has_character_flag = faith_creation_piety_cost_flag } remove_character_flag = faith_creation_piety_cost_flag }
	if = { limit = { has_character_flag = faith_creation_piety_cost_mult_flag } remove_character_flag = faith_creation_piety_cost_mult_flag }
	if = { limit = { has_character_flag = monthly_income_flag } remove_character_flag = monthly_income_flag }
	if = { limit = { has_character_flag = monthly_income_mult_flag } remove_character_flag = monthly_income_mult_flag }
	if = { limit = { has_character_flag = monthly_war_income_flag } remove_character_flag = monthly_war_income_flag }
	if = { limit = { has_character_flag = monthly_war_income_mult_flag } remove_character_flag = monthly_war_income_mult_flag }
	if = { limit = { has_character_flag = tax_mult_flag } remove_character_flag = tax_mult_flag }
	if = { limit = { has_character_flag = domain_tax_mult_flag } remove_character_flag = domain_tax_mult_flag }
	if = { limit = { has_character_flag = domain_tax_same_faith_mult_flag } remove_character_flag = domain_tax_same_faith_mult_flag }
	if = { limit = { has_character_flag = domain_tax_different_faith_mult_flag } remove_character_flag = domain_tax_different_faith_mult_flag }
	if = { limit = { has_character_flag = domain_tax_mult_even_if_baron_flag } remove_character_flag = domain_tax_mult_even_if_baron_flag }
	if = { limit = { has_character_flag = domain_tax_same_faith_mult_even_if_baron_flag } remove_character_flag = domain_tax_same_faith_mult_even_if_baron_flag }
	if = { limit = { has_character_flag = domain_tax_different_faith_mult_even_if_baron_flag } remove_character_flag = domain_tax_different_faith_mult_even_if_baron_flag }
	if = { limit = { has_character_flag = vassal_tax_mult_flag } remove_character_flag = vassal_tax_mult_flag }
	if = { limit = { has_character_flag = monthly_income_per_stress_level_flag } remove_character_flag = monthly_income_per_stress_level_flag }
	if = { limit = { has_character_flag = monthly_income_per_stress_level_mult_flag } remove_character_flag = monthly_income_per_stress_level_mult_flag }
	if = { limit = { has_character_flag = opinion_of_male_rulers_flag } remove_character_flag = opinion_of_male_rulers_flag }
	if = { limit = { has_character_flag = opinion_of_female_rulers_flag } remove_character_flag = opinion_of_female_rulers_flag }
	if = { limit = { has_character_flag = opinion_of_same_culture_flag } remove_character_flag = opinion_of_same_culture_flag }
	if = { limit = { has_character_flag = opinion_of_different_culture_flag } remove_character_flag = opinion_of_different_culture_flag }
	if = { limit = { has_character_flag = opinion_of_same_faith_flag } remove_character_flag = opinion_of_same_faith_flag }
	if = { limit = { has_character_flag = opinion_of_different_faith_flag } remove_character_flag = opinion_of_different_faith_flag }
	if = { limit = { has_character_flag = opinion_of_liege_flag } remove_character_flag = opinion_of_liege_flag }
	if = { limit = { has_character_flag = opinion_of_vassal_flag } remove_character_flag = opinion_of_vassal_flag }
	if = { limit = { has_character_flag = opinion_of_different_faith_liege_flag } remove_character_flag = opinion_of_different_faith_liege_flag }
	if = { limit = { has_character_flag = same_culture_opinion_flag } remove_character_flag = same_culture_opinion_flag }
	if = { limit = { has_character_flag = different_culture_opinion_flag } remove_character_flag = different_culture_opinion_flag }
	if = { limit = { has_character_flag = same_faith_opinion_flag } remove_character_flag = same_faith_opinion_flag }
	if = { limit = { has_character_flag = different_faith_opinion_flag } remove_character_flag = different_faith_opinion_flag }
	if = { limit = { has_character_flag = direct_vassal_opinion_flag } remove_character_flag = direct_vassal_opinion_flag }
	if = { limit = { has_character_flag = fellow_vassal_opinion_flag } remove_character_flag = fellow_vassal_opinion_flag }
	if = { limit = { has_character_flag = independent_ruler_opinion_flag } remove_character_flag = independent_ruler_opinion_flag }
	if = { limit = { has_character_flag = general_opinion_flag } remove_character_flag = general_opinion_flag }
	if = { limit = { has_character_flag = attraction_opinion_flag } remove_character_flag = attraction_opinion_flag }
	if = { limit = { has_character_flag = religious_vassal_opinion_flag } remove_character_flag = religious_vassal_opinion_flag }
	if = { limit = { has_character_flag = religious_head_opinion_flag } remove_character_flag = religious_head_opinion_flag }
	if = { limit = { has_character_flag = spouse_opinion_flag } remove_character_flag = spouse_opinion_flag }
	if = { limit = { has_character_flag = twin_opinion_flag } remove_character_flag = twin_opinion_flag }
	if = { limit = { has_character_flag = close_relative_opinion_flag } remove_character_flag = close_relative_opinion_flag }
	if = { limit = { has_character_flag = dynasty_house_opinion_flag } remove_character_flag = dynasty_house_opinion_flag }
	if = { limit = { has_character_flag = dynasty_opinion_flag } remove_character_flag = dynasty_opinion_flag }
	if = { limit = { has_character_flag = liege_opinion_flag } remove_character_flag = liege_opinion_flag }
	if = { limit = { has_character_flag = different_faith_liege_opinion_flag } remove_character_flag = different_faith_liege_opinion_flag }
	if = { limit = { has_character_flag = vassal_opinion_flag } remove_character_flag = vassal_opinion_flag }
	if = { limit = { has_character_flag = clergy_opinion_flag } remove_character_flag = clergy_opinion_flag }
	if = { limit = { has_character_flag = councillor_opinion_flag } remove_character_flag = councillor_opinion_flag }
	if = { limit = { has_character_flag = realm_priest_opinion_flag } remove_character_flag = realm_priest_opinion_flag }
	if = { limit = { has_character_flag = powerful_vassal_opinion_flag } remove_character_flag = powerful_vassal_opinion_flag }
	if = { limit = { has_character_flag = courtier_opinion_flag } remove_character_flag = courtier_opinion_flag }
	if = { limit = { has_character_flag = guest_opinion_flag } remove_character_flag = guest_opinion_flag }
	if = { limit = { has_character_flag = courtier_and_guest_opinion_flag } remove_character_flag = courtier_and_guest_opinion_flag }
	if = { limit = { has_character_flag = prisoner_opinion_flag } remove_character_flag = prisoner_opinion_flag }
	if = { limit = { has_character_flag = player_heir_opinion_flag } remove_character_flag = player_heir_opinion_flag }
	if = { limit = { has_character_flag = child_opinion_flag } remove_character_flag = child_opinion_flag }
	if = { limit = { has_character_flag = child_except_player_heir_opinion_flag } remove_character_flag = child_except_player_heir_opinion_flag }
	if = { limit = { has_character_flag = eligible_child_opinion_flag } remove_character_flag = eligible_child_opinion_flag }
	if = { limit = { has_character_flag = eligible_child_except_player_heir_opinion_flag } remove_character_flag = eligible_child_except_player_heir_opinion_flag }
	if = { limit = { has_character_flag = county_opinion_flag } remove_character_flag = county_opinion_flag }
	if = { limit = { has_character_flag = different_faith_county_opinion_mult_flag } remove_character_flag = different_faith_county_opinion_mult_flag }
	if = { limit = { has_character_flag = county_opinion_add_even_if_baron_flag } remove_character_flag = county_opinion_add_even_if_baron_flag }
	if = { limit = { has_character_flag = different_faith_county_opinion_mult_even_if_baron_flag } remove_character_flag = different_faith_county_opinion_mult_even_if_baron_flag }
	if = { limit = { has_character_flag = fertility_flag } remove_character_flag = fertility_flag }
	if = { limit = { has_character_flag = health_flag } remove_character_flag = health_flag }
	if = { limit = { has_character_flag = negate_fertility_penalty_flag } remove_character_flag = negate_fertility_penalty_flag }
	if = { limit = { has_character_flag = negate_health_penalty_flag } remove_character_flag = negate_health_penalty_flag }
	if = { limit = { has_character_flag = monthly_dynasty_prestige_flag } remove_character_flag = monthly_dynasty_prestige_flag }
	if = { limit = { has_character_flag = monthly_dynasty_prestige_mult_flag } remove_character_flag = monthly_dynasty_prestige_mult_flag }
	#if = { limit = { has_character_flag = random_skills_per_child_flag } remove_character_flag = random_skills_per_child_flag }
	if = { limit = { has_character_flag = inbreeding_chance_flag } remove_character_flag = inbreeding_chance_flag }
	if = { limit = { has_character_flag = positive_inactive_inheritance_chance_flag } remove_character_flag = positive_inactive_inheritance_chance_flag }
	if = { limit = { has_character_flag = negative_inactive_inheritance_chance_flag } remove_character_flag = negative_inactive_inheritance_chance_flag }
	if = { limit = { has_character_flag = positive_random_genetic_chance_flag } remove_character_flag = positive_random_genetic_chance_flag }
	if = { limit = { has_character_flag = negative_random_genetic_chance_flag } remove_character_flag = negative_random_genetic_chance_flag }
	if = { limit = { has_character_flag = genetic_trait_strengthen_chance_flag } remove_character_flag = genetic_trait_strengthen_chance_flag }
	if = { limit = { has_character_flag = life_expectancy_flag } remove_character_flag = life_expectancy_flag }
	if = { limit = { has_character_flag = years_of_fertility_flag } remove_character_flag = years_of_fertility_flag }
	if = { limit = { has_character_flag = diplomacy_per_stress_level_flag } remove_character_flag = diplomacy_per_stress_level_flag }
	if = { limit = { has_character_flag = martial_per_stress_level_flag } remove_character_flag = martial_per_stress_level_flag }
	if = { limit = { has_character_flag = stewardship_per_stress_level_flag } remove_character_flag = stewardship_per_stress_level_flag }
	if = { limit = { has_character_flag = intrigue_per_stress_level_flag } remove_character_flag = intrigue_per_stress_level_flag }
	if = { limit = { has_character_flag = learning_per_stress_level_flag } remove_character_flag = learning_per_stress_level_flag }
	if = { limit = { has_character_flag = prowess_per_stress_level_flag } remove_character_flag = prowess_per_stress_level_flag }
	if = { limit = { has_character_flag = stress_gain_mult_flag } remove_character_flag = stress_gain_mult_flag }
	if = { limit = { has_character_flag = stress_loss_mult_flag } remove_character_flag = stress_loss_mult_flag }
	#if = { limit = { has_character_flag = scheme_power_flag } remove_character_flag = scheme_power_flag }
	#if = { limit = { has_character_flag = scheme_resistance_flag } remove_character_flag = scheme_resistance_flag }
	#if = { limit = { has_character_flag = scheme_secrecy_flag } remove_character_flag = scheme_secrecy_flag }
	#if = { limit = { has_character_flag = scheme_success_chance_flag } remove_character_flag = scheme_success_chance_flag }
	if = { limit = { has_character_flag = hostile_scheme_resistance_flag } remove_character_flag = hostile_scheme_resistance_flag }
	if = { limit = { has_character_flag = personal_scheme_resistance_flag } remove_character_flag = personal_scheme_resistance_flag }
	if = { limit = { has_character_flag = diplomacy_scheme_power_flag } remove_character_flag = diplomacy_scheme_power_flag }
	if = { limit = { has_character_flag = intrigue_scheme_power_flag } remove_character_flag = intrigue_scheme_power_flag }
	if = { limit = { has_character_flag = stewardship_scheme_power_flag } remove_character_flag = stewardship_scheme_power_flag }
	if = { limit = { has_character_flag = martial_scheme_power_flag } remove_character_flag = martial_scheme_power_flag }
	if = { limit = { has_character_flag = prowess_scheme_power_flag } remove_character_flag = prowess_scheme_power_flag }
	if = { limit = { has_character_flag = learning_scheme_power_flag } remove_character_flag = learning_scheme_power_flag }
	if = { limit = { has_character_flag = diplomacy_scheme_resistance_flag } remove_character_flag = diplomacy_scheme_resistance_flag }
	if = { limit = { has_character_flag = intrigue_scheme_resistance_flag } remove_character_flag = intrigue_scheme_resistance_flag }
	if = { limit = { has_character_flag = stewardship_scheme_resistance_flag } remove_character_flag = stewardship_scheme_resistance_flag }
	if = { limit = { has_character_flag = martial_scheme_resistance_flag } remove_character_flag = martial_scheme_resistance_flag }
	if = { limit = { has_character_flag = prowess_scheme_resistance_flag } remove_character_flag = prowess_scheme_resistance_flag }
	if = { limit = { has_character_flag = learning_scheme_resistance_flag } remove_character_flag = learning_scheme_resistance_flag }
	if = { limit = { has_character_flag = scheme_discovery_chance_mult_flag } remove_character_flag = scheme_discovery_chance_mult_flag }
	if = { limit = { has_character_flag = max_personal_schemes_flag } remove_character_flag = max_personal_schemes_flag }
	if = { limit = { has_character_flag = max_hostile_schemes_flag } remove_character_flag = max_hostile_schemes_flag }
	if = { limit = { has_character_flag = owned_hostile_scheme_success_chance_flag } remove_character_flag = owned_hostile_scheme_success_chance_flag }
	if = { limit = { has_character_flag = owned_personal_scheme_success_chance_flag } remove_character_flag = owned_personal_scheme_success_chance_flag }
	if = { limit = { has_character_flag = enemy_hostile_scheme_success_chance_flag } remove_character_flag = enemy_hostile_scheme_success_chance_flag }
	if = { limit = { has_character_flag = enemy_personal_scheme_success_chance_flag } remove_character_flag = enemy_personal_scheme_success_chance_flag }
	if = { limit = { has_character_flag = monthly_dread_flag } remove_character_flag = monthly_dread_flag }
	if = { limit = { has_character_flag = dread_gain_mult_flag } remove_character_flag = dread_gain_mult_flag }
	if = { limit = { has_character_flag = dread_loss_mult_flag } remove_character_flag = dread_loss_mult_flag }
	if = { limit = { has_character_flag = tyranny_gain_mult_flag } remove_character_flag = tyranny_gain_mult_flag }
	if = { limit = { has_character_flag = tyranny_loss_mult_flag } remove_character_flag = tyranny_loss_mult_flag }
	if = { limit = { has_character_flag = monthly_tyranny_flag } remove_character_flag = monthly_tyranny_flag }
	if = { limit = { has_character_flag = dread_baseline_flag } remove_character_flag = dread_baseline_flag }
	if = { limit = { has_character_flag = dread_decay_flag } remove_character_flag = dread_decay_flag }
	if = { limit = { has_character_flag = dread_decay_mult_flag } remove_character_flag = dread_decay_mult_flag }
	if = { limit = { has_character_flag = dread_per_tyranny_flag } remove_character_flag = dread_per_tyranny_flag }
	if = { limit = { has_character_flag = dread_per_tyranny_mult_flag } remove_character_flag = dread_per_tyranny_mult_flag }
	if = { limit = { has_character_flag = domain_limit_flag } remove_character_flag = domain_limit_flag }
	if = { limit = { has_character_flag = vassal_limit_flag } remove_character_flag = vassal_limit_flag }
	if = { limit = { has_character_flag = short_reign_duration_mult_flag } remove_character_flag = short_reign_duration_mult_flag }
	if = { limit = { has_character_flag = long_reign_bonus_mult_flag } remove_character_flag = long_reign_bonus_mult_flag }
	if = { limit = { has_character_flag = diplomatic_range_mult_flag } remove_character_flag = diplomatic_range_mult_flag }
	if = { limit = { has_character_flag = title_creation_cost_flag } remove_character_flag = title_creation_cost_flag }
	if = { limit = { has_character_flag = title_creation_cost_mult_flag } remove_character_flag = title_creation_cost_mult_flag }
	if = { limit = { has_character_flag = vassal_tax_contribution_flag } remove_character_flag = vassal_tax_contribution_flag }
	if = { limit = { has_character_flag = vassal_tax_contribution_mult_flag } remove_character_flag = vassal_tax_contribution_mult_flag }
	if = { limit = { has_character_flag = intimidated_vassal_tax_contribution_flag } remove_character_flag = intimidated_vassal_tax_contribution_flag }
	if = { limit = { has_character_flag = intimidated_vassal_tax_contribution_mult_flag } remove_character_flag = intimidated_vassal_tax_contribution_mult_flag }
	if = { limit = { has_character_flag = cowed_vassal_tax_contribution_flag } remove_character_flag = cowed_vassal_tax_contribution_flag }
	if = { limit = { has_character_flag = cowed_vassal_tax_contribution_mult_flag } remove_character_flag = cowed_vassal_tax_contribution_mult_flag }
	if = { limit = { has_character_flag = vassal_levy_contribution_flag } remove_character_flag = vassal_levy_contribution_flag }
	if = { limit = { has_character_flag = vassal_levy_contribution_mult_flag } remove_character_flag = vassal_levy_contribution_mult_flag }
	if = { limit = { has_character_flag = intimidated_vassal_levy_contribution_flag } remove_character_flag = intimidated_vassal_levy_contribution_flag }
	if = { limit = { has_character_flag = intimidated_vassal_levy_contribution_mult_flag } remove_character_flag = intimidated_vassal_levy_contribution_mult_flag }
	if = { limit = { has_character_flag = cowed_vassal_levy_contribution_flag } remove_character_flag = cowed_vassal_levy_contribution_flag }
	if = { limit = { has_character_flag = cowed_vassal_levy_contribution_mult_flag } remove_character_flag = cowed_vassal_levy_contribution_mult_flag }
	if = { limit = { has_character_flag = happy_powerful_vassal_tax_contribution_flag } remove_character_flag = happy_powerful_vassal_tax_contribution_flag }
	if = { limit = { has_character_flag = happy_powerful_vassal_tax_contribution_mult_flag } remove_character_flag = happy_powerful_vassal_tax_contribution_mult_flag }
	if = { limit = { has_character_flag = happy_powerful_vassal_levy_contribution_flag } remove_character_flag = happy_powerful_vassal_levy_contribution_flag }
	if = { limit = { has_character_flag = happy_powerful_vassal_levy_contribution_mult_flag } remove_character_flag = happy_powerful_vassal_levy_contribution_mult_flag }
	if = { limit = { has_character_flag = build_speed_flag } remove_character_flag = build_speed_flag }
	if = { limit = { has_character_flag = build_gold_cost_flag } remove_character_flag = build_gold_cost_flag }
	if = { limit = { has_character_flag = build_piety_cost_flag } remove_character_flag = build_piety_cost_flag }
	if = { limit = { has_character_flag = build_prestige_cost_flag } remove_character_flag = build_prestige_cost_flag }
	if = { limit = { has_character_flag = holding_build_speed_flag } remove_character_flag = holding_build_speed_flag }
	if = { limit = { has_character_flag = holding_build_gold_cost_flag } remove_character_flag = holding_build_gold_cost_flag }
	if = { limit = { has_character_flag = holding_build_piety_cost_flag } remove_character_flag = holding_build_piety_cost_flag }
	if = { limit = { has_character_flag = holding_build_prestige_cost_flag } remove_character_flag = holding_build_prestige_cost_flag }
	if = { limit = { has_character_flag = development_growth_factor_flag } remove_character_flag = development_growth_factor_flag }
	if = { limit = { has_character_flag = development_growth_flag } remove_character_flag = development_growth_flag }
	if = { limit = { has_character_flag = character_capital_county_monthly_development_growth_flag } remove_character_flag = character_capital_county_monthly_development_growth_flag }
	if = { limit = { has_character_flag = monthly_county_control_change_flag } remove_character_flag = monthly_county_control_change_flag }
	if = { limit = { has_character_flag = monthly_county_control_change_factor_flag } remove_character_flag = monthly_county_control_change_factor_flag }
	if = { limit = { has_character_flag = monthly_county_control_change_add_even_if_baron_flag } remove_character_flag = monthly_county_control_change_add_even_if_baron_flag }
	if = { limit = { has_character_flag = monthly_county_control_change_factor_even_if_baron_flag } remove_character_flag = monthly_county_control_change_factor_even_if_baron_flag }
	if = { limit = { has_character_flag = castle_holding_build_speed_flag } remove_character_flag = castle_holding_build_speed_flag }
	if = { limit = { has_character_flag = castle_holding_build_gold_cost_flag } remove_character_flag = castle_holding_build_gold_cost_flag }
	if = { limit = { has_character_flag = castle_holding_holding_build_speed_flag } remove_character_flag = castle_holding_holding_build_speed_flag }
	if = { limit = { has_character_flag = castle_holding_holding_build_gold_cost_flag } remove_character_flag = castle_holding_holding_build_gold_cost_flag }
	if = { limit = { has_character_flag = tribal_holding_build_speed_flag } remove_character_flag = tribal_holding_build_speed_flag }
	if = { limit = { has_character_flag = tribal_holding_build_gold_cost_flag } remove_character_flag = tribal_holding_build_gold_cost_flag }
	if = { limit = { has_character_flag = tribal_holding_holding_build_speed_flag } remove_character_flag = tribal_holding_holding_build_speed_flag }
	if = { limit = { has_character_flag = tribal_holding_holding_build_gold_cost_flag } remove_character_flag = tribal_holding_holding_build_gold_cost_flag }
	if = { limit = { has_character_flag = city_holding_build_speed_flag } remove_character_flag = city_holding_build_speed_flag }
	if = { limit = { has_character_flag = city_holding_build_gold_cost_flag } remove_character_flag = city_holding_build_gold_cost_flag }
	if = { limit = { has_character_flag = city_holding_holding_build_speed_flag } remove_character_flag = city_holding_holding_build_speed_flag }
	if = { limit = { has_character_flag = city_holding_holding_build_gold_cost_flag } remove_character_flag = city_holding_holding_build_gold_cost_flag }
	if = { limit = { has_character_flag = church_holding_build_speed_flag } remove_character_flag = church_holding_build_speed_flag }
	if = { limit = { has_character_flag = church_holding_build_gold_cost_flag } remove_character_flag = church_holding_build_gold_cost_flag }
	if = { limit = { has_character_flag = church_holding_holding_build_speed_flag } remove_character_flag = church_holding_holding_build_speed_flag }
	if = { limit = { has_character_flag = church_holding_holding_build_gold_cost_flag } remove_character_flag = church_holding_holding_build_gold_cost_flag }
	if = { limit = { has_character_flag = hostile_raid_time_flag } remove_character_flag = hostile_raid_time_flag }
	if = { limit = { has_character_flag = levy_size_flag } remove_character_flag = levy_size_flag }
	if = { limit = { has_character_flag = garrison_size_flag } remove_character_flag = garrison_size_flag }
	if = { limit = { has_character_flag = levy_reinforcement_rate_flag } remove_character_flag = levy_reinforcement_rate_flag }
	if = { limit = { has_character_flag = levy_reinforcement_rate_same_faith_flag } remove_character_flag = levy_reinforcement_rate_same_faith_flag }
	if = { limit = { has_character_flag = levy_reinforcement_rate_different_faith_flag } remove_character_flag = levy_reinforcement_rate_different_faith_flag }
	if = { limit = { has_character_flag = levy_reinforcement_rate_even_if_baron_flag } remove_character_flag = levy_reinforcement_rate_even_if_baron_flag }
	if = { limit = { has_character_flag = levy_reinforcement_rate_same_faith_even_if_baron_flag } remove_character_flag = levy_reinforcement_rate_same_faith_even_if_baron_flag }
	if = { limit = { has_character_flag = levy_reinforcement_rate_different_faith_even_if_baron_flag } remove_character_flag = levy_reinforcement_rate_different_faith_even_if_baron_flag }
	if = { limit = { has_character_flag = levy_reinforcement_rate_friendly_territory_flag } remove_character_flag = levy_reinforcement_rate_friendly_territory_flag }
	#if = { limit = { has_character_flag = mercenary_count_mult_flag } remove_character_flag = mercenary_count_mult_flag }
	if = { limit = { has_character_flag = supply_capacity_flag } remove_character_flag = supply_capacity_flag }
	if = { limit = { has_character_flag = supply_capacity_mult_flag } remove_character_flag = supply_capacity_mult_flag }
	if = { limit = { has_character_flag = mercenary_hire_cost_flag } remove_character_flag = mercenary_hire_cost_flag }
	if = { limit = { has_character_flag = mercenary_hire_cost_mult_flag } remove_character_flag = mercenary_hire_cost_mult_flag }
	if = { limit = { has_character_flag = same_culture_mercenary_hire_cost_flag } remove_character_flag = same_culture_mercenary_hire_cost_flag }
	if = { limit = { has_character_flag = same_culture_mercenary_hire_cost_mult_flag } remove_character_flag = same_culture_mercenary_hire_cost_mult_flag }
	if = { limit = { has_character_flag = holy_order_hire_cost_mult_flag } remove_character_flag = holy_order_hire_cost_mult_flag }
	if = { limit = { has_character_flag = holy_order_hire_cost_flag } remove_character_flag = holy_order_hire_cost_flag }
	if = { limit = { has_character_flag = same_culture_holy_order_hire_cost_mult_flag } remove_character_flag = same_culture_holy_order_hire_cost_mult_flag }
	if = { limit = { has_character_flag = same_culture_holy_order_hire_cost_flag } remove_character_flag = same_culture_holy_order_hire_cost_flag }
	if = { limit = { has_character_flag = men_at_arms_maintenance_flag } remove_character_flag = men_at_arms_maintenance_flag }
	if = { limit = { has_character_flag = men_at_arms_maintenance_per_dread_mult_flag } remove_character_flag = men_at_arms_maintenance_per_dread_mult_flag }
	if = { limit = { has_character_flag = army_maintenance_mult_flag } remove_character_flag = army_maintenance_mult_flag }
	if = { limit = { has_character_flag = knight_limit_flag } remove_character_flag = knight_limit_flag }
	if = { limit = { has_character_flag = knight_effectiveness_mult_flag } remove_character_flag = knight_effectiveness_mult_flag }
	if = { limit = { has_character_flag = pursue_efficiency_flag } remove_character_flag = pursue_efficiency_flag }
	if = { limit = { has_character_flag = counter_efficiency_flag } remove_character_flag = counter_efficiency_flag }
	if = { limit = { has_character_flag = min_combat_roll_flag } remove_character_flag = min_combat_roll_flag }
	if = { limit = { has_character_flag = max_combat_roll_flag } remove_character_flag = max_combat_roll_flag }
	if = { limit = { has_character_flag = men_at_arms_limit_flag } remove_character_flag = men_at_arms_limit_flag }
	if = { limit = { has_character_flag = men_at_arms_cap_flag } remove_character_flag = men_at_arms_cap_flag }
	if = { limit = { has_character_flag = embarkation_cost_mult_flag } remove_character_flag = embarkation_cost_mult_flag }
	if = { limit = { has_character_flag = naval_movement_speed_mult_flag } remove_character_flag = naval_movement_speed_mult_flag }
	if = { limit = { has_character_flag = siege_phase_time_flag } remove_character_flag = siege_phase_time_flag }
	if = { limit = { has_character_flag = siege_morale_loss_flag } remove_character_flag = siege_morale_loss_flag }
	if = { limit = { has_character_flag = revolting_siege_morale_loss_flag } remove_character_flag = revolting_siege_morale_loss_flag }
	if = { limit = { has_character_flag = revolting_siege_morale_loss_mult_flag } remove_character_flag = revolting_siege_morale_loss_mult_flag }
	if = { limit = { has_character_flag = movement_speed_flag } remove_character_flag = movement_speed_flag }
	if = { limit = { has_character_flag = retreat_losses_flag } remove_character_flag = retreat_losses_flag }
	if = { limit = { has_character_flag = hard_casualty_modifier_flag } remove_character_flag = hard_casualty_modifier_flag }
	if = { limit = { has_character_flag = enemy_hard_casualty_modifier_flag } remove_character_flag = enemy_hard_casualty_modifier_flag }
	if = { limit = { has_character_flag = advantage_flag } remove_character_flag = advantage_flag }
	if = { limit = { has_character_flag = attacker_advantage_flag } remove_character_flag = attacker_advantage_flag }
	if = { limit = { has_character_flag = defender_advantage_flag } remove_character_flag = defender_advantage_flag }
	if = { limit = { has_character_flag = enemy_terrain_advantage_flag } remove_character_flag = enemy_terrain_advantage_flag }
	if = { limit = { has_character_flag = tolerance_advantage_mod_flag } remove_character_flag = tolerance_advantage_mod_flag }
	if = { limit = { has_character_flag = advantage_against_coreligionists_flag } remove_character_flag = advantage_against_coreligionists_flag }
	if = { limit = { has_character_flag = controlled_province_advantage_flag } remove_character_flag = controlled_province_advantage_flag }
	if = { limit = { has_character_flag = raid_speed_flag } remove_character_flag = raid_speed_flag }
	if = { limit = { has_character_flag = hostile_county_attrition_flag } remove_character_flag = hostile_county_attrition_flag }
	if = { limit = { has_character_flag = supply_duration_flag } remove_character_flag = supply_duration_flag }
	if = { limit = { has_character_flag = supply_limit_mult_flag } remove_character_flag = supply_limit_mult_flag }
	if = { limit = { has_character_flag = supply_limit_flag } remove_character_flag = supply_limit_flag }
	if = { limit = { has_character_flag = fort_level_flag } remove_character_flag = fort_level_flag }
	if = { limit = { has_character_flag = cultural_head_fascination_flag } remove_character_flag = cultural_head_fascination_flag }
	if = { limit = { has_character_flag = cultural_head_fascination_mult_flag } remove_character_flag = cultural_head_fascination_mult_flag }
	if = { limit = { has_character_flag = monthly_diplomacy_lifestyle_xp_gain_mult_flag } remove_character_flag = monthly_diplomacy_lifestyle_xp_gain_mult_flag }
	if = { limit = { has_character_flag = monthly_martial_lifestyle_xp_gain_mult_flag } remove_character_flag = monthly_martial_lifestyle_xp_gain_mult_flag }
	if = { limit = { has_character_flag = monthly_stewardship_lifestyle_xp_gain_mult_flag } remove_character_flag = monthly_stewardship_lifestyle_xp_gain_mult_flag }
	if = { limit = { has_character_flag = monthly_intrigue_lifestyle_xp_gain_mult_flag } remove_character_flag = monthly_intrigue_lifestyle_xp_gain_mult_flag }
	if = { limit = { has_character_flag = monthly_learning_lifestyle_xp_gain_mult_flag } remove_character_flag = monthly_learning_lifestyle_xp_gain_mult_flag }
	if = { limit = { has_character_flag = monthly_lifestyle_xp_gain_mult_flag } remove_character_flag = monthly_lifestyle_xp_gain_mult_flag }
}

remove_all_modifier_instances = {
	if = { limit = { has_character_flag = diplomacy_per_prestige_level_flag } remove_all_character_modifier_instances = diplomacy_per_prestige_level remove_all_character_modifier_instances = diplomacy_per_prestige_level_neg }
	if = { limit = { has_character_flag = martial_per_prestige_level_flag } remove_all_character_modifier_instances = martial_per_prestige_level remove_all_character_modifier_instances = martial_per_prestige_level_neg }
	if = { limit = { has_character_flag = stewardship_per_prestige_level_flag } remove_all_character_modifier_instances = stewardship_per_prestige_level remove_all_character_modifier_instances = stewardship_per_prestige_level_neg }
	if = { limit = { has_character_flag = intrigue_per_prestige_level_flag } remove_all_character_modifier_instances = intrigue_per_prestige_level remove_all_character_modifier_instances = intrigue_per_prestige_level_neg }
	if = { limit = { has_character_flag = learning_per_prestige_level_flag } remove_all_character_modifier_instances = learning_per_prestige_level remove_all_character_modifier_instances = learning_per_prestige_level_neg }
	if = { limit = { has_character_flag = prowess_per_prestige_level_flag } remove_all_character_modifier_instances = prowess_per_prestige_level remove_all_character_modifier_instances = prowess_per_prestige_level_neg }
	if = { limit = { has_character_flag = monthly_prestige_flag } remove_all_character_modifier_instances = monthly_prestige remove_all_character_modifier_instances = monthly_prestige_neg }
	if = { limit = { has_character_flag = monthly_prestige_gain_mult_flag } remove_all_character_modifier_instances = monthly_prestige_gain_mult remove_all_character_modifier_instances = monthly_prestige_gain_mult_neg }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_flag } remove_all_character_modifier_instances = monthly_prestige_gain_per_happy_powerful_vassal remove_all_character_modifier_instances = monthly_prestige_gain_per_happy_powerful_vassal_neg }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_mult_flag } remove_all_character_modifier_instances = monthly_prestige_gain_per_happy_powerful_vassal_mult remove_all_character_modifier_instances = monthly_prestige_gain_per_happy_powerful_vassal_mult_neg }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_dread_flag } remove_all_character_modifier_instances = monthly_prestige_gain_per_dread remove_all_character_modifier_instances = monthly_prestige_gain_per_dread_neg }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_dread_mult_flag } remove_all_character_modifier_instances = monthly_prestige_gain_per_dread_mult remove_all_character_modifier_instances = monthly_prestige_gain_per_dread_mult_neg }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_knight_flag } remove_all_character_modifier_instances = monthly_prestige_gain_per_knight remove_all_character_modifier_instances = monthly_prestige_gain_per_knight_neg }
	if = { limit = { has_character_flag = monthly_prestige_gain_per_knight_mult_flag } remove_all_character_modifier_instances = monthly_prestige_gain_per_knight_mult remove_all_character_modifier_instances = monthly_prestige_gain_per_knight_mult_neg }
	if = { limit = { has_character_flag = monthly_prestige_from_buildings_mult_flag } remove_all_character_modifier_instances = monthly_prestige_from_buildings_mult remove_all_character_modifier_instances = monthly_prestige_from_buildings_mult_neg }
	if = { limit = { has_character_flag = prestige_level_impact_mult_flag } remove_all_character_modifier_instances = prestige_level_impact_mult remove_all_character_modifier_instances = prestige_level_impact_mult_neg }
	if = { limit = { has_character_flag = diplomacy_per_piety_level_flag } remove_all_character_modifier_instances = diplomacy_per_piety_level remove_all_character_modifier_instances = diplomacy_per_piety_level_neg }
	if = { limit = { has_character_flag = martial_per_piety_level_flag } remove_all_character_modifier_instances = martial_per_piety_level remove_all_character_modifier_instances = martial_per_piety_level_neg }
	if = { limit = { has_character_flag = stewardship_per_piety_level_flag } remove_all_character_modifier_instances = stewardship_per_piety_level remove_all_character_modifier_instances = stewardship_per_piety_level_neg }
	if = { limit = { has_character_flag = intrigue_per_piety_level_flag } remove_all_character_modifier_instances = intrigue_per_piety_level remove_all_character_modifier_instances = intrigue_per_piety_level_neg }
	if = { limit = { has_character_flag = learning_per_piety_level_flag } remove_all_character_modifier_instances = learning_per_piety_level remove_all_character_modifier_instances = learning_per_piety_level_neg }
	if = { limit = { has_character_flag = prowess_per_piety_level_flag } remove_all_character_modifier_instances = prowess_per_piety_level remove_all_character_modifier_instances = prowess_per_piety_level_neg }
	if = { limit = { has_character_flag = monthly_piety_flag } remove_all_character_modifier_instances = monthly_piety remove_all_character_modifier_instances = monthly_piety_neg }
	if = { limit = { has_character_flag = monthly_piety_gain_mult_flag } remove_all_character_modifier_instances = monthly_piety_gain_mult remove_all_character_modifier_instances = monthly_piety_gain_mult_neg }
	if = { limit = { has_character_flag = monthly_piety_gain_per_happy_powerful_vassal_flag } remove_all_character_modifier_instances = monthly_piety_gain_per_happy_powerful_vassal remove_all_character_modifier_instances = monthly_piety_gain_per_happy_powerful_vassal_neg }
	if = { limit = { has_character_flag = monthly_piety_gain_per_happy_powerful_vassal_mult_flag } remove_all_character_modifier_instances = monthly_piety_gain_per_happy_powerful_vassal_mult remove_all_character_modifier_instances = monthly_piety_gain_per_happy_powerful_vassal_mult_neg }
	if = { limit = { has_character_flag = monthly_piety_gain_per_dread_flag } remove_all_character_modifier_instances = monthly_piety_gain_per_dread remove_all_character_modifier_instances = monthly_piety_gain_per_dread_neg }
	if = { limit = { has_character_flag = monthly_piety_gain_per_dread_mult_flag } remove_all_character_modifier_instances = monthly_piety_gain_per_dread_mult remove_all_character_modifier_instances = monthly_piety_gain_per_dread_mult_neg }
	if = { limit = { has_character_flag = monthly_piety_gain_per_knight_flag } remove_all_character_modifier_instances = monthly_piety_gain_per_knight remove_all_character_modifier_instances = monthly_piety_gain_per_knight_neg }
	if = { limit = { has_character_flag = monthly_piety_gain_per_knight_mult_flag } remove_all_character_modifier_instances = monthly_piety_gain_per_knight_mult remove_all_character_modifier_instances = monthly_piety_gain_per_knight_mult_neg }
	if = { limit = { has_character_flag = monthly_piety_from_buildings_mult_flag } remove_all_character_modifier_instances = monthly_piety_from_buildings_mult remove_all_character_modifier_instances = monthly_piety_from_buildings_mult_neg }
	if = { limit = { has_character_flag = piety_level_impact_mult_flag } remove_all_character_modifier_instances = piety_level_impact_mult remove_all_character_modifier_instances = piety_level_impact_mult_neg }
	if = { limit = { has_character_flag = faith_conversion_piety_cost_flag } remove_all_character_modifier_instances = faith_conversion_piety_cost remove_all_character_modifier_instances = faith_conversion_piety_cost_neg }
	if = { limit = { has_character_flag = faith_conversion_piety_cost_mult_flag } remove_all_character_modifier_instances = faith_conversion_piety_cost_mult remove_all_character_modifier_instances = faith_conversion_piety_cost_mult_neg }
	if = { limit = { has_character_flag = faith_creation_piety_cost_flag } remove_all_character_modifier_instances = faith_creation_piety_cost remove_all_character_modifier_instances = faith_creation_piety_cost_neg }
	if = { limit = { has_character_flag = faith_creation_piety_cost_mult_flag } remove_all_character_modifier_instances = faith_creation_piety_cost_mult remove_all_character_modifier_instances = faith_creation_piety_cost_mult_neg }
	if = { limit = { has_character_flag = monthly_income_flag } remove_all_character_modifier_instances = monthly_income remove_all_character_modifier_instances = monthly_income_neg }
	if = { limit = { has_character_flag = monthly_income_mult_flag } remove_all_character_modifier_instances = monthly_income_mult remove_all_character_modifier_instances = monthly_income_mult_neg }
	if = { limit = { has_character_flag = monthly_war_income_flag } remove_all_character_modifier_instances = monthly_war_income remove_all_character_modifier_instances = monthly_war_income_neg }
	if = { limit = { has_character_flag = monthly_war_income_mult_flag } remove_all_character_modifier_instances = monthly_war_income_mult remove_all_character_modifier_instances = monthly_war_income_mult_neg }
	if = { limit = { has_character_flag = tax_mult_flag } remove_all_character_modifier_instances = tax_mult remove_all_character_modifier_instances = tax_mult_neg }
	if = { limit = { has_character_flag = domain_tax_mult_flag } remove_all_character_modifier_instances = domain_tax_mult remove_all_character_modifier_instances = domain_tax_mult_neg }
	if = { limit = { has_character_flag = domain_tax_same_faith_mult_flag } remove_all_character_modifier_instances = domain_tax_same_faith_mult remove_all_character_modifier_instances = domain_tax_same_faith_mult_neg }
	if = { limit = { has_character_flag = domain_tax_different_faith_mult_flag } remove_all_character_modifier_instances = domain_tax_different_faith_mult remove_all_character_modifier_instances = domain_tax_different_faith_mult_neg }
	if = { limit = { has_character_flag = domain_tax_mult_even_if_baron_flag } remove_all_character_modifier_instances = domain_tax_mult_even_if_baron remove_all_character_modifier_instances = domain_tax_mult_even_if_baron_neg }
	if = { limit = { has_character_flag = domain_tax_same_faith_mult_even_if_baron_flag } remove_all_character_modifier_instances = domain_tax_same_faith_mult_even_if_baron remove_all_character_modifier_instances = domain_tax_same_faith_mult_even_if_baron_neg }
	if = { limit = { has_character_flag = domain_tax_different_faith_mult_even_if_baron_flag } remove_all_character_modifier_instances = domain_tax_different_faith_mult_even_if_baron remove_all_character_modifier_instances = domain_tax_different_faith_mult_even_if_baron_neg }
	if = { limit = { has_character_flag = vassal_tax_mult_flag } remove_all_character_modifier_instances = vassal_tax_mult remove_all_character_modifier_instances = vassal_tax_mult_neg }
	if = { limit = { has_character_flag = monthly_income_per_stress_level_flag } remove_all_character_modifier_instances = monthly_income_per_stress_level remove_all_character_modifier_instances = monthly_income_per_stress_level_neg }
	if = { limit = { has_character_flag = monthly_income_per_stress_level_mult_flag } remove_all_character_modifier_instances = monthly_income_per_stress_level_mult remove_all_character_modifier_instances = monthly_income_per_stress_level_mult_neg }
	if = { limit = { has_character_flag = opinion_of_male_rulers_flag } remove_all_character_modifier_instances = opinion_of_male_rulers remove_all_character_modifier_instances = opinion_of_male_rulers_neg }
	if = { limit = { has_character_flag = opinion_of_female_rulers_flag } remove_all_character_modifier_instances = opinion_of_female_rulers remove_all_character_modifier_instances = opinion_of_female_rulers_neg }
	if = { limit = { has_character_flag = opinion_of_same_culture_flag } remove_all_character_modifier_instances = opinion_of_same_culture remove_all_character_modifier_instances = opinion_of_same_culture_neg }
	if = { limit = { has_character_flag = opinion_of_different_culture_flag } remove_all_character_modifier_instances = opinion_of_different_culture remove_all_character_modifier_instances = opinion_of_different_culture_neg }
	if = { limit = { has_character_flag = opinion_of_same_faith_flag } remove_all_character_modifier_instances = opinion_of_same_faith remove_all_character_modifier_instances = opinion_of_same_faith_neg }
	if = { limit = { has_character_flag = opinion_of_different_faith_flag } remove_all_character_modifier_instances = opinion_of_different_faith remove_all_character_modifier_instances = opinion_of_different_faith_neg }
	if = { limit = { has_character_flag = opinion_of_liege_flag } remove_all_character_modifier_instances = opinion_of_liege remove_all_character_modifier_instances = opinion_of_liege_neg }
	if = { limit = { has_character_flag = opinion_of_vassal_flag } remove_all_character_modifier_instances = opinion_of_vassal remove_all_character_modifier_instances = opinion_of_vassal_neg }
	if = { limit = { has_character_flag = opinion_of_different_faith_liege_flag } remove_all_character_modifier_instances = opinion_of_different_faith_liege remove_all_character_modifier_instances = opinion_of_different_faith_liege_neg }
	if = { limit = { has_character_flag = same_culture_opinion_flag } remove_all_character_modifier_instances = same_culture_opinion remove_all_character_modifier_instances = same_culture_opinion_neg }
	if = { limit = { has_character_flag = different_culture_opinion_flag } remove_all_character_modifier_instances = different_culture_opinion remove_all_character_modifier_instances = different_culture_opinion_neg }
	if = { limit = { has_character_flag = same_faith_opinion_flag } remove_all_character_modifier_instances = same_faith_opinion remove_all_character_modifier_instances = same_faith_opinion_neg }
	if = { limit = { has_character_flag = different_faith_opinion_flag } remove_all_character_modifier_instances = different_faith_opinion remove_all_character_modifier_instances = different_faith_opinion_neg }
	if = { limit = { has_character_flag = direct_vassal_opinion_flag } remove_all_character_modifier_instances = direct_vassal_opinion remove_all_character_modifier_instances = direct_vassal_opinion_neg }
	if = { limit = { has_character_flag = fellow_vassal_opinion_flag } remove_all_character_modifier_instances = fellow_vassal_opinion remove_all_character_modifier_instances = fellow_vassal_opinion_neg }
	if = { limit = { has_character_flag = independent_ruler_opinion_flag } remove_all_character_modifier_instances = independent_ruler_opinion remove_all_character_modifier_instances = independent_ruler_opinion_neg }
	if = { limit = { has_character_flag = general_opinion_flag } remove_all_character_modifier_instances = general_opinion remove_all_character_modifier_instances = general_opinion_neg }
	if = { limit = { has_character_flag = attraction_opinion_flag } remove_all_character_modifier_instances = attraction_opinion remove_all_character_modifier_instances = attraction_opinion_neg }
	if = { limit = { has_character_flag = religious_vassal_opinion_flag } remove_all_character_modifier_instances = religious_vassal_opinion remove_all_character_modifier_instances = religious_vassal_opinion_neg }
	if = { limit = { has_character_flag = religious_head_opinion_flag } remove_all_character_modifier_instances = religious_head_opinion remove_all_character_modifier_instances = religious_head_opinion_neg }
	if = { limit = { has_character_flag = spouse_opinion_flag } remove_all_character_modifier_instances = spouse_opinion remove_all_character_modifier_instances = spouse_opinion_neg }
	if = { limit = { has_character_flag = twin_opinion_flag } remove_all_character_modifier_instances = twin_opinion remove_all_character_modifier_instances = twin_opinion_neg }
	if = { limit = { has_character_flag = close_relative_opinion_flag } remove_all_character_modifier_instances = close_relative_opinion remove_all_character_modifier_instances = close_relative_opinion_neg }
	if = { limit = { has_character_flag = dynasty_house_opinion_flag } remove_all_character_modifier_instances = dynasty_house_opinion remove_all_character_modifier_instances = dynasty_house_opinion_neg }
	if = { limit = { has_character_flag = dynasty_opinion_flag } remove_all_character_modifier_instances = dynasty_opinion remove_all_character_modifier_instances = dynasty_opinion_neg }
	if = { limit = { has_character_flag = liege_opinion_flag } remove_all_character_modifier_instances = liege_opinion remove_all_character_modifier_instances = liege_opinion_neg }
	if = { limit = { has_character_flag = different_faith_liege_opinion_flag } remove_all_character_modifier_instances = different_faith_liege_opinion remove_all_character_modifier_instances = different_faith_liege_opinion_neg }
	if = { limit = { has_character_flag = vassal_opinion_flag } remove_all_character_modifier_instances = vassal_opinion remove_all_character_modifier_instances = vassal_opinion_neg }
	if = { limit = { has_character_flag = clergy_opinion_flag } remove_all_character_modifier_instances = clergy_opinion remove_all_character_modifier_instances = clergy_opinion_neg }
	if = { limit = { has_character_flag = councillor_opinion_flag } remove_all_character_modifier_instances = councillor_opinion remove_all_character_modifier_instances = councillor_opinion_neg }
	if = { limit = { has_character_flag = realm_priest_opinion_flag } remove_all_character_modifier_instances = realm_priest_opinion remove_all_character_modifier_instances = realm_priest_opinion_neg }
	if = { limit = { has_character_flag = powerful_vassal_opinion_flag } remove_all_character_modifier_instances = powerful_vassal_opinion remove_all_character_modifier_instances = powerful_vassal_opinion_neg }
	if = { limit = { has_character_flag = courtier_opinion_flag } remove_all_character_modifier_instances = courtier_opinion remove_all_character_modifier_instances = courtier_opinion_neg }
	if = { limit = { has_character_flag = guest_opinion_flag } remove_all_character_modifier_instances = guest_opinion remove_all_character_modifier_instances = guest_opinion_neg }
	if = { limit = { has_character_flag = courtier_and_guest_opinion_flag } remove_all_character_modifier_instances = courtier_and_guest_opinion remove_all_character_modifier_instances = courtier_and_guest_opinion_neg }
	if = { limit = { has_character_flag = prisoner_opinion_flag } remove_all_character_modifier_instances = prisoner_opinion remove_all_character_modifier_instances = prisoner_opinion_neg }
	if = { limit = { has_character_flag = player_heir_opinion_flag } remove_all_character_modifier_instances = player_heir_opinion remove_all_character_modifier_instances = player_heir_opinion_neg }
	if = { limit = { has_character_flag = child_opinion_flag } remove_all_character_modifier_instances = child_opinion remove_all_character_modifier_instances = child_opinion_neg }
	if = { limit = { has_character_flag = child_except_player_heir_opinion_flag } remove_all_character_modifier_instances = child_except_player_heir_opinion remove_all_character_modifier_instances = child_except_player_heir_opinion_neg }
	if = { limit = { has_character_flag = eligible_child_opinion_flag } remove_all_character_modifier_instances = eligible_child_opinion remove_all_character_modifier_instances = eligible_child_opinion_neg }
	if = { limit = { has_character_flag = eligible_child_except_player_heir_opinion_flag } remove_all_character_modifier_instances = eligible_child_except_player_heir_opinion remove_all_character_modifier_instances = eligible_child_except_player_heir_opinion_neg }
	if = { limit = { has_character_flag = county_opinion_flag } remove_all_character_modifier_instances = county_opinion_add remove_all_character_modifier_instances = county_opinion_neg }
	if = { limit = { has_character_flag = different_faith_county_opinion_mult_flag } remove_all_character_modifier_instances = different_faith_county_opinion_mult remove_all_character_modifier_instances = different_faith_county_opinion_mult_neg }
	if = { limit = { has_character_flag = county_opinion_add_even_if_baron_flag } remove_all_character_modifier_instances = county_opinion_add_even_if_baron remove_all_character_modifier_instances = county_opinion_add_even_if_baron_neg }
	if = { limit = { has_character_flag = different_faith_county_opinion_mult_even_if_baron_flag } remove_all_character_modifier_instances = different_faith_county_opinion_mult_even_if_baron remove_all_character_modifier_instances = different_faith_county_opinion_mult_even_if_baron_neg }
	if = { limit = { has_character_flag = fertility_flag } remove_all_character_modifier_instances = fertility_modifier remove_all_character_modifier_instances = fertility_modifier_neg }
	if = { limit = { has_character_flag = health_flag } remove_all_character_modifier_instances = health_modifier remove_all_character_modifier_instances = health_modifier_neg }
	if = { limit = { has_character_flag = negate_fertility_penalty_flag } remove_all_character_modifier_instances = negate_fertility_penalty remove_all_character_modifier_instances = negate_fertility_penalty_neg }
	if = { limit = { has_character_flag = negate_health_penalty_flag } remove_all_character_modifier_instances = negate_health_penalty remove_all_character_modifier_instances = negate_health_penalty_neg }
	if = { limit = { has_character_flag = monthly_dynasty_prestige_flag } remove_all_character_modifier_instances = monthly_dynasty_prestige remove_all_character_modifier_instances = monthly_dynasty_prestige_neg }
	if = { limit = { has_character_flag = monthly_dynasty_prestige_mult_flag } remove_all_character_modifier_instances = monthly_dynasty_prestige_mult remove_all_character_modifier_instances = monthly_dynasty_prestige_mult_neg }
	#if = { limit = { has_character_flag = random_skills_per_child_flag } remove_all_character_modifier_instances = random_skills_per_child remove_all_character_modifier_instances = random_skills_per_child_neg }
	if = { limit = { has_character_flag = inbreeding_chance_flag } remove_all_character_modifier_instances = inbreeding_chance remove_all_character_modifier_instances = inbreeding_chance_neg }
	if = { limit = { has_character_flag = positive_inactive_inheritance_chance_flag } remove_all_character_modifier_instances = positive_inactive_inheritance_chance remove_all_character_modifier_instances = positive_inactive_inheritance_chance_neg }
	if = { limit = { has_character_flag = negative_inactive_inheritance_chance_flag } remove_all_character_modifier_instances = negative_inactive_inheritance_chance remove_all_character_modifier_instances = negative_inactive_inheritance_chance_neg }
	if = { limit = { has_character_flag = positive_random_genetic_chance_flag } remove_all_character_modifier_instances = positive_random_genetic_chance remove_all_character_modifier_instances = positive_random_genetic_chance_neg }
	if = { limit = { has_character_flag = negative_random_genetic_chance_flag } remove_all_character_modifier_instances = negative_random_genetic_chance remove_all_character_modifier_instances = negative_random_genetic_chance_neg }
	if = { limit = { has_character_flag = genetic_trait_strengthen_chance_flag } remove_all_character_modifier_instances = genetic_trait_strengthen_chance remove_all_character_modifier_instances = genetic_trait_strengthen_chance_neg }
	if = { limit = { has_character_flag = life_expectancy_flag } remove_all_character_modifier_instances = life_expectancy_modifier remove_all_character_modifier_instances = life_expectancy_modifier_neg }
	if = { limit = { has_character_flag = years_of_fertility_flag } remove_all_character_modifier_instances = years_of_fertility remove_all_character_modifier_instances = years_of_fertility_neg }
	if = { limit = { has_character_flag = diplomacy_per_stress_level_flag } remove_all_character_modifier_instances = diplomacy_per_stress_level remove_all_character_modifier_instances = diplomacy_per_stress_level_neg }
	if = { limit = { has_character_flag = martial_per_stress_level_flag } remove_all_character_modifier_instances = martial_per_stress_level remove_all_character_modifier_instances = martial_per_stress_level_neg }
	if = { limit = { has_character_flag = stewardship_per_stress_level_flag } remove_all_character_modifier_instances = stewardship_per_stress_level remove_all_character_modifier_instances = stewardship_per_stress_level_neg }
	if = { limit = { has_character_flag = intrigue_per_stress_level_flag } remove_all_character_modifier_instances = intrigue_per_piety_level remove_all_character_modifier_instances = intrigue_per_piety_level_neg }
	if = { limit = { has_character_flag = learning_per_stress_level_flag } remove_all_character_modifier_instances = learning_per_stress_level remove_all_character_modifier_instances = learning_per_stress_level_neg }
	if = { limit = { has_character_flag = prowess_per_stress_level_flag } remove_all_character_modifier_instances = prowess_per_stress_level remove_all_character_modifier_instances = prowess_per_stress_level_neg }
	if = { limit = { has_character_flag = stress_gain_mult_flag } remove_all_character_modifier_instances = stress_gain_mult remove_all_character_modifier_instances = stress_gain_mult_neg }
	if = { limit = { has_character_flag = stress_loss_mult_flag } remove_all_character_modifier_instances = stress_loss_mult remove_all_character_modifier_instances = stress_loss_mult_neg }
	#if = { limit = { has_character_flag = scheme_power_flag } remove_all_character_modifier_instances = scheme_power remove_all_character_modifier_instances = scheme_power_neg }
	#if = { limit = { has_character_flag = scheme_resistance_flag } remove_all_character_modifier_instances = scheme_resistance remove_all_character_modifier_instances = scheme_resistance_neg }
	#if = { limit = { has_character_flag = scheme_secrecy_flag } remove_all_character_modifier_instances = scheme_secrecy remove_all_character_modifier_instances = scheme_secrecy_neg }
	#if = { limit = { has_character_flag = scheme_success_chance_flag } remove_all_character_modifier_instances = scheme_success_chance remove_all_character_modifier_instances = scheme_success_chance_neg }
	if = { limit = { has_character_flag = hostile_scheme_power_flag } remove_all_character_modifier_instances = hostile_scheme_power remove_all_character_modifier_instances = hostile_scheme_power_neg }
	if = { limit = { has_character_flag = personal_scheme_power_flag } remove_all_character_modifier_instances = personal_scheme_power remove_all_character_modifier_instances = personal_scheme_power_neg }
	if = { limit = { has_character_flag = hostile_scheme_resistance_flag } remove_all_character_modifier_instances = hostile_scheme_resistance remove_all_character_modifier_instances = hostile_scheme_resistance_neg }
	if = { limit = { has_character_flag = personal_scheme_resistance_flag } remove_all_character_modifier_instances = personal_scheme_resistance remove_all_character_modifier_instances = personal_scheme_resistance_neg }
	if = { limit = { has_character_flag = diplomacy_scheme_power_flag } remove_all_character_modifier_instances = diplomacy_scheme_power remove_all_character_modifier_instances = diplomacy_scheme_power_neg }
	if = { limit = { has_character_flag = intrigue_scheme_power_flag } remove_all_character_modifier_instances = intrigue_scheme_power remove_all_character_modifier_instances = intrigue_scheme_power_neg }
	if = { limit = { has_character_flag = stewardship_scheme_power_flag } remove_all_character_modifier_instances = stewardship_scheme_power remove_all_character_modifier_instances = stewardship_scheme_power_neg }
	if = { limit = { has_character_flag = martial_scheme_power_flag } remove_all_character_modifier_instances = martial_scheme_power remove_all_character_modifier_instances = martial_scheme_power_neg }
	if = { limit = { has_character_flag = prowess_scheme_power_flag } remove_all_character_modifier_instances = prowess_scheme_power remove_all_character_modifier_instances = prowess_scheme_power_neg }
	if = { limit = { has_character_flag = learning_scheme_power_flag } remove_all_character_modifier_instances = learning_scheme_power remove_all_character_modifier_instances = learning_scheme_power_neg }
	if = { limit = { has_character_flag = diplomacy_scheme_resistance_flag } remove_all_character_modifier_instances = diplomacy_scheme_resistance remove_all_character_modifier_instances = diplomacy_scheme_resistance_neg }
	if = { limit = { has_character_flag = intrigue_scheme_resistance_flag } remove_all_character_modifier_instances = intrigue_scheme_resistance remove_all_character_modifier_instances = intrigue_scheme_resistance_neg }
	if = { limit = { has_character_flag = stewardship_scheme_resistance_flag } remove_all_character_modifier_instances = stewardship_scheme_resistance remove_all_character_modifier_instances = stewardship_scheme_resistance_neg }
	if = { limit = { has_character_flag = martial_scheme_resistance_flag } remove_all_character_modifier_instances = martial_scheme_resistance remove_all_character_modifier_instances = martial_scheme_resistance_neg }
	if = { limit = { has_character_flag = prowess_scheme_resistance_flag } remove_all_character_modifier_instances = prowess_scheme_resistance remove_all_character_modifier_instances = prowess_scheme_resistance_neg }
	if = { limit = { has_character_flag = learning_scheme_resistance_flag } remove_all_character_modifier_instances = learning_scheme_resistance remove_all_character_modifier_instances = learning_scheme_resistance_neg }
	if = { limit = { has_character_flag = scheme_discovery_chance_mult_flag } remove_all_character_modifier_instances = scheme_discovery_chance_mult remove_all_character_modifier_instances = scheme_discovery_chance_mult_neg }
	if = { limit = { has_character_flag = max_personal_schemes_flag } remove_all_character_modifier_instances = max_personal_schemes remove_all_character_modifier_instances = max_personal_schemes_neg }
	if = { limit = { has_character_flag = max_hostile_schemes_flag } remove_all_character_modifier_instances = max_hostile_schemes remove_all_character_modifier_instances = max_hostile_schemes_neg }
	if = { limit = { has_character_flag = owned_hostile_scheme_success_chance_flag } remove_all_character_modifier_instances = owned_hostile_scheme_success_chance remove_all_character_modifier_instances = owned_hostile_scheme_success_chance_neg }
	if = { limit = { has_character_flag = owned_personal_scheme_success_chance_flag } remove_all_character_modifier_instances = owned_personal_scheme_success_chance remove_all_character_modifier_instances = owned_personal_scheme_success_chance_neg }
	if = { limit = { has_character_flag = enemy_hostile_scheme_success_chance_flag } remove_all_character_modifier_instances = enemy_hostile_scheme_success_chance remove_all_character_modifier_instances = enemy_hostile_scheme_success_chance_neg }
	if = { limit = { has_character_flag = enemy_personal_scheme_success_chance_flag } remove_all_character_modifier_instances = enemy_personal_scheme_success_chance remove_all_character_modifier_instances = enemy_personal_scheme_success_chance_neg }
	if = { limit = { has_character_flag = monthly_dread_flag } remove_all_character_modifier_instances = monthly_dread remove_all_character_modifier_instances = monthly_dread_neg }
	if = { limit = { has_character_flag = dread_gain_mult_flag } remove_all_character_modifier_instances = dread_gain_mult remove_all_character_modifier_instances = dread_gain_mult_neg }
	if = { limit = { has_character_flag = dread_loss_mult_flag } remove_all_character_modifier_instances = dread_loss_mult remove_all_character_modifier_instances = dread_loss_mult_neg }
	if = { limit = { has_character_flag = tyranny_gain_mult_flag } remove_all_character_modifier_instances = tyranny_gain_mult remove_all_character_modifier_instances = tyranny_gain_mult_neg }
	if = { limit = { has_character_flag = tyranny_loss_mult_flag } remove_all_character_modifier_instances = tyranny_loss_mult remove_all_character_modifier_instances = tyranny_loss_mult_neg }
	if = { limit = { has_character_flag = monthly_tyranny_flag } remove_all_character_modifier_instances = monthly_tyranny remove_all_character_modifier_instances = monthly_tyranny_neg }
	if = { limit = { has_character_flag = dread_baseline_flag } remove_all_character_modifier_instances = dread_baseline remove_all_character_modifier_instances = dread_baseline_neg }
	if = { limit = { has_character_flag = dread_decay_flag } remove_all_character_modifier_instances = dread_decay remove_all_character_modifier_instances = dread_decay_neg }
	if = { limit = { has_character_flag = dread_decay_mult_flag } remove_all_character_modifier_instances = dread_decay_mult remove_all_character_modifier_instances = dread_decay_mult_neg }
	if = { limit = { has_character_flag = dread_per_tyranny_flag } remove_all_character_modifier_instances = dread_per_tyranny remove_all_character_modifier_instances = dread_per_tyranny_neg }
	if = { limit = { has_character_flag = dread_per_tyranny_mult_flag } remove_all_character_modifier_instances = dread_per_tyranny_mult remove_all_character_modifier_instances = dread_per_tyranny_mult_neg }
	if = { limit = { has_character_flag = domain_limit_flag } remove_all_character_modifier_instances = domain_limit remove_all_character_modifier_instances = domain_limit_neg }
	if = { limit = { has_character_flag = vassal_limit_flag } remove_all_character_modifier_instances = vassal_limit remove_all_character_modifier_instances = vassal_limit_neg }
	if = { limit = { has_character_flag = short_reign_duration_mult_flag } remove_all_character_modifier_instances = short_reign_duration_mult remove_all_character_modifier_instances = short_reign_duration_mult_neg }
	if = { limit = { has_character_flag = long_reign_bonus_mult_flag } remove_all_character_modifier_instances = long_reign_bonus_mult remove_all_character_modifier_instances = long_reign_bonus_mult_neg }
	if = { limit = { has_character_flag = diplomatic_range_mult_flag } remove_all_character_modifier_instances = diplomatic_range_mult remove_all_character_modifier_instances = diplomatic_range_mult_neg }
	if = { limit = { has_character_flag = title_creation_cost_flag } remove_all_character_modifier_instances = title_creation_cost remove_all_character_modifier_instances = title_creation_cost_neg }
	if = { limit = { has_character_flag = title_creation_cost_mult_flag } remove_all_character_modifier_instances = title_creation_cost_mult remove_all_character_modifier_instances = title_creation_cost_mult_neg }
	if = { limit = { has_character_flag = vassal_tax_contribution_flag } remove_all_character_modifier_instances = vassal_tax_contribution remove_all_character_modifier_instances = vassal_tax_contribution_neg }
	if = { limit = { has_character_flag = vassal_tax_contribution_mult_flag } remove_all_character_modifier_instances = vassal_tax_contribution_mult remove_all_character_modifier_instances = vassal_tax_contribution_mult_neg }
	if = { limit = { has_character_flag = intimidated_vassal_tax_contribution_flag } remove_all_character_modifier_instances = intimidated_vassal_tax_contribution remove_all_character_modifier_instances = intimidated_vassal_tax_contribution_neg }
	if = { limit = { has_character_flag = intimidated_vassal_tax_contribution_mult_flag } remove_all_character_modifier_instances = intimidated_vassal_tax_contribution_mult remove_all_character_modifier_instances = intimidated_vassal_tax_contribution_mult_neg }
	if = { limit = { has_character_flag = cowed_vassal_tax_contribution_flag } remove_all_character_modifier_instances = cowed_vassal_tax_contribution remove_all_character_modifier_instances = cowed_vassal_tax_contribution_neg }
	if = { limit = { has_character_flag = cowed_vassal_tax_contribution_mult_flag } remove_all_character_modifier_instances = cowed_vassal_tax_contribution_mult remove_all_character_modifier_instances = cowed_vassal_tax_contribution_mult_neg }
	if = { limit = { has_character_flag = vassal_levy_contribution_flag } remove_all_character_modifier_instances = vassal_levy_contribution remove_all_character_modifier_instances = vassal_levy_contribution_neg }
	if = { limit = { has_character_flag = vassal_levy_contribution_mult_flag } remove_all_character_modifier_instances = vassal_levy_contribution_mult remove_all_character_modifier_instances = vassal_levy_contribution_mult_neg }
	if = { limit = { has_character_flag = intimidated_vassal_levy_contribution_flag } remove_all_character_modifier_instances = intimidated_vassal_levy_contribution remove_all_character_modifier_instances = intimidated_vassal_levy_contribution_neg }
	if = { limit = { has_character_flag = intimidated_vassal_levy_contribution_mult_flag } remove_all_character_modifier_instances = intimidated_vassal_levy_contribution_mult remove_all_character_modifier_instances = intimidated_vassal_levy_contribution_mult_neg }
	if = { limit = { has_character_flag = cowed_vassal_levy_contribution_flag } remove_all_character_modifier_instances = cowed_vassal_levy_contribution remove_all_character_modifier_instances = cowed_vassal_levy_contribution_neg }
	if = { limit = { has_character_flag = cowed_vassal_levy_contribution_mult_flag } remove_all_character_modifier_instances = cowed_vassal_levy_contribution_mult remove_all_character_modifier_instances = cowed_vassal_levy_contribution_mult_neg }
	if = { limit = { has_character_flag = happy_powerful_vassal_tax_contribution_flag } remove_all_character_modifier_instances = happy_powerful_vassal_tax_contribution remove_all_character_modifier_instances = happy_powerful_vassal_tax_contribution_neg }
	if = { limit = { has_character_flag = happy_powerful_vassal_tax_contribution_mult_flag } remove_all_character_modifier_instances = happy_powerful_vassal_tax_contribution_mult remove_all_character_modifier_instances = happy_powerful_vassal_tax_contribution_mult_neg }
	if = { limit = { has_character_flag = happy_powerful_vassal_levy_contribution_flag } remove_all_character_modifier_instances = happy_powerful_vassal_levy_contribution remove_all_character_modifier_instances = happy_powerful_vassal_levy_contribution_neg }
	if = { limit = { has_character_flag = happy_powerful_vassal_levy_contribution_mult_flag } remove_all_character_modifier_instances = happy_powerful_vassal_levy_contribution_mult remove_all_character_modifier_instances = happy_powerful_vassal_levy_contribution_mult_neg }
	if = { limit = { has_character_flag = build_speed_flag } remove_all_character_modifier_instances = build_speed remove_all_character_modifier_instances = build_speed_neg }
	if = { limit = { has_character_flag = build_gold_cost_flag } remove_all_character_modifier_instances = build_gold_cost remove_all_character_modifier_instances = build_gold_cost_neg }
	if = { limit = { has_character_flag = build_piety_cost_flag } remove_all_character_modifier_instances = build_piety_cost remove_all_character_modifier_instances = build_piety_cost_neg }
	if = { limit = { has_character_flag = build_prestige_cost_flag } remove_all_character_modifier_instances = build_prestige_cost remove_all_character_modifier_instances = build_prestige_cost_neg }
	if = { limit = { has_character_flag = holding_build_speed_flag } remove_all_character_modifier_instances = holding_build_speed remove_all_character_modifier_instances = holding_build_speed_neg }
	if = { limit = { has_character_flag = holding_build_gold_cost_flag } remove_all_character_modifier_instances = holding_build_gold_cost remove_all_character_modifier_instances = holding_build_gold_cost_neg }
	if = { limit = { has_character_flag = holding_build_piety_cost_flag } remove_all_character_modifier_instances = holding_build_piety_cost remove_all_character_modifier_instances = holding_build_piety_cost_neg }
	if = { limit = { has_character_flag = holding_build_prestige_cost_flag } remove_all_character_modifier_instances = holding_build_prestige_cost remove_all_character_modifier_instances = holding_build_prestige_cost_neg }
	if = { limit = { has_character_flag = development_growth_factor_flag } remove_all_character_modifier_instances = development_growth_factor remove_all_character_modifier_instances = development_growth_factor_neg }
	if = { limit = { has_character_flag = development_growth_flag } remove_all_character_modifier_instances = development_growth remove_all_character_modifier_instances = development_growth_neg }
	if = { limit = { has_character_flag = character_capital_county_monthly_development_growth_flag } remove_all_character_modifier_instances = character_capital_county_monthly_development_growth remove_all_character_modifier_instances = character_capital_county_monthly_development_growth_neg }
	if = { limit = { has_character_flag = monthly_county_control_change_flag } remove_all_character_modifier_instances = monthly_county_control_change remove_all_character_modifier_instances = monthly_county_control_change_neg }
	if = { limit = { has_character_flag = monthly_county_control_change_factor_flag } remove_all_character_modifier_instances = monthly_county_control_change_factor remove_all_character_modifier_instances = monthly_county_control_change_factor_neg }
	if = { limit = { has_character_flag = monthly_county_control_change_add_even_if_baron_flag } remove_all_character_modifier_instances = monthly_county_control_change_add_even_if_baron remove_all_character_modifier_instances = monthly_county_control_change_add_even_if_baron_neg }
	if = { limit = { has_character_flag = monthly_county_control_change_factor_even_if_baron_flag } remove_all_character_modifier_instances = monthly_county_control_change_factor_even_if_baron remove_all_character_modifier_instances = monthly_county_control_change_factor_even_if_baron_neg }
	if = { limit = { has_character_flag = castle_holding_build_speed_flag } remove_all_character_modifier_instances = castle_holding_build_speed remove_all_character_modifier_instances = castle_holding_build_speed_neg }
	if = { limit = { has_character_flag = castle_holding_build_gold_cost_flag } remove_all_character_modifier_instances = castle_holding_build_gold_cost remove_all_character_modifier_instances = castle_holding_build_gold_cost_neg }
	if = { limit = { has_character_flag = castle_holding_holding_build_speed_flag } remove_all_character_modifier_instances = castle_holding_holding_build_speed remove_all_character_modifier_instances = castle_holding_holding_build_speed_neg }
	if = { limit = { has_character_flag = castle_holding_holding_build_gold_cost_flag } remove_all_character_modifier_instances = castle_holding_holding_build_gold_cost remove_all_character_modifier_instances = castle_holding_holding_build_gold_cost_neg }
	if = { limit = { has_character_flag = tribal_holding_build_speed_flag } remove_all_character_modifier_instances = tribal_holding_build_speed remove_all_character_modifier_instances = tribal_holding_build_speed_neg }
	if = { limit = { has_character_flag = tribal_holding_build_gold_cost_flag } remove_all_character_modifier_instances = tribal_holding_build_gold_cost remove_all_character_modifier_instances = tribal_holding_build_gold_cost_neg }
	if = { limit = { has_character_flag = tribal_holding_holding_build_speed_flag } remove_all_character_modifier_instances = tribal_holding_holding_build_speed remove_all_character_modifier_instances = tribal_holding_holding_build_speed_neg }
	if = { limit = { has_character_flag = tribal_holding_holding_build_gold_cost_flag } remove_all_character_modifier_instances = tribal_holding_holding_build_gold_cost remove_all_character_modifier_instances = tribal_holding_holding_build_gold_cost_neg }
	if = { limit = { has_character_flag = city_holding_build_speed_flag } remove_all_character_modifier_instances = city_holding_build_speed remove_all_character_modifier_instances = city_holding_build_speed_neg }
	if = { limit = { has_character_flag = city_holding_build_gold_cost_flag } remove_all_character_modifier_instances = city_holding_build_gold_cost remove_all_character_modifier_instances = city_holding_build_gold_cost_neg }
	if = { limit = { has_character_flag = city_holding_holding_build_speed_flag } remove_all_character_modifier_instances = city_holding_holding_build_speed remove_all_character_modifier_instances = city_holding_holding_build_speed_neg }
	if = { limit = { has_character_flag = city_holding_holding_build_gold_cost_flag } remove_all_character_modifier_instances = city_holding_holding_build_gold_cost remove_all_character_modifier_instances = city_holding_holding_build_gold_cost_neg }
	if = { limit = { has_character_flag = church_holding_build_speed_flag } remove_all_character_modifier_instances = church_holding_build_speed remove_all_character_modifier_instances = church_holding_build_speed_neg }
	if = { limit = { has_character_flag = church_holding_build_gold_cost_flag } remove_all_character_modifier_instances = church_holding_build_gold_cost remove_all_character_modifier_instances = church_holding_build_gold_cost_neg }
	if = { limit = { has_character_flag = church_holding_holding_build_speed_flag } remove_all_character_modifier_instances = church_holding_holding_build_speed remove_all_character_modifier_instances = church_holding_holding_build_speed_neg }
	if = { limit = { has_character_flag = church_holding_holding_build_gold_cost_flag } remove_all_character_modifier_instances = church_holding_holding_build_gold_cost remove_all_character_modifier_instances = church_holding_holding_build_gold_cost_neg }
	if = { limit = { has_character_flag = hostile_raid_time_flag } remove_all_character_modifier_instances = hostile_raid_time remove_all_character_modifier_instances = hostile_raid_time_neg }
	if = { limit = { has_character_flag = levy_size_flag } remove_all_character_modifier_instances = levy_size remove_all_character_modifier_instances = levy_size_neg }
	if = { limit = { has_character_flag = garrison_size_flag } remove_all_character_modifier_instances = garrison_size remove_all_character_modifier_instances = garrison_size_neg }
	if = { limit = { has_character_flag = levy_reinforcement_rate_flag } remove_all_character_modifier_instances = levy_reinforcement_rate remove_all_character_modifier_instances = levy_reinforcement_rate_neg }
	if = { limit = { has_character_flag = levy_reinforcement_rate_same_faith_flag } remove_all_character_modifier_instances = levy_reinforcement_rate_same_faith remove_all_character_modifier_instances = levy_reinforcement_rate_same_faith_neg }
	if = { limit = { has_character_flag = levy_reinforcement_rate_different_faith_flag } remove_all_character_modifier_instances = levy_reinforcement_rate_different_faith remove_all_character_modifier_instances = levy_reinforcement_rate_different_faith_neg }
	if = { limit = { has_character_flag = levy_reinforcement_rate_even_if_baron_flag } remove_all_character_modifier_instances = levy_reinforcement_rate_even_if_baron remove_all_character_modifier_instances = levy_reinforcement_rate_even_if_baron_neg }
	if = { limit = { has_character_flag = levy_reinforcement_rate_same_faith_even_if_baron_flag } remove_all_character_modifier_instances = levy_reinforcement_rate_same_faith_even_if_baron remove_all_character_modifier_instances = levy_reinforcement_rate_same_faith_even_if_baron_neg }
	if = { limit = { has_character_flag = levy_reinforcement_rate_different_faith_even_if_baron_flag } remove_all_character_modifier_instances = levy_reinforcement_rate_different_faith_even_if_baron remove_all_character_modifier_instances = levy_reinforcement_rate_different_faith_even_if_baron_neg }
	if = { limit = { has_character_flag = levy_reinforcement_rate_friendly_territory_flag } remove_all_character_modifier_instances = levy_reinforcement_rate_friendly_territory remove_all_character_modifier_instances = levy_reinforcement_rate_friendly_territory_neg }
	#if = { limit = { has_character_flag = mercenary_count_mult_flag } remove_all_character_modifier_instances = mercenary_count_mult remove_all_character_modifier_instances = mercenary_count_mult_neg }
	if = { limit = { has_character_flag = supply_capacity_flag } remove_all_character_modifier_instances = supply_capacity remove_all_character_modifier_instances = supply_capacity_neg }
	if = { limit = { has_character_flag = supply_capacity_mult_flag } remove_all_character_modifier_instances = supply_capacity_mult remove_all_character_modifier_instances = supply_capacity_mult_neg }
	if = { limit = { has_character_flag = mercenary_hire_cost_flag } remove_all_character_modifier_instances = mercenary_hire_cost remove_all_character_modifier_instances = mercenary_hire_cost_neg }
	if = { limit = { has_character_flag = mercenary_hire_cost_mult_flag } remove_all_character_modifier_instances = mercenary_hire_cost_mult remove_all_character_modifier_instances = mercenary_hire_cost_mult_neg }
	if = { limit = { has_character_flag = same_culture_mercenary_hire_cost_flag } remove_all_character_modifier_instances = same_culture_mercenary_hire_cost remove_all_character_modifier_instances = same_culture_mercenary_hire_cost_neg }
	if = { limit = { has_character_flag = same_culture_mercenary_hire_cost_mult_flag } remove_all_character_modifier_instances = same_culture_mercenary_hire_cost_mult remove_all_character_modifier_instances = same_culture_mercenary_hire_cost_mult_neg }
	if = { limit = { has_character_flag = holy_order_hire_cost_mult_flag } remove_all_character_modifier_instances = holy_order_hire_cost_mult remove_all_character_modifier_instances = holy_order_hire_cost_mult_neg }
	if = { limit = { has_character_flag = holy_order_hire_cost_flag } remove_all_character_modifier_instances = holy_order_hire_cost remove_all_character_modifier_instances = holy_order_hire_cost_neg }
	if = { limit = { has_character_flag = same_culture_holy_order_hire_cost_mult_flag } remove_all_character_modifier_instances = same_culture_holy_order_hire_cost_mult remove_all_character_modifier_instances = same_culture_holy_order_hire_cost_mult_neg }
	if = { limit = { has_character_flag = same_culture_holy_order_hire_cost_flag } remove_all_character_modifier_instances = same_culture_holy_order_hire_cost remove_all_character_modifier_instances = same_culture_holy_order_hire_cost_neg }
	if = { limit = { has_character_flag = men_at_arms_maintenance_flag } remove_all_character_modifier_instances = men_at_arms_maintenance remove_all_character_modifier_instances = men_at_arms_maintenance_neg }
	if = { limit = { has_character_flag = men_at_arms_maintenance_per_dread_mult_flag } remove_all_character_modifier_instances = men_at_arms_maintenance_per_dread_mult remove_all_character_modifier_instances = men_at_arms_maintenance_per_dread_mult_neg }
	if = { limit = { has_character_flag = army_maintenance_mult_flag } remove_all_character_modifier_instances = army_maintenance_mult remove_all_character_modifier_instances = army_maintenance_mult_neg }
	if = { limit = { has_character_flag = knight_limit_flag } remove_all_character_modifier_instances = knight_limit remove_all_character_modifier_instances = knight_limit_neg }
	if = { limit = { has_character_flag = knight_effectiveness_mult_flag } remove_all_character_modifier_instances = knight_effectiveness_mult remove_all_character_modifier_instances = knight_effectiveness_mult_neg }
	if = { limit = { has_character_flag = pursue_efficiency_flag } remove_all_character_modifier_instances = pursue_efficiency remove_all_character_modifier_instances = pursue_efficiency_neg }
	if = { limit = { has_character_flag = counter_efficiency_flag } remove_all_character_modifier_instances = counter_efficiency remove_all_character_modifier_instances = counter_efficiency_neg }
	if = { limit = { has_character_flag = min_combat_roll_flag } remove_all_character_modifier_instances = min_combat_roll remove_all_character_modifier_instances = min_combat_roll_neg }
	if = { limit = { has_character_flag = max_combat_roll_flag } remove_all_character_modifier_instances = max_combat_roll remove_all_character_modifier_instances = max_combat_roll_neg }
	if = { limit = { has_character_flag = men_at_arms_limit_flag } remove_all_character_modifier_instances = men_at_arms_limit remove_all_character_modifier_instances = men_at_arms_limit_neg }
	if = { limit = { has_character_flag = men_at_arms_cap_flag } remove_all_character_modifier_instances = men_at_arms_cap remove_all_character_modifier_instances = men_at_arms_cap_neg }
	if = { limit = { has_character_flag = embarkation_cost_mult_flag } remove_all_character_modifier_instances = embarkation_cost_mult remove_all_character_modifier_instances = embarkation_cost_mult_neg }
	if = { limit = { has_character_flag = naval_movement_speed_mult_flag } remove_all_character_modifier_instances = naval_movement_speed_mult remove_all_character_modifier_instances = naval_movement_speed_mult_neg }
	if = { limit = { has_character_flag = siege_phase_time_flag } remove_all_character_modifier_instances = siege_phase_time remove_all_character_modifier_instances = siege_phase_time_neg }
	if = { limit = { has_character_flag = siege_morale_loss_flag } remove_all_character_modifier_instances = siege_morale_loss remove_all_character_modifier_instances = siege_morale_loss_neg }
	if = { limit = { has_character_flag = revolting_siege_morale_loss_flag } remove_all_character_modifier_instances = revolting_siege_morale_loss remove_all_character_modifier_instances = revolting_siege_morale_loss_neg }
	if = { limit = { has_character_flag = revolting_siege_morale_loss_mult_flag } remove_all_character_modifier_instances = revolting_siege_morale_loss_mult remove_all_character_modifier_instances = revolting_siege_morale_loss_mult_neg }
	if = { limit = { has_character_flag = movement_speed_flag } remove_all_character_modifier_instances = movement_speed remove_all_character_modifier_instances = movement_speed_neg }
	if = { limit = { has_character_flag = retreat_losses_flag } remove_all_character_modifier_instances = retreat_losses remove_all_character_modifier_instances = retreat_losses_neg }
	if = { limit = { has_character_flag = hard_casualty_modifier_flag } remove_all_character_modifier_instances = hard_casualty_modifier remove_all_character_modifier_instances = hard_casualty_modifier_neg }
	if = { limit = { has_character_flag = enemy_hard_casualty_modifier_flag } remove_all_character_modifier_instances = enemy_hard_casualty_modifier remove_all_character_modifier_instances = enemy_hard_casualty_modifier_neg }
	if = { limit = { has_character_flag = advantage_flag } remove_all_character_modifier_instances = advantage remove_all_character_modifier_instances = advantage_neg }
	if = { limit = { has_character_flag = attacker_advantage_flag } remove_all_character_modifier_instances = attacker_advantage remove_all_character_modifier_instances = attacker_advantage_neg }
	if = { limit = { has_character_flag = defender_advantage_flag } remove_all_character_modifier_instances = defender_advantage remove_all_character_modifier_instances = defender_advantage_neg }
	if = { limit = { has_character_flag = enemy_terrain_advantage_flag } remove_all_character_modifier_instances = enemy_terrain_advantage remove_all_character_modifier_instances = enemy_terrain_advantage_neg }
	if = { limit = { has_character_flag = tolerance_advantage_mod_flag } remove_all_character_modifier_instances = tolerance_advantage remove_all_character_modifier_instances = tolerance_advantage_neg }
	if = { limit = { has_character_flag = advantage_against_coreligionists_flag } remove_all_character_modifier_instances = advantage_against_coreligionists remove_all_character_modifier_instances = advantage_against_coreligionists_neg }
	if = { limit = { has_character_flag = controlled_province_advantage_flag } remove_all_character_modifier_instances = controlled_province_advantage remove_all_character_modifier_instances = controlled_province_advantage_neg }
	if = { limit = { has_character_flag = raid_speed_flag } remove_all_character_modifier_instances = raid_speed remove_all_character_modifier_instances = raid_speed_neg }
	if = { limit = { has_character_flag = hostile_county_attrition_flag } remove_all_character_modifier_instances = hostile_county_attrition remove_all_character_modifier_instances = hostile_county_attrition_neg }
	if = { limit = { has_character_flag = supply_duration_flag } remove_all_character_modifier_instances = supply_duration remove_all_character_modifier_instances = supply_duration_neg }
	if = { limit = { has_character_flag = supply_limit_mult_flag } remove_all_character_modifier_instances = supply_limit_mult remove_all_character_modifier_instances = supply_limit_mult_neg }
	if = { limit = { has_character_flag = supply_limit_flag } remove_all_character_modifier_instances = supply_limit remove_all_character_modifier_instances = supply_limit_neg }
	if = { limit = { has_character_flag = fort_level_flag } remove_all_character_modifier_instances = fort_level remove_all_character_modifier_instances = fort_level_neg }
	if = { limit = { has_character_flag = cultural_head_fascination_flag } remove_all_character_modifier_instances = cultural_head_fascination remove_all_character_modifier_instances = cultural_head_fascination_neg }
	if = { limit = { has_character_flag = cultural_head_fascination_mult_flag } remove_all_character_modifier_instances = cultural_head_fascination_mult remove_all_character_modifier_instances = cultural_head_fascination_mult_neg }
	if = { limit = { has_character_flag = monthly_diplomacy_lifestyle_xp_gain_mult_flag } remove_all_character_modifier_instances = monthly_diplomacy_lifestyle_xp_gain_mult remove_all_character_modifier_instances = monthly_diplomacy_lifestyle_xp_gain_mult_neg }
	if = { limit = { has_character_flag = monthly_martial_lifestyle_xp_gain_mult_flag } remove_all_character_modifier_instances = monthly_martial_lifestyle_xp_gain_mult remove_all_character_modifier_instances = monthly_martial_lifestyle_xp_gain_mult_neg }
	if = { limit = { has_character_flag = monthly_stewardship_lifestyle_xp_gain_mult_flag } remove_all_character_modifier_instances = monthly_stewardship_lifestyle_xp_gain_mult remove_all_character_modifier_instances = monthly_stewardship_lifestyle_xp_gain_mult_neg }
	if = { limit = { has_character_flag = monthly_intrigue_lifestyle_xp_gain_mult_flag } remove_all_character_modifier_instances = monthly_intrigue_lifestyle_xp_gain_mult remove_all_character_modifier_instances = monthly_intrigue_lifestyle_xp_gain_mult_neg }
	if = { limit = { has_character_flag = monthly_learning_lifestyle_xp_gain_mult_flag } remove_all_character_modifier_instances = monthly_learning_lifestyle_xp_gain_mult remove_all_character_modifier_instances = monthly_learning_lifestyle_xp_gain_mult_neg }
	if = { limit = { has_character_flag = monthly_lifestyle_xp_gain_mult_flag } remove_all_character_modifier_instances = monthly_lifestyle_xp_gain_mult remove_all_character_modifier_instances = monthly_lifestyle_xp_gain_mult_neg }
}

reset_all_modifier_instances = {
	if = { limit = { has_character_modifier = diplomacy_per_prestige_level } remove_all_character_modifier_instances = diplomacy_per_prestige_level }
	if = { limit = { has_character_modifier = martial_per_prestige_level } remove_all_character_modifier_instances = martial_per_prestige_level }
	if = { limit = { has_character_modifier = stewardship_per_prestige_level } remove_all_character_modifier_instances = stewardship_per_prestige_level }
	if = { limit = { has_character_modifier = intrigue_per_prestige_level } remove_all_character_modifier_instances = intrigue_per_prestige_level }
	if = { limit = { has_character_modifier = learning_per_prestige_level } remove_all_character_modifier_instances = learning_per_prestige_level }
	if = { limit = { has_character_modifier = prowess_per_prestige_level } remove_all_character_modifier_instances = prowess_per_prestige_level }
	if = { limit = { has_character_modifier = monthly_prestige } remove_all_character_modifier_instances = monthly_prestige }
	if = { limit = { has_character_modifier = monthly_prestige_gain_mult } remove_all_character_modifier_instances = monthly_prestige_gain_mult }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal } remove_all_character_modifier_instances = monthly_prestige_gain_per_happy_powerful_vassal }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal_mult } remove_all_character_modifier_instances = monthly_prestige_gain_per_happy_powerful_vassal_mult }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_dread } remove_all_character_modifier_instances = monthly_prestige_gain_per_dread }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_dread_mult } remove_all_character_modifier_instances = monthly_prestige_gain_per_dread_mult }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_knight } remove_all_character_modifier_instances = monthly_prestige_gain_per_knight }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_knight_mult } remove_all_character_modifier_instances = monthly_prestige_gain_per_knight_mult }
	if = { limit = { has_character_modifier = monthly_prestige_from_buildings_mult } remove_all_character_modifier_instances = monthly_prestige_from_buildings_mult }
	if = { limit = { has_character_modifier = prestige_level_impact_mult } remove_all_character_modifier_instances = prestige_level_impact_mult }
	if = { limit = { has_character_modifier = diplomacy_per_piety_level } remove_all_character_modifier_instances = diplomacy_per_piety_level }
	if = { limit = { has_character_modifier = martial_per_piety_level } remove_all_character_modifier_instances = martial_per_piety_level }
	if = { limit = { has_character_modifier = stewardship_per_piety_level } remove_all_character_modifier_instances = stewardship_per_piety_level }
	if = { limit = { has_character_modifier = intrigue_per_piety_level } remove_all_character_modifier_instances = intrigue_per_piety_level }
	if = { limit = { has_character_modifier = learning_per_piety_level } remove_all_character_modifier_instances = learning_per_piety_level }
	if = { limit = { has_character_modifier = prowess_per_piety_level } remove_all_character_modifier_instances = prowess_per_piety_level }
	if = { limit = { has_character_modifier = monthly_piety } remove_all_character_modifier_instances = monthly_piety }
	if = { limit = { has_character_modifier = monthly_piety_gain_mult } remove_all_character_modifier_instances = monthly_piety_gain_mult }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_happy_powerful_vassal } remove_all_character_modifier_instances = monthly_piety_gain_per_happy_powerful_vassal }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_happy_powerful_vassal_mult } remove_all_character_modifier_instances = monthly_piety_gain_per_happy_powerful_vassal_mult }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_dread } remove_all_character_modifier_instances = monthly_piety_gain_per_dread }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_dread_mult } remove_all_character_modifier_instances = monthly_piety_gain_per_dread_mult }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_knight } remove_all_character_modifier_instances = monthly_piety_gain_per_knight }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_knight_mult } remove_all_character_modifier_instances = monthly_piety_gain_per_knight_mult }
	if = { limit = { has_character_modifier = monthly_piety_from_buildings_mult } remove_all_character_modifier_instances = monthly_piety_from_buildings_mult }
	if = { limit = { has_character_modifier = piety_level_impact_mult } remove_all_character_modifier_instances = piety_level_impact_mult }
	if = { limit = { has_character_modifier = faith_conversion_piety_cost } remove_all_character_modifier_instances = faith_conversion_piety_cost }
	if = { limit = { has_character_modifier = faith_conversion_piety_cost_mult } remove_all_character_modifier_instances = faith_conversion_piety_cost_mult }
	if = { limit = { has_character_modifier = faith_creation_piety_cost } remove_all_character_modifier_instances = faith_creation_piety_cost }
	if = { limit = { has_character_modifier = faith_creation_piety_cost_mult } remove_all_character_modifier_instances = faith_creation_piety_cost_mult }
	if = { limit = { has_character_modifier = monthly_income } remove_all_character_modifier_instances = monthly_income }
	if = { limit = { has_character_modifier = monthly_income_mult } remove_all_character_modifier_instances = monthly_income_mult }
	if = { limit = { has_character_modifier = monthly_war_income } remove_all_character_modifier_instances = monthly_war_income }
	if = { limit = { has_character_modifier = monthly_war_income_mult } remove_all_character_modifier_instances = monthly_war_income_mult }
	if = { limit = { has_character_modifier = tax_mult } remove_all_character_modifier_instances = tax_mult }
	if = { limit = { has_character_modifier = domain_tax_mult } remove_all_character_modifier_instances = domain_tax_mult }
	if = { limit = { has_character_modifier = domain_tax_same_faith_mult } remove_all_character_modifier_instances = domain_tax_same_faith_mult }
	if = { limit = { has_character_modifier = domain_tax_different_faith_mult } remove_all_character_modifier_instances = domain_tax_different_faith_mult }
	if = { limit = { has_character_modifier = domain_tax_mult_even_if_baron } remove_all_character_modifier_instances = domain_tax_mult_even_if_baron }
	if = { limit = { has_character_modifier = domain_tax_same_faith_mult_even_if_baron } remove_all_character_modifier_instances = domain_tax_same_faith_mult_even_if_baron }
	if = { limit = { has_character_modifier = domain_tax_different_faith_mult_even_if_baron } remove_all_character_modifier_instances = domain_tax_different_faith_mult_even_if_baron }
	if = { limit = { has_character_modifier = vassal_tax_mult } remove_all_character_modifier_instances = vassal_tax_mult }
	if = { limit = { has_character_modifier = monthly_income_per_stress_level } remove_all_character_modifier_instances = monthly_income_per_stress_level }
	if = { limit = { has_character_modifier = monthly_income_per_stress_level_mult } remove_all_character_modifier_instances = monthly_income_per_stress_level_mult }
	if = { limit = { has_character_modifier = opinion_of_male_rulers } remove_all_character_modifier_instances = opinion_of_male_rulers }
	if = { limit = { has_character_modifier = opinion_of_female_rulers } remove_all_character_modifier_instances = opinion_of_female_rulers }
	if = { limit = { has_character_modifier = opinion_of_same_culture } remove_all_character_modifier_instances = opinion_of_same_culture }
	if = { limit = { has_character_modifier = opinion_of_different_culture } remove_all_character_modifier_instances = opinion_of_different_culture }
	if = { limit = { has_character_modifier = opinion_of_same_faith } remove_all_character_modifier_instances = opinion_of_same_faith }
	if = { limit = { has_character_modifier = opinion_of_different_faith } remove_all_character_modifier_instances = opinion_of_different_faith }
	if = { limit = { has_character_modifier = opinion_of_liege } remove_all_character_modifier_instances = opinion_of_liege }
	if = { limit = { has_character_modifier = opinion_of_vassal } remove_all_character_modifier_instances = opinion_of_vassal }
	if = { limit = { has_character_modifier = opinion_of_different_faith_liege } remove_all_character_modifier_instances = opinion_of_different_faith_liege }
	if = { limit = { has_character_modifier = same_culture_opinion } remove_all_character_modifier_instances = same_culture_opinion }
	if = { limit = { has_character_modifier = different_culture_opinion } remove_all_character_modifier_instances = different_culture_opinion }
	if = { limit = { has_character_modifier = same_faith_opinion } remove_all_character_modifier_instances = same_faith_opinion }
	if = { limit = { has_character_modifier = different_faith_opinion } remove_all_character_modifier_instances = different_faith_opinion }
	if = { limit = { has_character_modifier = direct_vassal_opinion } remove_all_character_modifier_instances = direct_vassal_opinion }
	if = { limit = { has_character_modifier = fellow_vassal_opinion } remove_all_character_modifier_instances = fellow_vassal_opinion }
	if = { limit = { has_character_modifier = independent_ruler_opinion } remove_all_character_modifier_instances = independent_ruler_opinion }
	if = { limit = { has_character_modifier = general_opinion } remove_all_character_modifier_instances = general_opinion }
	if = { limit = { has_character_modifier = attraction_opinion } remove_all_character_modifier_instances = attraction_opinion }
	if = { limit = { has_character_modifier = religious_vassal_opinion } remove_all_character_modifier_instances = religious_vassal_opinion }
	if = { limit = { has_character_modifier = religious_head_opinion } remove_all_character_modifier_instances = religious_head_opinion }
	if = { limit = { has_character_modifier = spouse_opinion } remove_all_character_modifier_instances = spouse_opinion }
	if = { limit = { has_character_modifier = twin_opinion } remove_all_character_modifier_instances = twin_opinion }
	if = { limit = { has_character_modifier = close_relative_opinion } remove_all_character_modifier_instances = close_relative_opinion }
	if = { limit = { has_character_modifier = dynasty_house_opinion } remove_all_character_modifier_instances = dynasty_house_opinion }
	if = { limit = { has_character_modifier = dynasty_opinion } remove_all_character_modifier_instances = dynasty_opinion }
	if = { limit = { has_character_modifier = liege_opinion } remove_all_character_modifier_instances = liege_opinion }
	if = { limit = { has_character_modifier = different_faith_liege_opinion } remove_all_character_modifier_instances = different_faith_liege_opinion }
	if = { limit = { has_character_modifier = vassal_opinion } remove_all_character_modifier_instances = vassal_opinion }
	if = { limit = { has_character_modifier = clergy_opinion } remove_all_character_modifier_instances = clergy_opinion }
	if = { limit = { has_character_modifier = councillor_opinion } remove_all_character_modifier_instances = councillor_opinion }
	if = { limit = { has_character_modifier = realm_priest_opinion } remove_all_character_modifier_instances = realm_priest_opinion }
	if = { limit = { has_character_modifier = powerful_vassal_opinion } remove_all_character_modifier_instances = powerful_vassal_opinion }
	if = { limit = { has_character_modifier = courtier_opinion } remove_all_character_modifier_instances = courtier_opinion }
	if = { limit = { has_character_modifier = guest_opinion } remove_all_character_modifier_instances = guest_opinion }
	if = { limit = { has_character_modifier = courtier_and_guest_opinion } remove_all_character_modifier_instances = courtier_and_guest_opinion }
	if = { limit = { has_character_modifier = prisoner_opinion } remove_all_character_modifier_instances = prisoner_opinion }
	if = { limit = { has_character_modifier = player_heir_opinion } remove_all_character_modifier_instances = player_heir_opinion }
	if = { limit = { has_character_modifier = child_opinion } remove_all_character_modifier_instances = child_opinion }
	if = { limit = { has_character_modifier = child_except_player_heir_opinion } remove_all_character_modifier_instances = child_except_player_heir_opinion }
	if = { limit = { has_character_modifier = eligible_child_opinion } remove_all_character_modifier_instances = eligible_child_opinion }
	if = { limit = { has_character_modifier = eligible_child_except_player_heir_opinion } remove_all_character_modifier_instances = eligible_child_except_player_heir_opinion }
	if = { limit = { has_character_modifier = county_opinion_add } remove_all_character_modifier_instances = county_opinion_add }
	if = { limit = { has_character_modifier = different_faith_county_opinion_mult } remove_all_character_modifier_instances = different_faith_county_opinion_mult }
	if = { limit = { has_character_modifier = county_opinion_add_even_if_baron } remove_all_character_modifier_instances = county_opinion_add_even_if_baron }
	if = { limit = { has_character_modifier = different_faith_county_opinion_mult_even_if_baron } remove_all_character_modifier_instances = different_faith_county_opinion_mult_even_if_baron }
	if = { limit = { has_character_modifier = fertility_modifier } remove_all_character_modifier_instances = fertility_modifier }
	if = { limit = { has_character_modifier = health_modifier } remove_all_character_modifier_instances = health_modifier }
	if = { limit = { has_character_modifier = negate_fertility_penalty } remove_all_character_modifier_instances = negate_fertility_penalty }
	if = { limit = { has_character_modifier = negate_health_penalty } remove_all_character_modifier_instances = negate_health_penalty }
	if = { limit = { has_character_modifier = monthly_dynasty_prestige } remove_all_character_modifier_instances = monthly_dynasty_prestige }
	if = { limit = { has_character_modifier = monthly_dynasty_prestige_mult } remove_all_character_modifier_instances = monthly_dynasty_prestige_mult }
	#if = { limit = { has_character_modifier = random_skills_per_child } remove_all_character_modifier_instances = random_skills_per_child }
	if = { limit = { has_character_modifier = inbreeding_chance } remove_all_character_modifier_instances = inbreeding_chance }
	if = { limit = { has_character_modifier = positive_inactive_inheritance_chance } remove_all_character_modifier_instances = positive_inactive_inheritance_chance }
	if = { limit = { has_character_modifier = negative_inactive_inheritance_chance } remove_all_character_modifier_instances = negative_inactive_inheritance_chance }
	if = { limit = { has_character_modifier = positive_random_genetic_chance } remove_all_character_modifier_instances = positive_random_genetic_chance }
	if = { limit = { has_character_modifier = negative_random_genetic_chance } remove_all_character_modifier_instances = negative_random_genetic_chance }
	if = { limit = { has_character_modifier = genetic_trait_strengthen_chance } remove_all_character_modifier_instances = genetic_trait_strengthen_chance }
	if = { limit = { has_character_modifier = life_expectancy_modifier } remove_all_character_modifier_instances = life_expectancy_modifier }
	if = { limit = { has_character_modifier = years_of_fertility } remove_all_character_modifier_instances = years_of_fertility }
	if = { limit = { has_character_modifier = diplomacy_per_stress_level } remove_all_character_modifier_instances = diplomacy_per_stress_level }
	if = { limit = { has_character_modifier = martial_per_stress_level } remove_all_character_modifier_instances = martial_per_stress_level }
	if = { limit = { has_character_modifier = stewardship_per_stress_level } remove_all_character_modifier_instances = stewardship_per_stress_level }
	if = { limit = { has_character_modifier = intrigue_per_piety_level } remove_all_character_modifier_instances = intrigue_per_piety_level }
	if = { limit = { has_character_modifier = learning_per_stress_level } remove_all_character_modifier_instances = learning_per_stress_level }
	if = { limit = { has_character_modifier = prowess_per_stress_level } remove_all_character_modifier_instances = prowess_per_stress_level }
	if = { limit = { has_character_modifier = stress_gain_mult } remove_all_character_modifier_instances = stress_gain_mult }
	if = { limit = { has_character_modifier = stress_loss_mult } remove_all_character_modifier_instances = stress_loss_mult }
	#if = { limit = { has_character_modifier = scheme_power } remove_all_character_modifier_instances = scheme_power }
	#if = { limit = { has_character_modifier = scheme_resistance } remove_all_character_modifier_instances = scheme_resistance }
	#if = { limit = { has_character_modifier = scheme_secrecy } remove_all_character_modifier_instances = scheme_secrecy }
	#if = { limit = { has_character_modifier = scheme_success_chance } remove_all_character_modifier_instances = scheme_success_chance }
	if = { limit = { has_character_modifier = hostile_scheme_power } remove_all_character_modifier_instances = hostile_scheme_power }
	if = { limit = { has_character_modifier = personal_scheme_power } remove_all_character_modifier_instances = personal_scheme_power }
	if = { limit = { has_character_modifier = hostile_scheme_resistance } remove_all_character_modifier_instances = hostile_scheme_resistance }
	if = { limit = { has_character_modifier = personal_scheme_resistance } remove_all_character_modifier_instances = personal_scheme_resistance }
	if = { limit = { has_character_modifier = diplomacy_scheme_power } remove_all_character_modifier_instances = diplomacy_scheme_power }
	if = { limit = { has_character_modifier = intrigue_scheme_power } remove_all_character_modifier_instances = intrigue_scheme_power }
	if = { limit = { has_character_modifier = stewardship_scheme_power } remove_all_character_modifier_instances = stewardship_scheme_power }
	if = { limit = { has_character_modifier = martial_scheme_power } remove_all_character_modifier_instances = martial_scheme_power }
	if = { limit = { has_character_modifier = prowess_scheme_power } remove_all_character_modifier_instances = prowess_scheme_power }
	if = { limit = { has_character_modifier = learning_scheme_power } remove_all_character_modifier_instances = learning_scheme_power }
	if = { limit = { has_character_modifier = diplomacy_scheme_resistance } remove_all_character_modifier_instances = diplomacy_scheme_resistance }
	if = { limit = { has_character_modifier = intrigue_scheme_resistance } remove_all_character_modifier_instances = intrigue_scheme_resistance }
	if = { limit = { has_character_modifier = stewardship_scheme_resistance } remove_all_character_modifier_instances = stewardship_scheme_resistance }
	if = { limit = { has_character_modifier = martial_scheme_resistance } remove_all_character_modifier_instances = martial_scheme_resistance }
	if = { limit = { has_character_modifier = prowess_scheme_resistance } remove_all_character_modifier_instances = prowess_scheme_resistance }
	if = { limit = { has_character_modifier = learning_scheme_resistance } remove_all_character_modifier_instances = learning_scheme_resistance }
	if = { limit = { has_character_modifier = scheme_discovery_chance_mult } remove_all_character_modifier_instances = scheme_discovery_chance_mult }
	if = { limit = { has_character_modifier = max_personal_schemes } remove_all_character_modifier_instances = max_personal_schemes }
	if = { limit = { has_character_modifier = max_hostile_schemes } remove_all_character_modifier_instances = max_hostile_schemes }
	if = { limit = { has_character_modifier = owned_hostile_scheme_success_chance } remove_all_character_modifier_instances = owned_hostile_scheme_success_chance }
	if = { limit = { has_character_modifier = owned_personal_scheme_success_chance } remove_all_character_modifier_instances = owned_personal_scheme_success_chance }
	if = { limit = { has_character_modifier = enemy_hostile_scheme_success_chance } remove_all_character_modifier_instances = enemy_hostile_scheme_success_chance }
	if = { limit = { has_character_modifier = enemy_personal_scheme_success_chance } remove_all_character_modifier_instances = enemy_personal_scheme_success_chance }
	if = { limit = { has_character_modifier = monthly_dread } remove_all_character_modifier_instances = monthly_dread }
	if = { limit = { has_character_modifier = dread_gain_mult } remove_all_character_modifier_instances = dread_gain_mult }
	if = { limit = { has_character_modifier = dread_loss_mult } remove_all_character_modifier_instances = dread_loss_mult }
	if = { limit = { has_character_modifier = tyranny_gain_mult } remove_all_character_modifier_instances = tyranny_gain_mult }
	if = { limit = { has_character_modifier = tyranny_loss_mult } remove_all_character_modifier_instances = tyranny_loss_mult }
	if = { limit = { has_character_modifier = monthly_tyranny } remove_all_character_modifier_instances = monthly_tyranny }
	if = { limit = { has_character_modifier = dread_baseline } remove_all_character_modifier_instances = dread_baseline }
	if = { limit = { has_character_modifier = dread_decay } remove_all_character_modifier_instances = dread_decay }
	if = { limit = { has_character_modifier = dread_decay_mult } remove_all_character_modifier_instances = dread_decay_mult }
	if = { limit = { has_character_modifier = dread_per_tyranny } remove_all_character_modifier_instances = dread_per_tyranny }
	if = { limit = { has_character_modifier = dread_per_tyranny_mult } remove_all_character_modifier_instances = dread_per_tyranny_mult }
	if = { limit = { has_character_modifier = domain_limit } remove_all_character_modifier_instances = domain_limit }
	if = { limit = { has_character_modifier = vassal_limit } remove_all_character_modifier_instances = vassal_limit }
	if = { limit = { has_character_modifier = short_reign_duration_mult } remove_all_character_modifier_instances = short_reign_duration_mult }
	if = { limit = { has_character_modifier = long_reign_bonus_mult } remove_all_character_modifier_instances = long_reign_bonus_mult }
	if = { limit = { has_character_modifier = diplomatic_range_mult } remove_all_character_modifier_instances = diplomatic_range_mult }
	if = { limit = { has_character_modifier = title_creation_cost } remove_all_character_modifier_instances = title_creation_cost }
	if = { limit = { has_character_modifier = title_creation_cost_mult } remove_all_character_modifier_instances = title_creation_cost_mult }
	if = { limit = { has_character_modifier = vassal_tax_contribution } remove_all_character_modifier_instances = vassal_tax_contribution }
	if = { limit = { has_character_modifier = vassal_tax_contribution_mult } remove_all_character_modifier_instances = vassal_tax_contribution_mult }
	if = { limit = { has_character_modifier = intimidated_vassal_tax_contribution } remove_all_character_modifier_instances = intimidated_vassal_tax_contribution }
	if = { limit = { has_character_modifier = intimidated_vassal_tax_contribution_mult } remove_all_character_modifier_instances = intimidated_vassal_tax_contribution_mult }
	if = { limit = { has_character_modifier = cowed_vassal_tax_contribution } remove_all_character_modifier_instances = cowed_vassal_tax_contribution }
	if = { limit = { has_character_modifier = cowed_vassal_tax_contribution_mult } remove_all_character_modifier_instances = cowed_vassal_tax_contribution_mult }
	if = { limit = { has_character_modifier = vassal_levy_contribution } remove_all_character_modifier_instances = vassal_levy_contribution }
	if = { limit = { has_character_modifier = vassal_levy_contribution_mult } remove_all_character_modifier_instances = vassal_levy_contribution_mult }
	if = { limit = { has_character_modifier = intimidated_vassal_levy_contribution } remove_all_character_modifier_instances = intimidated_vassal_levy_contribution }
	if = { limit = { has_character_modifier = intimidated_vassal_levy_contribution_mult } remove_all_character_modifier_instances = intimidated_vassal_levy_contribution_mult }
	if = { limit = { has_character_modifier = cowed_vassal_levy_contribution } remove_all_character_modifier_instances = cowed_vassal_levy_contribution }
	if = { limit = { has_character_modifier = cowed_vassal_levy_contribution_mult } remove_all_character_modifier_instances = cowed_vassal_levy_contribution_mult }
	if = { limit = { has_character_modifier = happy_powerful_vassal_tax_contribution } remove_all_character_modifier_instances = happy_powerful_vassal_tax_contribution }
	if = { limit = { has_character_modifier = happy_powerful_vassal_tax_contribution_mult } remove_all_character_modifier_instances = happy_powerful_vassal_tax_contribution_mult }
	if = { limit = { has_character_modifier = happy_powerful_vassal_levy_contribution } remove_all_character_modifier_instances = happy_powerful_vassal_levy_contribution }
	if = { limit = { has_character_modifier = happy_powerful_vassal_levy_contribution_mult } remove_all_character_modifier_instances = happy_powerful_vassal_levy_contribution_mult }
	if = { limit = { has_character_modifier = build_speed } remove_all_character_modifier_instances = build_speed }
	if = { limit = { has_character_modifier = build_gold_cost } remove_all_character_modifier_instances = build_gold_cost }
	if = { limit = { has_character_modifier = build_piety_cost } remove_all_character_modifier_instances = build_piety_cost }
	if = { limit = { has_character_modifier = build_prestige_cost } remove_all_character_modifier_instances = build_prestige_cost }
	if = { limit = { has_character_modifier = holding_build_speed } remove_all_character_modifier_instances = holding_build_speed }
	if = { limit = { has_character_modifier = holding_build_gold_cost } remove_all_character_modifier_instances = holding_build_gold_cost }
	if = { limit = { has_character_modifier = holding_build_piety_cost } remove_all_character_modifier_instances = holding_build_piety_cost }
	if = { limit = { has_character_modifier = holding_build_prestige_cost } remove_all_character_modifier_instances = holding_build_prestige_cost }
	if = { limit = { has_character_modifier = development_growth_factor } remove_all_character_modifier_instances = development_growth_factor }
	if = { limit = { has_character_modifier = development_growth } remove_all_character_modifier_instances = development_growth }
	if = { limit = { has_character_modifier = character_capital_county_monthly_development_growth } remove_all_character_modifier_instances = character_capital_county_monthly_development_growth }
	if = { limit = { has_character_modifier = monthly_county_control_change } remove_all_character_modifier_instances = monthly_county_control_change }
	if = { limit = { has_character_modifier = monthly_county_control_change_factor } remove_all_character_modifier_instances = monthly_county_control_change_factor }
	if = { limit = { has_character_modifier = monthly_county_control_change_add_even_if_baron } remove_all_character_modifier_instances = monthly_county_control_change_add_even_if_baron }
	if = { limit = { has_character_modifier = monthly_county_control_change_factor_even_if_baron } remove_all_character_modifier_instances = monthly_county_control_change_factor_even_if_baron }
	if = { limit = { has_character_modifier = castle_holding_build_speed } remove_all_character_modifier_instances = castle_holding_build_speed }
	if = { limit = { has_character_modifier = castle_holding_build_gold_cost } remove_all_character_modifier_instances = castle_holding_build_gold_cost }
	if = { limit = { has_character_modifier = castle_holding_holding_build_speed } remove_all_character_modifier_instances = castle_holding_holding_build_speed }
	if = { limit = { has_character_modifier = castle_holding_holding_build_gold_cost } remove_all_character_modifier_instances = castle_holding_holding_build_gold_cost }
	if = { limit = { has_character_modifier = tribal_holding_build_speed } remove_all_character_modifier_instances = tribal_holding_build_speed }
	if = { limit = { has_character_modifier = tribal_holding_build_gold_cost } remove_all_character_modifier_instances = tribal_holding_build_gold_cost }
	if = { limit = { has_character_modifier = tribal_holding_holding_build_speed } remove_all_character_modifier_instances = tribal_holding_holding_build_speed }
	if = { limit = { has_character_modifier = tribal_holding_holding_build_gold_cost } remove_all_character_modifier_instances = tribal_holding_holding_build_gold_cost }
	if = { limit = { has_character_modifier = city_holding_build_speed } remove_all_character_modifier_instances = city_holding_build_speed }
	if = { limit = { has_character_modifier = city_holding_build_gold_cost } remove_all_character_modifier_instances = city_holding_build_gold_cost }
	if = { limit = { has_character_modifier = city_holding_holding_build_speed } remove_all_character_modifier_instances = city_holding_holding_build_speed }
	if = { limit = { has_character_modifier = city_holding_holding_build_gold_cost } remove_all_character_modifier_instances = city_holding_holding_build_gold_cost }
	if = { limit = { has_character_modifier = church_holding_build_speed } remove_all_character_modifier_instances = church_holding_build_speed }
	if = { limit = { has_character_modifier = church_holding_build_gold_cost } remove_all_character_modifier_instances = church_holding_build_gold_cost }
	if = { limit = { has_character_modifier = church_holding_holding_build_speed } remove_all_character_modifier_instances = church_holding_holding_build_speed }
	if = { limit = { has_character_modifier = church_holding_holding_build_gold_cost } remove_all_character_modifier_instances = church_holding_holding_build_gold_cost }
	if = { limit = { has_character_modifier = hostile_raid_time } remove_all_character_modifier_instances = hostile_raid_time }
	if = { limit = { has_character_modifier = levy_size } remove_all_character_modifier_instances = levy_size }
	if = { limit = { has_character_modifier = garrison_size } remove_all_character_modifier_instances = garrison_size }
	if = { limit = { has_character_modifier = levy_reinforcement_rate } remove_all_character_modifier_instances = levy_reinforcement_rate }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_same_faith } remove_all_character_modifier_instances = levy_reinforcement_rate_same_faith }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_different_faith } remove_all_character_modifier_instances = levy_reinforcement_rate_different_faith }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_even_if_baron } remove_all_character_modifier_instances = levy_reinforcement_rate_even_if_baron }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_same_faith_even_if_baron } remove_all_character_modifier_instances = levy_reinforcement_rate_same_faith_even_if_baron }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_different_faith_even_if_baron } remove_all_character_modifier_instances = levy_reinforcement_rate_different_faith_even_if_baron }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_friendly_territory } remove_all_character_modifier_instances = levy_reinforcement_rate_friendly_territory }
	#if = { limit = { has_character_modifier = mercenary_count_mult } remove_all_character_modifier_instances = mercenary_count_mult }
	if = { limit = { has_character_modifier = supply_capacity } remove_all_character_modifier_instances = supply_capacity }
	if = { limit = { has_character_modifier = supply_capacity_mult } remove_all_character_modifier_instances = supply_capacity_mult }
	if = { limit = { has_character_modifier = mercenary_hire_cost } remove_all_character_modifier_instances = mercenary_hire_cost }
	if = { limit = { has_character_modifier = mercenary_hire_cost_mult } remove_all_character_modifier_instances = mercenary_hire_cost_mult }
	if = { limit = { has_character_modifier = same_culture_mercenary_hire_cost } remove_all_character_modifier_instances = same_culture_mercenary_hire_cost }
	if = { limit = { has_character_modifier = same_culture_mercenary_hire_cost_mult } remove_all_character_modifier_instances = same_culture_mercenary_hire_cost_mult }
	if = { limit = { has_character_modifier = holy_order_hire_cost_mult } remove_all_character_modifier_instances = holy_order_hire_cost_mult }
	if = { limit = { has_character_modifier = holy_order_hire_cost } remove_all_character_modifier_instances = holy_order_hire_cost }
	if = { limit = { has_character_modifier = same_culture_holy_order_hire_cost_mult } remove_all_character_modifier_instances = same_culture_holy_order_hire_cost_mult }
	if = { limit = { has_character_modifier = same_culture_holy_order_hire_cost } remove_all_character_modifier_instances = same_culture_holy_order_hire_cost }
	if = { limit = { has_character_modifier = men_at_arms_maintenance } remove_all_character_modifier_instances = men_at_arms_maintenance }
	if = { limit = { has_character_modifier = men_at_arms_maintenance_per_dread_mult } remove_all_character_modifier_instances = men_at_arms_maintenance_per_dread_mult }
	if = { limit = { has_character_modifier = army_maintenance_mult } remove_all_character_modifier_instances = army_maintenance_mult }
	if = { limit = { has_character_modifier = knight_limit } remove_all_character_modifier_instances = knight_limit }
	if = { limit = { has_character_modifier = knight_effectiveness_mult } remove_all_character_modifier_instances = knight_effectiveness_mult }
	if = { limit = { has_character_modifier = pursue_efficiency } remove_all_character_modifier_instances = pursue_efficiency }
	if = { limit = { has_character_modifier = counter_efficiency } remove_all_character_modifier_instances = counter_efficiency }
	if = { limit = { has_character_modifier = min_combat_roll } remove_all_character_modifier_instances = min_combat_roll }
	if = { limit = { has_character_modifier = max_combat_roll } remove_all_character_modifier_instances = max_combat_roll }
	if = { limit = { has_character_modifier = men_at_arms_limit } remove_all_character_modifier_instances = men_at_arms_limit }
	if = { limit = { has_character_modifier = men_at_arms_cap } remove_all_character_modifier_instances = men_at_arms_cap }
	if = { limit = { has_character_modifier = embarkation_cost_mult } remove_all_character_modifier_instances = embarkation_cost_mult }
	if = { limit = { has_character_modifier = naval_movement_speed_mult } remove_all_character_modifier_instances = naval_movement_speed_mult }
	if = { limit = { has_character_modifier = siege_phase_time } remove_all_character_modifier_instances = siege_phase_time }
	if = { limit = { has_character_modifier = siege_morale_loss } remove_all_character_modifier_instances = siege_morale_loss }
	if = { limit = { has_character_modifier = revolting_siege_morale_loss } remove_all_character_modifier_instances = revolting_siege_morale_loss }
	if = { limit = { has_character_modifier = revolting_siege_morale_loss_mult } remove_all_character_modifier_instances = revolting_siege_morale_loss_mult }
	if = { limit = { has_character_modifier = movement_speed } remove_all_character_modifier_instances = movement_speed }
	if = { limit = { has_character_modifier = retreat_losses } remove_all_character_modifier_instances = retreat_losses }
	if = { limit = { has_character_modifier = hard_casualty_modifier } remove_all_character_modifier_instances = hard_casualty_modifier }
	if = { limit = { has_character_modifier = enemy_hard_casualty_modifier } remove_all_character_modifier_instances = enemy_hard_casualty_modifier }
	if = { limit = { has_character_modifier = advantage } remove_all_character_modifier_instances = advantage }
	if = { limit = { has_character_modifier = attacker_advantage } remove_all_character_modifier_instances = attacker_advantage }
	if = { limit = { has_character_modifier = defender_advantage } remove_all_character_modifier_instances = defender_advantage }
	if = { limit = { has_character_modifier = enemy_terrain_advantage } remove_all_character_modifier_instances = enemy_terrain_advantage }
	if = { limit = { has_character_modifier = tolerance_advantage } remove_all_character_modifier_instances = tolerance_advantage }
	if = { limit = { has_character_modifier = advantage_against_coreligionists } remove_all_character_modifier_instances = advantage_against_coreligionists }
	if = { limit = { has_character_modifier = controlled_province_advantage } remove_all_character_modifier_instances = controlled_province_advantage }
	if = { limit = { has_character_modifier = raid_speed } remove_all_character_modifier_instances = raid_speed }
	if = { limit = { has_character_modifier = hostile_county_attrition } remove_all_character_modifier_instances = hostile_county_attrition }
	if = { limit = { has_character_modifier = supply_duration } remove_all_character_modifier_instances = supply_duration }
	if = { limit = { has_character_modifier = supply_limit_mult } remove_all_character_modifier_instances = supply_limit_mult }
	if = { limit = { has_character_modifier = supply_limit } remove_all_character_modifier_instances = supply_limit }
	if = { limit = { has_character_modifier = fort_level } remove_all_character_modifier_instances = fort_level }
	if = { limit = { has_character_modifier = cultural_head_fascination } remove_all_character_modifier_instances = cultural_head_fascination }
	if = { limit = { has_character_modifier = cultural_head_fascination_mult } remove_all_character_modifier_instances = cultural_head_fascination_mult }
	if = { limit = { has_character_modifier = monthly_diplomacy_lifestyle_xp_gain_mult } remove_all_character_modifier_instances = monthly_diplomacy_lifestyle_xp_gain_mult }
	if = { limit = { has_character_modifier = monthly_martial_lifestyle_xp_gain_mult } remove_all_character_modifier_instances = monthly_martial_lifestyle_xp_gain_mult }
	if = { limit = { has_character_modifier = monthly_stewardship_lifestyle_xp_gain_mult } remove_all_character_modifier_instances = monthly_stewardship_lifestyle_xp_gain_mult }
	if = { limit = { has_character_modifier = monthly_intrigue_lifestyle_xp_gain_mult } remove_all_character_modifier_instances = monthly_intrigue_lifestyle_xp_gain_mult }
	if = { limit = { has_character_modifier = monthly_learning_lifestyle_xp_gain_mult } remove_all_character_modifier_instances = monthly_learning_lifestyle_xp_gain_mult }
	if = { limit = { has_character_modifier = monthly_lifestyle_xp_gain_mult } remove_all_character_modifier_instances = monthly_lifestyle_xp_gain_mult }
	if = { limit = { has_character_modifier = diplomacy_per_prestige_level_neg } remove_all_character_modifier_instances = diplomacy_per_prestige_level_neg }
	if = { limit = { has_character_modifier = martial_per_prestige_level_neg } remove_all_character_modifier_instances = martial_per_prestige_level_neg }
	if = { limit = { has_character_modifier = stewardship_per_prestige_level_neg } remove_all_character_modifier_instances = stewardship_per_prestige_level_neg }
	if = { limit = { has_character_modifier = intrigue_per_prestige_level_neg } remove_all_character_modifier_instances = intrigue_per_prestige_level_neg }
	if = { limit = { has_character_modifier = learning_per_prestige_level_neg } remove_all_character_modifier_instances = learning_per_prestige_level_neg }
	if = { limit = { has_character_modifier = prowess_per_prestige_level_neg } remove_all_character_modifier_instances = prowess_per_prestige_level_neg }
	if = { limit = { has_character_modifier = monthly_prestige_neg } remove_all_character_modifier_instances = monthly_prestige_neg }
	if = { limit = { has_character_modifier = monthly_prestige_gain_mult_neg } remove_all_character_modifier_instances = monthly_prestige_gain_mult_neg }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal_neg } remove_all_character_modifier_instances = monthly_prestige_gain_per_happy_powerful_vassal_neg }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal_mult_neg } remove_all_character_modifier_instances = monthly_prestige_gain_per_happy_powerful_vassal_mult_neg }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_dread_neg } remove_all_character_modifier_instances = monthly_prestige_gain_per_dread_neg }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_dread_mult_neg } remove_all_character_modifier_instances = monthly_prestige_gain_per_dread_mult_neg }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_knight_neg } remove_all_character_modifier_instances = monthly_prestige_gain_per_knight_neg }
	if = { limit = { has_character_modifier = monthly_prestige_gain_per_knight_mult_neg } remove_all_character_modifier_instances = monthly_prestige_gain_per_knight_mult_neg }
	if = { limit = { has_character_modifier = monthly_prestige_from_buildings_mult_neg } remove_all_character_modifier_instances = monthly_prestige_from_buildings_mult_neg }
	if = { limit = { has_character_modifier = prestige_level_impact_mult_neg } remove_all_character_modifier_instances = prestige_level_impact_mult_neg }
	if = { limit = { has_character_modifier = diplomacy_per_piety_level_neg } remove_all_character_modifier_instances = diplomacy_per_piety_level_neg }
	if = { limit = { has_character_modifier = martial_per_piety_level_neg } remove_all_character_modifier_instances = martial_per_piety_level_neg }
	if = { limit = { has_character_modifier = stewardship_per_piety_level_neg } remove_all_character_modifier_instances = stewardship_per_piety_level_neg }
	if = { limit = { has_character_modifier = intrigue_per_piety_level_neg } remove_all_character_modifier_instances = intrigue_per_piety_level_neg }
	if = { limit = { has_character_modifier = learning_per_piety_level_neg } remove_all_character_modifier_instances = learning_per_piety_level_neg }
	if = { limit = { has_character_modifier = prowess_per_piety_level_neg } remove_all_character_modifier_instances = prowess_per_piety_level_neg }
	if = { limit = { has_character_modifier = monthly_piety_neg } remove_all_character_modifier_instances = monthly_piety_neg }
	if = { limit = { has_character_modifier = monthly_piety_gain_mult_neg } remove_all_character_modifier_instances = monthly_piety_gain_mult_neg }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_happy_powerful_vassal_neg } remove_all_character_modifier_instances = monthly_piety_gain_per_happy_powerful_vassal_neg }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_happy_powerful_vassal_mult_neg } remove_all_character_modifier_instances = monthly_piety_gain_per_happy_powerful_vassal_mult_neg }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_dread_neg } remove_all_character_modifier_instances = monthly_piety_gain_per_dread_neg }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_dread_mult_neg } remove_all_character_modifier_instances = monthly_piety_gain_per_dread_mult_neg }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_knight_neg } remove_all_character_modifier_instances = monthly_piety_gain_per_knight_neg }
	if = { limit = { has_character_modifier = monthly_piety_gain_per_knight_mult_neg } remove_all_character_modifier_instances = monthly_piety_gain_per_knight_mult_neg }
	if = { limit = { has_character_modifier = monthly_piety_from_buildings_mult_neg } remove_all_character_modifier_instances = monthly_piety_from_buildings_mult_neg }
	if = { limit = { has_character_modifier = piety_level_impact_mult_neg } remove_all_character_modifier_instances = piety_level_impact_mult_neg }
	if = { limit = { has_character_modifier = faith_conversion_piety_cost_neg } remove_all_character_modifier_instances = faith_conversion_piety_cost_neg }
	if = { limit = { has_character_modifier = faith_conversion_piety_cost_mult_neg } remove_all_character_modifier_instances = faith_conversion_piety_cost_mult_neg }
	if = { limit = { has_character_modifier = faith_creation_piety_cost_neg } remove_all_character_modifier_instances = faith_creation_piety_cost_neg }
	if = { limit = { has_character_modifier = faith_creation_piety_cost_mult_neg } remove_all_character_modifier_instances = faith_creation_piety_cost_mult_neg }
	if = { limit = { has_character_modifier = monthly_income_neg } remove_all_character_modifier_instances = monthly_income_neg }
	if = { limit = { has_character_modifier = monthly_income_mult_neg } remove_all_character_modifier_instances = monthly_income_mult_neg }
	if = { limit = { has_character_modifier = monthly_war_income_neg } remove_all_character_modifier_instances = monthly_war_income_neg }
	if = { limit = { has_character_modifier = monthly_war_income_mult_neg } remove_all_character_modifier_instances = monthly_war_income_mult_neg }
	if = { limit = { has_character_modifier = tax_mult_neg } remove_all_character_modifier_instances = tax_mult_neg }
	if = { limit = { has_character_modifier = domain_tax_mult_neg } remove_all_character_modifier_instances = domain_tax_mult_neg }
	if = { limit = { has_character_modifier = domain_tax_same_faith_mult_neg } remove_all_character_modifier_instances = domain_tax_same_faith_mult_neg }
	if = { limit = { has_character_modifier = domain_tax_different_faith_mult_neg } remove_all_character_modifier_instances = domain_tax_different_faith_mult_neg }
	if = { limit = { has_character_modifier = domain_tax_mult_even_if_baron_neg } remove_all_character_modifier_instances = domain_tax_mult_even_if_baron_neg }
	if = { limit = { has_character_modifier = domain_tax_same_faith_mult_even_if_baron_neg } remove_all_character_modifier_instances = domain_tax_same_faith_mult_even_if_baron_neg }
	if = { limit = { has_character_modifier = domain_tax_different_faith_mult_even_if_baron_neg } remove_all_character_modifier_instances = domain_tax_different_faith_mult_even_if_baron_neg }
	if = { limit = { has_character_modifier = vassal_tax_mult_neg } remove_all_character_modifier_instances = vassal_tax_mult_neg }
	if = { limit = { has_character_modifier = monthly_income_per_stress_level_neg } remove_all_character_modifier_instances = monthly_income_per_stress_level_neg }
	if = { limit = { has_character_modifier = monthly_income_per_stress_level_mult_neg } remove_all_character_modifier_instances = monthly_income_per_stress_level_mult_neg }
	if = { limit = { has_character_modifier = opinion_of_male_rulers_neg } remove_all_character_modifier_instances = opinion_of_male_rulers_neg }
	if = { limit = { has_character_modifier = opinion_of_female_rulers_neg } remove_all_character_modifier_instances = opinion_of_female_rulers_neg }
	if = { limit = { has_character_modifier = opinion_of_same_culture_neg } remove_all_character_modifier_instances = opinion_of_same_culture_neg }
	if = { limit = { has_character_modifier = opinion_of_different_culture_neg } remove_all_character_modifier_instances = opinion_of_different_culture_neg }
	if = { limit = { has_character_modifier = opinion_of_same_faith_neg } remove_all_character_modifier_instances = opinion_of_same_faith_neg }
	if = { limit = { has_character_modifier = opinion_of_different_faith_neg } remove_all_character_modifier_instances = opinion_of_different_faith_neg }
	if = { limit = { has_character_modifier = opinion_of_liege_neg } remove_all_character_modifier_instances = opinion_of_liege_neg }
	if = { limit = { has_character_modifier = opinion_of_vassal_neg } remove_all_character_modifier_instances = opinion_of_vassal_neg }
	if = { limit = { has_character_modifier = opinion_of_different_faith_liege_neg } remove_all_character_modifier_instances = opinion_of_different_faith_liege_neg }
	if = { limit = { has_character_modifier = same_culture_opinion_neg } remove_all_character_modifier_instances = same_culture_opinion_neg }
	if = { limit = { has_character_modifier = different_culture_opinion_neg } remove_all_character_modifier_instances = different_culture_opinion_neg }
	if = { limit = { has_character_modifier = same_faith_opinion_neg } remove_all_character_modifier_instances = same_faith_opinion_neg }
	if = { limit = { has_character_modifier = different_faith_opinion_neg } remove_all_character_modifier_instances = different_faith_opinion_neg }
	if = { limit = { has_character_modifier = direct_vassal_opinion_neg } remove_all_character_modifier_instances = direct_vassal_opinion_neg }
	if = { limit = { has_character_modifier = fellow_vassal_opinion_neg } remove_all_character_modifier_instances = fellow_vassal_opinion_neg }
	if = { limit = { has_character_modifier = independent_ruler_opinion_neg } remove_all_character_modifier_instances = independent_ruler_opinion_neg }
	if = { limit = { has_character_modifier = general_opinion_neg } remove_all_character_modifier_instances = general_opinion_neg }
	if = { limit = { has_character_modifier = attraction_opinion_neg } remove_all_character_modifier_instances = attraction_opinion_neg }
	if = { limit = { has_character_modifier = religious_vassal_opinion_neg } remove_all_character_modifier_instances = religious_vassal_opinion_neg }
	if = { limit = { has_character_modifier = religious_head_opinion_neg } remove_all_character_modifier_instances = religious_head_opinion_neg }
	if = { limit = { has_character_modifier = spouse_opinion_neg } remove_all_character_modifier_instances = spouse_opinion_neg }
	if = { limit = { has_character_modifier = twin_opinion_neg } remove_all_character_modifier_instances = twin_opinion_neg }
	if = { limit = { has_character_modifier = close_relative_opinion_neg } remove_all_character_modifier_instances = close_relative_opinion_neg }
	if = { limit = { has_character_modifier = dynasty_house_opinion_neg } remove_all_character_modifier_instances = dynasty_house_opinion_neg }
	if = { limit = { has_character_modifier = dynasty_opinion_neg } remove_all_character_modifier_instances = dynasty_opinion_neg }
	if = { limit = { has_character_modifier = liege_opinion_neg } remove_all_character_modifier_instances = liege_opinion_neg }
	if = { limit = { has_character_modifier = different_faith_liege_opinion_neg } remove_all_character_modifier_instances = different_faith_liege_opinion_neg }
	if = { limit = { has_character_modifier = vassal_opinion_neg } remove_all_character_modifier_instances = vassal_opinion_neg }
	if = { limit = { has_character_modifier = clergy_opinion_neg } remove_all_character_modifier_instances = clergy_opinion_neg }
	if = { limit = { has_character_modifier = councillor_opinion_neg } remove_all_character_modifier_instances = councillor_opinion_neg }
	if = { limit = { has_character_modifier = realm_priest_opinion_neg } remove_all_character_modifier_instances = realm_priest_opinion_neg }
	if = { limit = { has_character_modifier = powerful_vassal_opinion_neg } remove_all_character_modifier_instances = powerful_vassal_opinion_neg }
	if = { limit = { has_character_modifier = courtier_opinion_neg } remove_all_character_modifier_instances = courtier_opinion_neg }
	if = { limit = { has_character_modifier = guest_opinion_neg } remove_all_character_modifier_instances = guest_opinion_neg }
	if = { limit = { has_character_modifier = courtier_and_guest_opinion_neg } remove_all_character_modifier_instances = courtier_and_guest_opinion_neg }
	if = { limit = { has_character_modifier = prisoner_opinion_neg } remove_all_character_modifier_instances = prisoner_opinion_neg }
	if = { limit = { has_character_modifier = player_heir_opinion_neg } remove_all_character_modifier_instances = player_heir_opinion_neg }
	if = { limit = { has_character_modifier = child_opinion_neg } remove_all_character_modifier_instances = child_opinion_neg }
	if = { limit = { has_character_modifier = child_except_player_heir_opinion_neg } remove_all_character_modifier_instances = child_except_player_heir_opinion_neg }
	if = { limit = { has_character_modifier = eligible_child_opinion_neg } remove_all_character_modifier_instances = eligible_child_opinion_neg }
	if = { limit = { has_character_modifier = eligible_child_except_player_heir_opinion_neg } remove_all_character_modifier_instances = eligible_child_except_player_heir_opinion_neg }
	if = { limit = { has_character_modifier = county_opinion_neg } remove_all_character_modifier_instances = county_opinion_neg }
	if = { limit = { has_character_modifier = different_faith_county_opinion_mult_neg } remove_all_character_modifier_instances = different_faith_county_opinion_mult_neg }
	if = { limit = { has_character_modifier = county_opinion_add_even_if_baron_neg } remove_all_character_modifier_instances = county_opinion_add_even_if_baron_neg }
	if = { limit = { has_character_modifier = different_faith_county_opinion_mult_even_if_baron_neg } remove_all_character_modifier_instances = different_faith_county_opinion_mult_even_if_baron_neg }
	if = { limit = { has_character_modifier = fertility_modifier_neg } remove_all_character_modifier_instances = fertility_modifier_neg }
	if = { limit = { has_character_modifier = health_modifier_neg } remove_all_character_modifier_instances = health_modifier_neg }
	if = { limit = { has_character_modifier = negate_fertility_penalty_neg } remove_all_character_modifier_instances = negate_fertility_penalty_neg }
	if = { limit = { has_character_modifier = negate_health_penalty_neg } remove_all_character_modifier_instances = negate_health_penalty_neg }
	if = { limit = { has_character_modifier = monthly_dynasty_prestige_neg } remove_all_character_modifier_instances = monthly_dynasty_prestige_neg }
	if = { limit = { has_character_modifier = monthly_dynasty_prestige_mult_neg } remove_all_character_modifier_instances = monthly_dynasty_prestige_mult_neg }
	#if = { limit = { has_character_modifier = random_skills_per_child_neg } remove_all_character_modifier_instances = random_skills_per_child_neg }
	if = { limit = { has_character_modifier = inbreeding_chance_neg } remove_all_character_modifier_instances = inbreeding_chance_neg }
	if = { limit = { has_character_modifier = positive_inactive_inheritance_chance_neg } remove_all_character_modifier_instances = positive_inactive_inheritance_chance_neg }
	if = { limit = { has_character_modifier = negative_inactive_inheritance_chance_neg } remove_all_character_modifier_instances = negative_inactive_inheritance_chance_neg }
	if = { limit = { has_character_modifier = positive_random_genetic_chance_neg } remove_all_character_modifier_instances = positive_random_genetic_chance_neg }
	if = { limit = { has_character_modifier = negative_random_genetic_chance_neg } remove_all_character_modifier_instances = negative_random_genetic_chance_neg }
	if = { limit = { has_character_modifier = genetic_trait_strengthen_chance_neg } remove_all_character_modifier_instances = genetic_trait_strengthen_chance_neg }
	if = { limit = { has_character_modifier = life_expectancy_modifier_neg } remove_all_character_modifier_instances = life_expectancy_modifier_neg }
	if = { limit = { has_character_modifier = years_of_fertility_neg } remove_all_character_modifier_instances = years_of_fertility_neg }
	if = { limit = { has_character_modifier = diplomacy_per_stress_level_neg } remove_all_character_modifier_instances = diplomacy_per_stress_level_neg }
	if = { limit = { has_character_modifier = martial_per_stress_level_neg } remove_all_character_modifier_instances = martial_per_stress_level_neg }
	if = { limit = { has_character_modifier = stewardship_per_stress_level_neg } remove_all_character_modifier_instances = stewardship_per_stress_level_neg }
	if = { limit = { has_character_modifier = intrigue_per_stress_level_neg } remove_all_character_modifier_instances = intrigue_per_stress_level_neg }
	if = { limit = { has_character_modifier = learning_per_stress_level_neg } remove_all_character_modifier_instances = learning_per_stress_level_neg }
	if = { limit = { has_character_modifier = prowess_per_stress_level_neg } remove_all_character_modifier_instances = prowess_per_stress_level_neg }
	if = { limit = { has_character_modifier = stress_gain_mult_neg } remove_all_character_modifier_instances = stress_gain_mult_neg }
	if = { limit = { has_character_modifier = stress_loss_mult_neg } remove_all_character_modifier_instances = stress_loss_mult_neg }
	#if = { limit = { has_character_modifier = scheme_power_neg } remove_all_character_modifier_instances = scheme_power_neg }
	#if = { limit = { has_character_modifier = scheme_resistance_neg } remove_all_character_modifier_instances = scheme_resistance_neg }
	#if = { limit = { has_character_modifier = scheme_secrecy_neg } remove_all_character_modifier_instances = scheme_secrecy_neg }
	#if = { limit = { has_character_modifier = scheme_success_chance_neg } remove_all_character_modifier_instances = scheme_success_chance_neg }
	if = { limit = { has_character_modifier = hostile_scheme_power_neg } remove_all_character_modifier_instances = hostile_scheme_power_neg }
	if = { limit = { has_character_modifier = personal_scheme_power_neg } remove_all_character_modifier_instances = personal_scheme_power_neg }
	if = { limit = { has_character_modifier = hostile_scheme_resistance_neg } remove_all_character_modifier_instances = hostile_scheme_resistance_neg }
	if = { limit = { has_character_modifier = personal_scheme_resistance_neg } remove_all_character_modifier_instances = personal_scheme_resistance_neg }
	if = { limit = { has_character_modifier = diplomacy_scheme_power_neg } remove_all_character_modifier_instances = diplomacy_scheme_power_neg }
	if = { limit = { has_character_modifier = intrigue_scheme_power_neg } remove_all_character_modifier_instances = intrigue_scheme_power_neg }
	if = { limit = { has_character_modifier = stewardship_scheme_power_neg } remove_all_character_modifier_instances = stewardship_scheme_power_neg }
	if = { limit = { has_character_modifier = martial_scheme_power_neg } remove_all_character_modifier_instances = martial_scheme_power_neg }
	if = { limit = { has_character_modifier = prowess_scheme_power_neg } remove_all_character_modifier_instances = prowess_scheme_power_neg }
	if = { limit = { has_character_modifier = learning_scheme_power_neg } remove_all_character_modifier_instances = learning_scheme_power_neg }
	if = { limit = { has_character_modifier = diplomacy_scheme_resistance_neg } remove_all_character_modifier_instances = diplomacy_scheme_resistance_neg }
	if = { limit = { has_character_modifier = intrigue_scheme_resistance_neg } remove_all_character_modifier_instances = intrigue_scheme_resistance_neg }
	if = { limit = { has_character_modifier = stewardship_scheme_resistance_neg } remove_all_character_modifier_instances = stewardship_scheme_resistance_neg }
	if = { limit = { has_character_modifier = martial_scheme_resistance_neg } remove_all_character_modifier_instances = martial_scheme_resistance_neg }
	if = { limit = { has_character_modifier = prowess_scheme_resistance_neg } remove_all_character_modifier_instances = prowess_scheme_resistance_neg }
	if = { limit = { has_character_modifier = learning_scheme_resistance_neg } remove_all_character_modifier_instances = learning_scheme_resistance_neg }
	if = { limit = { has_character_modifier = scheme_discovery_chance_mult_neg } remove_all_character_modifier_instances = scheme_discovery_chance_mult_neg }
	if = { limit = { has_character_modifier = max_personal_schemes_neg } remove_all_character_modifier_instances = max_personal_schemes_neg }
	if = { limit = { has_character_modifier = max_hostile_schemes_neg } remove_all_character_modifier_instances = max_hostile_schemes_neg }
	if = { limit = { has_character_modifier = owned_hostile_scheme_success_chance_neg } remove_all_character_modifier_instances = owned_hostile_scheme_success_chance_neg }
	if = { limit = { has_character_modifier = owned_personal_scheme_success_chance_neg } remove_all_character_modifier_instances = owned_personal_scheme_success_chance_neg }
	if = { limit = { has_character_modifier = enemy_hostile_scheme_success_chance_neg } remove_all_character_modifier_instances = enemy_hostile_scheme_success_chance_neg }
	if = { limit = { has_character_modifier = enemy_personal_scheme_success_chance_neg } remove_all_character_modifier_instances = enemy_personal_scheme_success_chance_neg }
	if = { limit = { has_character_modifier = monthly_dread_neg } remove_all_character_modifier_instances = monthly_dread_neg }
	if = { limit = { has_character_modifier = dread_gain_mult_neg } remove_all_character_modifier_instances = dread_gain_mult_neg }
	if = { limit = { has_character_modifier = dread_loss_mult_neg } remove_all_character_modifier_instances = dread_loss_mult_neg }
	if = { limit = { has_character_modifier = tyranny_gain_mult_neg } remove_all_character_modifier_instances = tyranny_gain_mult_neg }
	if = { limit = { has_character_modifier = tyranny_loss_mult_neg } remove_all_character_modifier_instances = tyranny_loss_mult_neg }
	if = { limit = { has_character_modifier = monthly_tyranny_neg } remove_all_character_modifier_instances = monthly_tyranny_neg }
	if = { limit = { has_character_modifier = dread_baseline_neg } remove_all_character_modifier_instances = dread_baseline_neg }
	if = { limit = { has_character_modifier = dread_decay_neg } remove_all_character_modifier_instances = dread_decay_neg }
	if = { limit = { has_character_modifier = dread_decay_mult_neg } remove_all_character_modifier_instances = dread_decay_mult_neg }
	if = { limit = { has_character_modifier = dread_per_tyranny_neg } remove_all_character_modifier_instances = dread_per_tyranny_neg }
	if = { limit = { has_character_modifier = dread_per_tyranny_mult_neg } remove_all_character_modifier_instances = dread_per_tyranny_mult_neg }
	if = { limit = { has_character_modifier = domain_limit_neg } remove_all_character_modifier_instances = domain_limit_neg }
	if = { limit = { has_character_modifier = vassal_limit_neg } remove_all_character_modifier_instances = vassal_limit_neg }
	if = { limit = { has_character_modifier = short_reign_duration_mult_neg } remove_all_character_modifier_instances = short_reign_duration_mult_neg }
	if = { limit = { has_character_modifier = long_reign_bonus_mult_neg } remove_all_character_modifier_instances = long_reign_bonus_mult_neg }
	if = { limit = { has_character_modifier = diplomatic_range_mult_neg } remove_all_character_modifier_instances = diplomatic_range_mult_neg }
	if = { limit = { has_character_modifier = title_creation_cost_neg } remove_all_character_modifier_instances = title_creation_cost_neg }
	if = { limit = { has_character_modifier = title_creation_cost_mult_neg } remove_all_character_modifier_instances = title_creation_cost_mult_neg }
	if = { limit = { has_character_modifier = vassal_tax_contribution_neg } remove_all_character_modifier_instances = vassal_tax_contribution_neg }
	if = { limit = { has_character_modifier = vassal_tax_contribution_mult_neg } remove_all_character_modifier_instances = vassal_tax_contribution_mult_neg }
	if = { limit = { has_character_modifier = intimidated_vassal_tax_contribution_neg } remove_all_character_modifier_instances = intimidated_vassal_tax_contribution_neg }
	if = { limit = { has_character_modifier = intimidated_vassal_tax_contribution_mult_neg } remove_all_character_modifier_instances = intimidated_vassal_tax_contribution_mult_neg }
	if = { limit = { has_character_modifier = cowed_vassal_tax_contribution_neg } remove_all_character_modifier_instances = cowed_vassal_tax_contribution_neg }
	if = { limit = { has_character_modifier = cowed_vassal_tax_contribution_mult_neg } remove_all_character_modifier_instances = cowed_vassal_tax_contribution_mult_neg }
	if = { limit = { has_character_modifier = vassal_levy_contribution_neg } remove_all_character_modifier_instances = vassal_levy_contribution_neg }
	if = { limit = { has_character_modifier = vassal_levy_contribution_mult_neg } remove_all_character_modifier_instances = vassal_levy_contribution_mult_neg }
	if = { limit = { has_character_modifier = intimidated_vassal_levy_contribution_neg } remove_all_character_modifier_instances = intimidated_vassal_levy_contribution_neg }
	if = { limit = { has_character_modifier = intimidated_vassal_levy_contribution_mult_neg } remove_all_character_modifier_instances = intimidated_vassal_levy_contribution_mult_neg }
	if = { limit = { has_character_modifier = cowed_vassal_levy_contribution_neg } remove_all_character_modifier_instances = cowed_vassal_levy_contribution_neg }
	if = { limit = { has_character_modifier = cowed_vassal_levy_contribution_mult_neg } remove_all_character_modifier_instances = cowed_vassal_levy_contribution_mult_neg }
	if = { limit = { has_character_modifier = happy_powerful_vassal_tax_contribution_neg } remove_all_character_modifier_instances = happy_powerful_vassal_tax_contribution_neg }
	if = { limit = { has_character_modifier = happy_powerful_vassal_tax_contribution_mult_neg } remove_all_character_modifier_instances = happy_powerful_vassal_tax_contribution_mult_neg }
	if = { limit = { has_character_modifier = happy_powerful_vassal_levy_contribution_neg } remove_all_character_modifier_instances = happy_powerful_vassal_levy_contribution_neg }
	if = { limit = { has_character_modifier = happy_powerful_vassal_levy_contribution_mult_neg } remove_all_character_modifier_instances = happy_powerful_vassal_levy_contribution_mult_neg }
	if = { limit = { has_character_modifier = build_speed_neg } remove_all_character_modifier_instances = build_speed_neg }
	if = { limit = { has_character_modifier = build_gold_cost_neg } remove_all_character_modifier_instances = build_gold_cost_neg }
	if = { limit = { has_character_modifier = build_piety_cost_neg } remove_all_character_modifier_instances = build_piety_cost_neg }
	if = { limit = { has_character_modifier = build_prestige_cost_neg } remove_all_character_modifier_instances = build_prestige_cost_neg }
	if = { limit = { has_character_modifier = holding_build_speed_neg } remove_all_character_modifier_instances = holding_build_speed_neg }
	if = { limit = { has_character_modifier = holding_build_gold_cost_neg } remove_all_character_modifier_instances = holding_build_gold_cost_neg }
	if = { limit = { has_character_modifier = holding_build_piety_cost_neg } remove_all_character_modifier_instances = holding_build_piety_cost_neg }
	if = { limit = { has_character_modifier = holding_build_prestige_cost_neg } remove_all_character_modifier_instances = holding_build_prestige_cost_neg }
	if = { limit = { has_character_modifier = development_growth_factor_neg } remove_all_character_modifier_instances = development_growth_factor_neg }
	if = { limit = { has_character_modifier = development_growth_neg } remove_all_character_modifier_instances = development_growth_neg }
	if = { limit = { has_character_modifier = character_capital_county_monthly_development_growth_neg } remove_all_character_modifier_instances = character_capital_county_monthly_development_growth_neg }
	if = { limit = { has_character_modifier = monthly_county_control_change_neg } remove_all_character_modifier_instances = monthly_county_control_change_neg }
	if = { limit = { has_character_modifier = monthly_county_control_change_factor_neg } remove_all_character_modifier_instances = monthly_county_control_change_factor_neg }
	if = { limit = { has_character_modifier = monthly_county_control_change_add_even_if_baron_neg } remove_all_character_modifier_instances = monthly_county_control_change_add_even_if_baron_neg }
	if = { limit = { has_character_modifier = monthly_county_control_change_factor_even_if_baron_neg } remove_all_character_modifier_instances = monthly_county_control_change_factor_even_if_baron_neg }
	if = { limit = { has_character_modifier = castle_holding_build_speed_neg } remove_all_character_modifier_instances = castle_holding_build_speed_neg }
	if = { limit = { has_character_modifier = castle_holding_build_gold_cost_neg } remove_all_character_modifier_instances = castle_holding_build_gold_cost_neg }
	if = { limit = { has_character_modifier = castle_holding_holding_build_speed_neg } remove_all_character_modifier_instances = castle_holding_holding_build_speed_neg }
	if = { limit = { has_character_modifier = castle_holding_holding_build_gold_cost_neg } remove_all_character_modifier_instances = castle_holding_holding_build_gold_cost_neg }
	if = { limit = { has_character_modifier = tribal_holding_build_speed_neg } remove_all_character_modifier_instances = tribal_holding_build_speed_neg }
	if = { limit = { has_character_modifier = tribal_holding_build_gold_cost_neg } remove_all_character_modifier_instances = tribal_holding_build_gold_cost_neg }
	if = { limit = { has_character_modifier = tribal_holding_holding_build_speed_neg } remove_all_character_modifier_instances = tribal_holding_holding_build_speed_neg }
	if = { limit = { has_character_modifier = tribal_holding_holding_build_gold_cost_neg } remove_all_character_modifier_instances = tribal_holding_holding_build_gold_cost_neg }
	if = { limit = { has_character_modifier = city_holding_build_speed_neg } remove_all_character_modifier_instances = city_holding_build_speed_neg }
	if = { limit = { has_character_modifier = city_holding_build_gold_cost_neg } remove_all_character_modifier_instances = city_holding_build_gold_cost_neg }
	if = { limit = { has_character_modifier = city_holding_holding_build_speed_neg } remove_all_character_modifier_instances = city_holding_holding_build_speed_neg }
	if = { limit = { has_character_modifier = city_holding_holding_build_gold_cost_neg } remove_all_character_modifier_instances = city_holding_holding_build_gold_cost_neg }
	if = { limit = { has_character_modifier = church_holding_build_speed_neg } remove_all_character_modifier_instances = church_holding_build_speed_neg }
	if = { limit = { has_character_modifier = church_holding_build_gold_cost_neg } remove_all_character_modifier_instances = church_holding_build_gold_cost_neg }
	if = { limit = { has_character_modifier = church_holding_holding_build_speed_neg } remove_all_character_modifier_instances = church_holding_holding_build_speed_neg }
	if = { limit = { has_character_modifier = church_holding_holding_build_gold_cost_neg } remove_all_character_modifier_instances = church_holding_holding_build_gold_cost_neg }
	if = { limit = { has_character_modifier = hostile_raid_time_neg } remove_all_character_modifier_instances = hostile_raid_time_neg }
	if = { limit = { has_character_modifier = levy_size_neg } remove_all_character_modifier_instances = levy_size_neg }
	if = { limit = { has_character_modifier = garrison_size_neg } remove_all_character_modifier_instances = garrison_size_neg }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_neg } remove_all_character_modifier_instances = levy_reinforcement_rate_neg }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_same_faith_neg } remove_all_character_modifier_instances = levy_reinforcement_rate_same_faith_neg }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_different_faith_neg } remove_all_character_modifier_instances = levy_reinforcement_rate_different_faith_neg }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_even_if_baron_neg } remove_all_character_modifier_instances = levy_reinforcement_rate_even_if_baron_neg }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_same_faith_even_if_baron_neg } remove_all_character_modifier_instances = levy_reinforcement_rate_same_faith_even_if_baron_neg }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_different_faith_even_if_baron_neg } remove_all_character_modifier_instances = levy_reinforcement_rate_different_faith_even_if_baron_neg }
	if = { limit = { has_character_modifier = levy_reinforcement_rate_friendly_territory_neg } remove_all_character_modifier_instances = levy_reinforcement_rate_friendly_territory_neg }
	#if = { limit = { has_character_modifier = mercenary_count_mult_neg } remove_all_character_modifier_instances = mercenary_count_mult_neg }
	if = { limit = { has_character_modifier = supply_capacity_neg } remove_all_character_modifier_instances = supply_capacity_neg }
	if = { limit = { has_character_modifier = supply_capacity_mult_neg } remove_all_character_modifier_instances = supply_capacity_mult_neg }
	if = { limit = { has_character_modifier = mercenary_hire_cost_neg } remove_all_character_modifier_instances = mercenary_hire_cost_neg }
	if = { limit = { has_character_modifier = mercenary_hire_cost_mult_neg } remove_all_character_modifier_instances = mercenary_hire_cost_mult_neg }
	if = { limit = { has_character_modifier = same_culture_mercenary_hire_cost_neg } remove_all_character_modifier_instances = same_culture_mercenary_hire_cost_neg }
	if = { limit = { has_character_modifier = same_culture_mercenary_hire_cost_mult_neg } remove_all_character_modifier_instances = same_culture_mercenary_hire_cost_mult_neg }
	if = { limit = { has_character_modifier = holy_order_hire_cost_mult_neg } remove_all_character_modifier_instances = holy_order_hire_cost_mult_neg }
	if = { limit = { has_character_modifier = holy_order_hire_cost_neg } remove_all_character_modifier_instances = holy_order_hire_cost_neg }
	if = { limit = { has_character_modifier = same_culture_holy_order_hire_cost_mult_neg } remove_all_character_modifier_instances = same_culture_holy_order_hire_cost_mult_neg }
	if = { limit = { has_character_modifier = same_culture_holy_order_hire_cost_neg } remove_all_character_modifier_instances = same_culture_holy_order_hire_cost_neg }
	if = { limit = { has_character_modifier = men_at_arms_maintenance_neg } remove_all_character_modifier_instances = men_at_arms_maintenance_neg }
	if = { limit = { has_character_modifier = men_at_arms_maintenance_per_dread_mult_neg } remove_all_character_modifier_instances = men_at_arms_maintenance_per_dread_mult_neg }
	if = { limit = { has_character_modifier = army_maintenance_mult_neg } remove_all_character_modifier_instances = army_maintenance_mult_neg }
	if = { limit = { has_character_modifier = knight_limit_neg } remove_all_character_modifier_instances = knight_limit_neg }
	if = { limit = { has_character_modifier = knight_effectiveness_mult_neg } remove_all_character_modifier_instances = knight_effectiveness_mult_neg }
	if = { limit = { has_character_modifier = pursue_efficiency_neg } remove_all_character_modifier_instances = pursue_efficiency_neg }
	if = { limit = { has_character_modifier = counter_efficiency_neg } remove_all_character_modifier_instances = counter_efficiency_neg }
	if = { limit = { has_character_modifier = min_combat_roll_neg } remove_all_character_modifier_instances = min_combat_roll_neg }
	if = { limit = { has_character_modifier = max_combat_roll_neg } remove_all_character_modifier_instances = max_combat_roll_neg }
	if = { limit = { has_character_modifier = men_at_arms_limit_neg } remove_all_character_modifier_instances = men_at_arms_limit_neg }
	if = { limit = { has_character_modifier = men_at_arms_cap_neg } remove_all_character_modifier_instances = men_at_arms_cap_neg }
	if = { limit = { has_character_modifier = embarkation_cost_mult_neg } remove_all_character_modifier_instances = embarkation_cost_mult_neg }
	if = { limit = { has_character_modifier = naval_movement_speed_mult_neg } remove_all_character_modifier_instances = naval_movement_speed_mult_neg }
	if = { limit = { has_character_modifier = siege_phase_time_neg } remove_all_character_modifier_instances = siege_phase_time_neg }
	if = { limit = { has_character_modifier = siege_morale_loss_neg } remove_all_character_modifier_instances = siege_morale_loss_neg }
	if = { limit = { has_character_modifier = revolting_siege_morale_loss_neg } remove_all_character_modifier_instances = revolting_siege_morale_loss_neg }
	if = { limit = { has_character_modifier = revolting_siege_morale_loss_mult_neg } remove_all_character_modifier_instances = revolting_siege_morale_loss_mult_neg }
	if = { limit = { has_character_modifier = movement_speed_neg } remove_all_character_modifier_instances = movement_speed_neg }
	if = { limit = { has_character_modifier = retreat_losses_neg } remove_all_character_modifier_instances = retreat_losses_neg }
	if = { limit = { has_character_modifier = hard_casualty_modifier_neg } remove_all_character_modifier_instances = hard_casualty_modifier_neg }
	if = { limit = { has_character_modifier = enemy_hard_casualty_modifier_neg } remove_all_character_modifier_instances = enemy_hard_casualty_modifier_neg }
	if = { limit = { has_character_modifier = advantage_neg } remove_all_character_modifier_instances = advantage_neg }
	if = { limit = { has_character_modifier = attacker_advantage_neg } remove_all_character_modifier_instances = attacker_advantage_neg }
	if = { limit = { has_character_modifier = defender_advantage_neg } remove_all_character_modifier_instances = defender_advantage_neg }
	if = { limit = { has_character_modifier = enemy_terrain_advantage_neg } remove_all_character_modifier_instances = enemy_terrain_advantage_neg }
	if = { limit = { has_character_modifier = tolerance_advantage_neg } remove_all_character_modifier_instances = tolerance_advantage_neg }
	if = { limit = { has_character_modifier = advantage_against_coreligionists_neg } remove_all_character_modifier_instances = advantage_against_coreligionists_neg }
	if = { limit = { has_character_modifier = controlled_province_advantage_neg } remove_all_character_modifier_instances = controlled_province_advantage_neg }
	if = { limit = { has_character_modifier = raid_speed_neg } remove_all_character_modifier_instances = raid_speed_neg }
	if = { limit = { has_character_modifier = hostile_county_attrition_neg } remove_all_character_modifier_instances = hostile_county_attrition_neg }
	if = { limit = { has_character_modifier = supply_duration_neg } remove_all_character_modifier_instances = supply_duration_neg }
	if = { limit = { has_character_modifier = supply_limit_mult_neg } remove_all_character_modifier_instances = supply_limit_mult_neg }
	if = { limit = { has_character_modifier = supply_limit_neg } remove_all_character_modifier_instances = supply_limit_neg }
	if = { limit = { has_character_modifier = fort_level_neg } remove_all_character_modifier_instances = fort_level_neg }
	if = { limit = { has_character_modifier = cultural_head_fascination_neg } remove_all_character_modifier_instances = cultural_head_fascination_neg }
	if = { limit = { has_character_modifier = cultural_head_fascination_mult_neg } remove_all_character_modifier_instances = cultural_head_fascination_mult_neg }
	if = { limit = { has_character_modifier = monthly_diplomacy_lifestyle_xp_gain_mult_neg } remove_all_character_modifier_instances = monthly_diplomacy_lifestyle_xp_gain_mult_neg }
	if = { limit = { has_character_modifier = monthly_martial_lifestyle_xp_gain_mult_neg } remove_all_character_modifier_instances = monthly_martial_lifestyle_xp_gain_mult_neg }
	if = { limit = { has_character_modifier = monthly_stewardship_lifestyle_xp_gain_mult_neg } remove_all_character_modifier_instances = monthly_stewardship_lifestyle_xp_gain_mult_neg }
	if = { limit = { has_character_modifier = monthly_intrigue_lifestyle_xp_gain_mult_neg } remove_all_character_modifier_instances = monthly_intrigue_lifestyle_xp_gain_mult_neg }
	if = { limit = { has_character_modifier = monthly_learning_lifestyle_xp_gain_mult_neg } remove_all_character_modifier_instances = monthly_learning_lifestyle_xp_gain_mult_neg }
	if = { limit = { has_character_modifier = monthly_lifestyle_xp_gain_mult_neg } remove_all_character_modifier_instances = monthly_lifestyle_xp_gain_mult_neg }
}

modifier_minus_1 = {
	if = {
		limit = { has_character_flag = diplomacy_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomacy_per_prestige_level } }
			add_character_modifier = { modifier = diplomacy_per_prestige_level_neg }
		}
		else = { remove_character_modifier = diplomacy_per_prestige_level }
	}
	if = {
		limit = { has_character_flag = martial_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = martial_per_prestige_level } }
			add_character_modifier = { modifier = martial_per_prestige_level_neg }
		}
		else = { remove_character_modifier = martial_per_prestige_level }
	}
	if = {
		limit = { has_character_flag = stewardship_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = stewardship_per_prestige_level } }
			add_character_modifier = { modifier = stewardship_per_prestige_level_neg }
		}
		else = { remove_character_modifier = stewardship_per_prestige_level }
	}
	if = {
		limit = { has_character_flag = intrigue_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = intrigue_per_prestige_level } }
			add_character_modifier = { modifier = intrigue_per_prestige_level_neg }
		}
		else = { remove_character_modifier = intrigue_per_prestige_level }
	}
	if = {
		limit = { has_character_flag = learning_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = learning_per_prestige_level } }
			add_character_modifier = { modifier = learning_per_prestige_level_neg }
		}
		else = { remove_character_modifier = learning_per_prestige_level }
	}
	if = {
		limit = { has_character_flag = prowess_per_prestige_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = prowess_per_prestige_level } }
			add_character_modifier = { modifier = prowess_per_prestige_level_neg }
		}
		else = { remove_character_modifier = prowess_per_prestige_level }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige } }
			add_character_modifier = { modifier = monthly_prestige_neg }
		}
		else = { remove_character_modifier = monthly_prestige }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_mult } }
			add_character_modifier = { modifier = monthly_prestige_gain_mult_neg }
		}
		else = { remove_character_modifier = monthly_prestige_gain_mult }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_happy_powerful_vassal_neg }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal_mult } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_happy_powerful_vassal_mult_neg }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_happy_powerful_vassal_mult }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_dread_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_dread } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_dread_neg }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_dread }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_dread_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_dread_mult } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_dread_mult_neg }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_dread_mult }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_knight_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_knight } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_knight_neg }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_knight }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_gain_per_knight_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_gain_per_knight_mult } }
			add_character_modifier = { modifier = monthly_prestige_gain_per_knight_mult_neg }
		}
		else = { remove_character_modifier = monthly_prestige_gain_per_knight_mult }
	}
	if = {
		limit = { has_character_flag = monthly_prestige_from_buildings_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_prestige_from_buildings_mult } }
			add_character_modifier = { modifier = monthly_prestige_from_buildings_mult_neg }
		}
		else = { remove_character_modifier = monthly_prestige_from_buildings_mult }
	}
	if = {
		limit = { has_character_flag = prestige_level_impact_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = prestige_level_impact_mult } }
			add_character_modifier = { modifier = prestige_level_impact_mult_neg }
		}
		else = { remove_character_modifier = prestige_level_impact_mult }
	}
	if = {
		limit = { has_character_flag = diplomacy_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomacy_per_piety_level } }
			add_character_modifier = { modifier = diplomacy_per_piety_level_neg }
		}
		else = { remove_character_modifier = diplomacy_per_piety_level }
	}
	if = {
		limit = { has_character_flag = martial_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = martial_per_piety_level } }
			add_character_modifier = { modifier = martial_per_piety_level_neg }
		}
		else = { remove_character_modifier = martial_per_piety_level }
	}
	if = {
		limit = { has_character_flag = stewardship_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = stewardship_per_piety_level } }
			add_character_modifier = { modifier = stewardship_per_piety_level_neg }
		}
		else = { remove_character_modifier = stewardship_per_piety_level }
	}
	if = {
		limit = { has_character_flag = intrigue_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = intrigue_per_piety_level } }
			add_character_modifier = { modifier = intrigue_per_piety_level_neg }
		}
		else = { remove_character_modifier = intrigue_per_piety_level }
	}
	if = {
		limit = { has_character_flag = learning_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = learning_per_piety_level } }
			add_character_modifier = { modifier = learning_per_piety_level_neg }
		}
		else = { remove_character_modifier = learning_per_piety_level }
	}
	if = {
		limit = { has_character_flag = prowess_per_piety_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = prowess_per_piety_level } }
			add_character_modifier = { modifier = prowess_per_piety_level_neg }
		}
		else = { remove_character_modifier = prowess_per_piety_level }
	}
	if = {
		limit = { has_character_flag = monthly_piety_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety } }
			add_character_modifier = { modifier = monthly_piety_neg }
		}
		else = { remove_character_modifier = monthly_piety }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_mult } }
			add_character_modifier = { modifier = monthly_piety_gain_mult_neg }
		}
		else = { remove_character_modifier = monthly_piety_gain_mult }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_happy_powerful_vassal_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_happy_powerful_vassal } }
			add_character_modifier = { modifier = monthly_piety_gain_per_happy_powerful_vassal_neg }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_happy_powerful_vassal }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_happy_powerful_vassal_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_happy_powerful_vassal_mult } }
			add_character_modifier = { modifier = monthly_piety_gain_per_happy_powerful_vassal_mult_neg }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_happy_powerful_vassal_mult }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_dread_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_dread } }
			add_character_modifier = { modifier = monthly_piety_gain_per_dread_neg }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_dread }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_dread_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_dread_mult } }
			add_character_modifier = { modifier = monthly_piety_gain_per_dread_mult_neg }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_dread_mult }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_knight_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_knight } }
			add_character_modifier = { modifier = monthly_piety_gain_per_knight_neg }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_knight }
	}
	if = {
		limit = { has_character_flag = monthly_piety_gain_per_knight_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_gain_per_knight_mult } }
			add_character_modifier = { modifier = monthly_piety_gain_per_knight_mult_neg }
		}
		else = { remove_character_modifier = monthly_piety_gain_per_knight_mult }
	}
	if = {
		limit = { has_character_flag = monthly_piety_from_buildings_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_piety_from_buildings_mult } }
			add_character_modifier = { modifier = monthly_piety_from_buildings_mult_neg }
		}
		else = { remove_character_modifier = monthly_piety_from_buildings_mult }
	}
	if = {
		limit = { has_character_flag = piety_level_impact_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = piety_level_impact_mult } }
			add_character_modifier = { modifier = piety_level_impact_mult_neg }
		}
		else = { remove_character_modifier = piety_level_impact_mult }
	}
	if = {
		limit = { has_character_flag = faith_conversion_piety_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = faith_conversion_piety_cost } }
			add_character_modifier = { modifier = faith_conversion_piety_cost_neg }
		}
		else = { remove_character_modifier = faith_conversion_piety_cost }
	}
	if = {
		limit = { has_character_flag = faith_conversion_piety_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = faith_conversion_piety_cost_mult } }
			add_character_modifier = { modifier = faith_conversion_piety_cost_mult_neg }
		}
		else = { remove_character_modifier = faith_conversion_piety_cost_mult }
	}
	if = {
		limit = { has_character_flag = faith_creation_piety_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = faith_creation_piety_cost } }
			add_character_modifier = { modifier = faith_creation_piety_cost_neg }
		}
		else = { remove_character_modifier = faith_creation_piety_cost }
	}
	if = {
		limit = { has_character_flag = faith_creation_piety_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = faith_creation_piety_cost_mult } }
			add_character_modifier = { modifier = faith_creation_piety_cost_mult_neg }
		}
		else = { remove_character_modifier = faith_creation_piety_cost_mult }
	}
	if = {
		limit = { has_character_flag = monthly_income_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_income } }
			add_character_modifier = { modifier = monthly_income_neg }
		}
		else = { remove_character_modifier = monthly_income }
	}
	if = {
		limit = { has_character_flag = monthly_income_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_income_mult } }
			add_character_modifier = { modifier = monthly_income_mult_neg }
		}
		else = { remove_character_modifier = monthly_income_mult }
	}
	if = {
		limit = { has_character_flag = monthly_war_income_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_war_income } }
			add_character_modifier = { modifier = monthly_war_income_neg }
		}
		else = { remove_character_modifier = monthly_war_income }
	}
	if = {
		limit = { has_character_flag = monthly_war_income_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_war_income_mult } }
			add_character_modifier = { modifier = monthly_war_income_mult_neg }
		}
		else = { remove_character_modifier = monthly_war_income_mult }
	}
	if = {
		limit = { has_character_flag = tax_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = tax_mult } }
			add_character_modifier = { modifier = tax_mult_neg }
		}
		else = { remove_character_modifier = tax_mult }
	}
	if = {
		limit = { has_character_flag = domain_tax_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_mult } }
			add_character_modifier = { modifier = domain_tax_mult_neg }
		}
		else = { remove_character_modifier = domain_tax_mult }
	}
	if = {
		limit = { has_character_flag = domain_tax_same_faith_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_same_faith_mult } }
			add_character_modifier = { modifier = domain_tax_same_faith_mult_neg }
		}
		else = { remove_character_modifier = domain_tax_same_faith_mult }
	}
	if = {
		limit = { has_character_flag = domain_tax_different_faith_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_different_faith_mult } }
			add_character_modifier = { modifier = domain_tax_different_faith_mult_neg }
		}
		else = { remove_character_modifier = domain_tax_different_faith_mult }
	}
	if = {
		limit = { has_character_flag = domain_tax_mult_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_mult_even_if_baron } }
			add_character_modifier = { modifier = domain_tax_mult_even_if_baron_neg }
		}
		else = { remove_character_modifier = domain_tax_mult_even_if_baron }
	}
	if = {
		limit = { has_character_flag = domain_tax_same_faith_mult_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_same_faith_mult_even_if_baron } }
			add_character_modifier = { modifier = domain_tax_same_faith_mult_even_if_baron_neg }
		}
		else = { remove_character_modifier = domain_tax_same_faith_mult_even_if_baron }
	}
	if = {
		limit = { has_character_flag = domain_tax_different_faith_mult_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_tax_different_faith_mult_even_if_baron } }
			add_character_modifier = { modifier = domain_tax_different_faith_mult_even_if_baron_neg }
		}
		else = { remove_character_modifier = domain_tax_different_faith_mult_even_if_baron }
	}
	if = {
		limit = { has_character_flag = vassal_tax_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_tax_mult } }
			add_character_modifier = { modifier = vassal_tax_mult_neg }
		}
		else = { remove_character_modifier = vassal_tax_mult }
	}
	if = {
		limit = { has_character_flag = monthly_income_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_income_per_stress_level } }
			add_character_modifier = { modifier = monthly_income_per_stress_level_neg }
		}
		else = { remove_character_modifier = monthly_income_per_stress_level }
	}
	if = {
		limit = { has_character_flag = monthly_income_per_stress_level_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_income_per_stress_level_mult } }
			add_character_modifier = { modifier = monthly_income_per_stress_level_mult_neg }
		}
		else = { remove_character_modifier = monthly_income_per_stress_level_mult }
	}
	if = {
		limit = { has_character_flag = opinion_of_male_rulers_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_male_rulers } }
			add_character_modifier = { modifier = opinion_of_male_rulers_neg }
		}
		else = { remove_character_modifier = opinion_of_male_rulers }
	}
	if = {
		limit = { has_character_flag = opinion_of_female_rulers_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_female_rulers } }
			add_character_modifier = { modifier = opinion_of_female_rulers_neg }
		}
		else = { remove_character_modifier = opinion_of_female_rulers }
	}
	if = {
		limit = { has_character_flag = opinion_of_same_culture_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_same_culture } }
			add_character_modifier = { modifier = opinion_of_same_culture_neg }
		}
		else = { remove_character_modifier = opinion_of_same_culture }
	}
	if = {
		limit = { has_character_flag = opinion_of_different_culture_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_different_culture } }
			add_character_modifier = { modifier = opinion_of_different_culture_neg }
		}
		else = { remove_character_modifier = opinion_of_different_culture }
	}
	if = {
		limit = { has_character_flag = opinion_of_same_faith_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_same_faith } }
			add_character_modifier = { modifier = opinion_of_same_faith_neg }
		}
		else = { remove_character_modifier = opinion_of_same_faith }
	}
	if = {
		limit = { has_character_flag = opinion_of_different_faith_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_different_faith } }
			add_character_modifier = { modifier = opinion_of_different_faith_neg }
		}
		else = { remove_character_modifier = opinion_of_different_faith }
	}
	if = {
		limit = { has_character_flag = opinion_of_liege_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_liege } }
			add_character_modifier = { modifier = opinion_of_liege_neg }
		}
		else = { remove_character_modifier = opinion_of_liege }
	}
	if = {
		limit = { has_character_flag = opinion_of_vassal_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_vassal } }
			add_character_modifier = { modifier = opinion_of_vassal_neg }
		}
		else = { remove_character_modifier = opinion_of_vassal }
	}
	if = {
		limit = { has_character_flag = opinion_of_different_faith_liege_flag }
		if = {
			limit = { NOT= { has_character_modifier = opinion_of_different_faith_liege } }
			add_character_modifier = { modifier = opinion_of_different_faith_liege_neg }
		}
		else = { remove_character_modifier = opinion_of_different_faith_liege }
	}
	if = {
		limit = { has_character_flag = same_culture_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_culture_opinion } }
			add_character_modifier = { modifier = same_culture_opinion_neg }
		}
		else = { remove_character_modifier = same_culture_opinion }
	}
	if = {
		limit = { has_character_flag = different_culture_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = different_culture_opinion } }
			add_character_modifier = { modifier = different_culture_opinion_neg }
		}
		else = { remove_character_modifier = different_culture_opinion }
	}
	if = {
		limit = { has_character_flag = same_faith_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_faith_opinion } }
			add_character_modifier = { modifier = same_faith_opinion_neg }
		}
		else = { remove_character_modifier = same_faith_opinion }
	}
	if = {
		limit = { has_character_flag = different_faith_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = different_faith_opinion } }
			add_character_modifier = { modifier = different_faith_opinion_neg }
		}
		else = { remove_character_modifier = different_faith_opinion }
	}
	if = {
		limit = { has_character_flag = direct_vassal_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = direct_vassal_opinion } }
			add_character_modifier = { modifier = direct_vassal_opinion_neg }
		}
		else = { remove_character_modifier = direct_vassal_opinion }
	}
	if = {
		limit = { has_character_flag = fellow_vassal_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = fellow_vassal_opinion } }
			add_character_modifier = { modifier = fellow_vassal_opinion_neg }
		}
		else = { remove_character_modifier = fellow_vassal_opinion }
	}
	if = {
		limit = { has_character_flag = independent_ruler_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = independent_ruler_opinion } }
			add_character_modifier = { modifier = independent_ruler_opinion_neg }
		}
		else = { remove_character_modifier = independent_ruler_opinion }
	}
	if = {
		limit = { has_character_flag = general_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = general_opinion } }
			add_character_modifier = { modifier = general_opinion_neg }
		}
		else = { remove_character_modifier = general_opinion }
	}
	if = {
		limit = { has_character_flag = attraction_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = attraction_opinion } }
			add_character_modifier = { modifier = attraction_opinion_neg }
		}
		else = { remove_character_modifier = attraction_opinion }
	}
	if = {
		limit = { has_character_flag = religious_vassal_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = religious_vassal_opinion } }
			add_character_modifier = { modifier = religious_vassal_opinion_neg }
		}
		else = { remove_character_modifier = religious_vassal_opinion }
	}
	if = {
		limit = { has_character_flag = religious_head_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = religious_head_opinion } }
			add_character_modifier = { modifier = religious_head_opinion_neg }
		}
		else = { remove_character_modifier = religious_head_opinion }
	}
	if = {
		limit = { has_character_flag = spouse_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = spouse_opinion } }
			add_character_modifier = { modifier = spouse_opinion_neg }
		}
		else = { remove_character_modifier = spouse_opinion }
	}
	if = {
		limit = { has_character_flag = twin_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = twin_opinion } }
			add_character_modifier = { modifier = twin_opinion_neg }
		}
		else = { remove_character_modifier = twin_opinion }
	}
	if = {
		limit = { has_character_flag = close_relative_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = close_relative_opinion } }
			add_character_modifier = { modifier = close_relative_opinion_neg }
		}
		else = { remove_character_modifier = close_relative_opinion }
	}
	if = {
		limit = { has_character_flag = dynasty_house_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = dynasty_house_opinion } }
			add_character_modifier = { modifier = dynasty_house_opinion_neg }
		}
		else = { remove_character_modifier = dynasty_house_opinion }
	}
	if = {
		limit = { has_character_flag = dynasty_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = dynasty_opinion } }
			add_character_modifier = { modifier = dynasty_opinion_neg }
		}
		else = { remove_character_modifier = dynasty_opinion }
	}
	if = {
		limit = { has_character_flag = liege_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = liege_opinion } }
			add_character_modifier = { modifier = liege_opinion_neg }
		}
		else = { remove_character_modifier = liege_opinion }
	}
	if = {
		limit = { has_character_flag = different_faith_liege_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = different_faith_liege_opinion } }
			add_character_modifier = { modifier = different_faith_liege_opinion_neg }
		}
		else = { remove_character_modifier = different_faith_liege_opinion }
	}
	if = {
		limit = { has_character_flag = vassal_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_opinion } }
			add_character_modifier = { modifier = vassal_opinion_neg }
		}
		else = { remove_character_modifier = vassal_opinion }
	}
	if = {
		limit = { has_character_flag = clergy_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = clergy_opinion } }
			add_character_modifier = { modifier = clergy_opinion_neg }
		}
		else = { remove_character_modifier = clergy_opinion }
	}
	if = {
		limit = { has_character_flag = councillor_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = councillor_opinion } }
			add_character_modifier = { modifier = councillor_opinion_neg }
		}
		else = { remove_character_modifier = councillor_opinion }
	}
	if = {
		limit = { has_character_flag = realm_priest_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = realm_priest_opinion } }
			add_character_modifier = { modifier = realm_priest_opinion_neg }
		}
		else = { remove_character_modifier = realm_priest_opinion }
	}
	if = {
		limit = { has_character_flag = powerful_vassal_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = powerful_vassal_opinion } }
			add_character_modifier = { modifier = powerful_vassal_opinion_neg }
		}
		else = { remove_character_modifier = powerful_vassal_opinion }
	}
	if = {
		limit = { has_character_flag = courtier_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = courtier_opinion } }
			add_character_modifier = { modifier = courtier_opinion_neg }
		}
		else = { remove_character_modifier = courtier_opinion }
	}
	if = {
		limit = { has_character_flag = guest_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = guest_opinion } }
			add_character_modifier = { modifier = guest_opinion_neg }
		}
		else = { remove_character_modifier = guest_opinion }
	}
	if = {
		limit = { has_character_flag = courtier_and_guest_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = courtier_and_guest_opinion } }
			add_character_modifier = { modifier = courtier_and_guest_opinion_neg }
		}
		else = { remove_character_modifier = courtier_and_guest_opinion }
	}
	if = {
		limit = { has_character_flag = prisoner_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = prisoner_opinion } }
			add_character_modifier = { modifier = prisoner_opinion_neg }
		}
		else = { remove_character_modifier = prisoner_opinion }
	}
	if = {
		limit = { has_character_flag = player_heir_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = player_heir_opinion } }
			add_character_modifier = { modifier = player_heir_opinion_neg }
		}
		else = { remove_character_modifier = player_heir_opinion }
	}
	if = {
		limit = { has_character_flag = child_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = child_opinion } }
			add_character_modifier = { modifier = child_opinion_neg }
		}
		else = { remove_character_modifier = child_opinion }
	}
	if = {
		limit = { has_character_flag = child_except_player_heir_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = child_except_player_heir_opinion } }
			add_character_modifier = { modifier = child_except_player_heir_opinion_neg }
		}
		else = { remove_character_modifier = child_except_player_heir_opinion }
	}
	if = {
		limit = { has_character_flag = eligible_child_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = eligible_child_opinion } }
			add_character_modifier = { modifier = eligible_child_opinion_neg }
		}
		else = { remove_character_modifier = eligible_child_opinion }
	}
	if = {
		limit = { has_character_flag = eligible_child_except_player_heir_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = eligible_child_except_player_heir_opinion } }
			add_character_modifier = { modifier = eligible_child_except_player_heir_opinion_neg }
		}
		else = { remove_character_modifier = eligible_child_except_player_heir_opinion }
	}
	if = {
		limit = { has_character_flag = county_opinion_flag }
		if = {
			limit = { NOT= { has_character_modifier = county_opinion_add } }
			add_character_modifier = { modifier = county_opinion_neg }
		}
		else = { remove_character_modifier = county_opinion_add }
	}
	if = {
		limit = { has_character_flag = different_faith_county_opinion_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = different_faith_county_opinion_mult } }
			add_character_modifier = { modifier = different_faith_county_opinion_mult_neg }
		}
		else = { remove_character_modifier = different_faith_county_opinion_mult }
	}
	if = {
		limit = { has_character_flag = county_opinion_add_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = county_opinion_add_even_if_baron } }
			add_character_modifier = { modifier = county_opinion_add_even_if_baron_neg }
		}
		else = { remove_character_modifier = county_opinion_add_even_if_baron }
	}
	if = {
		limit = { has_character_flag = different_faith_county_opinion_mult_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = different_faith_county_opinion_mult_even_if_baron } }
			add_character_modifier = { modifier = different_faith_county_opinion_mult_even_if_baron_neg }
		}
		else = { remove_character_modifier = different_faith_county_opinion_mult_even_if_baron }
	}
	if = {
		limit = { has_character_flag = fertility_flag }
		if = {
			limit = { NOT= { has_character_modifier = fertility_modifier } }
			add_character_modifier = { modifier = fertility_modifier_neg }
		}
		else = { remove_character_modifier = fertility_modifier }
	}
	if = {
		limit = { has_character_flag = health_flag }
		if = {
			limit = { NOT= { has_character_modifier = health_modifier } }
			add_character_modifier = { modifier = health_modifier_neg }
		}
		else = { remove_character_modifier = health_modifier }
	}
	if = {
		limit = { has_character_flag = negate_fertility_penalty_flag }
		if = {
			limit = { NOT= { has_character_modifier = negate_fertility_penalty } }
			add_character_modifier = { modifier = negate_fertility_penalty_neg }
		}
		else = { remove_character_modifier = negate_fertility_penalty }
	}
	if = {
		limit = { has_character_flag = negate_health_penalty_flag }
		if = {
			limit = { NOT= { has_character_modifier = negate_health_penalty } }
			add_character_modifier = { modifier = negate_health_penalty_neg }
		}
		else = { remove_character_modifier = negate_health_penalty }
	}
	if = {
		limit = { has_character_flag = monthly_dynasty_prestige_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_dynasty_prestige } }
			add_character_modifier = { modifier = monthly_dynasty_prestige_neg }
		}
		else = { remove_character_modifier = monthly_dynasty_prestige }
	}
	if = {
		limit = { has_character_flag = monthly_dynasty_prestige_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_dynasty_prestige_mult } }
			add_character_modifier = { modifier = monthly_dynasty_prestige_mult_neg }
		}
		else = { remove_character_modifier = monthly_dynasty_prestige_mult }
	}
	# if = {
	# 	limit = { has_character_flag = random_skills_per_child_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = random_skills_per_child } }
	# 		add_character_modifier = { modifier = random_skills_per_child_neg }
	# 	}
	# 	else = { remove_character_modifier = random_skills_per_child }
	# }
	if = {
		limit = { has_character_flag = inbreeding_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = inbreeding_chance } }
			add_character_modifier = { modifier = inbreeding_chance_neg }
		}
		else = { remove_character_modifier = inbreeding_chance }
	}
	if = {
		limit = { has_character_flag = positive_inactive_inheritance_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = positive_inactive_inheritance_chance } }
			add_character_modifier = { modifier = positive_inactive_inheritance_chance_neg }
		}
		else = { remove_character_modifier = positive_inactive_inheritance_chance }
	}
	if = {
		limit = { has_character_flag = negative_inactive_inheritance_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = negative_inactive_inheritance_chance } }
			add_character_modifier = { modifier = negative_inactive_inheritance_chance_neg }
		}
		else = { remove_character_modifier = negative_inactive_inheritance_chance }
	}
	if = {
		limit = { has_character_flag = positive_random_genetic_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = positive_random_genetic_chance } }
			add_character_modifier = { modifier = positive_random_genetic_chance_neg }
		}
		else = { remove_character_modifier = positive_random_genetic_chance }
	}
	if = {
		limit = { has_character_flag = negative_random_genetic_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = negative_random_genetic_chance } }
			add_character_modifier = { modifier = negative_random_genetic_chance_neg }
		}
		else = { remove_character_modifier = negative_random_genetic_chance }
	}
	if = {
		limit = { has_character_flag = genetic_trait_strengthen_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = genetic_trait_strengthen_chance } }
			add_character_modifier = { modifier = genetic_trait_strengthen_chance_neg }
		}
		else = { remove_character_modifier = genetic_trait_strengthen_chance }
	}
	if = {
		limit = { has_character_flag = life_expectancy_flag }
		if = {
			limit = { NOT= { has_character_modifier = life_expectancy_modifier } }
			add_character_modifier = { modifier = life_expectancy_modifier_neg }
		}
		else = { remove_character_modifier = life_expectancy_modifier }
	}
	if = {
		limit = { has_character_flag = years_of_fertility_flag }
		if = {
			limit = { NOT= { has_character_modifier = years_of_fertility } }
			add_character_modifier = { modifier = years_of_fertility_neg }
		}
		else = { remove_character_modifier = years_of_fertility }
	}
	if = {
		limit = { has_character_flag = diplomacy_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomacy_per_stress_level } }
			add_character_modifier = { modifier = diplomacy_per_stress_level_neg }
		}
		else = { remove_character_modifier = diplomacy_per_stress_level }
	}
	if = {
		limit = { has_character_flag = martial_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = martial_per_stress_level } }
			add_character_modifier = { modifier = martial_per_stress_level_neg }
		}
		else = { remove_character_modifier = martial_per_stress_level }
	}
	if = {
		limit = { has_character_flag = stewardship_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = stewardship_per_stress_level } }
			add_character_modifier = { modifier = stewardship_per_stress_level_neg }
		}
		else = { remove_character_modifier = stewardship_per_stress_level }
	}
	if = {
		limit = { has_character_flag = intrigue_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = intrigue_per_piety_level } }
			add_character_modifier = { modifier = intrigue_per_stress_level_neg }
		}
		else = { remove_character_modifier = intrigue_per_piety_level }
	}
	if = {
		limit = { has_character_flag = learning_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = learning_per_stress_level } }
			add_character_modifier = { modifier = learning_per_stress_level_neg }
		}
		else = { remove_character_modifier = learning_per_stress_level }
	}
	if = {
		limit = { has_character_flag = prowess_per_stress_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = prowess_per_stress_level } }
			add_character_modifier = { modifier = prowess_per_stress_level_neg }
		}
		else = { remove_character_modifier = prowess_per_stress_level }
	}
	if = {
		limit = { has_character_flag = stress_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = stress_gain_mult } }
			add_character_modifier = { modifier = stress_gain_mult_neg }
		}
		else = { remove_character_modifier = stress_gain_mult }
	}
	if = {
		limit = { has_character_flag = stress_loss_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = stress_loss_mult } }
			add_character_modifier = { modifier = stress_loss_mult_neg }
		}
		else = { remove_character_modifier = stress_loss_mult }
	}
	# if = {
	# 	limit = { has_character_flag = scheme_power_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = scheme_power } }
	# 		add_character_modifier = { modifier = scheme_power_neg }
	# 	}
	# 	else = { remove_character_modifier = scheme_power }
	# }
	# if = {
	# 	limit = { has_character_flag = scheme_resistance_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = scheme_resistance } }
	# 		add_character_modifier = { modifier = scheme_resistance_neg }
	# 	}
	# 	else = { remove_character_modifier = scheme_resistance }
	# }
	# if = {
	# 	limit = { has_character_flag = scheme_secrecy_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = scheme_secrecy } }
	# 		add_character_modifier = { modifier = scheme_secrecy_neg }
	# 	}
	# 	else = { remove_character_modifier = scheme_secrecy }
	# }
	if = {
		limit = { has_character_flag = vassal_levy_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_levy_contribution } }
			add_character_modifier = { modifier = vassal_levy_contribution_neg }
		}
		else = { remove_character_modifier = vassal_levy_contribution }
	}
	# if = {
	# 	limit = { has_character_flag = scheme_success_chance_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = scheme_success_chance } }
	# 		add_character_modifier = { modifier = scheme_success_chance_neg }
	# 	}
	# 	else = { remove_character_modifier = scheme_success_chance }
	# }
	if = {
		limit = { has_character_flag = hostile_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = hostile_scheme_power } }
			add_character_modifier = { modifier = hostile_scheme_power_neg }
		}
		else = { remove_character_modifier = hostile_scheme_power }
	}
	if = {
		limit = { has_character_flag = personal_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = personal_scheme_power } }
			add_character_modifier = { modifier = personal_scheme_power_neg }
		}
		else = { remove_character_modifier = personal_scheme_power }
	}
	if = {
		limit = { has_character_flag = hostile_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = hostile_scheme_resistance } }
			add_character_modifier = { modifier = hostile_scheme_resistance_neg }
		}
		else = { remove_character_modifier = hostile_scheme_resistance }
	}
	if = {
		limit = { has_character_flag = personal_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = personal_scheme_resistance } }
			add_character_modifier = { modifier = personal_scheme_resistance_neg }
		}
		else = { remove_character_modifier = personal_scheme_resistance }
	}
	if = {
		limit = { has_character_flag = diplomacy_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomacy_scheme_power } }
			add_character_modifier = { modifier = diplomacy_scheme_power_neg }
		}
		else = { remove_character_modifier = diplomacy_scheme_power }
	}
	if = {
		limit = { has_character_flag = intrigue_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = intrigue_scheme_power } }
			add_character_modifier = { modifier = intrigue_scheme_power_neg }
		}
		else = { remove_character_modifier = intrigue_scheme_power }
	}
	if = {
		limit = { has_character_flag = stewardship_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = stewardship_scheme_power } }
			add_character_modifier = { modifier = stewardship_scheme_power_neg }
		}
		else = { remove_character_modifier = stewardship_scheme_power }
	}
	if = {
		limit = { has_character_flag = martial_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = martial_scheme_power } }
			add_character_modifier = { modifier = martial_scheme_power_neg }
		}
		else = { remove_character_modifier = martial_scheme_power }
	}
	if = {
		limit = { has_character_flag = prowess_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = prowess_scheme_power } }
			add_character_modifier = { modifier = prowess_scheme_power_neg }
		}
		else = { remove_character_modifier = prowess_scheme_power }
	}
	if = {
		limit = { has_character_flag = learning_scheme_power_flag }
		if = {
			limit = { NOT= { has_character_modifier = learning_scheme_power } }
			add_character_modifier = { modifier = learning_scheme_power_neg }
		}
		else = { remove_character_modifier = learning_scheme_power }
	}
	if = {
		limit = { has_character_flag = diplomacy_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomacy_scheme_resistance } }
			add_character_modifier = { modifier = diplomacy_scheme_resistance_neg }
		}
		else = { remove_character_modifier = diplomacy_scheme_resistance }
	}
	if = {
		limit = { has_character_flag = intrigue_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = intrigue_scheme_resistance } }
			add_character_modifier = { modifier = intrigue_scheme_resistance_neg }
		}
		else = { remove_character_modifier = intrigue_scheme_resistance }
	}
	if = {
		limit = { has_character_flag = stewardship_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = stewardship_scheme_resistance } }
			add_character_modifier = { modifier = stewardship_scheme_resistance_neg }
		}
		else = { remove_character_modifier = stewardship_scheme_resistance }
	}
	if = {
		limit = { has_character_flag = martial_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = martial_scheme_resistance } }
			add_character_modifier = { modifier = martial_scheme_resistance_neg }
		}
		else = { remove_character_modifier = martial_scheme_resistance }
	}
	if = {
		limit = { has_character_flag = prowess_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = prowess_scheme_resistance } }
			add_character_modifier = { modifier = prowess_scheme_resistance_neg }
		}
		else = { remove_character_modifier = prowess_scheme_resistance }
	}
	if = {
		limit = { has_character_flag = learning_scheme_resistance_flag }
		if = {
			limit = { NOT= { has_character_modifier = learning_scheme_resistance } }
			add_character_modifier = { modifier = learning_scheme_resistance_neg }
		}
		else = { remove_character_modifier = learning_scheme_resistance }
	}
	if = {
		limit = { has_character_flag = scheme_discovery_chance_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = scheme_discovery_chance_mult } }
			add_character_modifier = { modifier = scheme_discovery_chance_mult_neg }
		}
		else = { remove_character_modifier = scheme_discovery_chance_mult }
	}
	if = {
		limit = { has_character_flag = max_personal_schemes_flag }
		if = {
			limit = { NOT= { has_character_modifier = max_personal_schemes } }
			add_character_modifier = { modifier = max_personal_schemes_neg }
		}
		else = { remove_character_modifier = max_personal_schemes }
	}
	if = {
		limit = { has_character_flag = max_hostile_schemes_flag }
		if = {
			limit = { NOT= { has_character_modifier = max_hostile_schemes } }
			add_character_modifier = { modifier = max_hostile_schemes_neg }
		}
		else = { remove_character_modifier = max_hostile_schemes }
	}
	if = {
		limit = { has_character_flag = owned_hostile_scheme_success_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = owned_hostile_scheme_success_chance } }
			add_character_modifier = { modifier = owned_hostile_scheme_success_chance_neg }
		}
		else = { remove_character_modifier = owned_hostile_scheme_success_chance }
	}
	if = {
		limit = { has_character_flag = owned_personal_scheme_success_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = owned_personal_scheme_success_chance } }
			add_character_modifier = { modifier = owned_personal_scheme_success_chance_neg }
		}
		else = { remove_character_modifier = owned_personal_scheme_success_chance }
	}
	if = {
		limit = { has_character_flag = enemy_hostile_scheme_success_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = enemy_hostile_scheme_success_chance } }
			add_character_modifier = { modifier = enemy_hostile_scheme_success_chance_neg }
		}
		else = { remove_character_modifier = enemy_hostile_scheme_success_chance }
	}
	if = {
		limit = { has_character_flag = enemy_personal_scheme_success_chance_flag }
		if = {
			limit = { NOT= { has_character_modifier = enemy_personal_scheme_success_chance } }
			add_character_modifier = { modifier = enemy_personal_scheme_success_chance_neg }
		}
		else = { remove_character_modifier = enemy_personal_scheme_success_chance }
	}
	if = {
		limit = { has_character_flag = monthly_dread_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_dread } }
			add_character_modifier = { modifier = monthly_dread_neg }
		}
		else = { remove_character_modifier = monthly_dread }
	}
	if = {
		limit = { has_character_flag = dread_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_gain_mult } }
			add_character_modifier = { modifier = dread_gain_mult_neg }
		}
		else = { remove_character_modifier = dread_gain_mult }
	}
	if = {
		limit = { has_character_flag = dread_loss_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_loss_mult } }
			add_character_modifier = { modifier = dread_loss_mult_neg }
		}
		else = { remove_character_modifier = dread_loss_mult }
	}
	if = {
		limit = { has_character_flag = tyranny_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = tyranny_gain_mult } }
			add_character_modifier = { modifier = tyranny_gain_mult_neg }
		}
		else = { remove_character_modifier = tyranny_gain_mult }
	}
	if = {
		limit = { has_character_flag = tyranny_loss_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = tyranny_loss_mult } }
			add_character_modifier = { modifier = tyranny_loss_mult_neg }
		}
		else = { remove_character_modifier = tyranny_loss_mult }
	}
	if = {
		limit = { has_character_flag = monthly_tyranny_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_tyranny } }
			add_character_modifier = { modifier = monthly_tyranny_neg }
		}
		else = { remove_character_modifier = monthly_tyranny }
	}
	if = {
		limit = { has_character_flag = dread_baseline_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_baseline } }
			add_character_modifier = { modifier = dread_baseline_neg }
		}
		else = { remove_character_modifier = dread_baseline }
	}
	if = {
		limit = { has_character_flag = dread_decay_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_decay } }
			add_character_modifier = { modifier = dread_decay_neg }
		}
		else = { remove_character_modifier = dread_decay }
	}
	if = {
		limit = { has_character_flag = dread_decay_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_decay_mult } }
			add_character_modifier = { modifier = dread_decay_mult_neg }
		}
		else = { remove_character_modifier = dread_decay_mult }
	}
	if = {
		limit = { has_character_flag = dread_per_tyranny_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_per_tyranny } }
			add_character_modifier = { modifier = dread_per_tyranny_neg }
		}
		else = { remove_character_modifier = dread_per_tyranny }
	}
	if = {
		limit = { has_character_flag = dread_per_tyranny_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = dread_per_tyranny_mult } }
			add_character_modifier = { modifier = dread_per_tyranny_mult_neg }
		}
		else = { remove_character_modifier = dread_per_tyranny_mult }
	}
	if = {
		limit = { has_character_flag = domain_limit_flag }
		if = {
			limit = { NOT= { has_character_modifier = domain_limit } }
			add_character_modifier = { modifier = domain_limit_neg }
		}
		else = { remove_character_modifier = domain_limit }
	}
	if = {
		limit = { has_character_flag = vassal_limit_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_limit } }
			add_character_modifier = { modifier = vassal_limit_neg }
		}
		else = { remove_character_modifier = vassal_limit }
	}
	if = {
		limit = { has_character_flag = short_reign_duration_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = short_reign_duration_mult } }
			add_character_modifier = { modifier = short_reign_duration_mult_neg }
		}
		else = { remove_character_modifier = short_reign_duration_mult }
	}
	if = {
		limit = { has_character_flag = long_reign_bonus_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = long_reign_bonus_mult } }
			add_character_modifier = { modifier = long_reign_bonus_mult_neg }
		}
		else = { remove_character_modifier = long_reign_bonus_mult }
	}
	if = {
		limit = { has_character_flag = diplomatic_range_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = diplomatic_range_mult } }
			add_character_modifier = { modifier = diplomatic_range_mult_neg }
		}
		else = { remove_character_modifier = diplomatic_range_mult }
	}
	if = {
		limit = { has_character_flag = title_creation_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = title_creation_cost } }
			add_character_modifier = { modifier = title_creation_cost_neg }
		}
		else = { remove_character_modifier = title_creation_cost }
	}
	if = {
		limit = { has_character_flag = title_creation_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = title_creation_cost_mult } }
			add_character_modifier = { modifier = title_creation_cost_mult_neg }
		}
		else = { remove_character_modifier = title_creation_cost_mult }
	}
	if = {
		limit = { has_character_flag = vassal_tax_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_tax_contribution } }
			add_character_modifier = { modifier = vassal_tax_contribution_neg }
		}
		else = { remove_character_modifier = vassal_tax_contribution }
	}
	if = {
		limit = { has_character_flag = vassal_tax_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_tax_contribution_mult } }
			add_character_modifier = { modifier = vassal_tax_contribution_mult_neg }
		}
		else = { remove_character_modifier = vassal_tax_contribution_mult }
	}
	if = {
		limit = { has_character_flag = intimidated_vassal_tax_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = intimidated_vassal_tax_contribution } }
			add_character_modifier = { modifier = intimidated_vassal_tax_contribution_neg }
		}
		else = { remove_character_modifier = intimidated_vassal_tax_contribution }
	}
	if = {
		limit = { has_character_flag = intimidated_vassal_tax_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = intimidated_vassal_tax_contribution_mult } }
			add_character_modifier = { modifier = intimidated_vassal_tax_contribution_mult_neg }
		}
		else = { remove_character_modifier = intimidated_vassal_tax_contribution_mult }
	}
	if = {
		limit = { has_character_flag = cowed_vassal_tax_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = cowed_vassal_tax_contribution } }
			add_character_modifier = { modifier = cowed_vassal_tax_contribution_neg }
		}
		else = { remove_character_modifier = cowed_vassal_tax_contribution }
	}
	if = {
		limit = { has_character_flag = cowed_vassal_tax_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = cowed_vassal_tax_contribution_mult } }
			add_character_modifier = { modifier = cowed_vassal_tax_contribution_mult_neg }
		}
		else = { remove_character_modifier = cowed_vassal_tax_contribution_mult }
	}
	if = {
		limit = { has_character_flag = vassal_levy_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_levy_contribution } }
			add_character_modifier = { modifier = vassal_levy_contribution_neg }
		}
		else = { remove_character_modifier = vassal_levy_contribution }
	}
	if = {
		limit = { has_character_flag = vassal_levy_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = vassal_levy_contribution_mult } }
			add_character_modifier = { modifier = vassal_levy_contribution_mult_neg }
		}
		else = { remove_character_modifier = vassal_levy_contribution_mult }
	}
	if = {
		limit = { has_character_flag = intimidated_vassal_levy_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = intimidated_vassal_levy_contribution } }
			add_character_modifier = { modifier = intimidated_vassal_levy_contribution_neg }
		}
		else = { remove_character_modifier = intimidated_vassal_levy_contribution }
	}
	if = {
		limit = { has_character_flag = intimidated_vassal_levy_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = intimidated_vassal_levy_contribution_mult } }
			add_character_modifier = { modifier = intimidated_vassal_levy_contribution_mult_neg }
		}
		else = { remove_character_modifier = intimidated_vassal_levy_contribution_mult }
	}
	if = {
		limit = { has_character_flag = cowed_vassal_levy_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = cowed_vassal_levy_contribution } }
			add_character_modifier = { modifier = cowed_vassal_levy_contribution_neg }
		}
		else = { remove_character_modifier = cowed_vassal_levy_contribution }
	}
	if = {
		limit = { has_character_flag = cowed_vassal_levy_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = cowed_vassal_levy_contribution_mult } }
			add_character_modifier = { modifier = cowed_vassal_levy_contribution_mult_neg }
		}
		else = { remove_character_modifier = cowed_vassal_levy_contribution_mult }
	}
	if = {
		limit = { has_character_flag = happy_powerful_vassal_tax_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = happy_powerful_vassal_tax_contribution } }
			add_character_modifier = { modifier = happy_powerful_vassal_tax_contribution_neg }
		}
		else = { remove_character_modifier = happy_powerful_vassal_tax_contribution }
	}
	if = {
		limit = { has_character_flag = happy_powerful_vassal_tax_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = happy_powerful_vassal_tax_contribution_mult } }
			add_character_modifier = { modifier = happy_powerful_vassal_tax_contribution_mult_neg }
		}
		else = { remove_character_modifier = happy_powerful_vassal_tax_contribution_mult }
	}
	if = {
		limit = { has_character_flag = happy_powerful_vassal_levy_contribution_flag }
		if = {
			limit = { NOT= { has_character_modifier = happy_powerful_vassal_levy_contribution } }
			add_character_modifier = { modifier = happy_powerful_vassal_levy_contribution_neg }
		}
		else = { remove_character_modifier = happy_powerful_vassal_levy_contribution }
	}
	if = {
		limit = { has_character_flag = happy_powerful_vassal_levy_contribution_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = happy_powerful_vassal_levy_contribution_mult } }
			add_character_modifier = { modifier = happy_powerful_vassal_levy_contribution_mult_neg }
		}
		else = { remove_character_modifier = happy_powerful_vassal_levy_contribution_mult }
	}
	if = {
		limit = { has_character_flag = build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = build_speed } }
			add_character_modifier = { modifier = build_speed_neg }
		}
		else = { remove_character_modifier = build_speed }
	}
	if = {
		limit = { has_character_flag = build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = build_gold_cost } }
			add_character_modifier = { modifier = build_gold_cost_neg }
		}
		else = { remove_character_modifier = build_gold_cost }
	}
	if = {
		limit = { has_character_flag = build_piety_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = build_piety_cost } }
			add_character_modifier = { modifier = build_piety_cost_neg }
		}
		else = { remove_character_modifier = build_piety_cost }
	}
	if = {
		limit = { has_character_flag = build_prestige_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = build_prestige_cost } }
			add_character_modifier = { modifier = build_prestige_cost_neg }
		}
		else = { remove_character_modifier = build_prestige_cost }
	}
	if = {
		limit = { has_character_flag = holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = holding_build_speed } }
			add_character_modifier = { modifier = holding_build_speed_neg }
		}
		else = { remove_character_modifier = holding_build_speed }
	}
	if = {
		limit = { has_character_flag = holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = holding_build_gold_cost } }
			add_character_modifier = { modifier = holding_build_gold_cost_neg }
		}
		else = { remove_character_modifier = holding_build_gold_cost }
	}
	if = {
		limit = { has_character_flag = holding_build_piety_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = holding_build_piety_cost } }
			add_character_modifier = { modifier = holding_build_piety_cost_neg }
		}
		else = { remove_character_modifier = holding_build_piety_cost }
	}
	if = {
		limit = { has_character_flag = holding_build_prestige_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = holding_build_prestige_cost } }
			add_character_modifier = { modifier = holding_build_prestige_cost }
		}
		else = { remove_character_modifier = holding_build_prestige_cost }
	}
	if = {
		limit = { has_character_flag = development_growth_factor_flag }
		if = {
			limit = { NOT= { has_character_modifier = development_growth_factor } }
			add_character_modifier = { modifier = development_growth_factor_neg }
		}
		else = { remove_character_modifier = development_growth_factor }
	}
	if = {
		limit = { has_character_flag = development_growth_flag }
		if = {
			limit = { NOT= { has_character_modifier = development_growth } }
			add_character_modifier = { modifier = development_growth_neg }
		}
		else = { remove_character_modifier = development_growth }
	}
	if = {
		limit = { has_character_flag = character_capital_county_monthly_development_growth_flag }
		if = {
			limit = { NOT= { has_character_modifier = character_capital_county_monthly_development_growth } }
			add_character_modifier = { modifier = character_capital_county_monthly_development_growth_neg }
		}
		else = { remove_character_modifier = character_capital_county_monthly_development_growth }
	}
	if = {
		limit = { has_character_flag = monthly_county_control_change_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_county_control_change } }
			add_character_modifier = { modifier = monthly_county_control_change_neg }
		}
		else = { remove_character_modifier = monthly_county_control_change }
	}
	if = {
		limit = { has_character_flag = monthly_county_control_change_factor_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_county_control_change_factor } }
			add_character_modifier = { modifier = monthly_county_control_change_factor_neg }
		}
		else = { remove_character_modifier = monthly_county_control_change_factor }
	}
	if = {
		limit = { has_character_flag = monthly_county_control_change_add_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_county_control_change_add_even_if_baron } }
			add_character_modifier = { modifier = monthly_county_control_change_add_even_if_baron_neg }
		}
		else = { remove_character_modifier = monthly_county_control_change_add_even_if_baron }
	}
	if = {
		limit = { has_character_flag = monthly_county_control_change_factor_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_county_control_change_factor_even_if_baron } }
			add_character_modifier = { modifier = monthly_county_control_change_factor_even_if_baron_neg }
		}
		else = { remove_character_modifier = monthly_county_control_change_factor_even_if_baron }
	}
	if = {
		limit = { has_character_flag = castle_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = castle_holding_build_speed } }
			add_character_modifier = { modifier = castle_holding_build_speed_neg }
		}
		else = { remove_character_modifier = castle_holding_build_speed }
	}
	if = {
		limit = { has_character_flag = castle_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = castle_holding_build_gold_cost } }
			add_character_modifier = { modifier = castle_holding_build_gold_cost_neg }
		}
		else = { remove_character_modifier = castle_holding_build_gold_cost }
	}
	if = {
		limit = { has_character_flag = castle_holding_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = castle_holding_holding_build_speed } }
			add_character_modifier = { modifier = castle_holding_holding_build_speed_neg }
		}
		else = { remove_character_modifier = castle_holding_holding_build_speed }
	}
	if = {
		limit = { has_character_flag = castle_holding_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = castle_holding_holding_build_gold_cost } }
			add_character_modifier = { modifier = castle_holding_holding_build_gold_cost_neg }
		}
		else = { remove_character_modifier = castle_holding_holding_build_gold_cost }
	}
	if = {
		limit = { has_character_flag = tribal_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = tribal_holding_build_speed } }
			add_character_modifier = { modifier = tribal_holding_build_speed_neg }
		}
		else = { remove_character_modifier = tribal_holding_build_speed }
	}
	if = {
		limit = { has_character_flag = tribal_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = tribal_holding_build_gold_cost } }
			add_character_modifier = { modifier = tribal_holding_build_gold_cost_neg }
		}
		else = { remove_character_modifier = tribal_holding_build_gold_cost }
	}
	if = {
		limit = { has_character_flag = tribal_holding_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = tribal_holding_holding_build_speed } }
			add_character_modifier = { modifier = tribal_holding_holding_build_speed_neg }
		}
		else = { remove_character_modifier = tribal_holding_holding_build_speed }
	}
	if = {
		limit = { has_character_flag = tribal_holding_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = tribal_holding_holding_build_gold_cost } }
			add_character_modifier = { modifier = tribal_holding_holding_build_gold_cost_neg }
		}
		else = { remove_character_modifier = tribal_holding_holding_build_gold_cost }
	}
	if = {
		limit = { has_character_flag = city_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = city_holding_build_speed } }
			add_character_modifier = { modifier = city_holding_build_speed_neg }
		}
		else = { remove_character_modifier = city_holding_build_speed }
	}
	if = {
		limit = { has_character_flag = city_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = city_holding_build_gold_cost } }
			add_character_modifier = { modifier = city_holding_build_gold_cost_neg }
		}
		else = { remove_character_modifier = city_holding_build_gold_cost }
	}
	if = {
		limit = { has_character_flag = city_holding_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = city_holding_holding_build_speed } }
			add_character_modifier = { modifier = city_holding_holding_build_speed_neg }
		}
		else = { remove_character_modifier = city_holding_holding_build_speed }
	}
	if = {
		limit = { has_character_flag = city_holding_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = city_holding_holding_build_gold_cost } }
			add_character_modifier = { modifier = city_holding_holding_build_gold_cost_neg }
		}
		else = { remove_character_modifier = city_holding_holding_build_gold_cost }
	}
	if = {
		limit = { has_character_flag = church_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = church_holding_build_speed } }
			add_character_modifier = { modifier = church_holding_build_speed_neg }
		}
		else = { remove_character_modifier = church_holding_build_speed }
	}
	if = {
		limit = { has_character_flag = church_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = church_holding_build_gold_cost } }
			add_character_modifier = { modifier = church_holding_build_gold_cost_neg }
		}
		else = { remove_character_modifier = church_holding_build_gold_cost }
	}
	if = {
		limit = { has_character_flag = church_holding_holding_build_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = church_holding_holding_build_speed } }
			add_character_modifier = { modifier = church_holding_holding_build_speed_neg }
		}
		else = { remove_character_modifier = church_holding_holding_build_speed }
	}
	if = {
		limit = { has_character_flag = church_holding_holding_build_gold_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = church_holding_holding_build_gold_cost } }
			add_character_modifier = { modifier = church_holding_holding_build_gold_cost_neg }
		}
		else = { remove_character_modifier = church_holding_holding_build_gold_cost }
	}
	if = {
		limit = { has_character_flag = hostile_raid_time_flag }
		if = {
			limit = { NOT= { has_character_modifier = hostile_raid_time } }
			add_character_modifier = { modifier = hostile_raid_time_neg }
		}
		else = { remove_character_modifier = hostile_raid_time }
	}
	if = {
		limit = { has_character_flag = levy_size_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_size } }
			add_character_modifier = { modifier = levy_size_neg }
		}
		else = { remove_character_modifier = levy_size }
	}
	if = {
		limit = { has_character_flag = garrison_size_flag }
		if = {
			limit = { NOT= { has_character_modifier = garrison_size } }
			add_character_modifier = { modifier = garrison_size_neg }
		}
		else = { remove_character_modifier = garrison_size }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate } }
			add_character_modifier = { modifier = levy_reinforcement_rate_neg }
		}
		else = { remove_character_modifier = levy_reinforcement_rate }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_same_faith_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_same_faith } }
			add_character_modifier = { modifier = levy_reinforcement_rate_same_faith_neg }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_same_faith }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_different_faith_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_different_faith } }
			add_character_modifier = { modifier = levy_reinforcement_rate_different_faith_neg }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_different_faith }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_even_if_baron } }
			add_character_modifier = { modifier = levy_reinforcement_rate_even_if_baron_neg }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_even_if_baron }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_same_faith_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_same_faith_even_if_baron } }
			add_character_modifier = { modifier = levy_reinforcement_rate_same_faith_even_if_baron_neg }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_same_faith_even_if_baron }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_different_faith_even_if_baron_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_different_faith_even_if_baron } }
			add_character_modifier = { modifier = levy_reinforcement_rate_different_faith_even_if_baron_neg }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_different_faith_even_if_baron }
	}
	if = {
		limit = { has_character_flag = levy_reinforcement_rate_friendly_territory_flag }
		if = {
			limit = { NOT= { has_character_modifier = levy_reinforcement_rate_friendly_territory } }
			add_character_modifier = { modifier = levy_reinforcement_rate_friendly_territory_neg }
		}
		else = { remove_character_modifier = levy_reinforcement_rate_friendly_territory }
	}
	# if = {
	# 	limit = { has_character_flag = mercenary_count_mult_flag }
	# 	if = {
	# 		limit = { NOT= { has_character_modifier = mercenary_count_mult } }
	# 		add_character_modifier = { modifier = mercenary_count_mult_neg }
	# 	}
	# 	else = { remove_character_modifier = mercenary_count_mult }
	# }
	if = {
		limit = { has_character_flag = supply_capacity_flag }
		if = {
			limit = { NOT= { has_character_modifier = supply_capacity } }
			add_character_modifier = { modifier = supply_capacity_neg }
		}
		else = { remove_character_modifier = supply_capacity }
	}
	if = {
		limit = { has_character_flag = supply_capacity_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = supply_capacity_mult } }
			add_character_modifier = { modifier = supply_capacity_mult_neg }
		}
		else = { remove_character_modifier = supply_capacity_mult }
	}
	if = {
		limit = { has_character_flag = mercenary_hire_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = mercenary_hire_cost } }
			add_character_modifier = { modifier = mercenary_hire_cost_neg }
		}
		else = { remove_character_modifier = mercenary_hire_cost }
	}
	if = {
		limit = { has_character_flag = mercenary_hire_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = mercenary_hire_cost_mult } }
			add_character_modifier = { modifier = mercenary_hire_cost_mult_neg }
		}
		else = { remove_character_modifier = mercenary_hire_cost_mult }
	}
	if = {
		limit = { has_character_flag = same_culture_mercenary_hire_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_culture_mercenary_hire_cost } }
			add_character_modifier = { modifier = same_culture_mercenary_hire_cost_neg }
		}
		else = { remove_character_modifier = same_culture_mercenary_hire_cost }
	}
	if = {
		limit = { has_character_flag = same_culture_mercenary_hire_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_culture_mercenary_hire_cost_mult } }
			add_character_modifier = { modifier = same_culture_mercenary_hire_cost_mult_neg }
		}
		else = { remove_character_modifier = same_culture_mercenary_hire_cost_mult }
	}
	if = {
		limit = { has_character_flag = holy_order_hire_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = holy_order_hire_cost_mult } }
			add_character_modifier = { modifier = holy_order_hire_cost_mult_neg }
		}
		else = { remove_character_modifier = holy_order_hire_cost_mult }
	}
	if = {
		limit = { has_character_flag = holy_order_hire_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = holy_order_hire_cost } }
			add_character_modifier = { modifier = holy_order_hire_cost_neg }
		}
		else = { remove_character_modifier = holy_order_hire_cost }
	}
	if = {
		limit = { has_character_flag = same_culture_holy_order_hire_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_culture_holy_order_hire_cost_mult } }
			add_character_modifier = { modifier = same_culture_holy_order_hire_cost_mult_neg }
		}
		else = { remove_character_modifier = same_culture_holy_order_hire_cost_mult }
	}
	if = {
		limit = { has_character_flag = same_culture_holy_order_hire_cost_flag }
		if = {
			limit = { NOT= { has_character_modifier = same_culture_holy_order_hire_cost } }
			add_character_modifier = { modifier = same_culture_holy_order_hire_cost_neg }
		}
		else = { remove_character_modifier = same_culture_holy_order_hire_cost }
	}
	if = {
		limit = { has_character_flag = men_at_arms_maintenance_flag }
		if = {
			limit = { NOT= { has_character_modifier = men_at_arms_maintenance } }
			add_character_modifier = { modifier = men_at_arms_maintenance_neg }
		}
		else = { remove_character_modifier = men_at_arms_maintenance }
	}
	if = {
		limit = { has_character_flag = men_at_arms_maintenance_per_dread_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = men_at_arms_maintenance_per_dread_mult } }
			add_character_modifier = { modifier = men_at_arms_maintenance_per_dread_mult_neg }
		}
		else = { remove_character_modifier = men_at_arms_maintenance_per_dread_mult }
	}
	if = {
		limit = { has_character_flag = army_maintenance_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = army_maintenance_mult } }
			add_character_modifier = { modifier = army_maintenance_mult_neg }
		}
		else = { remove_character_modifier = army_maintenance_mult }
	}
	if = {
		limit = { has_character_flag = knight_limit_flag }
		if = {
			limit = { NOT= { has_character_modifier = knight_limit } }
			add_character_modifier = { modifier = knight_limit_neg }
		}
		else = { remove_character_modifier = knight_limit }
	}
	if = {
		limit = { has_character_flag = knight_effectiveness_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = knight_effectiveness_mult } }
			add_character_modifier = { modifier = knight_effectiveness_mult_neg }
		}
		else = { remove_character_modifier = knight_effectiveness_mult }
	}
	if = {
		limit = { has_character_flag = pursue_efficiency_flag }
		if = {
			limit = { NOT= { has_character_modifier = pursue_efficiency } }
			add_character_modifier = { modifier = pursue_efficiency_neg }
		}
		else = { remove_character_modifier = pursue_efficiency }
	}
	if = {
		limit = { has_character_flag = counter_efficiency_flag }
		if = {
			limit = { NOT= { has_character_modifier = counter_efficiency } }
			add_character_modifier = { modifier = counter_efficiency_neg }
		}
		else = { remove_character_modifier = counter_efficiency }
	}
	if = {
		limit = { has_character_flag = min_combat_roll_flag }
		if = {
			limit = { NOT= { has_character_modifier = min_combat_roll } }
			add_character_modifier = { modifier = min_combat_roll_neg }
		}
		else = { remove_character_modifier = min_combat_roll }
	}
	if = {
		limit = { has_character_flag = max_combat_roll_flag }
		if = {
			limit = { NOT= { has_character_modifier = max_combat_roll } }
			add_character_modifier = { modifier = max_combat_roll_neg }
		}
		else = { remove_character_modifier = max_combat_roll }
	}
	if = {
		limit = { has_character_flag = men_at_arms_limit_flag }
		if = {
			limit = { NOT= { has_character_modifier = men_at_arms_limit } }
			add_character_modifier = { modifier = men_at_arms_limit_neg }
		}
		else = { remove_character_modifier = men_at_arms_limit }
	}
	if = {
		limit = { has_character_flag = men_at_arms_cap_flag }
		if = {
			limit = { NOT= { has_character_modifier = men_at_arms_cap } }
			add_character_modifier = { modifier = men_at_arms_cap_neg }
		}
		else = { remove_character_modifier = men_at_arms_cap }
	}
	if = {
		limit = { has_character_flag = embarkation_cost_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = embarkation_cost_mult } }
			add_character_modifier = { modifier = embarkation_cost_mult_neg }
		}
		else = { remove_character_modifier = embarkation_cost_mult }
	}
	if = {
		limit = { has_character_flag = naval_movement_speed_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = naval_movement_speed_mult } }
			add_character_modifier = { modifier = naval_movement_speed_mult_neg }
		}
		else = { remove_character_modifier = naval_movement_speed_mult }
	}
	if = {
		limit = { has_character_flag = siege_phase_time_flag }
		if = {
			limit = { NOT= { has_character_modifier = siege_phase_time } }
			add_character_modifier = { modifier = siege_phase_time_neg }
		}
		else = { remove_character_modifier = siege_phase_time }
	}
	if = {
		limit = { has_character_flag = siege_morale_loss_flag }
		if = {
			limit = { NOT= { has_character_modifier = siege_morale_loss } }
			add_character_modifier = { modifier = siege_morale_loss_neg }
		}
		else = { remove_character_modifier = siege_morale_loss }
	}
	if = {
		limit = { has_character_flag = revolting_siege_morale_loss_flag }
		if = {
			limit = { NOT= { has_character_modifier = revolting_siege_morale_loss } }
			add_character_modifier = { modifier = revolting_siege_morale_loss_neg }
		}
		else = { remove_character_modifier = revolting_siege_morale_loss }
	}
	if = {
		limit = { has_character_flag = revolting_siege_morale_loss_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = revolting_siege_morale_loss_mult } }
			add_character_modifier = { modifier = revolting_siege_morale_loss_mult_neg }
		}
		else = { remove_character_modifier = revolting_siege_morale_loss_mult }
	}
	if = {
		limit = { has_character_flag = movement_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = movement_speed } }
			add_character_modifier = { modifier = movement_speed_neg }
		}
		else = { remove_character_modifier = movement_speed }
	}
	if = {
		limit = { has_character_flag = retreat_losses_flag }
		if = {
			limit = { NOT= { has_character_modifier = retreat_losses } }
			add_character_modifier = { modifier = retreat_losses_neg }
		}
		else = { remove_character_modifier = retreat_losses }
	}
	if = {
		limit = { has_character_flag = hard_casualty_modifier_flag }
		if = {
			limit = { NOT= { has_character_modifier = hard_casualty_modifier } }
			add_character_modifier = { modifier = hard_casualty_modifier_neg }
		}
		else = { remove_character_modifier = hard_casualty_modifier }
	}
	if = {
		limit = { has_character_flag = enemy_hard_casualty_modifier_flag }
		if = {
			limit = { NOT= { has_character_modifier = enemy_hard_casualty_modifier } }
			add_character_modifier = { modifier = enemy_hard_casualty_modifier_neg }
		}
		else = { remove_character_modifier = enemy_hard_casualty_modifier }
	}
	if = {
		limit = { has_character_flag = advantage_flag }
		if = {
			limit = { NOT= { has_character_modifier = advantage } }
			add_character_modifier = { modifier = advantage_neg }
		}
		else = { remove_character_modifier = advantage }
	}
	if = {
		limit = { has_character_flag = attacker_advantage_flag }
		if = {
			limit = { NOT= { has_character_modifier = attacker_advantage } }
			add_character_modifier = { modifier = attacker_advantage_neg }
		}
		else = { remove_character_modifier = attacker_advantage }
	}
	if = {
		limit = { has_character_flag = defender_advantage_flag }
		if = {
			limit = { NOT= { has_character_modifier = defender_advantage } }
			add_character_modifier = { modifier = defender_advantage_neg }
		}
		else = { remove_character_modifier = defender_advantage }
	}
	if = {
		limit = { has_character_flag = enemy_terrain_advantage_flag }
		if = {
			limit = { NOT= { has_character_modifier = enemy_terrain_advantage } }
			add_character_modifier = { modifier = enemy_terrain_advantage_neg }
		}
		else = { remove_character_modifier = enemy_terrain_advantage }
	}
	if = {
		limit = { has_character_flag = tolerance_advantage_mod_flag }
		if = {
			limit = { NOT= { has_character_modifier = tolerance_advantage } }
			add_character_modifier = { modifier = tolerance_advantage_neg }
		}
		else = { remove_character_modifier = tolerance_advantage }
	}
	if = {
		limit = { has_character_flag = advantage_against_coreligionists_flag }
		if = {
			limit = { NOT= { has_character_modifier = advantage_against_coreligionists } }
			add_character_modifier = { modifier = advantage_against_coreligionists_neg }
		}
		else = { remove_character_modifier = advantage_against_coreligionists }
	}
	if = {
		limit = { has_character_flag = controlled_province_advantage_flag }
		if = {
			limit = { NOT= { has_character_modifier = controlled_province_advantage } }
			add_character_modifier = { modifier = controlled_province_advantage_neg }
		}
		else = { remove_character_modifier = controlled_province_advantage }
	}
	if = {
		limit = { has_character_flag = raid_speed_flag }
		if = {
			limit = { NOT= { has_character_modifier = raid_speed } }
			add_character_modifier = { modifier = raid_speed_neg }
		}
		else = { remove_character_modifier = raid_speed }
	}
	if = {
		limit = { has_character_flag = hostile_county_attrition_flag }
		if = {
			limit = { NOT= { has_character_modifier = hostile_county_attrition } }
			add_character_modifier = { modifier = hostile_county_attrition_neg }
		}
		else = { remove_character_modifier = hostile_county_attrition }
	}
	if = {
		limit = { has_character_flag = supply_duration_flag }
		if = {
			limit = { NOT= { has_character_modifier = supply_duration } }
			add_character_modifier = { modifier = supply_duration_neg }
		}
		else = { remove_character_modifier = supply_duration }
	}
	if = {
		limit = { has_character_flag = supply_limit_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = supply_limit_mult } }
			add_character_modifier = { modifier = supply_limit_mult_neg }
		}
		else = { remove_character_modifier = supply_limit_mult }
	}
	if = {
		limit = { has_character_flag = supply_limit_flag }
		if = {
			limit = { NOT= { has_character_modifier = supply_limit } }
			add_character_modifier = { modifier = supply_limit_neg }
		}
		else = { remove_character_modifier = supply_limit }
	}
	if = {
		limit = { has_character_flag = fort_level_flag }
		if = {
			limit = { NOT= { has_character_modifier = fort_level } }
			add_character_modifier = { modifier = fort_level_neg }
		}
		else = { remove_character_modifier = fort_level }
	}
	if = {
		limit = { has_character_flag = cultural_head_fascination_flag }
		if = {
			limit = { NOT= { has_character_modifier = cultural_head_fascination } }
			add_character_modifier = { modifier = cultural_head_fascination_neg }
		}
		else = { remove_character_modifier = cultural_head_fascination }
	}
	if = {
		limit = { has_character_flag = cultural_head_fascination_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = cultural_head_fascination_mult } }
			add_character_modifier = { modifier = cultural_head_fascination_mult_neg }
		}
		else = { remove_character_modifier = cultural_head_fascination_mult }
	}
	if = {
		limit = { has_character_flag = monthly_diplomacy_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_diplomacy_lifestyle_xp_gain_mult } }
			add_character_modifier = { modifier = monthly_diplomacy_lifestyle_xp_gain_mult_neg }
		}
		else = { remove_character_modifier = monthly_diplomacy_lifestyle_xp_gain_mult }
	}
	if = {
		limit = { has_character_flag = monthly_martial_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_martial_lifestyle_xp_gain_mult } }
			add_character_modifier = { modifier = monthly_martial_lifestyle_xp_gain_mult_neg }
		}
		else = { remove_character_modifier = monthly_martial_lifestyle_xp_gain_mult }
	}
	if = {
		limit = { has_character_flag = monthly_stewardship_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_stewardship_lifestyle_xp_gain_mult } }
			add_character_modifier = { modifier = monthly_stewardship_lifestyle_xp_gain_mult_neg }
		}
		else = { remove_character_modifier = monthly_stewardship_lifestyle_xp_gain_mult }
	}
	if = {
		limit = { has_character_flag = monthly_intrigue_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_intrigue_lifestyle_xp_gain_mult } }
			add_character_modifier = { modifier = monthly_intrigue_lifestyle_xp_gain_mult_neg }
		}
		else = { remove_character_modifier = monthly_intrigue_lifestyle_xp_gain_mult }
	}
	if = {
		limit = { has_character_flag = monthly_learning_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_learning_lifestyle_xp_gain_mult } }
			add_character_modifier = { modifier = monthly_learning_lifestyle_xp_gain_mult_neg }
		}
		else = { remove_character_modifier = monthly_learning_lifestyle_xp_gain_mult }
	}
	if = {
		limit = { has_character_flag = monthly_lifestyle_xp_gain_mult_flag }
		if = {
			limit = { NOT= { has_character_modifier = monthly_lifestyle_xp_gain_mult } }
			add_character_modifier = { modifier = monthly_lifestyle_xp_gain_mult_neg }
		}
		else = { remove_character_modifier = monthly_lifestyle_xp_gain_mult }
	}
}

modifier_minus_5 = {
	modifier_minus_1 = yes
	hidden_effect = {
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
	}
}

modifier_minus_25 = {
	modifier_minus_1 = yes
	hidden_effect = {
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
		modifier_minus_1 = yes
	}
}