﻿acm_reset_props_effect = {
	remove_variable = acm_rarity
	remove_variable = acm_quality
	remove_variable = acm_wealth
	remove_variable = acm_durability
	remove_variable = acm_history
	remove_variable = acm_name
	remove_variable = acm_desc
	remove_variable = acm_benefit
	remove_variable = acm_equip
	remove_variable = acm_relic
	remove_variable = acm_msg
	remove_variable = acm_unique
	remove_variable = acm_no_decay
	remove_variable = acm_no_reforge
	remove_variable = acm_no_repair
	remove_variable = acm_auto_equip
	remove_variable = acm_features
	remove_variable = acm_creator_is_owner
	remove_variable = acm_preset
	remove_variable = acm_maker
	remove_variable = acm_history_actor
	acm_init_settings_effect = yes
}

acm_random_bump_effect = {
	if = {
		limit = { var:acm_rarity ?= flag:common }
		acm_random_bump_$KIND$_common_effect = { STAT = $STAT$ OP = $OP$ }
	}
	else_if = {
		limit = { var:acm_rarity ?= flag:masterwork }
		acm_random_bump_$KIND$_masterwork_effect = { STAT = $STAT$ OP = $OP$ }
	}
	else_if = {
		limit = { var:acm_rarity ?= flag:famed }
		acm_random_bump_$KIND$_famed_effect = { STAT = $STAT$ OP = $OP$ }
	}
	else_if = {
		limit = { var:acm_rarity ?= flag:illustrious }
		acm_random_bump_$KIND$_illustrious_effect = { STAT = $STAT$ OP = $OP$ }
	}
}

acm_random_bump_int_common_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 1 max = 2 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_int_masterwork_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 1 max = 3 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_int_famed_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 2 max = 4 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_int_illustrious_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 3 max = 6 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_dec_common_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 2 max = 5 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_dec_masterwork_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 3 max = 8 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_dec_famed_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 5 max = 12 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_dec_illustrious_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 8 max = 20 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_pct_common_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 3 max = 6 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_pct_masterwork_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 5 max = 10 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_pct_famed_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 8 max = 15 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_bump_pct_illustrious_effect = {
	change_variable = {
		name = acm_m_$STAT$
		$OP$ = { integer_range = { min = 12 max = 25 } }
	}
	clamp_variable = { name = acm_m_$STAT$ min = -127 max = 127 }
}

acm_random_one_bonus_effect = {
	random_list = {
		1 = { acm_random_bump_effect = { STAT = diplomacy OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = martial OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = stewardship OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = intrigue OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = learning OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = prowess_no_portrait OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = diplomacy_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = martial_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = stewardship_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = intrigue_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = learning_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = prowess_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_lifestyle_xp_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_diplomacy_lifestyle_xp_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_martial_lifestyle_xp_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_stewardship_lifestyle_xp_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_intrigue_lifestyle_xp_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_learning_lifestyle_xp_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_prestige OP = add KIND = dec } }
		1 = { acm_random_bump_effect = { STAT = monthly_piety OP = add KIND = dec } }
		1 = { acm_random_bump_effect = { STAT = monthly_income OP = add KIND = dec } }
		1 = { acm_random_bump_effect = { STAT = monthly_dynasty_prestige OP = add KIND = dec } }
		1 = { acm_random_bump_effect = { STAT = monthly_influence OP = add KIND = dec } }
		1 = { acm_random_bump_effect = { STAT = monthly_prestige_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_piety_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_income_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_dynasty_prestige_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_influence_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_merit_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = domain_tax_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = vassal_tax_contribution_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_war_income_add OP = add KIND = dec } }
		1 = { acm_random_bump_effect = { STAT = herd_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = court_grandeur_baseline_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = domain_limit OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = vassal_limit OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = knight_limit OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = men_at_arms_limit OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = men_at_arms_cap OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = legitimacy_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = legitimacy_loss_mult OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = short_reign_duration_mult OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = dread_baseline_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = dread_gain_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = dread_decay_mult OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = tyranny_gain_mult OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = tyranny_loss_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = title_creation_cost_mult OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = build_gold_cost OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = build_speed OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = development_growth OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = development_growth_factor OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = monthly_county_control_growth_add OP = add KIND = dec } }
		1 = { acm_random_bump_effect = { STAT = levy_size OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = levy_reinforcement_rate OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = garrison_size OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = fort_level OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = cultural_head_fascination_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = owned_legend_spread_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = general_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = vassal_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = direct_vassal_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = powerful_vassal_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = clergy_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = courtly_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = zealot_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = glory_hound_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = parochial_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = belligerent_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = dynasty_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = spouse_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = child_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = attraction_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = courtier_and_guest_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = same_faith_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = different_faith_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = same_culture_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = different_culture_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = independent_ruler_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = religious_head_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = county_opinion_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = prisoner_opinion OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = health OP = add KIND = dec } }
		1 = { acm_random_bump_effect = { STAT = negate_health_penalty_add OP = add KIND = dec } }
		1 = { acm_random_bump_effect = { STAT = fertility OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = life_expectancy OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = years_of_fertility OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = stress_gain_mult OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = stress_loss_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = epidemic_resistance OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = negate_prowess_penalty_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = positive_inactive_inheritance_chance OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = owned_hostile_scheme_success_chance_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = owned_personal_scheme_success_chance_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = owned_scheme_secrecy_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = enemy_hostile_scheme_success_chance_add OP = subtract KIND = int } }
		1 = { acm_random_bump_effect = { STAT = enemy_personal_scheme_success_chance_add OP = subtract KIND = int } }
		1 = { acm_random_bump_effect = { STAT = hostile_scheme_phase_duration_add OP = subtract KIND = int } }
		1 = { acm_random_bump_effect = { STAT = personal_scheme_phase_duration_add OP = subtract KIND = int } }
		1 = { acm_random_bump_effect = { STAT = enemy_hostile_scheme_phase_duration_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = max_hostile_schemes_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = max_personal_schemes_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = seduce_scheme_phase_duration_add OP = subtract KIND = int } }
		1 = { acm_random_bump_effect = { STAT = courting_scheme_phase_duration_add OP = subtract KIND = int } }
		1 = { acm_random_bump_effect = { STAT = befriend_scheme_phase_duration_add OP = subtract KIND = int } }
		1 = { acm_random_bump_effect = { STAT = learn_language_scheme_phase_duration_add OP = subtract KIND = int } }
		1 = { acm_random_bump_effect = { STAT = knight_effectiveness_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = army_damage_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = army_toughness_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = army_pursuit_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = army_screen_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = army_maintenance_mult OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = men_at_arms_maintenance OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = mercenary_hire_cost_mult OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = enemy_hard_casualty_modifier OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = hard_casualty_modifier OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = retreat_losses OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = supply_limit_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = movement_speed OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = naval_movement_speed_mult OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = embarkation_cost_mult OP = subtract KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = raid_speed OP = add KIND = pct } }
		1 = { acm_random_bump_effect = { STAT = controlled_province_advantage OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = defender_advantage OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = tolerance_advantage_mod OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = led_by_owner_extra_advantage_add OP = add KIND = int } }
		1 = { acm_random_bump_effect = { STAT = pursue_efficiency OP = add KIND = pct } }
	}
}

acm_randomize_effect = {
	acm_clear_stat_settings_effect = yes
	remove_variable = acm_preset
	random_list = {
		1 = { set_variable = { name = acm_type value = flag:helmet } }
		1 = { set_variable = { name = acm_type value = flag:helmet_simple } }
		1 = { set_variable = { name = acm_type value = flag:regalia } }
		1 = { set_variable = { name = acm_type value = flag:regalia_simple } }
		1 = { set_variable = { name = acm_type value = flag:seal_of_investiture } }
		1 = { set_variable = { name = acm_type value = flag:seal_of_investiture_court } }
		1 = { set_variable = { name = acm_type value = flag:armor_mail } }
		1 = { set_variable = { name = acm_type value = flag:armor_plate } }
		1 = { set_variable = { name = acm_type value = flag:armor_scale } }
		1 = { set_variable = { name = acm_type value = flag:armor_lamellar } }
		1 = { set_variable = { name = acm_type value = flag:armor_laminar } }
		1 = { set_variable = { name = acm_type value = flag:armor_brigandine } }
		1 = { set_variable = { name = acm_type value = flag:axe } }
		1 = { set_variable = { name = acm_type value = flag:hammer } }
		1 = { set_variable = { name = acm_type value = flag:mace } }
		1 = { set_variable = { name = acm_type value = flag:spear } }
		1 = { set_variable = { name = acm_type value = flag:sword } }
		1 = { set_variable = { name = acm_type value = flag:dagger } }
		1 = { set_variable = { name = acm_type value = flag:miscellaneous } }
		1 = { set_variable = { name = acm_type value = flag:journal } }
		1 = { set_variable = { name = acm_type value = flag:miscellaneous_when_not_court } }
		1 = { set_variable = { name = acm_type value = flag:brooch } }
		1 = { set_variable = { name = acm_type value = flag:badge } }
		1 = { set_variable = { name = acm_type value = flag:necklace } }
		1 = { set_variable = { name = acm_type value = flag:ring } }
		1 = { set_variable = { name = acm_type value = flag:animal_trinket } }
		1 = { set_variable = { name = acm_type value = flag:bird_feather } }
		1 = { set_variable = { name = acm_type value = flag:sculpture } }
		1 = { set_variable = { name = acm_type value = flag:chest } }
		1 = { set_variable = { name = acm_type value = flag:box } }
		1 = { set_variable = { name = acm_type value = flag:cabinet } }
		1 = { set_variable = { name = acm_type value = flag:goblet } }
		1 = { set_variable = { name = acm_type value = flag:scientific_apparatus } }
		1 = { set_variable = { name = acm_type value = flag:jug } }
		1 = { set_variable = { name = acm_type value = flag:brooch_pedestal } }
		1 = { set_variable = { name = acm_type value = flag:necklace_pedestal } }
		1 = { set_variable = { name = acm_type value = flag:bowl } }
		1 = { set_variable = { name = acm_type value = flag:plate } }
		1 = { set_variable = { name = acm_type value = flag:urn } }
		1 = { set_variable = { name = acm_type value = flag:tun_barrel } }
		1 = { set_variable = { name = acm_type value = flag:scepter_pedestal } }
		1 = { set_variable = { name = acm_type value = flag:pedestal } }
		1 = { set_variable = { name = acm_type value = flag:tapestry } }
		1 = { set_variable = { name = acm_type value = flag:animal_skull } }
		1 = { set_variable = { name = acm_type value = flag:animal_hide } }
		1 = { set_variable = { name = acm_type value = flag:animal_hide_big } }
		1 = { set_variable = { name = acm_type value = flag:wall_big } }
		1 = { set_variable = { name = acm_type value = flag:wall_small } }
		1 = { set_variable = { name = acm_type value = flag:wall_shield } }
		1 = { set_variable = { name = acm_type value = flag:wall_shield_special } }
		1 = { set_variable = { name = acm_type value = flag:wall_icon_court_large } }
		1 = { set_variable = { name = acm_type value = flag:wall_icon_court_small } }
		1 = { set_variable = { name = acm_type value = flag:throne } }
		1 = { set_variable = { name = acm_type value = flag:throne_special } }
		1 = { set_variable = { name = acm_type value = flag:book } }
		1 = { set_variable = { name = acm_type value = flag:chronicle } }
		1 = { set_variable = { name = acm_type value = flag:elixir } }
		1 = { set_variable = { name = acm_type value = flag:panacea } }
		1 = { set_variable = { name = acm_type value = flag:philosophers_stone } }
		1 = { set_variable = { name = acm_type value = flag:pas_darmes_token } }
		1 = { set_variable = { name = acm_type value = flag:pas_darmes_spurs } }
		1 = { set_variable = { name = acm_type value = flag:tournament_favor } }
		1 = { set_variable = { name = acm_type value = flag:longbow } }
		1 = { set_variable = { name = acm_type value = flag:composite } }
		1 = { set_variable = { name = acm_type value = flag:bow } }
		1 = { set_variable = { name = acm_type value = flag:crossbow } }
	}
	acm_apply_type_look_effect = yes
	random_list = {
		35 = { set_variable = { name = acm_rarity value = flag:common } }
		30 = { set_variable = { name = acm_rarity value = flag:masterwork } }
		22 = { set_variable = { name = acm_rarity value = flag:famed } }
		13 = { set_variable = { name = acm_rarity value = flag:illustrious } }
	}
	if = {
		limit = { var:acm_rarity ?= flag:common }
		set_variable = { name = acm_quality value = { integer_range = { min = 20 max = 45 } } }
		set_variable = { name = acm_wealth value = { integer_range = { min = 20 max = 45 } } }
		acm_random_one_bonus_effect = yes
		acm_random_one_bonus_effect = yes
	}
	if = {
		limit = { var:acm_rarity ?= flag:masterwork }
		set_variable = { name = acm_quality value = { integer_range = { min = 40 max = 65 } } }
		set_variable = { name = acm_wealth value = { integer_range = { min = 40 max = 65 } } }
		acm_random_one_bonus_effect = yes
		acm_random_one_bonus_effect = yes
		acm_random_one_bonus_effect = yes
	}
	if = {
		limit = { var:acm_rarity ?= flag:famed }
		set_variable = { name = acm_quality value = { integer_range = { min = 60 max = 85 } } }
		set_variable = { name = acm_wealth value = { integer_range = { min = 60 max = 85 } } }
		acm_random_one_bonus_effect = yes
		acm_random_one_bonus_effect = yes
		acm_random_one_bonus_effect = yes
		acm_random_one_bonus_effect = yes
	}
	if = {
		limit = { var:acm_rarity ?= flag:illustrious }
		set_variable = { name = acm_quality value = { integer_range = { min = 80 max = 100 } } }
		set_variable = { name = acm_wealth value = { integer_range = { min = 80 max = 100 } } }
		acm_random_one_bonus_effect = yes
		acm_random_one_bonus_effect = yes
		acm_random_one_bonus_effect = yes
		acm_random_one_bonus_effect = yes
		acm_random_one_bonus_effect = yes
	}
	set_variable = { name = acm_history value = flag:created }
	random_list = {
		50 = { set_variable = { name = acm_name value = flag:none } }
		2 = { set_variable = { name = acm_name value = flag:owners_treasure } }
		2 = { set_variable = { name = acm_name value = flag:owners_pride } }
		2 = { set_variable = { name = acm_name value = flag:house_heirloom } }
		2 = { set_variable = { name = acm_name value = flag:creators_masterpiece } }
		2 = { set_variable = { name = acm_name value = flag:crown_jewel } }
		2 = { set_variable = { name = acm_name value = flag:ancient_relic } }
		2 = { set_variable = { name = acm_name value = flag:gift_of_kings } }
		2 = { set_variable = { name = acm_name value = flag:dragons_hoard } }
		2 = { set_variable = { name = acm_name value = flag:blessed_treasure } }
		2 = { set_variable = { name = acm_name value = flag:cursed_treasure } }
		2 = { set_variable = { name = acm_name value = flag:legendary_wonder } }
		2 = { set_variable = { name = acm_name value = flag:forgotten_marvel } }
		2 = { set_variable = { name = acm_name value = flag:oathkeeper } }
		2 = { set_variable = { name = acm_name value = flag:dawnbringer } }
		2 = { set_variable = { name = acm_name value = flag:widowmaker } }
		2 = { set_variable = { name = acm_name value = flag:the_last_word } }
		2 = { set_variable = { name = acm_name value = flag:star_of_the_east } }
		2 = { set_variable = { name = acm_name value = flag:tears_of_the_saints } }
		2 = { set_variable = { name = acm_name value = flag:the_unbroken } }
		2 = { set_variable = { name = acm_name value = flag:realm_in_miniature } }
		2 = { set_variable = { name = acm_name value = flag:pride_of_house } }
		2 = { set_variable = { name = acm_name value = flag:creators_folly } }
		2 = { set_variable = { name = acm_name value = flag:kingmaker } }
		2 = { set_variable = { name = acm_name value = flag:the_quiet_hour } }
	}
	random_list = {
		1 = { set_variable = { name = acm_desc value = flag:crafted_for } }
		1 = { set_variable = { name = acm_desc value = flag:ancient } }
		1 = { set_variable = { name = acm_desc value = flag:royal } }
		1 = { set_variable = { name = acm_desc value = flag:holy } }
		1 = { set_variable = { name = acm_desc value = flag:cursed } }
		1 = { set_variable = { name = acm_desc value = flag:family } }
		1 = { set_variable = { name = acm_desc value = flag:war } }
		1 = { set_variable = { name = acm_desc value = flag:scholar } }
		1 = { set_variable = { name = acm_desc value = flag:smith } }
		1 = { set_variable = { name = acm_desc value = flag:plunder } }
		1 = { set_variable = { name = acm_desc value = flag:gift } }
		1 = { set_variable = { name = acm_desc value = flag:dream } }
		1 = { set_variable = { name = acm_desc value = flag:dowry } }
		1 = { set_variable = { name = acm_desc value = flag:river } }
		1 = { set_variable = { name = acm_desc value = flag:tomb } }
		1 = { set_variable = { name = acm_desc value = flag:vow } }
		1 = { set_variable = { name = acm_desc value = flag:pilgrim } }
		1 = { set_variable = { name = acm_desc value = flag:wager } }
		1 = { set_variable = { name = acm_desc value = flag:masterwork_guild } }
		1 = { set_variable = { name = acm_desc value = flag:omen } }
		1 = { set_variable = { name = acm_desc value = flag:humble } }
		1 = { set_variable = { name = acm_desc value = flag:envied } }
		1 = { set_variable = { name = acm_desc value = flag:restored } }
		1 = { set_variable = { name = acm_desc value = flag:ancestor } }
	}
}

acm_slot_save_1_effect = {
	set_global_variable = { name = acm_s1_saved value = yes }
	if = { limit = { has_variable = acm_type } set_global_variable = { name = acm_s1_type value = var:acm_type } }
	else = { remove_global_variable = acm_s1_type }
	if = { limit = { has_variable = acm_icon } set_global_variable = { name = acm_s1_icon value = var:acm_icon } }
	else = { remove_global_variable = acm_s1_icon }
	if = { limit = { has_variable = acm_asset } set_global_variable = { name = acm_s1_asset value = var:acm_asset } }
	else = { remove_global_variable = acm_s1_asset }
	if = { limit = { has_variable = acm_support } set_global_variable = { name = acm_s1_support value = var:acm_support } }
	else = { remove_global_variable = acm_s1_support }
	if = { limit = { has_variable = acm_rarity } set_global_variable = { name = acm_s1_rarity value = var:acm_rarity } }
	else = { remove_global_variable = acm_s1_rarity }
	if = { limit = { has_variable = acm_history } set_global_variable = { name = acm_s1_history value = var:acm_history } }
	else = { remove_global_variable = acm_s1_history }
	if = { limit = { has_variable = acm_name } set_global_variable = { name = acm_s1_name value = var:acm_name } }
	else = { remove_global_variable = acm_s1_name }
	if = { limit = { has_variable = acm_desc } set_global_variable = { name = acm_s1_desc value = var:acm_desc } }
	else = { remove_global_variable = acm_s1_desc }
	if = { limit = { has_variable = acm_benefit } set_global_variable = { name = acm_s1_benefit value = var:acm_benefit } }
	else = { remove_global_variable = acm_s1_benefit }
	if = { limit = { has_variable = acm_equip } set_global_variable = { name = acm_s1_equip value = var:acm_equip } }
	else = { remove_global_variable = acm_s1_equip }
	if = { limit = { has_variable = acm_relic } set_global_variable = { name = acm_s1_relic value = var:acm_relic } }
	else = { remove_global_variable = acm_s1_relic }
	if = { limit = { has_variable = acm_msg } set_global_variable = { name = acm_s1_msg value = var:acm_msg } }
	else = { remove_global_variable = acm_s1_msg }
	if = { limit = { has_variable = acm_vset } set_global_variable = { name = acm_s1_vset value = var:acm_vset } }
	else = { remove_global_variable = acm_s1_vset }
	if = { limit = { has_variable = acm_preset } set_global_variable = { name = acm_s1_preset value = var:acm_preset } }
	else = { remove_global_variable = acm_s1_preset }
	if = { limit = { has_variable = acm_quality } set_global_variable = { name = acm_s1_quality value = var:acm_quality } }
	else = { remove_global_variable = acm_s1_quality }
	if = { limit = { has_variable = acm_wealth } set_global_variable = { name = acm_s1_wealth value = var:acm_wealth } }
	else = { remove_global_variable = acm_s1_wealth }
	if = { limit = { has_variable = acm_durability } set_global_variable = { name = acm_s1_durability value = var:acm_durability } }
	else = { remove_global_variable = acm_s1_durability }
	if = { limit = { has_variable = acm_auto_look } set_global_variable = { name = acm_s1_auto_look value = yes } }
	else = { remove_global_variable = acm_s1_auto_look }
	if = { limit = { has_variable = acm_unique } set_global_variable = { name = acm_s1_unique value = yes } }
	else = { remove_global_variable = acm_s1_unique }
	if = { limit = { has_variable = acm_no_decay } set_global_variable = { name = acm_s1_no_decay value = yes } }
	else = { remove_global_variable = acm_s1_no_decay }
	if = { limit = { has_variable = acm_no_reforge } set_global_variable = { name = acm_s1_no_reforge value = yes } }
	else = { remove_global_variable = acm_s1_no_reforge }
	if = { limit = { has_variable = acm_no_repair } set_global_variable = { name = acm_s1_no_repair value = yes } }
	else = { remove_global_variable = acm_s1_no_repair }
	if = { limit = { has_variable = acm_auto_equip } set_global_variable = { name = acm_s1_auto_equip value = yes } }
	else = { remove_global_variable = acm_s1_auto_equip }
	if = { limit = { has_variable = acm_features } set_global_variable = { name = acm_s1_features value = yes } }
	else = { remove_global_variable = acm_s1_features }
	if = { limit = { has_variable = acm_creator_is_owner } set_global_variable = { name = acm_s1_creator_is_owner value = yes } }
	else = { remove_global_variable = acm_s1_creator_is_owner }
	if = { limit = { has_variable = acm_maker } set_global_variable = { name = acm_s1_maker value = var:acm_maker } }
	else = { remove_global_variable = acm_s1_maker }
	if = { limit = { has_variable = acm_history_actor } set_global_variable = { name = acm_s1_history_actor value = var:acm_history_actor } }
	else = { remove_global_variable = acm_s1_history_actor }
	if = { limit = { NOT = { var:acm_m_diplomacy ?= 0 } } set_global_variable = { name = acm_s1_m_diplomacy value = var:acm_m_diplomacy } }
	else = { remove_global_variable = acm_s1_m_diplomacy }
	if = { limit = { NOT = { var:acm_m_martial ?= 0 } } set_global_variable = { name = acm_s1_m_martial value = var:acm_m_martial } }
	else = { remove_global_variable = acm_s1_m_martial }
	if = { limit = { NOT = { var:acm_m_stewardship ?= 0 } } set_global_variable = { name = acm_s1_m_stewardship value = var:acm_m_stewardship } }
	else = { remove_global_variable = acm_s1_m_stewardship }
	if = { limit = { NOT = { var:acm_m_intrigue ?= 0 } } set_global_variable = { name = acm_s1_m_intrigue value = var:acm_m_intrigue } }
	else = { remove_global_variable = acm_s1_m_intrigue }
	if = { limit = { NOT = { var:acm_m_learning ?= 0 } } set_global_variable = { name = acm_s1_m_learning value = var:acm_m_learning } }
	else = { remove_global_variable = acm_s1_m_learning }
	if = { limit = { NOT = { var:acm_m_prowess_no_portrait ?= 0 } } set_global_variable = { name = acm_s1_m_prowess_no_portrait value = var:acm_m_prowess_no_portrait } }
	else = { remove_global_variable = acm_s1_m_prowess_no_portrait }
	if = { limit = { NOT = { var:acm_m_diplomacy_mult ?= 0 } } set_global_variable = { name = acm_s1_m_diplomacy_mult value = var:acm_m_diplomacy_mult } }
	else = { remove_global_variable = acm_s1_m_diplomacy_mult }
	if = { limit = { NOT = { var:acm_m_martial_mult ?= 0 } } set_global_variable = { name = acm_s1_m_martial_mult value = var:acm_m_martial_mult } }
	else = { remove_global_variable = acm_s1_m_martial_mult }
	if = { limit = { NOT = { var:acm_m_stewardship_mult ?= 0 } } set_global_variable = { name = acm_s1_m_stewardship_mult value = var:acm_m_stewardship_mult } }
	else = { remove_global_variable = acm_s1_m_stewardship_mult }
	if = { limit = { NOT = { var:acm_m_intrigue_mult ?= 0 } } set_global_variable = { name = acm_s1_m_intrigue_mult value = var:acm_m_intrigue_mult } }
	else = { remove_global_variable = acm_s1_m_intrigue_mult }
	if = { limit = { NOT = { var:acm_m_learning_mult ?= 0 } } set_global_variable = { name = acm_s1_m_learning_mult value = var:acm_m_learning_mult } }
	else = { remove_global_variable = acm_s1_m_learning_mult }
	if = { limit = { NOT = { var:acm_m_prowess_mult ?= 0 } } set_global_variable = { name = acm_s1_m_prowess_mult value = var:acm_m_prowess_mult } }
	else = { remove_global_variable = acm_s1_m_prowess_mult }
	if = { limit = { NOT = { var:acm_m_monthly_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_lifestyle_xp_gain_mult value = var:acm_m_monthly_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_diplomacy_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_diplomacy_lifestyle_xp_gain_mult value = var:acm_m_monthly_diplomacy_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_diplomacy_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_martial_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_martial_lifestyle_xp_gain_mult value = var:acm_m_monthly_martial_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_martial_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_stewardship_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_stewardship_lifestyle_xp_gain_mult value = var:acm_m_monthly_stewardship_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_stewardship_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_intrigue_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_intrigue_lifestyle_xp_gain_mult value = var:acm_m_monthly_intrigue_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_intrigue_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_learning_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_learning_lifestyle_xp_gain_mult value = var:acm_m_monthly_learning_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_learning_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_prestige ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_prestige value = var:acm_m_monthly_prestige } }
	else = { remove_global_variable = acm_s1_m_monthly_prestige }
	if = { limit = { NOT = { var:acm_m_monthly_piety ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_piety value = var:acm_m_monthly_piety } }
	else = { remove_global_variable = acm_s1_m_monthly_piety }
	if = { limit = { NOT = { var:acm_m_monthly_income ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_income value = var:acm_m_monthly_income } }
	else = { remove_global_variable = acm_s1_m_monthly_income }
	if = { limit = { NOT = { var:acm_m_monthly_dynasty_prestige ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_dynasty_prestige value = var:acm_m_monthly_dynasty_prestige } }
	else = { remove_global_variable = acm_s1_m_monthly_dynasty_prestige }
	if = { limit = { NOT = { var:acm_m_monthly_influence ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_influence value = var:acm_m_monthly_influence } }
	else = { remove_global_variable = acm_s1_m_monthly_influence }
	if = { limit = { NOT = { var:acm_m_monthly_prestige_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_prestige_gain_mult value = var:acm_m_monthly_prestige_gain_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_prestige_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_piety_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_piety_gain_mult value = var:acm_m_monthly_piety_gain_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_piety_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_income_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_income_mult value = var:acm_m_monthly_income_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_income_mult }
	if = { limit = { NOT = { var:acm_m_monthly_dynasty_prestige_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_dynasty_prestige_mult value = var:acm_m_monthly_dynasty_prestige_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_dynasty_prestige_mult }
	if = { limit = { NOT = { var:acm_m_monthly_influence_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_influence_mult value = var:acm_m_monthly_influence_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_influence_mult }
	if = { limit = { NOT = { var:acm_m_monthly_merit_mult ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_merit_mult value = var:acm_m_monthly_merit_mult } }
	else = { remove_global_variable = acm_s1_m_monthly_merit_mult }
	if = { limit = { NOT = { var:acm_m_domain_tax_mult ?= 0 } } set_global_variable = { name = acm_s1_m_domain_tax_mult value = var:acm_m_domain_tax_mult } }
	else = { remove_global_variable = acm_s1_m_domain_tax_mult }
	if = { limit = { NOT = { var:acm_m_vassal_tax_contribution_mult ?= 0 } } set_global_variable = { name = acm_s1_m_vassal_tax_contribution_mult value = var:acm_m_vassal_tax_contribution_mult } }
	else = { remove_global_variable = acm_s1_m_vassal_tax_contribution_mult }
	if = { limit = { NOT = { var:acm_m_monthly_war_income_add ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_war_income_add value = var:acm_m_monthly_war_income_add } }
	else = { remove_global_variable = acm_s1_m_monthly_war_income_add }
	if = { limit = { NOT = { var:acm_m_herd_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_herd_gain_mult value = var:acm_m_herd_gain_mult } }
	else = { remove_global_variable = acm_s1_m_herd_gain_mult }
	if = { limit = { NOT = { var:acm_m_court_grandeur_baseline_add ?= 0 } } set_global_variable = { name = acm_s1_m_court_grandeur_baseline_add value = var:acm_m_court_grandeur_baseline_add } }
	else = { remove_global_variable = acm_s1_m_court_grandeur_baseline_add }
	if = { limit = { NOT = { var:acm_m_domain_limit ?= 0 } } set_global_variable = { name = acm_s1_m_domain_limit value = var:acm_m_domain_limit } }
	else = { remove_global_variable = acm_s1_m_domain_limit }
	if = { limit = { NOT = { var:acm_m_vassal_limit ?= 0 } } set_global_variable = { name = acm_s1_m_vassal_limit value = var:acm_m_vassal_limit } }
	else = { remove_global_variable = acm_s1_m_vassal_limit }
	if = { limit = { NOT = { var:acm_m_knight_limit ?= 0 } } set_global_variable = { name = acm_s1_m_knight_limit value = var:acm_m_knight_limit } }
	else = { remove_global_variable = acm_s1_m_knight_limit }
	if = { limit = { NOT = { var:acm_m_men_at_arms_limit ?= 0 } } set_global_variable = { name = acm_s1_m_men_at_arms_limit value = var:acm_m_men_at_arms_limit } }
	else = { remove_global_variable = acm_s1_m_men_at_arms_limit }
	if = { limit = { NOT = { var:acm_m_men_at_arms_cap ?= 0 } } set_global_variable = { name = acm_s1_m_men_at_arms_cap value = var:acm_m_men_at_arms_cap } }
	else = { remove_global_variable = acm_s1_m_men_at_arms_cap }
	if = { limit = { NOT = { var:acm_m_legitimacy_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_legitimacy_gain_mult value = var:acm_m_legitimacy_gain_mult } }
	else = { remove_global_variable = acm_s1_m_legitimacy_gain_mult }
	if = { limit = { NOT = { var:acm_m_legitimacy_loss_mult ?= 0 } } set_global_variable = { name = acm_s1_m_legitimacy_loss_mult value = var:acm_m_legitimacy_loss_mult } }
	else = { remove_global_variable = acm_s1_m_legitimacy_loss_mult }
	if = { limit = { NOT = { var:acm_m_short_reign_duration_mult ?= 0 } } set_global_variable = { name = acm_s1_m_short_reign_duration_mult value = var:acm_m_short_reign_duration_mult } }
	else = { remove_global_variable = acm_s1_m_short_reign_duration_mult }
	if = { limit = { NOT = { var:acm_m_dread_baseline_add ?= 0 } } set_global_variable = { name = acm_s1_m_dread_baseline_add value = var:acm_m_dread_baseline_add } }
	else = { remove_global_variable = acm_s1_m_dread_baseline_add }
	if = { limit = { NOT = { var:acm_m_dread_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_dread_gain_mult value = var:acm_m_dread_gain_mult } }
	else = { remove_global_variable = acm_s1_m_dread_gain_mult }
	if = { limit = { NOT = { var:acm_m_dread_decay_mult ?= 0 } } set_global_variable = { name = acm_s1_m_dread_decay_mult value = var:acm_m_dread_decay_mult } }
	else = { remove_global_variable = acm_s1_m_dread_decay_mult }
	if = { limit = { NOT = { var:acm_m_tyranny_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_tyranny_gain_mult value = var:acm_m_tyranny_gain_mult } }
	else = { remove_global_variable = acm_s1_m_tyranny_gain_mult }
	if = { limit = { NOT = { var:acm_m_tyranny_loss_mult ?= 0 } } set_global_variable = { name = acm_s1_m_tyranny_loss_mult value = var:acm_m_tyranny_loss_mult } }
	else = { remove_global_variable = acm_s1_m_tyranny_loss_mult }
	if = { limit = { NOT = { var:acm_m_title_creation_cost_mult ?= 0 } } set_global_variable = { name = acm_s1_m_title_creation_cost_mult value = var:acm_m_title_creation_cost_mult } }
	else = { remove_global_variable = acm_s1_m_title_creation_cost_mult }
	if = { limit = { NOT = { var:acm_m_build_gold_cost ?= 0 } } set_global_variable = { name = acm_s1_m_build_gold_cost value = var:acm_m_build_gold_cost } }
	else = { remove_global_variable = acm_s1_m_build_gold_cost }
	if = { limit = { NOT = { var:acm_m_build_speed ?= 0 } } set_global_variable = { name = acm_s1_m_build_speed value = var:acm_m_build_speed } }
	else = { remove_global_variable = acm_s1_m_build_speed }
	if = { limit = { NOT = { var:acm_m_development_growth ?= 0 } } set_global_variable = { name = acm_s1_m_development_growth value = var:acm_m_development_growth } }
	else = { remove_global_variable = acm_s1_m_development_growth }
	if = { limit = { NOT = { var:acm_m_development_growth_factor ?= 0 } } set_global_variable = { name = acm_s1_m_development_growth_factor value = var:acm_m_development_growth_factor } }
	else = { remove_global_variable = acm_s1_m_development_growth_factor }
	if = { limit = { NOT = { var:acm_m_monthly_county_control_growth_add ?= 0 } } set_global_variable = { name = acm_s1_m_monthly_county_control_growth_add value = var:acm_m_monthly_county_control_growth_add } }
	else = { remove_global_variable = acm_s1_m_monthly_county_control_growth_add }
	if = { limit = { NOT = { var:acm_m_levy_size ?= 0 } } set_global_variable = { name = acm_s1_m_levy_size value = var:acm_m_levy_size } }
	else = { remove_global_variable = acm_s1_m_levy_size }
	if = { limit = { NOT = { var:acm_m_levy_reinforcement_rate ?= 0 } } set_global_variable = { name = acm_s1_m_levy_reinforcement_rate value = var:acm_m_levy_reinforcement_rate } }
	else = { remove_global_variable = acm_s1_m_levy_reinforcement_rate }
	if = { limit = { NOT = { var:acm_m_garrison_size ?= 0 } } set_global_variable = { name = acm_s1_m_garrison_size value = var:acm_m_garrison_size } }
	else = { remove_global_variable = acm_s1_m_garrison_size }
	if = { limit = { NOT = { var:acm_m_fort_level ?= 0 } } set_global_variable = { name = acm_s1_m_fort_level value = var:acm_m_fort_level } }
	else = { remove_global_variable = acm_s1_m_fort_level }
	if = { limit = { NOT = { var:acm_m_cultural_head_fascination_mult ?= 0 } } set_global_variable = { name = acm_s1_m_cultural_head_fascination_mult value = var:acm_m_cultural_head_fascination_mult } }
	else = { remove_global_variable = acm_s1_m_cultural_head_fascination_mult }
	if = { limit = { NOT = { var:acm_m_owned_legend_spread_mult ?= 0 } } set_global_variable = { name = acm_s1_m_owned_legend_spread_mult value = var:acm_m_owned_legend_spread_mult } }
	else = { remove_global_variable = acm_s1_m_owned_legend_spread_mult }
	if = { limit = { NOT = { var:acm_m_general_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_general_opinion value = var:acm_m_general_opinion } }
	else = { remove_global_variable = acm_s1_m_general_opinion }
	if = { limit = { NOT = { var:acm_m_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_vassal_opinion value = var:acm_m_vassal_opinion } }
	else = { remove_global_variable = acm_s1_m_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_direct_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_direct_vassal_opinion value = var:acm_m_direct_vassal_opinion } }
	else = { remove_global_variable = acm_s1_m_direct_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_powerful_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_powerful_vassal_opinion value = var:acm_m_powerful_vassal_opinion } }
	else = { remove_global_variable = acm_s1_m_powerful_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_clergy_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_clergy_opinion value = var:acm_m_clergy_opinion } }
	else = { remove_global_variable = acm_s1_m_clergy_opinion }
	if = { limit = { NOT = { var:acm_m_courtly_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_courtly_opinion value = var:acm_m_courtly_opinion } }
	else = { remove_global_variable = acm_s1_m_courtly_opinion }
	if = { limit = { NOT = { var:acm_m_zealot_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_zealot_opinion value = var:acm_m_zealot_opinion } }
	else = { remove_global_variable = acm_s1_m_zealot_opinion }
	if = { limit = { NOT = { var:acm_m_glory_hound_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_glory_hound_opinion value = var:acm_m_glory_hound_opinion } }
	else = { remove_global_variable = acm_s1_m_glory_hound_opinion }
	if = { limit = { NOT = { var:acm_m_parochial_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_parochial_opinion value = var:acm_m_parochial_opinion } }
	else = { remove_global_variable = acm_s1_m_parochial_opinion }
	if = { limit = { NOT = { var:acm_m_belligerent_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_belligerent_opinion value = var:acm_m_belligerent_opinion } }
	else = { remove_global_variable = acm_s1_m_belligerent_opinion }
	if = { limit = { NOT = { var:acm_m_dynasty_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_dynasty_opinion value = var:acm_m_dynasty_opinion } }
	else = { remove_global_variable = acm_s1_m_dynasty_opinion }
	if = { limit = { NOT = { var:acm_m_spouse_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_spouse_opinion value = var:acm_m_spouse_opinion } }
	else = { remove_global_variable = acm_s1_m_spouse_opinion }
	if = { limit = { NOT = { var:acm_m_child_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_child_opinion value = var:acm_m_child_opinion } }
	else = { remove_global_variable = acm_s1_m_child_opinion }
	if = { limit = { NOT = { var:acm_m_attraction_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_attraction_opinion value = var:acm_m_attraction_opinion } }
	else = { remove_global_variable = acm_s1_m_attraction_opinion }
	if = { limit = { NOT = { var:acm_m_courtier_and_guest_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_courtier_and_guest_opinion value = var:acm_m_courtier_and_guest_opinion } }
	else = { remove_global_variable = acm_s1_m_courtier_and_guest_opinion }
	if = { limit = { NOT = { var:acm_m_same_faith_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_same_faith_opinion value = var:acm_m_same_faith_opinion } }
	else = { remove_global_variable = acm_s1_m_same_faith_opinion }
	if = { limit = { NOT = { var:acm_m_different_faith_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_different_faith_opinion value = var:acm_m_different_faith_opinion } }
	else = { remove_global_variable = acm_s1_m_different_faith_opinion }
	if = { limit = { NOT = { var:acm_m_same_culture_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_same_culture_opinion value = var:acm_m_same_culture_opinion } }
	else = { remove_global_variable = acm_s1_m_same_culture_opinion }
	if = { limit = { NOT = { var:acm_m_different_culture_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_different_culture_opinion value = var:acm_m_different_culture_opinion } }
	else = { remove_global_variable = acm_s1_m_different_culture_opinion }
	if = { limit = { NOT = { var:acm_m_independent_ruler_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_independent_ruler_opinion value = var:acm_m_independent_ruler_opinion } }
	else = { remove_global_variable = acm_s1_m_independent_ruler_opinion }
	if = { limit = { NOT = { var:acm_m_religious_head_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_religious_head_opinion value = var:acm_m_religious_head_opinion } }
	else = { remove_global_variable = acm_s1_m_religious_head_opinion }
	if = { limit = { NOT = { var:acm_m_county_opinion_add ?= 0 } } set_global_variable = { name = acm_s1_m_county_opinion_add value = var:acm_m_county_opinion_add } }
	else = { remove_global_variable = acm_s1_m_county_opinion_add }
	if = { limit = { NOT = { var:acm_m_prisoner_opinion ?= 0 } } set_global_variable = { name = acm_s1_m_prisoner_opinion value = var:acm_m_prisoner_opinion } }
	else = { remove_global_variable = acm_s1_m_prisoner_opinion }
	if = { limit = { NOT = { var:acm_m_health ?= 0 } } set_global_variable = { name = acm_s1_m_health value = var:acm_m_health } }
	else = { remove_global_variable = acm_s1_m_health }
	if = { limit = { NOT = { var:acm_m_negate_health_penalty_add ?= 0 } } set_global_variable = { name = acm_s1_m_negate_health_penalty_add value = var:acm_m_negate_health_penalty_add } }
	else = { remove_global_variable = acm_s1_m_negate_health_penalty_add }
	if = { limit = { NOT = { var:acm_m_fertility ?= 0 } } set_global_variable = { name = acm_s1_m_fertility value = var:acm_m_fertility } }
	else = { remove_global_variable = acm_s1_m_fertility }
	if = { limit = { NOT = { var:acm_m_life_expectancy ?= 0 } } set_global_variable = { name = acm_s1_m_life_expectancy value = var:acm_m_life_expectancy } }
	else = { remove_global_variable = acm_s1_m_life_expectancy }
	if = { limit = { NOT = { var:acm_m_years_of_fertility ?= 0 } } set_global_variable = { name = acm_s1_m_years_of_fertility value = var:acm_m_years_of_fertility } }
	else = { remove_global_variable = acm_s1_m_years_of_fertility }
	if = { limit = { NOT = { var:acm_m_stress_gain_mult ?= 0 } } set_global_variable = { name = acm_s1_m_stress_gain_mult value = var:acm_m_stress_gain_mult } }
	else = { remove_global_variable = acm_s1_m_stress_gain_mult }
	if = { limit = { NOT = { var:acm_m_stress_loss_mult ?= 0 } } set_global_variable = { name = acm_s1_m_stress_loss_mult value = var:acm_m_stress_loss_mult } }
	else = { remove_global_variable = acm_s1_m_stress_loss_mult }
	if = { limit = { NOT = { var:acm_m_epidemic_resistance ?= 0 } } set_global_variable = { name = acm_s1_m_epidemic_resistance value = var:acm_m_epidemic_resistance } }
	else = { remove_global_variable = acm_s1_m_epidemic_resistance }
	if = { limit = { NOT = { var:acm_m_negate_prowess_penalty_add ?= 0 } } set_global_variable = { name = acm_s1_m_negate_prowess_penalty_add value = var:acm_m_negate_prowess_penalty_add } }
	else = { remove_global_variable = acm_s1_m_negate_prowess_penalty_add }
	if = { limit = { NOT = { var:acm_m_positive_inactive_inheritance_chance ?= 0 } } set_global_variable = { name = acm_s1_m_positive_inactive_inheritance_chance value = var:acm_m_positive_inactive_inheritance_chance } }
	else = { remove_global_variable = acm_s1_m_positive_inactive_inheritance_chance }
	if = { limit = { NOT = { var:acm_m_owned_hostile_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s1_m_owned_hostile_scheme_success_chance_add value = var:acm_m_owned_hostile_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s1_m_owned_hostile_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_owned_personal_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s1_m_owned_personal_scheme_success_chance_add value = var:acm_m_owned_personal_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s1_m_owned_personal_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_owned_scheme_secrecy_add ?= 0 } } set_global_variable = { name = acm_s1_m_owned_scheme_secrecy_add value = var:acm_m_owned_scheme_secrecy_add } }
	else = { remove_global_variable = acm_s1_m_owned_scheme_secrecy_add }
	if = { limit = { NOT = { var:acm_m_enemy_hostile_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s1_m_enemy_hostile_scheme_success_chance_add value = var:acm_m_enemy_hostile_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s1_m_enemy_hostile_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_enemy_personal_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s1_m_enemy_personal_scheme_success_chance_add value = var:acm_m_enemy_personal_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s1_m_enemy_personal_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_hostile_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s1_m_hostile_scheme_phase_duration_add value = var:acm_m_hostile_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s1_m_hostile_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_personal_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s1_m_personal_scheme_phase_duration_add value = var:acm_m_personal_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s1_m_personal_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_enemy_hostile_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s1_m_enemy_hostile_scheme_phase_duration_add value = var:acm_m_enemy_hostile_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s1_m_enemy_hostile_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_max_hostile_schemes_add ?= 0 } } set_global_variable = { name = acm_s1_m_max_hostile_schemes_add value = var:acm_m_max_hostile_schemes_add } }
	else = { remove_global_variable = acm_s1_m_max_hostile_schemes_add }
	if = { limit = { NOT = { var:acm_m_max_personal_schemes_add ?= 0 } } set_global_variable = { name = acm_s1_m_max_personal_schemes_add value = var:acm_m_max_personal_schemes_add } }
	else = { remove_global_variable = acm_s1_m_max_personal_schemes_add }
	if = { limit = { NOT = { var:acm_m_seduce_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s1_m_seduce_scheme_phase_duration_add value = var:acm_m_seduce_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s1_m_seduce_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_courting_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s1_m_courting_scheme_phase_duration_add value = var:acm_m_courting_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s1_m_courting_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_befriend_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s1_m_befriend_scheme_phase_duration_add value = var:acm_m_befriend_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s1_m_befriend_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_learn_language_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s1_m_learn_language_scheme_phase_duration_add value = var:acm_m_learn_language_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s1_m_learn_language_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_knight_effectiveness_mult ?= 0 } } set_global_variable = { name = acm_s1_m_knight_effectiveness_mult value = var:acm_m_knight_effectiveness_mult } }
	else = { remove_global_variable = acm_s1_m_knight_effectiveness_mult }
	if = { limit = { NOT = { var:acm_m_army_damage_mult ?= 0 } } set_global_variable = { name = acm_s1_m_army_damage_mult value = var:acm_m_army_damage_mult } }
	else = { remove_global_variable = acm_s1_m_army_damage_mult }
	if = { limit = { NOT = { var:acm_m_army_toughness_mult ?= 0 } } set_global_variable = { name = acm_s1_m_army_toughness_mult value = var:acm_m_army_toughness_mult } }
	else = { remove_global_variable = acm_s1_m_army_toughness_mult }
	if = { limit = { NOT = { var:acm_m_army_pursuit_mult ?= 0 } } set_global_variable = { name = acm_s1_m_army_pursuit_mult value = var:acm_m_army_pursuit_mult } }
	else = { remove_global_variable = acm_s1_m_army_pursuit_mult }
	if = { limit = { NOT = { var:acm_m_army_screen_mult ?= 0 } } set_global_variable = { name = acm_s1_m_army_screen_mult value = var:acm_m_army_screen_mult } }
	else = { remove_global_variable = acm_s1_m_army_screen_mult }
	if = { limit = { NOT = { var:acm_m_army_maintenance_mult ?= 0 } } set_global_variable = { name = acm_s1_m_army_maintenance_mult value = var:acm_m_army_maintenance_mult } }
	else = { remove_global_variable = acm_s1_m_army_maintenance_mult }
	if = { limit = { NOT = { var:acm_m_men_at_arms_maintenance ?= 0 } } set_global_variable = { name = acm_s1_m_men_at_arms_maintenance value = var:acm_m_men_at_arms_maintenance } }
	else = { remove_global_variable = acm_s1_m_men_at_arms_maintenance }
	if = { limit = { NOT = { var:acm_m_mercenary_hire_cost_mult ?= 0 } } set_global_variable = { name = acm_s1_m_mercenary_hire_cost_mult value = var:acm_m_mercenary_hire_cost_mult } }
	else = { remove_global_variable = acm_s1_m_mercenary_hire_cost_mult }
	if = { limit = { NOT = { var:acm_m_enemy_hard_casualty_modifier ?= 0 } } set_global_variable = { name = acm_s1_m_enemy_hard_casualty_modifier value = var:acm_m_enemy_hard_casualty_modifier } }
	else = { remove_global_variable = acm_s1_m_enemy_hard_casualty_modifier }
	if = { limit = { NOT = { var:acm_m_hard_casualty_modifier ?= 0 } } set_global_variable = { name = acm_s1_m_hard_casualty_modifier value = var:acm_m_hard_casualty_modifier } }
	else = { remove_global_variable = acm_s1_m_hard_casualty_modifier }
	if = { limit = { NOT = { var:acm_m_retreat_losses ?= 0 } } set_global_variable = { name = acm_s1_m_retreat_losses value = var:acm_m_retreat_losses } }
	else = { remove_global_variable = acm_s1_m_retreat_losses }
	if = { limit = { NOT = { var:acm_m_supply_limit_mult ?= 0 } } set_global_variable = { name = acm_s1_m_supply_limit_mult value = var:acm_m_supply_limit_mult } }
	else = { remove_global_variable = acm_s1_m_supply_limit_mult }
	if = { limit = { NOT = { var:acm_m_movement_speed ?= 0 } } set_global_variable = { name = acm_s1_m_movement_speed value = var:acm_m_movement_speed } }
	else = { remove_global_variable = acm_s1_m_movement_speed }
	if = { limit = { NOT = { var:acm_m_naval_movement_speed_mult ?= 0 } } set_global_variable = { name = acm_s1_m_naval_movement_speed_mult value = var:acm_m_naval_movement_speed_mult } }
	else = { remove_global_variable = acm_s1_m_naval_movement_speed_mult }
	if = { limit = { NOT = { var:acm_m_embarkation_cost_mult ?= 0 } } set_global_variable = { name = acm_s1_m_embarkation_cost_mult value = var:acm_m_embarkation_cost_mult } }
	else = { remove_global_variable = acm_s1_m_embarkation_cost_mult }
	if = { limit = { NOT = { var:acm_m_raid_speed ?= 0 } } set_global_variable = { name = acm_s1_m_raid_speed value = var:acm_m_raid_speed } }
	else = { remove_global_variable = acm_s1_m_raid_speed }
	if = { limit = { NOT = { var:acm_m_controlled_province_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_controlled_province_advantage value = var:acm_m_controlled_province_advantage } }
	else = { remove_global_variable = acm_s1_m_controlled_province_advantage }
	if = { limit = { NOT = { var:acm_m_defender_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_defender_advantage value = var:acm_m_defender_advantage } }
	else = { remove_global_variable = acm_s1_m_defender_advantage }
	if = { limit = { NOT = { var:acm_m_tolerance_advantage_mod ?= 0 } } set_global_variable = { name = acm_s1_m_tolerance_advantage_mod value = var:acm_m_tolerance_advantage_mod } }
	else = { remove_global_variable = acm_s1_m_tolerance_advantage_mod }
	if = { limit = { NOT = { var:acm_m_led_by_owner_extra_advantage_add ?= 0 } } set_global_variable = { name = acm_s1_m_led_by_owner_extra_advantage_add value = var:acm_m_led_by_owner_extra_advantage_add } }
	else = { remove_global_variable = acm_s1_m_led_by_owner_extra_advantage_add }
	if = { limit = { NOT = { var:acm_m_pursue_efficiency ?= 0 } } set_global_variable = { name = acm_s1_m_pursue_efficiency value = var:acm_m_pursue_efficiency } }
	else = { remove_global_variable = acm_s1_m_pursue_efficiency }
	if = { limit = { NOT = { var:acm_m_levy_reinforcement_rate_same_faith ?= 0 } } set_global_variable = { name = acm_s1_m_levy_reinforcement_rate_same_faith value = var:acm_m_levy_reinforcement_rate_same_faith } }
	else = { remove_global_variable = acm_s1_m_levy_reinforcement_rate_same_faith }
	if = { limit = { NOT = { var:acm_m_heavy_infantry_damage_mult ?= 0 } } set_global_variable = { name = acm_s1_m_heavy_infantry_damage_mult value = var:acm_m_heavy_infantry_damage_mult } }
	else = { remove_global_variable = acm_s1_m_heavy_infantry_damage_mult }
	if = { limit = { NOT = { var:acm_m_heavy_infantry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s1_m_heavy_infantry_toughness_mult value = var:acm_m_heavy_infantry_toughness_mult } }
	else = { remove_global_variable = acm_s1_m_heavy_infantry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_heavy_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s1_m_heavy_cavalry_damage_mult value = var:acm_m_heavy_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s1_m_heavy_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_heavy_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s1_m_heavy_cavalry_toughness_mult value = var:acm_m_heavy_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s1_m_heavy_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_light_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s1_m_light_cavalry_damage_mult value = var:acm_m_light_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s1_m_light_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_light_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s1_m_light_cavalry_toughness_mult value = var:acm_m_light_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s1_m_light_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_archers_damage_mult ?= 0 } } set_global_variable = { name = acm_s1_m_archers_damage_mult value = var:acm_m_archers_damage_mult } }
	else = { remove_global_variable = acm_s1_m_archers_damage_mult }
	if = { limit = { NOT = { var:acm_m_archers_toughness_mult ?= 0 } } set_global_variable = { name = acm_s1_m_archers_toughness_mult value = var:acm_m_archers_toughness_mult } }
	else = { remove_global_variable = acm_s1_m_archers_toughness_mult }
	if = { limit = { NOT = { var:acm_m_pikemen_damage_mult ?= 0 } } set_global_variable = { name = acm_s1_m_pikemen_damage_mult value = var:acm_m_pikemen_damage_mult } }
	else = { remove_global_variable = acm_s1_m_pikemen_damage_mult }
	if = { limit = { NOT = { var:acm_m_pikemen_toughness_mult ?= 0 } } set_global_variable = { name = acm_s1_m_pikemen_toughness_mult value = var:acm_m_pikemen_toughness_mult } }
	else = { remove_global_variable = acm_s1_m_pikemen_toughness_mult }
	if = { limit = { NOT = { var:acm_m_skirmishers_damage_mult ?= 0 } } set_global_variable = { name = acm_s1_m_skirmishers_damage_mult value = var:acm_m_skirmishers_damage_mult } }
	else = { remove_global_variable = acm_s1_m_skirmishers_damage_mult }
	if = { limit = { NOT = { var:acm_m_skirmishers_toughness_mult ?= 0 } } set_global_variable = { name = acm_s1_m_skirmishers_toughness_mult value = var:acm_m_skirmishers_toughness_mult } }
	else = { remove_global_variable = acm_s1_m_skirmishers_toughness_mult }
	if = { limit = { NOT = { var:acm_m_archer_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s1_m_archer_cavalry_damage_mult value = var:acm_m_archer_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s1_m_archer_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_archer_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s1_m_archer_cavalry_toughness_mult value = var:acm_m_archer_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s1_m_archer_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_camel_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s1_m_camel_cavalry_damage_mult value = var:acm_m_camel_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s1_m_camel_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_elephant_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s1_m_elephant_cavalry_damage_mult value = var:acm_m_elephant_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s1_m_elephant_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_siege_weapon_siege_value_mult ?= 0 } } set_global_variable = { name = acm_s1_m_siege_weapon_siege_value_mult value = var:acm_m_siege_weapon_siege_value_mult } }
	else = { remove_global_variable = acm_s1_m_siege_weapon_siege_value_mult }
	if = { limit = { NOT = { var:acm_m_plains_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_plains_advantage value = var:acm_m_plains_advantage } }
	else = { remove_global_variable = acm_s1_m_plains_advantage }
	if = { limit = { NOT = { var:acm_m_farmlands_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_farmlands_advantage value = var:acm_m_farmlands_advantage } }
	else = { remove_global_variable = acm_s1_m_farmlands_advantage }
	if = { limit = { NOT = { var:acm_m_hills_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_hills_advantage value = var:acm_m_hills_advantage } }
	else = { remove_global_variable = acm_s1_m_hills_advantage }
	if = { limit = { NOT = { var:acm_m_mountains_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_mountains_advantage value = var:acm_m_mountains_advantage } }
	else = { remove_global_variable = acm_s1_m_mountains_advantage }
	if = { limit = { NOT = { var:acm_m_desert_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_desert_advantage value = var:acm_m_desert_advantage } }
	else = { remove_global_variable = acm_s1_m_desert_advantage }
	if = { limit = { NOT = { var:acm_m_desert_mountains_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_desert_mountains_advantage value = var:acm_m_desert_mountains_advantage } }
	else = { remove_global_variable = acm_s1_m_desert_mountains_advantage }
	if = { limit = { NOT = { var:acm_m_oasis_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_oasis_advantage value = var:acm_m_oasis_advantage } }
	else = { remove_global_variable = acm_s1_m_oasis_advantage }
	if = { limit = { NOT = { var:acm_m_jungle_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_jungle_advantage value = var:acm_m_jungle_advantage } }
	else = { remove_global_variable = acm_s1_m_jungle_advantage }
	if = { limit = { NOT = { var:acm_m_forest_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_forest_advantage value = var:acm_m_forest_advantage } }
	else = { remove_global_variable = acm_s1_m_forest_advantage }
	if = { limit = { NOT = { var:acm_m_taiga_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_taiga_advantage value = var:acm_m_taiga_advantage } }
	else = { remove_global_variable = acm_s1_m_taiga_advantage }
	if = { limit = { NOT = { var:acm_m_wetlands_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_wetlands_advantage value = var:acm_m_wetlands_advantage } }
	else = { remove_global_variable = acm_s1_m_wetlands_advantage }
	if = { limit = { NOT = { var:acm_m_steppe_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_steppe_advantage value = var:acm_m_steppe_advantage } }
	else = { remove_global_variable = acm_s1_m_steppe_advantage }
	if = { limit = { NOT = { var:acm_m_floodplains_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_floodplains_advantage value = var:acm_m_floodplains_advantage } }
	else = { remove_global_variable = acm_s1_m_floodplains_advantage }
	if = { limit = { NOT = { var:acm_m_drylands_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_drylands_advantage value = var:acm_m_drylands_advantage } }
	else = { remove_global_variable = acm_s1_m_drylands_advantage }
	if = { limit = { NOT = { var:acm_m_winter_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_winter_advantage value = var:acm_m_winter_advantage } }
	else = { remove_global_variable = acm_s1_m_winter_advantage }
	if = { limit = { NOT = { var:acm_m_coastal_advantage ?= 0 } } set_global_variable = { name = acm_s1_m_coastal_advantage value = var:acm_m_coastal_advantage } }
	else = { remove_global_variable = acm_s1_m_coastal_advantage }
	if = { limit = { NOT = { var:acm_m_character_travel_speed ?= 0 } } set_global_variable = { name = acm_s1_m_character_travel_speed value = var:acm_m_character_travel_speed } }
	else = { remove_global_variable = acm_s1_m_character_travel_speed }
	if = { limit = { NOT = { var:acm_m_character_travel_safety ?= 0 } } set_global_variable = { name = acm_s1_m_character_travel_safety value = var:acm_m_character_travel_safety } }
	else = { remove_global_variable = acm_s1_m_character_travel_safety }
	if = { limit = { NOT = { var:acm_m_character_travel_speed_mult ?= 0 } } set_global_variable = { name = acm_s1_m_character_travel_speed_mult value = var:acm_m_character_travel_speed_mult } }
	else = { remove_global_variable = acm_s1_m_character_travel_speed_mult }
	if = { limit = { NOT = { var:acm_m_character_travel_safety_mult ?= 0 } } set_global_variable = { name = acm_s1_m_character_travel_safety_mult value = var:acm_m_character_travel_safety_mult } }
	else = { remove_global_variable = acm_s1_m_character_travel_safety_mult }
	if = { limit = { NOT = { var:acm_m_winter_movement_speed ?= 0 } } set_global_variable = { name = acm_s1_m_winter_movement_speed value = var:acm_m_winter_movement_speed } }
	else = { remove_global_variable = acm_s1_m_winter_movement_speed }
}

acm_slot_load_1_effect = {
	if = { limit = { has_global_variable = acm_s1_type } set_variable = { name = acm_type value = global_var:acm_s1_type } }
	else = { remove_variable = acm_type }
	if = { limit = { has_global_variable = acm_s1_icon } set_variable = { name = acm_icon value = global_var:acm_s1_icon } }
	else = { remove_variable = acm_icon }
	if = { limit = { has_global_variable = acm_s1_asset } set_variable = { name = acm_asset value = global_var:acm_s1_asset } }
	else = { remove_variable = acm_asset }
	if = { limit = { has_global_variable = acm_s1_support } set_variable = { name = acm_support value = global_var:acm_s1_support } }
	else = { remove_variable = acm_support }
	if = { limit = { has_global_variable = acm_s1_rarity } set_variable = { name = acm_rarity value = global_var:acm_s1_rarity } }
	else = { remove_variable = acm_rarity }
	if = { limit = { has_global_variable = acm_s1_history } set_variable = { name = acm_history value = global_var:acm_s1_history } }
	else = { remove_variable = acm_history }
	if = { limit = { has_global_variable = acm_s1_name } set_variable = { name = acm_name value = global_var:acm_s1_name } }
	else = { remove_variable = acm_name }
	if = { limit = { has_global_variable = acm_s1_desc } set_variable = { name = acm_desc value = global_var:acm_s1_desc } }
	else = { remove_variable = acm_desc }
	if = { limit = { has_global_variable = acm_s1_benefit } set_variable = { name = acm_benefit value = global_var:acm_s1_benefit } }
	else = { remove_variable = acm_benefit }
	if = { limit = { has_global_variable = acm_s1_equip } set_variable = { name = acm_equip value = global_var:acm_s1_equip } }
	else = { remove_variable = acm_equip }
	if = { limit = { has_global_variable = acm_s1_relic } set_variable = { name = acm_relic value = global_var:acm_s1_relic } }
	else = { remove_variable = acm_relic }
	if = { limit = { has_global_variable = acm_s1_msg } set_variable = { name = acm_msg value = global_var:acm_s1_msg } }
	else = { remove_variable = acm_msg }
	if = { limit = { has_global_variable = acm_s1_vset } set_variable = { name = acm_vset value = global_var:acm_s1_vset } }
	else = { remove_variable = acm_vset }
	if = { limit = { has_global_variable = acm_s1_preset } set_variable = { name = acm_preset value = global_var:acm_s1_preset } }
	else = { remove_variable = acm_preset }
	if = { limit = { has_global_variable = acm_s1_quality } set_variable = { name = acm_quality value = global_var:acm_s1_quality } }
	else = { remove_variable = acm_quality }
	if = { limit = { has_global_variable = acm_s1_wealth } set_variable = { name = acm_wealth value = global_var:acm_s1_wealth } }
	else = { remove_variable = acm_wealth }
	if = { limit = { has_global_variable = acm_s1_durability } set_variable = { name = acm_durability value = global_var:acm_s1_durability } }
	else = { remove_variable = acm_durability }
	if = { limit = { has_global_variable = acm_s1_auto_look } set_variable = acm_auto_look }
	else = { remove_variable = acm_auto_look }
	if = { limit = { has_global_variable = acm_s1_unique } set_variable = acm_unique }
	else = { remove_variable = acm_unique }
	if = { limit = { has_global_variable = acm_s1_no_decay } set_variable = acm_no_decay }
	else = { remove_variable = acm_no_decay }
	if = { limit = { has_global_variable = acm_s1_no_reforge } set_variable = acm_no_reforge }
	else = { remove_variable = acm_no_reforge }
	if = { limit = { has_global_variable = acm_s1_no_repair } set_variable = acm_no_repair }
	else = { remove_variable = acm_no_repair }
	if = { limit = { has_global_variable = acm_s1_auto_equip } set_variable = acm_auto_equip }
	else = { remove_variable = acm_auto_equip }
	if = { limit = { has_global_variable = acm_s1_features } set_variable = acm_features }
	else = { remove_variable = acm_features }
	if = { limit = { has_global_variable = acm_s1_creator_is_owner } set_variable = acm_creator_is_owner }
	else = { remove_variable = acm_creator_is_owner }
	if = { limit = { has_global_variable = acm_s1_maker } set_variable = { name = acm_maker value = global_var:acm_s1_maker } }
	else = { remove_variable = acm_maker }
	if = { limit = { has_global_variable = acm_s1_history_actor } set_variable = { name = acm_history_actor value = global_var:acm_s1_history_actor } }
	else = { remove_variable = acm_history_actor }
	if = { limit = { has_global_variable = acm_s1_m_diplomacy } set_variable = { name = acm_m_diplomacy value = global_var:acm_s1_m_diplomacy } }
	else = { set_variable = { name = acm_m_diplomacy value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_martial } set_variable = { name = acm_m_martial value = global_var:acm_s1_m_martial } }
	else = { set_variable = { name = acm_m_martial value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_stewardship } set_variable = { name = acm_m_stewardship value = global_var:acm_s1_m_stewardship } }
	else = { set_variable = { name = acm_m_stewardship value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_intrigue } set_variable = { name = acm_m_intrigue value = global_var:acm_s1_m_intrigue } }
	else = { set_variable = { name = acm_m_intrigue value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_learning } set_variable = { name = acm_m_learning value = global_var:acm_s1_m_learning } }
	else = { set_variable = { name = acm_m_learning value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_prowess_no_portrait } set_variable = { name = acm_m_prowess_no_portrait value = global_var:acm_s1_m_prowess_no_portrait } }
	else = { set_variable = { name = acm_m_prowess_no_portrait value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_diplomacy_mult } set_variable = { name = acm_m_diplomacy_mult value = global_var:acm_s1_m_diplomacy_mult } }
	else = { set_variable = { name = acm_m_diplomacy_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_martial_mult } set_variable = { name = acm_m_martial_mult value = global_var:acm_s1_m_martial_mult } }
	else = { set_variable = { name = acm_m_martial_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_stewardship_mult } set_variable = { name = acm_m_stewardship_mult value = global_var:acm_s1_m_stewardship_mult } }
	else = { set_variable = { name = acm_m_stewardship_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_intrigue_mult } set_variable = { name = acm_m_intrigue_mult value = global_var:acm_s1_m_intrigue_mult } }
	else = { set_variable = { name = acm_m_intrigue_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_learning_mult } set_variable = { name = acm_m_learning_mult value = global_var:acm_s1_m_learning_mult } }
	else = { set_variable = { name = acm_m_learning_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_prowess_mult } set_variable = { name = acm_m_prowess_mult value = global_var:acm_s1_m_prowess_mult } }
	else = { set_variable = { name = acm_m_prowess_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_lifestyle_xp_gain_mult value = global_var:acm_s1_m_monthly_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_diplomacy_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_diplomacy_lifestyle_xp_gain_mult value = global_var:acm_s1_m_monthly_diplomacy_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_diplomacy_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_martial_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_martial_lifestyle_xp_gain_mult value = global_var:acm_s1_m_monthly_martial_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_martial_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_stewardship_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_stewardship_lifestyle_xp_gain_mult value = global_var:acm_s1_m_monthly_stewardship_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_stewardship_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_intrigue_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_intrigue_lifestyle_xp_gain_mult value = global_var:acm_s1_m_monthly_intrigue_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_intrigue_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_learning_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_learning_lifestyle_xp_gain_mult value = global_var:acm_s1_m_monthly_learning_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_learning_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_prestige } set_variable = { name = acm_m_monthly_prestige value = global_var:acm_s1_m_monthly_prestige } }
	else = { set_variable = { name = acm_m_monthly_prestige value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_piety } set_variable = { name = acm_m_monthly_piety value = global_var:acm_s1_m_monthly_piety } }
	else = { set_variable = { name = acm_m_monthly_piety value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_income } set_variable = { name = acm_m_monthly_income value = global_var:acm_s1_m_monthly_income } }
	else = { set_variable = { name = acm_m_monthly_income value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_dynasty_prestige } set_variable = { name = acm_m_monthly_dynasty_prestige value = global_var:acm_s1_m_monthly_dynasty_prestige } }
	else = { set_variable = { name = acm_m_monthly_dynasty_prestige value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_influence } set_variable = { name = acm_m_monthly_influence value = global_var:acm_s1_m_monthly_influence } }
	else = { set_variable = { name = acm_m_monthly_influence value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_prestige_gain_mult } set_variable = { name = acm_m_monthly_prestige_gain_mult value = global_var:acm_s1_m_monthly_prestige_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_prestige_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_piety_gain_mult } set_variable = { name = acm_m_monthly_piety_gain_mult value = global_var:acm_s1_m_monthly_piety_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_piety_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_income_mult } set_variable = { name = acm_m_monthly_income_mult value = global_var:acm_s1_m_monthly_income_mult } }
	else = { set_variable = { name = acm_m_monthly_income_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_dynasty_prestige_mult } set_variable = { name = acm_m_monthly_dynasty_prestige_mult value = global_var:acm_s1_m_monthly_dynasty_prestige_mult } }
	else = { set_variable = { name = acm_m_monthly_dynasty_prestige_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_influence_mult } set_variable = { name = acm_m_monthly_influence_mult value = global_var:acm_s1_m_monthly_influence_mult } }
	else = { set_variable = { name = acm_m_monthly_influence_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_merit_mult } set_variable = { name = acm_m_monthly_merit_mult value = global_var:acm_s1_m_monthly_merit_mult } }
	else = { set_variable = { name = acm_m_monthly_merit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_domain_tax_mult } set_variable = { name = acm_m_domain_tax_mult value = global_var:acm_s1_m_domain_tax_mult } }
	else = { set_variable = { name = acm_m_domain_tax_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_vassal_tax_contribution_mult } set_variable = { name = acm_m_vassal_tax_contribution_mult value = global_var:acm_s1_m_vassal_tax_contribution_mult } }
	else = { set_variable = { name = acm_m_vassal_tax_contribution_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_war_income_add } set_variable = { name = acm_m_monthly_war_income_add value = global_var:acm_s1_m_monthly_war_income_add } }
	else = { set_variable = { name = acm_m_monthly_war_income_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_herd_gain_mult } set_variable = { name = acm_m_herd_gain_mult value = global_var:acm_s1_m_herd_gain_mult } }
	else = { set_variable = { name = acm_m_herd_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_court_grandeur_baseline_add } set_variable = { name = acm_m_court_grandeur_baseline_add value = global_var:acm_s1_m_court_grandeur_baseline_add } }
	else = { set_variable = { name = acm_m_court_grandeur_baseline_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_domain_limit } set_variable = { name = acm_m_domain_limit value = global_var:acm_s1_m_domain_limit } }
	else = { set_variable = { name = acm_m_domain_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_vassal_limit } set_variable = { name = acm_m_vassal_limit value = global_var:acm_s1_m_vassal_limit } }
	else = { set_variable = { name = acm_m_vassal_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_knight_limit } set_variable = { name = acm_m_knight_limit value = global_var:acm_s1_m_knight_limit } }
	else = { set_variable = { name = acm_m_knight_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_men_at_arms_limit } set_variable = { name = acm_m_men_at_arms_limit value = global_var:acm_s1_m_men_at_arms_limit } }
	else = { set_variable = { name = acm_m_men_at_arms_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_men_at_arms_cap } set_variable = { name = acm_m_men_at_arms_cap value = global_var:acm_s1_m_men_at_arms_cap } }
	else = { set_variable = { name = acm_m_men_at_arms_cap value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_legitimacy_gain_mult } set_variable = { name = acm_m_legitimacy_gain_mult value = global_var:acm_s1_m_legitimacy_gain_mult } }
	else = { set_variable = { name = acm_m_legitimacy_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_legitimacy_loss_mult } set_variable = { name = acm_m_legitimacy_loss_mult value = global_var:acm_s1_m_legitimacy_loss_mult } }
	else = { set_variable = { name = acm_m_legitimacy_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_short_reign_duration_mult } set_variable = { name = acm_m_short_reign_duration_mult value = global_var:acm_s1_m_short_reign_duration_mult } }
	else = { set_variable = { name = acm_m_short_reign_duration_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_dread_baseline_add } set_variable = { name = acm_m_dread_baseline_add value = global_var:acm_s1_m_dread_baseline_add } }
	else = { set_variable = { name = acm_m_dread_baseline_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_dread_gain_mult } set_variable = { name = acm_m_dread_gain_mult value = global_var:acm_s1_m_dread_gain_mult } }
	else = { set_variable = { name = acm_m_dread_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_dread_decay_mult } set_variable = { name = acm_m_dread_decay_mult value = global_var:acm_s1_m_dread_decay_mult } }
	else = { set_variable = { name = acm_m_dread_decay_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_tyranny_gain_mult } set_variable = { name = acm_m_tyranny_gain_mult value = global_var:acm_s1_m_tyranny_gain_mult } }
	else = { set_variable = { name = acm_m_tyranny_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_tyranny_loss_mult } set_variable = { name = acm_m_tyranny_loss_mult value = global_var:acm_s1_m_tyranny_loss_mult } }
	else = { set_variable = { name = acm_m_tyranny_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_title_creation_cost_mult } set_variable = { name = acm_m_title_creation_cost_mult value = global_var:acm_s1_m_title_creation_cost_mult } }
	else = { set_variable = { name = acm_m_title_creation_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_build_gold_cost } set_variable = { name = acm_m_build_gold_cost value = global_var:acm_s1_m_build_gold_cost } }
	else = { set_variable = { name = acm_m_build_gold_cost value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_build_speed } set_variable = { name = acm_m_build_speed value = global_var:acm_s1_m_build_speed } }
	else = { set_variable = { name = acm_m_build_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_development_growth } set_variable = { name = acm_m_development_growth value = global_var:acm_s1_m_development_growth } }
	else = { set_variable = { name = acm_m_development_growth value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_development_growth_factor } set_variable = { name = acm_m_development_growth_factor value = global_var:acm_s1_m_development_growth_factor } }
	else = { set_variable = { name = acm_m_development_growth_factor value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_monthly_county_control_growth_add } set_variable = { name = acm_m_monthly_county_control_growth_add value = global_var:acm_s1_m_monthly_county_control_growth_add } }
	else = { set_variable = { name = acm_m_monthly_county_control_growth_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_levy_size } set_variable = { name = acm_m_levy_size value = global_var:acm_s1_m_levy_size } }
	else = { set_variable = { name = acm_m_levy_size value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_levy_reinforcement_rate } set_variable = { name = acm_m_levy_reinforcement_rate value = global_var:acm_s1_m_levy_reinforcement_rate } }
	else = { set_variable = { name = acm_m_levy_reinforcement_rate value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_garrison_size } set_variable = { name = acm_m_garrison_size value = global_var:acm_s1_m_garrison_size } }
	else = { set_variable = { name = acm_m_garrison_size value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_fort_level } set_variable = { name = acm_m_fort_level value = global_var:acm_s1_m_fort_level } }
	else = { set_variable = { name = acm_m_fort_level value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_cultural_head_fascination_mult } set_variable = { name = acm_m_cultural_head_fascination_mult value = global_var:acm_s1_m_cultural_head_fascination_mult } }
	else = { set_variable = { name = acm_m_cultural_head_fascination_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_owned_legend_spread_mult } set_variable = { name = acm_m_owned_legend_spread_mult value = global_var:acm_s1_m_owned_legend_spread_mult } }
	else = { set_variable = { name = acm_m_owned_legend_spread_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_general_opinion } set_variable = { name = acm_m_general_opinion value = global_var:acm_s1_m_general_opinion } }
	else = { set_variable = { name = acm_m_general_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_vassal_opinion } set_variable = { name = acm_m_vassal_opinion value = global_var:acm_s1_m_vassal_opinion } }
	else = { set_variable = { name = acm_m_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_direct_vassal_opinion } set_variable = { name = acm_m_direct_vassal_opinion value = global_var:acm_s1_m_direct_vassal_opinion } }
	else = { set_variable = { name = acm_m_direct_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_powerful_vassal_opinion } set_variable = { name = acm_m_powerful_vassal_opinion value = global_var:acm_s1_m_powerful_vassal_opinion } }
	else = { set_variable = { name = acm_m_powerful_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_clergy_opinion } set_variable = { name = acm_m_clergy_opinion value = global_var:acm_s1_m_clergy_opinion } }
	else = { set_variable = { name = acm_m_clergy_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_courtly_opinion } set_variable = { name = acm_m_courtly_opinion value = global_var:acm_s1_m_courtly_opinion } }
	else = { set_variable = { name = acm_m_courtly_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_zealot_opinion } set_variable = { name = acm_m_zealot_opinion value = global_var:acm_s1_m_zealot_opinion } }
	else = { set_variable = { name = acm_m_zealot_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_glory_hound_opinion } set_variable = { name = acm_m_glory_hound_opinion value = global_var:acm_s1_m_glory_hound_opinion } }
	else = { set_variable = { name = acm_m_glory_hound_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_parochial_opinion } set_variable = { name = acm_m_parochial_opinion value = global_var:acm_s1_m_parochial_opinion } }
	else = { set_variable = { name = acm_m_parochial_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_belligerent_opinion } set_variable = { name = acm_m_belligerent_opinion value = global_var:acm_s1_m_belligerent_opinion } }
	else = { set_variable = { name = acm_m_belligerent_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_dynasty_opinion } set_variable = { name = acm_m_dynasty_opinion value = global_var:acm_s1_m_dynasty_opinion } }
	else = { set_variable = { name = acm_m_dynasty_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_spouse_opinion } set_variable = { name = acm_m_spouse_opinion value = global_var:acm_s1_m_spouse_opinion } }
	else = { set_variable = { name = acm_m_spouse_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_child_opinion } set_variable = { name = acm_m_child_opinion value = global_var:acm_s1_m_child_opinion } }
	else = { set_variable = { name = acm_m_child_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_attraction_opinion } set_variable = { name = acm_m_attraction_opinion value = global_var:acm_s1_m_attraction_opinion } }
	else = { set_variable = { name = acm_m_attraction_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_courtier_and_guest_opinion } set_variable = { name = acm_m_courtier_and_guest_opinion value = global_var:acm_s1_m_courtier_and_guest_opinion } }
	else = { set_variable = { name = acm_m_courtier_and_guest_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_same_faith_opinion } set_variable = { name = acm_m_same_faith_opinion value = global_var:acm_s1_m_same_faith_opinion } }
	else = { set_variable = { name = acm_m_same_faith_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_different_faith_opinion } set_variable = { name = acm_m_different_faith_opinion value = global_var:acm_s1_m_different_faith_opinion } }
	else = { set_variable = { name = acm_m_different_faith_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_same_culture_opinion } set_variable = { name = acm_m_same_culture_opinion value = global_var:acm_s1_m_same_culture_opinion } }
	else = { set_variable = { name = acm_m_same_culture_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_different_culture_opinion } set_variable = { name = acm_m_different_culture_opinion value = global_var:acm_s1_m_different_culture_opinion } }
	else = { set_variable = { name = acm_m_different_culture_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_independent_ruler_opinion } set_variable = { name = acm_m_independent_ruler_opinion value = global_var:acm_s1_m_independent_ruler_opinion } }
	else = { set_variable = { name = acm_m_independent_ruler_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_religious_head_opinion } set_variable = { name = acm_m_religious_head_opinion value = global_var:acm_s1_m_religious_head_opinion } }
	else = { set_variable = { name = acm_m_religious_head_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_county_opinion_add } set_variable = { name = acm_m_county_opinion_add value = global_var:acm_s1_m_county_opinion_add } }
	else = { set_variable = { name = acm_m_county_opinion_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_prisoner_opinion } set_variable = { name = acm_m_prisoner_opinion value = global_var:acm_s1_m_prisoner_opinion } }
	else = { set_variable = { name = acm_m_prisoner_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_health } set_variable = { name = acm_m_health value = global_var:acm_s1_m_health } }
	else = { set_variable = { name = acm_m_health value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_negate_health_penalty_add } set_variable = { name = acm_m_negate_health_penalty_add value = global_var:acm_s1_m_negate_health_penalty_add } }
	else = { set_variable = { name = acm_m_negate_health_penalty_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_fertility } set_variable = { name = acm_m_fertility value = global_var:acm_s1_m_fertility } }
	else = { set_variable = { name = acm_m_fertility value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_life_expectancy } set_variable = { name = acm_m_life_expectancy value = global_var:acm_s1_m_life_expectancy } }
	else = { set_variable = { name = acm_m_life_expectancy value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_years_of_fertility } set_variable = { name = acm_m_years_of_fertility value = global_var:acm_s1_m_years_of_fertility } }
	else = { set_variable = { name = acm_m_years_of_fertility value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_stress_gain_mult } set_variable = { name = acm_m_stress_gain_mult value = global_var:acm_s1_m_stress_gain_mult } }
	else = { set_variable = { name = acm_m_stress_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_stress_loss_mult } set_variable = { name = acm_m_stress_loss_mult value = global_var:acm_s1_m_stress_loss_mult } }
	else = { set_variable = { name = acm_m_stress_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_epidemic_resistance } set_variable = { name = acm_m_epidemic_resistance value = global_var:acm_s1_m_epidemic_resistance } }
	else = { set_variable = { name = acm_m_epidemic_resistance value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_negate_prowess_penalty_add } set_variable = { name = acm_m_negate_prowess_penalty_add value = global_var:acm_s1_m_negate_prowess_penalty_add } }
	else = { set_variable = { name = acm_m_negate_prowess_penalty_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_positive_inactive_inheritance_chance } set_variable = { name = acm_m_positive_inactive_inheritance_chance value = global_var:acm_s1_m_positive_inactive_inheritance_chance } }
	else = { set_variable = { name = acm_m_positive_inactive_inheritance_chance value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_owned_hostile_scheme_success_chance_add } set_variable = { name = acm_m_owned_hostile_scheme_success_chance_add value = global_var:acm_s1_m_owned_hostile_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_owned_hostile_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_owned_personal_scheme_success_chance_add } set_variable = { name = acm_m_owned_personal_scheme_success_chance_add value = global_var:acm_s1_m_owned_personal_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_owned_personal_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_owned_scheme_secrecy_add } set_variable = { name = acm_m_owned_scheme_secrecy_add value = global_var:acm_s1_m_owned_scheme_secrecy_add } }
	else = { set_variable = { name = acm_m_owned_scheme_secrecy_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_enemy_hostile_scheme_success_chance_add } set_variable = { name = acm_m_enemy_hostile_scheme_success_chance_add value = global_var:acm_s1_m_enemy_hostile_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_enemy_hostile_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_enemy_personal_scheme_success_chance_add } set_variable = { name = acm_m_enemy_personal_scheme_success_chance_add value = global_var:acm_s1_m_enemy_personal_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_enemy_personal_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_hostile_scheme_phase_duration_add } set_variable = { name = acm_m_hostile_scheme_phase_duration_add value = global_var:acm_s1_m_hostile_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_hostile_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_personal_scheme_phase_duration_add } set_variable = { name = acm_m_personal_scheme_phase_duration_add value = global_var:acm_s1_m_personal_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_personal_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_enemy_hostile_scheme_phase_duration_add } set_variable = { name = acm_m_enemy_hostile_scheme_phase_duration_add value = global_var:acm_s1_m_enemy_hostile_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_enemy_hostile_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_max_hostile_schemes_add } set_variable = { name = acm_m_max_hostile_schemes_add value = global_var:acm_s1_m_max_hostile_schemes_add } }
	else = { set_variable = { name = acm_m_max_hostile_schemes_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_max_personal_schemes_add } set_variable = { name = acm_m_max_personal_schemes_add value = global_var:acm_s1_m_max_personal_schemes_add } }
	else = { set_variable = { name = acm_m_max_personal_schemes_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_seduce_scheme_phase_duration_add } set_variable = { name = acm_m_seduce_scheme_phase_duration_add value = global_var:acm_s1_m_seduce_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_seduce_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_courting_scheme_phase_duration_add } set_variable = { name = acm_m_courting_scheme_phase_duration_add value = global_var:acm_s1_m_courting_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_courting_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_befriend_scheme_phase_duration_add } set_variable = { name = acm_m_befriend_scheme_phase_duration_add value = global_var:acm_s1_m_befriend_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_befriend_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_learn_language_scheme_phase_duration_add } set_variable = { name = acm_m_learn_language_scheme_phase_duration_add value = global_var:acm_s1_m_learn_language_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_learn_language_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_knight_effectiveness_mult } set_variable = { name = acm_m_knight_effectiveness_mult value = global_var:acm_s1_m_knight_effectiveness_mult } }
	else = { set_variable = { name = acm_m_knight_effectiveness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_army_damage_mult } set_variable = { name = acm_m_army_damage_mult value = global_var:acm_s1_m_army_damage_mult } }
	else = { set_variable = { name = acm_m_army_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_army_toughness_mult } set_variable = { name = acm_m_army_toughness_mult value = global_var:acm_s1_m_army_toughness_mult } }
	else = { set_variable = { name = acm_m_army_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_army_pursuit_mult } set_variable = { name = acm_m_army_pursuit_mult value = global_var:acm_s1_m_army_pursuit_mult } }
	else = { set_variable = { name = acm_m_army_pursuit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_army_screen_mult } set_variable = { name = acm_m_army_screen_mult value = global_var:acm_s1_m_army_screen_mult } }
	else = { set_variable = { name = acm_m_army_screen_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_army_maintenance_mult } set_variable = { name = acm_m_army_maintenance_mult value = global_var:acm_s1_m_army_maintenance_mult } }
	else = { set_variable = { name = acm_m_army_maintenance_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_men_at_arms_maintenance } set_variable = { name = acm_m_men_at_arms_maintenance value = global_var:acm_s1_m_men_at_arms_maintenance } }
	else = { set_variable = { name = acm_m_men_at_arms_maintenance value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_mercenary_hire_cost_mult } set_variable = { name = acm_m_mercenary_hire_cost_mult value = global_var:acm_s1_m_mercenary_hire_cost_mult } }
	else = { set_variable = { name = acm_m_mercenary_hire_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_enemy_hard_casualty_modifier } set_variable = { name = acm_m_enemy_hard_casualty_modifier value = global_var:acm_s1_m_enemy_hard_casualty_modifier } }
	else = { set_variable = { name = acm_m_enemy_hard_casualty_modifier value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_hard_casualty_modifier } set_variable = { name = acm_m_hard_casualty_modifier value = global_var:acm_s1_m_hard_casualty_modifier } }
	else = { set_variable = { name = acm_m_hard_casualty_modifier value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_retreat_losses } set_variable = { name = acm_m_retreat_losses value = global_var:acm_s1_m_retreat_losses } }
	else = { set_variable = { name = acm_m_retreat_losses value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_supply_limit_mult } set_variable = { name = acm_m_supply_limit_mult value = global_var:acm_s1_m_supply_limit_mult } }
	else = { set_variable = { name = acm_m_supply_limit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_movement_speed } set_variable = { name = acm_m_movement_speed value = global_var:acm_s1_m_movement_speed } }
	else = { set_variable = { name = acm_m_movement_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_naval_movement_speed_mult } set_variable = { name = acm_m_naval_movement_speed_mult value = global_var:acm_s1_m_naval_movement_speed_mult } }
	else = { set_variable = { name = acm_m_naval_movement_speed_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_embarkation_cost_mult } set_variable = { name = acm_m_embarkation_cost_mult value = global_var:acm_s1_m_embarkation_cost_mult } }
	else = { set_variable = { name = acm_m_embarkation_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_raid_speed } set_variable = { name = acm_m_raid_speed value = global_var:acm_s1_m_raid_speed } }
	else = { set_variable = { name = acm_m_raid_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_controlled_province_advantage } set_variable = { name = acm_m_controlled_province_advantage value = global_var:acm_s1_m_controlled_province_advantage } }
	else = { set_variable = { name = acm_m_controlled_province_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_defender_advantage } set_variable = { name = acm_m_defender_advantage value = global_var:acm_s1_m_defender_advantage } }
	else = { set_variable = { name = acm_m_defender_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_tolerance_advantage_mod } set_variable = { name = acm_m_tolerance_advantage_mod value = global_var:acm_s1_m_tolerance_advantage_mod } }
	else = { set_variable = { name = acm_m_tolerance_advantage_mod value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_led_by_owner_extra_advantage_add } set_variable = { name = acm_m_led_by_owner_extra_advantage_add value = global_var:acm_s1_m_led_by_owner_extra_advantage_add } }
	else = { set_variable = { name = acm_m_led_by_owner_extra_advantage_add value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_pursue_efficiency } set_variable = { name = acm_m_pursue_efficiency value = global_var:acm_s1_m_pursue_efficiency } }
	else = { set_variable = { name = acm_m_pursue_efficiency value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_levy_reinforcement_rate_same_faith } set_variable = { name = acm_m_levy_reinforcement_rate_same_faith value = global_var:acm_s1_m_levy_reinforcement_rate_same_faith } }
	else = { set_variable = { name = acm_m_levy_reinforcement_rate_same_faith value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_heavy_infantry_damage_mult } set_variable = { name = acm_m_heavy_infantry_damage_mult value = global_var:acm_s1_m_heavy_infantry_damage_mult } }
	else = { set_variable = { name = acm_m_heavy_infantry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_heavy_infantry_toughness_mult } set_variable = { name = acm_m_heavy_infantry_toughness_mult value = global_var:acm_s1_m_heavy_infantry_toughness_mult } }
	else = { set_variable = { name = acm_m_heavy_infantry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_heavy_cavalry_damage_mult } set_variable = { name = acm_m_heavy_cavalry_damage_mult value = global_var:acm_s1_m_heavy_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_heavy_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_heavy_cavalry_toughness_mult } set_variable = { name = acm_m_heavy_cavalry_toughness_mult value = global_var:acm_s1_m_heavy_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_heavy_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_light_cavalry_damage_mult } set_variable = { name = acm_m_light_cavalry_damage_mult value = global_var:acm_s1_m_light_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_light_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_light_cavalry_toughness_mult } set_variable = { name = acm_m_light_cavalry_toughness_mult value = global_var:acm_s1_m_light_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_light_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_archers_damage_mult } set_variable = { name = acm_m_archers_damage_mult value = global_var:acm_s1_m_archers_damage_mult } }
	else = { set_variable = { name = acm_m_archers_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_archers_toughness_mult } set_variable = { name = acm_m_archers_toughness_mult value = global_var:acm_s1_m_archers_toughness_mult } }
	else = { set_variable = { name = acm_m_archers_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_pikemen_damage_mult } set_variable = { name = acm_m_pikemen_damage_mult value = global_var:acm_s1_m_pikemen_damage_mult } }
	else = { set_variable = { name = acm_m_pikemen_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_pikemen_toughness_mult } set_variable = { name = acm_m_pikemen_toughness_mult value = global_var:acm_s1_m_pikemen_toughness_mult } }
	else = { set_variable = { name = acm_m_pikemen_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_skirmishers_damage_mult } set_variable = { name = acm_m_skirmishers_damage_mult value = global_var:acm_s1_m_skirmishers_damage_mult } }
	else = { set_variable = { name = acm_m_skirmishers_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_skirmishers_toughness_mult } set_variable = { name = acm_m_skirmishers_toughness_mult value = global_var:acm_s1_m_skirmishers_toughness_mult } }
	else = { set_variable = { name = acm_m_skirmishers_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_archer_cavalry_damage_mult } set_variable = { name = acm_m_archer_cavalry_damage_mult value = global_var:acm_s1_m_archer_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_archer_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_archer_cavalry_toughness_mult } set_variable = { name = acm_m_archer_cavalry_toughness_mult value = global_var:acm_s1_m_archer_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_archer_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_camel_cavalry_damage_mult } set_variable = { name = acm_m_camel_cavalry_damage_mult value = global_var:acm_s1_m_camel_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_camel_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_elephant_cavalry_damage_mult } set_variable = { name = acm_m_elephant_cavalry_damage_mult value = global_var:acm_s1_m_elephant_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_elephant_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_siege_weapon_siege_value_mult } set_variable = { name = acm_m_siege_weapon_siege_value_mult value = global_var:acm_s1_m_siege_weapon_siege_value_mult } }
	else = { set_variable = { name = acm_m_siege_weapon_siege_value_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_plains_advantage } set_variable = { name = acm_m_plains_advantage value = global_var:acm_s1_m_plains_advantage } }
	else = { set_variable = { name = acm_m_plains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_farmlands_advantage } set_variable = { name = acm_m_farmlands_advantage value = global_var:acm_s1_m_farmlands_advantage } }
	else = { set_variable = { name = acm_m_farmlands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_hills_advantage } set_variable = { name = acm_m_hills_advantage value = global_var:acm_s1_m_hills_advantage } }
	else = { set_variable = { name = acm_m_hills_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_mountains_advantage } set_variable = { name = acm_m_mountains_advantage value = global_var:acm_s1_m_mountains_advantage } }
	else = { set_variable = { name = acm_m_mountains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_desert_advantage } set_variable = { name = acm_m_desert_advantage value = global_var:acm_s1_m_desert_advantage } }
	else = { set_variable = { name = acm_m_desert_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_desert_mountains_advantage } set_variable = { name = acm_m_desert_mountains_advantage value = global_var:acm_s1_m_desert_mountains_advantage } }
	else = { set_variable = { name = acm_m_desert_mountains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_oasis_advantage } set_variable = { name = acm_m_oasis_advantage value = global_var:acm_s1_m_oasis_advantage } }
	else = { set_variable = { name = acm_m_oasis_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_jungle_advantage } set_variable = { name = acm_m_jungle_advantage value = global_var:acm_s1_m_jungle_advantage } }
	else = { set_variable = { name = acm_m_jungle_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_forest_advantage } set_variable = { name = acm_m_forest_advantage value = global_var:acm_s1_m_forest_advantage } }
	else = { set_variable = { name = acm_m_forest_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_taiga_advantage } set_variable = { name = acm_m_taiga_advantage value = global_var:acm_s1_m_taiga_advantage } }
	else = { set_variable = { name = acm_m_taiga_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_wetlands_advantage } set_variable = { name = acm_m_wetlands_advantage value = global_var:acm_s1_m_wetlands_advantage } }
	else = { set_variable = { name = acm_m_wetlands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_steppe_advantage } set_variable = { name = acm_m_steppe_advantage value = global_var:acm_s1_m_steppe_advantage } }
	else = { set_variable = { name = acm_m_steppe_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_floodplains_advantage } set_variable = { name = acm_m_floodplains_advantage value = global_var:acm_s1_m_floodplains_advantage } }
	else = { set_variable = { name = acm_m_floodplains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_drylands_advantage } set_variable = { name = acm_m_drylands_advantage value = global_var:acm_s1_m_drylands_advantage } }
	else = { set_variable = { name = acm_m_drylands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_winter_advantage } set_variable = { name = acm_m_winter_advantage value = global_var:acm_s1_m_winter_advantage } }
	else = { set_variable = { name = acm_m_winter_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_coastal_advantage } set_variable = { name = acm_m_coastal_advantage value = global_var:acm_s1_m_coastal_advantage } }
	else = { set_variable = { name = acm_m_coastal_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_character_travel_speed } set_variable = { name = acm_m_character_travel_speed value = global_var:acm_s1_m_character_travel_speed } }
	else = { set_variable = { name = acm_m_character_travel_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_character_travel_safety } set_variable = { name = acm_m_character_travel_safety value = global_var:acm_s1_m_character_travel_safety } }
	else = { set_variable = { name = acm_m_character_travel_safety value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_character_travel_speed_mult } set_variable = { name = acm_m_character_travel_speed_mult value = global_var:acm_s1_m_character_travel_speed_mult } }
	else = { set_variable = { name = acm_m_character_travel_speed_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_character_travel_safety_mult } set_variable = { name = acm_m_character_travel_safety_mult value = global_var:acm_s1_m_character_travel_safety_mult } }
	else = { set_variable = { name = acm_m_character_travel_safety_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s1_m_winter_movement_speed } set_variable = { name = acm_m_winter_movement_speed value = global_var:acm_s1_m_winter_movement_speed } }
	else = { set_variable = { name = acm_m_winter_movement_speed value = 0 } }
	acm_init_settings_effect = yes
}

acm_slot_clear_1_effect = {
	remove_global_variable = acm_s1_saved
	remove_global_variable = acm_s1_type
	remove_global_variable = acm_s1_icon
	remove_global_variable = acm_s1_asset
	remove_global_variable = acm_s1_support
	remove_global_variable = acm_s1_rarity
	remove_global_variable = acm_s1_history
	remove_global_variable = acm_s1_name
	remove_global_variable = acm_s1_desc
	remove_global_variable = acm_s1_benefit
	remove_global_variable = acm_s1_equip
	remove_global_variable = acm_s1_relic
	remove_global_variable = acm_s1_msg
	remove_global_variable = acm_s1_vset
	remove_global_variable = acm_s1_preset
	remove_global_variable = acm_s1_quality
	remove_global_variable = acm_s1_wealth
	remove_global_variable = acm_s1_durability
	remove_global_variable = acm_s1_auto_look
	remove_global_variable = acm_s1_unique
	remove_global_variable = acm_s1_no_decay
	remove_global_variable = acm_s1_no_reforge
	remove_global_variable = acm_s1_no_repair
	remove_global_variable = acm_s1_auto_equip
	remove_global_variable = acm_s1_features
	remove_global_variable = acm_s1_creator_is_owner
	remove_global_variable = acm_s1_maker
	remove_global_variable = acm_s1_history_actor
	remove_global_variable = acm_s1_m_diplomacy
	remove_global_variable = acm_s1_m_martial
	remove_global_variable = acm_s1_m_stewardship
	remove_global_variable = acm_s1_m_intrigue
	remove_global_variable = acm_s1_m_learning
	remove_global_variable = acm_s1_m_prowess_no_portrait
	remove_global_variable = acm_s1_m_diplomacy_mult
	remove_global_variable = acm_s1_m_martial_mult
	remove_global_variable = acm_s1_m_stewardship_mult
	remove_global_variable = acm_s1_m_intrigue_mult
	remove_global_variable = acm_s1_m_learning_mult
	remove_global_variable = acm_s1_m_prowess_mult
	remove_global_variable = acm_s1_m_monthly_lifestyle_xp_gain_mult
	remove_global_variable = acm_s1_m_monthly_diplomacy_lifestyle_xp_gain_mult
	remove_global_variable = acm_s1_m_monthly_martial_lifestyle_xp_gain_mult
	remove_global_variable = acm_s1_m_monthly_stewardship_lifestyle_xp_gain_mult
	remove_global_variable = acm_s1_m_monthly_intrigue_lifestyle_xp_gain_mult
	remove_global_variable = acm_s1_m_monthly_learning_lifestyle_xp_gain_mult
	remove_global_variable = acm_s1_m_monthly_prestige
	remove_global_variable = acm_s1_m_monthly_piety
	remove_global_variable = acm_s1_m_monthly_income
	remove_global_variable = acm_s1_m_monthly_dynasty_prestige
	remove_global_variable = acm_s1_m_monthly_influence
	remove_global_variable = acm_s1_m_monthly_prestige_gain_mult
	remove_global_variable = acm_s1_m_monthly_piety_gain_mult
	remove_global_variable = acm_s1_m_monthly_income_mult
	remove_global_variable = acm_s1_m_monthly_dynasty_prestige_mult
	remove_global_variable = acm_s1_m_monthly_influence_mult
	remove_global_variable = acm_s1_m_monthly_merit_mult
	remove_global_variable = acm_s1_m_domain_tax_mult
	remove_global_variable = acm_s1_m_vassal_tax_contribution_mult
	remove_global_variable = acm_s1_m_monthly_war_income_add
	remove_global_variable = acm_s1_m_herd_gain_mult
	remove_global_variable = acm_s1_m_court_grandeur_baseline_add
	remove_global_variable = acm_s1_m_domain_limit
	remove_global_variable = acm_s1_m_vassal_limit
	remove_global_variable = acm_s1_m_knight_limit
	remove_global_variable = acm_s1_m_men_at_arms_limit
	remove_global_variable = acm_s1_m_men_at_arms_cap
	remove_global_variable = acm_s1_m_legitimacy_gain_mult
	remove_global_variable = acm_s1_m_legitimacy_loss_mult
	remove_global_variable = acm_s1_m_short_reign_duration_mult
	remove_global_variable = acm_s1_m_dread_baseline_add
	remove_global_variable = acm_s1_m_dread_gain_mult
	remove_global_variable = acm_s1_m_dread_decay_mult
	remove_global_variable = acm_s1_m_tyranny_gain_mult
	remove_global_variable = acm_s1_m_tyranny_loss_mult
	remove_global_variable = acm_s1_m_title_creation_cost_mult
	remove_global_variable = acm_s1_m_build_gold_cost
	remove_global_variable = acm_s1_m_build_speed
	remove_global_variable = acm_s1_m_development_growth
	remove_global_variable = acm_s1_m_development_growth_factor
	remove_global_variable = acm_s1_m_monthly_county_control_growth_add
	remove_global_variable = acm_s1_m_levy_size
	remove_global_variable = acm_s1_m_levy_reinforcement_rate
	remove_global_variable = acm_s1_m_garrison_size
	remove_global_variable = acm_s1_m_fort_level
	remove_global_variable = acm_s1_m_cultural_head_fascination_mult
	remove_global_variable = acm_s1_m_owned_legend_spread_mult
	remove_global_variable = acm_s1_m_general_opinion
	remove_global_variable = acm_s1_m_vassal_opinion
	remove_global_variable = acm_s1_m_direct_vassal_opinion
	remove_global_variable = acm_s1_m_powerful_vassal_opinion
	remove_global_variable = acm_s1_m_clergy_opinion
	remove_global_variable = acm_s1_m_courtly_opinion
	remove_global_variable = acm_s1_m_zealot_opinion
	remove_global_variable = acm_s1_m_glory_hound_opinion
	remove_global_variable = acm_s1_m_parochial_opinion
	remove_global_variable = acm_s1_m_belligerent_opinion
	remove_global_variable = acm_s1_m_dynasty_opinion
	remove_global_variable = acm_s1_m_spouse_opinion
	remove_global_variable = acm_s1_m_child_opinion
	remove_global_variable = acm_s1_m_attraction_opinion
	remove_global_variable = acm_s1_m_courtier_and_guest_opinion
	remove_global_variable = acm_s1_m_same_faith_opinion
	remove_global_variable = acm_s1_m_different_faith_opinion
	remove_global_variable = acm_s1_m_same_culture_opinion
	remove_global_variable = acm_s1_m_different_culture_opinion
	remove_global_variable = acm_s1_m_independent_ruler_opinion
	remove_global_variable = acm_s1_m_religious_head_opinion
	remove_global_variable = acm_s1_m_county_opinion_add
	remove_global_variable = acm_s1_m_prisoner_opinion
	remove_global_variable = acm_s1_m_health
	remove_global_variable = acm_s1_m_negate_health_penalty_add
	remove_global_variable = acm_s1_m_fertility
	remove_global_variable = acm_s1_m_life_expectancy
	remove_global_variable = acm_s1_m_years_of_fertility
	remove_global_variable = acm_s1_m_stress_gain_mult
	remove_global_variable = acm_s1_m_stress_loss_mult
	remove_global_variable = acm_s1_m_epidemic_resistance
	remove_global_variable = acm_s1_m_negate_prowess_penalty_add
	remove_global_variable = acm_s1_m_positive_inactive_inheritance_chance
	remove_global_variable = acm_s1_m_owned_hostile_scheme_success_chance_add
	remove_global_variable = acm_s1_m_owned_personal_scheme_success_chance_add
	remove_global_variable = acm_s1_m_owned_scheme_secrecy_add
	remove_global_variable = acm_s1_m_enemy_hostile_scheme_success_chance_add
	remove_global_variable = acm_s1_m_enemy_personal_scheme_success_chance_add
	remove_global_variable = acm_s1_m_hostile_scheme_phase_duration_add
	remove_global_variable = acm_s1_m_personal_scheme_phase_duration_add
	remove_global_variable = acm_s1_m_enemy_hostile_scheme_phase_duration_add
	remove_global_variable = acm_s1_m_max_hostile_schemes_add
	remove_global_variable = acm_s1_m_max_personal_schemes_add
	remove_global_variable = acm_s1_m_seduce_scheme_phase_duration_add
	remove_global_variable = acm_s1_m_courting_scheme_phase_duration_add
	remove_global_variable = acm_s1_m_befriend_scheme_phase_duration_add
	remove_global_variable = acm_s1_m_learn_language_scheme_phase_duration_add
	remove_global_variable = acm_s1_m_knight_effectiveness_mult
	remove_global_variable = acm_s1_m_army_damage_mult
	remove_global_variable = acm_s1_m_army_toughness_mult
	remove_global_variable = acm_s1_m_army_pursuit_mult
	remove_global_variable = acm_s1_m_army_screen_mult
	remove_global_variable = acm_s1_m_army_maintenance_mult
	remove_global_variable = acm_s1_m_men_at_arms_maintenance
	remove_global_variable = acm_s1_m_mercenary_hire_cost_mult
	remove_global_variable = acm_s1_m_enemy_hard_casualty_modifier
	remove_global_variable = acm_s1_m_hard_casualty_modifier
	remove_global_variable = acm_s1_m_retreat_losses
	remove_global_variable = acm_s1_m_supply_limit_mult
	remove_global_variable = acm_s1_m_movement_speed
	remove_global_variable = acm_s1_m_naval_movement_speed_mult
	remove_global_variable = acm_s1_m_embarkation_cost_mult
	remove_global_variable = acm_s1_m_raid_speed
	remove_global_variable = acm_s1_m_controlled_province_advantage
	remove_global_variable = acm_s1_m_defender_advantage
	remove_global_variable = acm_s1_m_tolerance_advantage_mod
	remove_global_variable = acm_s1_m_led_by_owner_extra_advantage_add
	remove_global_variable = acm_s1_m_pursue_efficiency
	remove_global_variable = acm_s1_m_levy_reinforcement_rate_same_faith
	remove_global_variable = acm_s1_m_heavy_infantry_damage_mult
	remove_global_variable = acm_s1_m_heavy_infantry_toughness_mult
	remove_global_variable = acm_s1_m_heavy_cavalry_damage_mult
	remove_global_variable = acm_s1_m_heavy_cavalry_toughness_mult
	remove_global_variable = acm_s1_m_light_cavalry_damage_mult
	remove_global_variable = acm_s1_m_light_cavalry_toughness_mult
	remove_global_variable = acm_s1_m_archers_damage_mult
	remove_global_variable = acm_s1_m_archers_toughness_mult
	remove_global_variable = acm_s1_m_pikemen_damage_mult
	remove_global_variable = acm_s1_m_pikemen_toughness_mult
	remove_global_variable = acm_s1_m_skirmishers_damage_mult
	remove_global_variable = acm_s1_m_skirmishers_toughness_mult
	remove_global_variable = acm_s1_m_archer_cavalry_damage_mult
	remove_global_variable = acm_s1_m_archer_cavalry_toughness_mult
	remove_global_variable = acm_s1_m_camel_cavalry_damage_mult
	remove_global_variable = acm_s1_m_elephant_cavalry_damage_mult
	remove_global_variable = acm_s1_m_siege_weapon_siege_value_mult
	remove_global_variable = acm_s1_m_plains_advantage
	remove_global_variable = acm_s1_m_farmlands_advantage
	remove_global_variable = acm_s1_m_hills_advantage
	remove_global_variable = acm_s1_m_mountains_advantage
	remove_global_variable = acm_s1_m_desert_advantage
	remove_global_variable = acm_s1_m_desert_mountains_advantage
	remove_global_variable = acm_s1_m_oasis_advantage
	remove_global_variable = acm_s1_m_jungle_advantage
	remove_global_variable = acm_s1_m_forest_advantage
	remove_global_variable = acm_s1_m_taiga_advantage
	remove_global_variable = acm_s1_m_wetlands_advantage
	remove_global_variable = acm_s1_m_steppe_advantage
	remove_global_variable = acm_s1_m_floodplains_advantage
	remove_global_variable = acm_s1_m_drylands_advantage
	remove_global_variable = acm_s1_m_winter_advantage
	remove_global_variable = acm_s1_m_coastal_advantage
	remove_global_variable = acm_s1_m_character_travel_speed
	remove_global_variable = acm_s1_m_character_travel_safety
	remove_global_variable = acm_s1_m_character_travel_speed_mult
	remove_global_variable = acm_s1_m_character_travel_safety_mult
	remove_global_variable = acm_s1_m_winter_movement_speed
}

acm_slot_save_2_effect = {
	set_global_variable = { name = acm_s2_saved value = yes }
	if = { limit = { has_variable = acm_type } set_global_variable = { name = acm_s2_type value = var:acm_type } }
	else = { remove_global_variable = acm_s2_type }
	if = { limit = { has_variable = acm_icon } set_global_variable = { name = acm_s2_icon value = var:acm_icon } }
	else = { remove_global_variable = acm_s2_icon }
	if = { limit = { has_variable = acm_asset } set_global_variable = { name = acm_s2_asset value = var:acm_asset } }
	else = { remove_global_variable = acm_s2_asset }
	if = { limit = { has_variable = acm_support } set_global_variable = { name = acm_s2_support value = var:acm_support } }
	else = { remove_global_variable = acm_s2_support }
	if = { limit = { has_variable = acm_rarity } set_global_variable = { name = acm_s2_rarity value = var:acm_rarity } }
	else = { remove_global_variable = acm_s2_rarity }
	if = { limit = { has_variable = acm_history } set_global_variable = { name = acm_s2_history value = var:acm_history } }
	else = { remove_global_variable = acm_s2_history }
	if = { limit = { has_variable = acm_name } set_global_variable = { name = acm_s2_name value = var:acm_name } }
	else = { remove_global_variable = acm_s2_name }
	if = { limit = { has_variable = acm_desc } set_global_variable = { name = acm_s2_desc value = var:acm_desc } }
	else = { remove_global_variable = acm_s2_desc }
	if = { limit = { has_variable = acm_benefit } set_global_variable = { name = acm_s2_benefit value = var:acm_benefit } }
	else = { remove_global_variable = acm_s2_benefit }
	if = { limit = { has_variable = acm_equip } set_global_variable = { name = acm_s2_equip value = var:acm_equip } }
	else = { remove_global_variable = acm_s2_equip }
	if = { limit = { has_variable = acm_relic } set_global_variable = { name = acm_s2_relic value = var:acm_relic } }
	else = { remove_global_variable = acm_s2_relic }
	if = { limit = { has_variable = acm_msg } set_global_variable = { name = acm_s2_msg value = var:acm_msg } }
	else = { remove_global_variable = acm_s2_msg }
	if = { limit = { has_variable = acm_vset } set_global_variable = { name = acm_s2_vset value = var:acm_vset } }
	else = { remove_global_variable = acm_s2_vset }
	if = { limit = { has_variable = acm_preset } set_global_variable = { name = acm_s2_preset value = var:acm_preset } }
	else = { remove_global_variable = acm_s2_preset }
	if = { limit = { has_variable = acm_quality } set_global_variable = { name = acm_s2_quality value = var:acm_quality } }
	else = { remove_global_variable = acm_s2_quality }
	if = { limit = { has_variable = acm_wealth } set_global_variable = { name = acm_s2_wealth value = var:acm_wealth } }
	else = { remove_global_variable = acm_s2_wealth }
	if = { limit = { has_variable = acm_durability } set_global_variable = { name = acm_s2_durability value = var:acm_durability } }
	else = { remove_global_variable = acm_s2_durability }
	if = { limit = { has_variable = acm_auto_look } set_global_variable = { name = acm_s2_auto_look value = yes } }
	else = { remove_global_variable = acm_s2_auto_look }
	if = { limit = { has_variable = acm_unique } set_global_variable = { name = acm_s2_unique value = yes } }
	else = { remove_global_variable = acm_s2_unique }
	if = { limit = { has_variable = acm_no_decay } set_global_variable = { name = acm_s2_no_decay value = yes } }
	else = { remove_global_variable = acm_s2_no_decay }
	if = { limit = { has_variable = acm_no_reforge } set_global_variable = { name = acm_s2_no_reforge value = yes } }
	else = { remove_global_variable = acm_s2_no_reforge }
	if = { limit = { has_variable = acm_no_repair } set_global_variable = { name = acm_s2_no_repair value = yes } }
	else = { remove_global_variable = acm_s2_no_repair }
	if = { limit = { has_variable = acm_auto_equip } set_global_variable = { name = acm_s2_auto_equip value = yes } }
	else = { remove_global_variable = acm_s2_auto_equip }
	if = { limit = { has_variable = acm_features } set_global_variable = { name = acm_s2_features value = yes } }
	else = { remove_global_variable = acm_s2_features }
	if = { limit = { has_variable = acm_creator_is_owner } set_global_variable = { name = acm_s2_creator_is_owner value = yes } }
	else = { remove_global_variable = acm_s2_creator_is_owner }
	if = { limit = { has_variable = acm_maker } set_global_variable = { name = acm_s2_maker value = var:acm_maker } }
	else = { remove_global_variable = acm_s2_maker }
	if = { limit = { has_variable = acm_history_actor } set_global_variable = { name = acm_s2_history_actor value = var:acm_history_actor } }
	else = { remove_global_variable = acm_s2_history_actor }
	if = { limit = { NOT = { var:acm_m_diplomacy ?= 0 } } set_global_variable = { name = acm_s2_m_diplomacy value = var:acm_m_diplomacy } }
	else = { remove_global_variable = acm_s2_m_diplomacy }
	if = { limit = { NOT = { var:acm_m_martial ?= 0 } } set_global_variable = { name = acm_s2_m_martial value = var:acm_m_martial } }
	else = { remove_global_variable = acm_s2_m_martial }
	if = { limit = { NOT = { var:acm_m_stewardship ?= 0 } } set_global_variable = { name = acm_s2_m_stewardship value = var:acm_m_stewardship } }
	else = { remove_global_variable = acm_s2_m_stewardship }
	if = { limit = { NOT = { var:acm_m_intrigue ?= 0 } } set_global_variable = { name = acm_s2_m_intrigue value = var:acm_m_intrigue } }
	else = { remove_global_variable = acm_s2_m_intrigue }
	if = { limit = { NOT = { var:acm_m_learning ?= 0 } } set_global_variable = { name = acm_s2_m_learning value = var:acm_m_learning } }
	else = { remove_global_variable = acm_s2_m_learning }
	if = { limit = { NOT = { var:acm_m_prowess_no_portrait ?= 0 } } set_global_variable = { name = acm_s2_m_prowess_no_portrait value = var:acm_m_prowess_no_portrait } }
	else = { remove_global_variable = acm_s2_m_prowess_no_portrait }
	if = { limit = { NOT = { var:acm_m_diplomacy_mult ?= 0 } } set_global_variable = { name = acm_s2_m_diplomacy_mult value = var:acm_m_diplomacy_mult } }
	else = { remove_global_variable = acm_s2_m_diplomacy_mult }
	if = { limit = { NOT = { var:acm_m_martial_mult ?= 0 } } set_global_variable = { name = acm_s2_m_martial_mult value = var:acm_m_martial_mult } }
	else = { remove_global_variable = acm_s2_m_martial_mult }
	if = { limit = { NOT = { var:acm_m_stewardship_mult ?= 0 } } set_global_variable = { name = acm_s2_m_stewardship_mult value = var:acm_m_stewardship_mult } }
	else = { remove_global_variable = acm_s2_m_stewardship_mult }
	if = { limit = { NOT = { var:acm_m_intrigue_mult ?= 0 } } set_global_variable = { name = acm_s2_m_intrigue_mult value = var:acm_m_intrigue_mult } }
	else = { remove_global_variable = acm_s2_m_intrigue_mult }
	if = { limit = { NOT = { var:acm_m_learning_mult ?= 0 } } set_global_variable = { name = acm_s2_m_learning_mult value = var:acm_m_learning_mult } }
	else = { remove_global_variable = acm_s2_m_learning_mult }
	if = { limit = { NOT = { var:acm_m_prowess_mult ?= 0 } } set_global_variable = { name = acm_s2_m_prowess_mult value = var:acm_m_prowess_mult } }
	else = { remove_global_variable = acm_s2_m_prowess_mult }
	if = { limit = { NOT = { var:acm_m_monthly_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_lifestyle_xp_gain_mult value = var:acm_m_monthly_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_diplomacy_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_diplomacy_lifestyle_xp_gain_mult value = var:acm_m_monthly_diplomacy_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_diplomacy_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_martial_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_martial_lifestyle_xp_gain_mult value = var:acm_m_monthly_martial_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_martial_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_stewardship_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_stewardship_lifestyle_xp_gain_mult value = var:acm_m_monthly_stewardship_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_stewardship_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_intrigue_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_intrigue_lifestyle_xp_gain_mult value = var:acm_m_monthly_intrigue_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_intrigue_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_learning_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_learning_lifestyle_xp_gain_mult value = var:acm_m_monthly_learning_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_learning_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_prestige ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_prestige value = var:acm_m_monthly_prestige } }
	else = { remove_global_variable = acm_s2_m_monthly_prestige }
	if = { limit = { NOT = { var:acm_m_monthly_piety ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_piety value = var:acm_m_monthly_piety } }
	else = { remove_global_variable = acm_s2_m_monthly_piety }
	if = { limit = { NOT = { var:acm_m_monthly_income ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_income value = var:acm_m_monthly_income } }
	else = { remove_global_variable = acm_s2_m_monthly_income }
	if = { limit = { NOT = { var:acm_m_monthly_dynasty_prestige ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_dynasty_prestige value = var:acm_m_monthly_dynasty_prestige } }
	else = { remove_global_variable = acm_s2_m_monthly_dynasty_prestige }
	if = { limit = { NOT = { var:acm_m_monthly_influence ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_influence value = var:acm_m_monthly_influence } }
	else = { remove_global_variable = acm_s2_m_monthly_influence }
	if = { limit = { NOT = { var:acm_m_monthly_prestige_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_prestige_gain_mult value = var:acm_m_monthly_prestige_gain_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_prestige_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_piety_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_piety_gain_mult value = var:acm_m_monthly_piety_gain_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_piety_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_income_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_income_mult value = var:acm_m_monthly_income_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_income_mult }
	if = { limit = { NOT = { var:acm_m_monthly_dynasty_prestige_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_dynasty_prestige_mult value = var:acm_m_monthly_dynasty_prestige_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_dynasty_prestige_mult }
	if = { limit = { NOT = { var:acm_m_monthly_influence_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_influence_mult value = var:acm_m_monthly_influence_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_influence_mult }
	if = { limit = { NOT = { var:acm_m_monthly_merit_mult ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_merit_mult value = var:acm_m_monthly_merit_mult } }
	else = { remove_global_variable = acm_s2_m_monthly_merit_mult }
	if = { limit = { NOT = { var:acm_m_domain_tax_mult ?= 0 } } set_global_variable = { name = acm_s2_m_domain_tax_mult value = var:acm_m_domain_tax_mult } }
	else = { remove_global_variable = acm_s2_m_domain_tax_mult }
	if = { limit = { NOT = { var:acm_m_vassal_tax_contribution_mult ?= 0 } } set_global_variable = { name = acm_s2_m_vassal_tax_contribution_mult value = var:acm_m_vassal_tax_contribution_mult } }
	else = { remove_global_variable = acm_s2_m_vassal_tax_contribution_mult }
	if = { limit = { NOT = { var:acm_m_monthly_war_income_add ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_war_income_add value = var:acm_m_monthly_war_income_add } }
	else = { remove_global_variable = acm_s2_m_monthly_war_income_add }
	if = { limit = { NOT = { var:acm_m_herd_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_herd_gain_mult value = var:acm_m_herd_gain_mult } }
	else = { remove_global_variable = acm_s2_m_herd_gain_mult }
	if = { limit = { NOT = { var:acm_m_court_grandeur_baseline_add ?= 0 } } set_global_variable = { name = acm_s2_m_court_grandeur_baseline_add value = var:acm_m_court_grandeur_baseline_add } }
	else = { remove_global_variable = acm_s2_m_court_grandeur_baseline_add }
	if = { limit = { NOT = { var:acm_m_domain_limit ?= 0 } } set_global_variable = { name = acm_s2_m_domain_limit value = var:acm_m_domain_limit } }
	else = { remove_global_variable = acm_s2_m_domain_limit }
	if = { limit = { NOT = { var:acm_m_vassal_limit ?= 0 } } set_global_variable = { name = acm_s2_m_vassal_limit value = var:acm_m_vassal_limit } }
	else = { remove_global_variable = acm_s2_m_vassal_limit }
	if = { limit = { NOT = { var:acm_m_knight_limit ?= 0 } } set_global_variable = { name = acm_s2_m_knight_limit value = var:acm_m_knight_limit } }
	else = { remove_global_variable = acm_s2_m_knight_limit }
	if = { limit = { NOT = { var:acm_m_men_at_arms_limit ?= 0 } } set_global_variable = { name = acm_s2_m_men_at_arms_limit value = var:acm_m_men_at_arms_limit } }
	else = { remove_global_variable = acm_s2_m_men_at_arms_limit }
	if = { limit = { NOT = { var:acm_m_men_at_arms_cap ?= 0 } } set_global_variable = { name = acm_s2_m_men_at_arms_cap value = var:acm_m_men_at_arms_cap } }
	else = { remove_global_variable = acm_s2_m_men_at_arms_cap }
	if = { limit = { NOT = { var:acm_m_legitimacy_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_legitimacy_gain_mult value = var:acm_m_legitimacy_gain_mult } }
	else = { remove_global_variable = acm_s2_m_legitimacy_gain_mult }
	if = { limit = { NOT = { var:acm_m_legitimacy_loss_mult ?= 0 } } set_global_variable = { name = acm_s2_m_legitimacy_loss_mult value = var:acm_m_legitimacy_loss_mult } }
	else = { remove_global_variable = acm_s2_m_legitimacy_loss_mult }
	if = { limit = { NOT = { var:acm_m_short_reign_duration_mult ?= 0 } } set_global_variable = { name = acm_s2_m_short_reign_duration_mult value = var:acm_m_short_reign_duration_mult } }
	else = { remove_global_variable = acm_s2_m_short_reign_duration_mult }
	if = { limit = { NOT = { var:acm_m_dread_baseline_add ?= 0 } } set_global_variable = { name = acm_s2_m_dread_baseline_add value = var:acm_m_dread_baseline_add } }
	else = { remove_global_variable = acm_s2_m_dread_baseline_add }
	if = { limit = { NOT = { var:acm_m_dread_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_dread_gain_mult value = var:acm_m_dread_gain_mult } }
	else = { remove_global_variable = acm_s2_m_dread_gain_mult }
	if = { limit = { NOT = { var:acm_m_dread_decay_mult ?= 0 } } set_global_variable = { name = acm_s2_m_dread_decay_mult value = var:acm_m_dread_decay_mult } }
	else = { remove_global_variable = acm_s2_m_dread_decay_mult }
	if = { limit = { NOT = { var:acm_m_tyranny_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_tyranny_gain_mult value = var:acm_m_tyranny_gain_mult } }
	else = { remove_global_variable = acm_s2_m_tyranny_gain_mult }
	if = { limit = { NOT = { var:acm_m_tyranny_loss_mult ?= 0 } } set_global_variable = { name = acm_s2_m_tyranny_loss_mult value = var:acm_m_tyranny_loss_mult } }
	else = { remove_global_variable = acm_s2_m_tyranny_loss_mult }
	if = { limit = { NOT = { var:acm_m_title_creation_cost_mult ?= 0 } } set_global_variable = { name = acm_s2_m_title_creation_cost_mult value = var:acm_m_title_creation_cost_mult } }
	else = { remove_global_variable = acm_s2_m_title_creation_cost_mult }
	if = { limit = { NOT = { var:acm_m_build_gold_cost ?= 0 } } set_global_variable = { name = acm_s2_m_build_gold_cost value = var:acm_m_build_gold_cost } }
	else = { remove_global_variable = acm_s2_m_build_gold_cost }
	if = { limit = { NOT = { var:acm_m_build_speed ?= 0 } } set_global_variable = { name = acm_s2_m_build_speed value = var:acm_m_build_speed } }
	else = { remove_global_variable = acm_s2_m_build_speed }
	if = { limit = { NOT = { var:acm_m_development_growth ?= 0 } } set_global_variable = { name = acm_s2_m_development_growth value = var:acm_m_development_growth } }
	else = { remove_global_variable = acm_s2_m_development_growth }
	if = { limit = { NOT = { var:acm_m_development_growth_factor ?= 0 } } set_global_variable = { name = acm_s2_m_development_growth_factor value = var:acm_m_development_growth_factor } }
	else = { remove_global_variable = acm_s2_m_development_growth_factor }
	if = { limit = { NOT = { var:acm_m_monthly_county_control_growth_add ?= 0 } } set_global_variable = { name = acm_s2_m_monthly_county_control_growth_add value = var:acm_m_monthly_county_control_growth_add } }
	else = { remove_global_variable = acm_s2_m_monthly_county_control_growth_add }
	if = { limit = { NOT = { var:acm_m_levy_size ?= 0 } } set_global_variable = { name = acm_s2_m_levy_size value = var:acm_m_levy_size } }
	else = { remove_global_variable = acm_s2_m_levy_size }
	if = { limit = { NOT = { var:acm_m_levy_reinforcement_rate ?= 0 } } set_global_variable = { name = acm_s2_m_levy_reinforcement_rate value = var:acm_m_levy_reinforcement_rate } }
	else = { remove_global_variable = acm_s2_m_levy_reinforcement_rate }
	if = { limit = { NOT = { var:acm_m_garrison_size ?= 0 } } set_global_variable = { name = acm_s2_m_garrison_size value = var:acm_m_garrison_size } }
	else = { remove_global_variable = acm_s2_m_garrison_size }
	if = { limit = { NOT = { var:acm_m_fort_level ?= 0 } } set_global_variable = { name = acm_s2_m_fort_level value = var:acm_m_fort_level } }
	else = { remove_global_variable = acm_s2_m_fort_level }
	if = { limit = { NOT = { var:acm_m_cultural_head_fascination_mult ?= 0 } } set_global_variable = { name = acm_s2_m_cultural_head_fascination_mult value = var:acm_m_cultural_head_fascination_mult } }
	else = { remove_global_variable = acm_s2_m_cultural_head_fascination_mult }
	if = { limit = { NOT = { var:acm_m_owned_legend_spread_mult ?= 0 } } set_global_variable = { name = acm_s2_m_owned_legend_spread_mult value = var:acm_m_owned_legend_spread_mult } }
	else = { remove_global_variable = acm_s2_m_owned_legend_spread_mult }
	if = { limit = { NOT = { var:acm_m_general_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_general_opinion value = var:acm_m_general_opinion } }
	else = { remove_global_variable = acm_s2_m_general_opinion }
	if = { limit = { NOT = { var:acm_m_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_vassal_opinion value = var:acm_m_vassal_opinion } }
	else = { remove_global_variable = acm_s2_m_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_direct_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_direct_vassal_opinion value = var:acm_m_direct_vassal_opinion } }
	else = { remove_global_variable = acm_s2_m_direct_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_powerful_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_powerful_vassal_opinion value = var:acm_m_powerful_vassal_opinion } }
	else = { remove_global_variable = acm_s2_m_powerful_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_clergy_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_clergy_opinion value = var:acm_m_clergy_opinion } }
	else = { remove_global_variable = acm_s2_m_clergy_opinion }
	if = { limit = { NOT = { var:acm_m_courtly_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_courtly_opinion value = var:acm_m_courtly_opinion } }
	else = { remove_global_variable = acm_s2_m_courtly_opinion }
	if = { limit = { NOT = { var:acm_m_zealot_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_zealot_opinion value = var:acm_m_zealot_opinion } }
	else = { remove_global_variable = acm_s2_m_zealot_opinion }
	if = { limit = { NOT = { var:acm_m_glory_hound_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_glory_hound_opinion value = var:acm_m_glory_hound_opinion } }
	else = { remove_global_variable = acm_s2_m_glory_hound_opinion }
	if = { limit = { NOT = { var:acm_m_parochial_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_parochial_opinion value = var:acm_m_parochial_opinion } }
	else = { remove_global_variable = acm_s2_m_parochial_opinion }
	if = { limit = { NOT = { var:acm_m_belligerent_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_belligerent_opinion value = var:acm_m_belligerent_opinion } }
	else = { remove_global_variable = acm_s2_m_belligerent_opinion }
	if = { limit = { NOT = { var:acm_m_dynasty_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_dynasty_opinion value = var:acm_m_dynasty_opinion } }
	else = { remove_global_variable = acm_s2_m_dynasty_opinion }
	if = { limit = { NOT = { var:acm_m_spouse_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_spouse_opinion value = var:acm_m_spouse_opinion } }
	else = { remove_global_variable = acm_s2_m_spouse_opinion }
	if = { limit = { NOT = { var:acm_m_child_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_child_opinion value = var:acm_m_child_opinion } }
	else = { remove_global_variable = acm_s2_m_child_opinion }
	if = { limit = { NOT = { var:acm_m_attraction_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_attraction_opinion value = var:acm_m_attraction_opinion } }
	else = { remove_global_variable = acm_s2_m_attraction_opinion }
	if = { limit = { NOT = { var:acm_m_courtier_and_guest_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_courtier_and_guest_opinion value = var:acm_m_courtier_and_guest_opinion } }
	else = { remove_global_variable = acm_s2_m_courtier_and_guest_opinion }
	if = { limit = { NOT = { var:acm_m_same_faith_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_same_faith_opinion value = var:acm_m_same_faith_opinion } }
	else = { remove_global_variable = acm_s2_m_same_faith_opinion }
	if = { limit = { NOT = { var:acm_m_different_faith_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_different_faith_opinion value = var:acm_m_different_faith_opinion } }
	else = { remove_global_variable = acm_s2_m_different_faith_opinion }
	if = { limit = { NOT = { var:acm_m_same_culture_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_same_culture_opinion value = var:acm_m_same_culture_opinion } }
	else = { remove_global_variable = acm_s2_m_same_culture_opinion }
	if = { limit = { NOT = { var:acm_m_different_culture_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_different_culture_opinion value = var:acm_m_different_culture_opinion } }
	else = { remove_global_variable = acm_s2_m_different_culture_opinion }
	if = { limit = { NOT = { var:acm_m_independent_ruler_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_independent_ruler_opinion value = var:acm_m_independent_ruler_opinion } }
	else = { remove_global_variable = acm_s2_m_independent_ruler_opinion }
	if = { limit = { NOT = { var:acm_m_religious_head_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_religious_head_opinion value = var:acm_m_religious_head_opinion } }
	else = { remove_global_variable = acm_s2_m_religious_head_opinion }
	if = { limit = { NOT = { var:acm_m_county_opinion_add ?= 0 } } set_global_variable = { name = acm_s2_m_county_opinion_add value = var:acm_m_county_opinion_add } }
	else = { remove_global_variable = acm_s2_m_county_opinion_add }
	if = { limit = { NOT = { var:acm_m_prisoner_opinion ?= 0 } } set_global_variable = { name = acm_s2_m_prisoner_opinion value = var:acm_m_prisoner_opinion } }
	else = { remove_global_variable = acm_s2_m_prisoner_opinion }
	if = { limit = { NOT = { var:acm_m_health ?= 0 } } set_global_variable = { name = acm_s2_m_health value = var:acm_m_health } }
	else = { remove_global_variable = acm_s2_m_health }
	if = { limit = { NOT = { var:acm_m_negate_health_penalty_add ?= 0 } } set_global_variable = { name = acm_s2_m_negate_health_penalty_add value = var:acm_m_negate_health_penalty_add } }
	else = { remove_global_variable = acm_s2_m_negate_health_penalty_add }
	if = { limit = { NOT = { var:acm_m_fertility ?= 0 } } set_global_variable = { name = acm_s2_m_fertility value = var:acm_m_fertility } }
	else = { remove_global_variable = acm_s2_m_fertility }
	if = { limit = { NOT = { var:acm_m_life_expectancy ?= 0 } } set_global_variable = { name = acm_s2_m_life_expectancy value = var:acm_m_life_expectancy } }
	else = { remove_global_variable = acm_s2_m_life_expectancy }
	if = { limit = { NOT = { var:acm_m_years_of_fertility ?= 0 } } set_global_variable = { name = acm_s2_m_years_of_fertility value = var:acm_m_years_of_fertility } }
	else = { remove_global_variable = acm_s2_m_years_of_fertility }
	if = { limit = { NOT = { var:acm_m_stress_gain_mult ?= 0 } } set_global_variable = { name = acm_s2_m_stress_gain_mult value = var:acm_m_stress_gain_mult } }
	else = { remove_global_variable = acm_s2_m_stress_gain_mult }
	if = { limit = { NOT = { var:acm_m_stress_loss_mult ?= 0 } } set_global_variable = { name = acm_s2_m_stress_loss_mult value = var:acm_m_stress_loss_mult } }
	else = { remove_global_variable = acm_s2_m_stress_loss_mult }
	if = { limit = { NOT = { var:acm_m_epidemic_resistance ?= 0 } } set_global_variable = { name = acm_s2_m_epidemic_resistance value = var:acm_m_epidemic_resistance } }
	else = { remove_global_variable = acm_s2_m_epidemic_resistance }
	if = { limit = { NOT = { var:acm_m_negate_prowess_penalty_add ?= 0 } } set_global_variable = { name = acm_s2_m_negate_prowess_penalty_add value = var:acm_m_negate_prowess_penalty_add } }
	else = { remove_global_variable = acm_s2_m_negate_prowess_penalty_add }
	if = { limit = { NOT = { var:acm_m_positive_inactive_inheritance_chance ?= 0 } } set_global_variable = { name = acm_s2_m_positive_inactive_inheritance_chance value = var:acm_m_positive_inactive_inheritance_chance } }
	else = { remove_global_variable = acm_s2_m_positive_inactive_inheritance_chance }
	if = { limit = { NOT = { var:acm_m_owned_hostile_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s2_m_owned_hostile_scheme_success_chance_add value = var:acm_m_owned_hostile_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s2_m_owned_hostile_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_owned_personal_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s2_m_owned_personal_scheme_success_chance_add value = var:acm_m_owned_personal_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s2_m_owned_personal_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_owned_scheme_secrecy_add ?= 0 } } set_global_variable = { name = acm_s2_m_owned_scheme_secrecy_add value = var:acm_m_owned_scheme_secrecy_add } }
	else = { remove_global_variable = acm_s2_m_owned_scheme_secrecy_add }
	if = { limit = { NOT = { var:acm_m_enemy_hostile_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s2_m_enemy_hostile_scheme_success_chance_add value = var:acm_m_enemy_hostile_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s2_m_enemy_hostile_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_enemy_personal_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s2_m_enemy_personal_scheme_success_chance_add value = var:acm_m_enemy_personal_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s2_m_enemy_personal_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_hostile_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s2_m_hostile_scheme_phase_duration_add value = var:acm_m_hostile_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s2_m_hostile_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_personal_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s2_m_personal_scheme_phase_duration_add value = var:acm_m_personal_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s2_m_personal_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_enemy_hostile_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s2_m_enemy_hostile_scheme_phase_duration_add value = var:acm_m_enemy_hostile_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s2_m_enemy_hostile_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_max_hostile_schemes_add ?= 0 } } set_global_variable = { name = acm_s2_m_max_hostile_schemes_add value = var:acm_m_max_hostile_schemes_add } }
	else = { remove_global_variable = acm_s2_m_max_hostile_schemes_add }
	if = { limit = { NOT = { var:acm_m_max_personal_schemes_add ?= 0 } } set_global_variable = { name = acm_s2_m_max_personal_schemes_add value = var:acm_m_max_personal_schemes_add } }
	else = { remove_global_variable = acm_s2_m_max_personal_schemes_add }
	if = { limit = { NOT = { var:acm_m_seduce_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s2_m_seduce_scheme_phase_duration_add value = var:acm_m_seduce_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s2_m_seduce_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_courting_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s2_m_courting_scheme_phase_duration_add value = var:acm_m_courting_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s2_m_courting_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_befriend_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s2_m_befriend_scheme_phase_duration_add value = var:acm_m_befriend_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s2_m_befriend_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_learn_language_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s2_m_learn_language_scheme_phase_duration_add value = var:acm_m_learn_language_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s2_m_learn_language_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_knight_effectiveness_mult ?= 0 } } set_global_variable = { name = acm_s2_m_knight_effectiveness_mult value = var:acm_m_knight_effectiveness_mult } }
	else = { remove_global_variable = acm_s2_m_knight_effectiveness_mult }
	if = { limit = { NOT = { var:acm_m_army_damage_mult ?= 0 } } set_global_variable = { name = acm_s2_m_army_damage_mult value = var:acm_m_army_damage_mult } }
	else = { remove_global_variable = acm_s2_m_army_damage_mult }
	if = { limit = { NOT = { var:acm_m_army_toughness_mult ?= 0 } } set_global_variable = { name = acm_s2_m_army_toughness_mult value = var:acm_m_army_toughness_mult } }
	else = { remove_global_variable = acm_s2_m_army_toughness_mult }
	if = { limit = { NOT = { var:acm_m_army_pursuit_mult ?= 0 } } set_global_variable = { name = acm_s2_m_army_pursuit_mult value = var:acm_m_army_pursuit_mult } }
	else = { remove_global_variable = acm_s2_m_army_pursuit_mult }
	if = { limit = { NOT = { var:acm_m_army_screen_mult ?= 0 } } set_global_variable = { name = acm_s2_m_army_screen_mult value = var:acm_m_army_screen_mult } }
	else = { remove_global_variable = acm_s2_m_army_screen_mult }
	if = { limit = { NOT = { var:acm_m_army_maintenance_mult ?= 0 } } set_global_variable = { name = acm_s2_m_army_maintenance_mult value = var:acm_m_army_maintenance_mult } }
	else = { remove_global_variable = acm_s2_m_army_maintenance_mult }
	if = { limit = { NOT = { var:acm_m_men_at_arms_maintenance ?= 0 } } set_global_variable = { name = acm_s2_m_men_at_arms_maintenance value = var:acm_m_men_at_arms_maintenance } }
	else = { remove_global_variable = acm_s2_m_men_at_arms_maintenance }
	if = { limit = { NOT = { var:acm_m_mercenary_hire_cost_mult ?= 0 } } set_global_variable = { name = acm_s2_m_mercenary_hire_cost_mult value = var:acm_m_mercenary_hire_cost_mult } }
	else = { remove_global_variable = acm_s2_m_mercenary_hire_cost_mult }
	if = { limit = { NOT = { var:acm_m_enemy_hard_casualty_modifier ?= 0 } } set_global_variable = { name = acm_s2_m_enemy_hard_casualty_modifier value = var:acm_m_enemy_hard_casualty_modifier } }
	else = { remove_global_variable = acm_s2_m_enemy_hard_casualty_modifier }
	if = { limit = { NOT = { var:acm_m_hard_casualty_modifier ?= 0 } } set_global_variable = { name = acm_s2_m_hard_casualty_modifier value = var:acm_m_hard_casualty_modifier } }
	else = { remove_global_variable = acm_s2_m_hard_casualty_modifier }
	if = { limit = { NOT = { var:acm_m_retreat_losses ?= 0 } } set_global_variable = { name = acm_s2_m_retreat_losses value = var:acm_m_retreat_losses } }
	else = { remove_global_variable = acm_s2_m_retreat_losses }
	if = { limit = { NOT = { var:acm_m_supply_limit_mult ?= 0 } } set_global_variable = { name = acm_s2_m_supply_limit_mult value = var:acm_m_supply_limit_mult } }
	else = { remove_global_variable = acm_s2_m_supply_limit_mult }
	if = { limit = { NOT = { var:acm_m_movement_speed ?= 0 } } set_global_variable = { name = acm_s2_m_movement_speed value = var:acm_m_movement_speed } }
	else = { remove_global_variable = acm_s2_m_movement_speed }
	if = { limit = { NOT = { var:acm_m_naval_movement_speed_mult ?= 0 } } set_global_variable = { name = acm_s2_m_naval_movement_speed_mult value = var:acm_m_naval_movement_speed_mult } }
	else = { remove_global_variable = acm_s2_m_naval_movement_speed_mult }
	if = { limit = { NOT = { var:acm_m_embarkation_cost_mult ?= 0 } } set_global_variable = { name = acm_s2_m_embarkation_cost_mult value = var:acm_m_embarkation_cost_mult } }
	else = { remove_global_variable = acm_s2_m_embarkation_cost_mult }
	if = { limit = { NOT = { var:acm_m_raid_speed ?= 0 } } set_global_variable = { name = acm_s2_m_raid_speed value = var:acm_m_raid_speed } }
	else = { remove_global_variable = acm_s2_m_raid_speed }
	if = { limit = { NOT = { var:acm_m_controlled_province_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_controlled_province_advantage value = var:acm_m_controlled_province_advantage } }
	else = { remove_global_variable = acm_s2_m_controlled_province_advantage }
	if = { limit = { NOT = { var:acm_m_defender_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_defender_advantage value = var:acm_m_defender_advantage } }
	else = { remove_global_variable = acm_s2_m_defender_advantage }
	if = { limit = { NOT = { var:acm_m_tolerance_advantage_mod ?= 0 } } set_global_variable = { name = acm_s2_m_tolerance_advantage_mod value = var:acm_m_tolerance_advantage_mod } }
	else = { remove_global_variable = acm_s2_m_tolerance_advantage_mod }
	if = { limit = { NOT = { var:acm_m_led_by_owner_extra_advantage_add ?= 0 } } set_global_variable = { name = acm_s2_m_led_by_owner_extra_advantage_add value = var:acm_m_led_by_owner_extra_advantage_add } }
	else = { remove_global_variable = acm_s2_m_led_by_owner_extra_advantage_add }
	if = { limit = { NOT = { var:acm_m_pursue_efficiency ?= 0 } } set_global_variable = { name = acm_s2_m_pursue_efficiency value = var:acm_m_pursue_efficiency } }
	else = { remove_global_variable = acm_s2_m_pursue_efficiency }
	if = { limit = { NOT = { var:acm_m_levy_reinforcement_rate_same_faith ?= 0 } } set_global_variable = { name = acm_s2_m_levy_reinforcement_rate_same_faith value = var:acm_m_levy_reinforcement_rate_same_faith } }
	else = { remove_global_variable = acm_s2_m_levy_reinforcement_rate_same_faith }
	if = { limit = { NOT = { var:acm_m_heavy_infantry_damage_mult ?= 0 } } set_global_variable = { name = acm_s2_m_heavy_infantry_damage_mult value = var:acm_m_heavy_infantry_damage_mult } }
	else = { remove_global_variable = acm_s2_m_heavy_infantry_damage_mult }
	if = { limit = { NOT = { var:acm_m_heavy_infantry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s2_m_heavy_infantry_toughness_mult value = var:acm_m_heavy_infantry_toughness_mult } }
	else = { remove_global_variable = acm_s2_m_heavy_infantry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_heavy_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s2_m_heavy_cavalry_damage_mult value = var:acm_m_heavy_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s2_m_heavy_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_heavy_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s2_m_heavy_cavalry_toughness_mult value = var:acm_m_heavy_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s2_m_heavy_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_light_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s2_m_light_cavalry_damage_mult value = var:acm_m_light_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s2_m_light_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_light_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s2_m_light_cavalry_toughness_mult value = var:acm_m_light_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s2_m_light_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_archers_damage_mult ?= 0 } } set_global_variable = { name = acm_s2_m_archers_damage_mult value = var:acm_m_archers_damage_mult } }
	else = { remove_global_variable = acm_s2_m_archers_damage_mult }
	if = { limit = { NOT = { var:acm_m_archers_toughness_mult ?= 0 } } set_global_variable = { name = acm_s2_m_archers_toughness_mult value = var:acm_m_archers_toughness_mult } }
	else = { remove_global_variable = acm_s2_m_archers_toughness_mult }
	if = { limit = { NOT = { var:acm_m_pikemen_damage_mult ?= 0 } } set_global_variable = { name = acm_s2_m_pikemen_damage_mult value = var:acm_m_pikemen_damage_mult } }
	else = { remove_global_variable = acm_s2_m_pikemen_damage_mult }
	if = { limit = { NOT = { var:acm_m_pikemen_toughness_mult ?= 0 } } set_global_variable = { name = acm_s2_m_pikemen_toughness_mult value = var:acm_m_pikemen_toughness_mult } }
	else = { remove_global_variable = acm_s2_m_pikemen_toughness_mult }
	if = { limit = { NOT = { var:acm_m_skirmishers_damage_mult ?= 0 } } set_global_variable = { name = acm_s2_m_skirmishers_damage_mult value = var:acm_m_skirmishers_damage_mult } }
	else = { remove_global_variable = acm_s2_m_skirmishers_damage_mult }
	if = { limit = { NOT = { var:acm_m_skirmishers_toughness_mult ?= 0 } } set_global_variable = { name = acm_s2_m_skirmishers_toughness_mult value = var:acm_m_skirmishers_toughness_mult } }
	else = { remove_global_variable = acm_s2_m_skirmishers_toughness_mult }
	if = { limit = { NOT = { var:acm_m_archer_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s2_m_archer_cavalry_damage_mult value = var:acm_m_archer_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s2_m_archer_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_archer_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s2_m_archer_cavalry_toughness_mult value = var:acm_m_archer_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s2_m_archer_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_camel_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s2_m_camel_cavalry_damage_mult value = var:acm_m_camel_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s2_m_camel_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_elephant_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s2_m_elephant_cavalry_damage_mult value = var:acm_m_elephant_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s2_m_elephant_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_siege_weapon_siege_value_mult ?= 0 } } set_global_variable = { name = acm_s2_m_siege_weapon_siege_value_mult value = var:acm_m_siege_weapon_siege_value_mult } }
	else = { remove_global_variable = acm_s2_m_siege_weapon_siege_value_mult }
	if = { limit = { NOT = { var:acm_m_plains_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_plains_advantage value = var:acm_m_plains_advantage } }
	else = { remove_global_variable = acm_s2_m_plains_advantage }
	if = { limit = { NOT = { var:acm_m_farmlands_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_farmlands_advantage value = var:acm_m_farmlands_advantage } }
	else = { remove_global_variable = acm_s2_m_farmlands_advantage }
	if = { limit = { NOT = { var:acm_m_hills_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_hills_advantage value = var:acm_m_hills_advantage } }
	else = { remove_global_variable = acm_s2_m_hills_advantage }
	if = { limit = { NOT = { var:acm_m_mountains_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_mountains_advantage value = var:acm_m_mountains_advantage } }
	else = { remove_global_variable = acm_s2_m_mountains_advantage }
	if = { limit = { NOT = { var:acm_m_desert_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_desert_advantage value = var:acm_m_desert_advantage } }
	else = { remove_global_variable = acm_s2_m_desert_advantage }
	if = { limit = { NOT = { var:acm_m_desert_mountains_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_desert_mountains_advantage value = var:acm_m_desert_mountains_advantage } }
	else = { remove_global_variable = acm_s2_m_desert_mountains_advantage }
	if = { limit = { NOT = { var:acm_m_oasis_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_oasis_advantage value = var:acm_m_oasis_advantage } }
	else = { remove_global_variable = acm_s2_m_oasis_advantage }
	if = { limit = { NOT = { var:acm_m_jungle_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_jungle_advantage value = var:acm_m_jungle_advantage } }
	else = { remove_global_variable = acm_s2_m_jungle_advantage }
	if = { limit = { NOT = { var:acm_m_forest_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_forest_advantage value = var:acm_m_forest_advantage } }
	else = { remove_global_variable = acm_s2_m_forest_advantage }
	if = { limit = { NOT = { var:acm_m_taiga_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_taiga_advantage value = var:acm_m_taiga_advantage } }
	else = { remove_global_variable = acm_s2_m_taiga_advantage }
	if = { limit = { NOT = { var:acm_m_wetlands_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_wetlands_advantage value = var:acm_m_wetlands_advantage } }
	else = { remove_global_variable = acm_s2_m_wetlands_advantage }
	if = { limit = { NOT = { var:acm_m_steppe_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_steppe_advantage value = var:acm_m_steppe_advantage } }
	else = { remove_global_variable = acm_s2_m_steppe_advantage }
	if = { limit = { NOT = { var:acm_m_floodplains_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_floodplains_advantage value = var:acm_m_floodplains_advantage } }
	else = { remove_global_variable = acm_s2_m_floodplains_advantage }
	if = { limit = { NOT = { var:acm_m_drylands_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_drylands_advantage value = var:acm_m_drylands_advantage } }
	else = { remove_global_variable = acm_s2_m_drylands_advantage }
	if = { limit = { NOT = { var:acm_m_winter_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_winter_advantage value = var:acm_m_winter_advantage } }
	else = { remove_global_variable = acm_s2_m_winter_advantage }
	if = { limit = { NOT = { var:acm_m_coastal_advantage ?= 0 } } set_global_variable = { name = acm_s2_m_coastal_advantage value = var:acm_m_coastal_advantage } }
	else = { remove_global_variable = acm_s2_m_coastal_advantage }
	if = { limit = { NOT = { var:acm_m_character_travel_speed ?= 0 } } set_global_variable = { name = acm_s2_m_character_travel_speed value = var:acm_m_character_travel_speed } }
	else = { remove_global_variable = acm_s2_m_character_travel_speed }
	if = { limit = { NOT = { var:acm_m_character_travel_safety ?= 0 } } set_global_variable = { name = acm_s2_m_character_travel_safety value = var:acm_m_character_travel_safety } }
	else = { remove_global_variable = acm_s2_m_character_travel_safety }
	if = { limit = { NOT = { var:acm_m_character_travel_speed_mult ?= 0 } } set_global_variable = { name = acm_s2_m_character_travel_speed_mult value = var:acm_m_character_travel_speed_mult } }
	else = { remove_global_variable = acm_s2_m_character_travel_speed_mult }
	if = { limit = { NOT = { var:acm_m_character_travel_safety_mult ?= 0 } } set_global_variable = { name = acm_s2_m_character_travel_safety_mult value = var:acm_m_character_travel_safety_mult } }
	else = { remove_global_variable = acm_s2_m_character_travel_safety_mult }
	if = { limit = { NOT = { var:acm_m_winter_movement_speed ?= 0 } } set_global_variable = { name = acm_s2_m_winter_movement_speed value = var:acm_m_winter_movement_speed } }
	else = { remove_global_variable = acm_s2_m_winter_movement_speed }
}

acm_slot_load_2_effect = {
	if = { limit = { has_global_variable = acm_s2_type } set_variable = { name = acm_type value = global_var:acm_s2_type } }
	else = { remove_variable = acm_type }
	if = { limit = { has_global_variable = acm_s2_icon } set_variable = { name = acm_icon value = global_var:acm_s2_icon } }
	else = { remove_variable = acm_icon }
	if = { limit = { has_global_variable = acm_s2_asset } set_variable = { name = acm_asset value = global_var:acm_s2_asset } }
	else = { remove_variable = acm_asset }
	if = { limit = { has_global_variable = acm_s2_support } set_variable = { name = acm_support value = global_var:acm_s2_support } }
	else = { remove_variable = acm_support }
	if = { limit = { has_global_variable = acm_s2_rarity } set_variable = { name = acm_rarity value = global_var:acm_s2_rarity } }
	else = { remove_variable = acm_rarity }
	if = { limit = { has_global_variable = acm_s2_history } set_variable = { name = acm_history value = global_var:acm_s2_history } }
	else = { remove_variable = acm_history }
	if = { limit = { has_global_variable = acm_s2_name } set_variable = { name = acm_name value = global_var:acm_s2_name } }
	else = { remove_variable = acm_name }
	if = { limit = { has_global_variable = acm_s2_desc } set_variable = { name = acm_desc value = global_var:acm_s2_desc } }
	else = { remove_variable = acm_desc }
	if = { limit = { has_global_variable = acm_s2_benefit } set_variable = { name = acm_benefit value = global_var:acm_s2_benefit } }
	else = { remove_variable = acm_benefit }
	if = { limit = { has_global_variable = acm_s2_equip } set_variable = { name = acm_equip value = global_var:acm_s2_equip } }
	else = { remove_variable = acm_equip }
	if = { limit = { has_global_variable = acm_s2_relic } set_variable = { name = acm_relic value = global_var:acm_s2_relic } }
	else = { remove_variable = acm_relic }
	if = { limit = { has_global_variable = acm_s2_msg } set_variable = { name = acm_msg value = global_var:acm_s2_msg } }
	else = { remove_variable = acm_msg }
	if = { limit = { has_global_variable = acm_s2_vset } set_variable = { name = acm_vset value = global_var:acm_s2_vset } }
	else = { remove_variable = acm_vset }
	if = { limit = { has_global_variable = acm_s2_preset } set_variable = { name = acm_preset value = global_var:acm_s2_preset } }
	else = { remove_variable = acm_preset }
	if = { limit = { has_global_variable = acm_s2_quality } set_variable = { name = acm_quality value = global_var:acm_s2_quality } }
	else = { remove_variable = acm_quality }
	if = { limit = { has_global_variable = acm_s2_wealth } set_variable = { name = acm_wealth value = global_var:acm_s2_wealth } }
	else = { remove_variable = acm_wealth }
	if = { limit = { has_global_variable = acm_s2_durability } set_variable = { name = acm_durability value = global_var:acm_s2_durability } }
	else = { remove_variable = acm_durability }
	if = { limit = { has_global_variable = acm_s2_auto_look } set_variable = acm_auto_look }
	else = { remove_variable = acm_auto_look }
	if = { limit = { has_global_variable = acm_s2_unique } set_variable = acm_unique }
	else = { remove_variable = acm_unique }
	if = { limit = { has_global_variable = acm_s2_no_decay } set_variable = acm_no_decay }
	else = { remove_variable = acm_no_decay }
	if = { limit = { has_global_variable = acm_s2_no_reforge } set_variable = acm_no_reforge }
	else = { remove_variable = acm_no_reforge }
	if = { limit = { has_global_variable = acm_s2_no_repair } set_variable = acm_no_repair }
	else = { remove_variable = acm_no_repair }
	if = { limit = { has_global_variable = acm_s2_auto_equip } set_variable = acm_auto_equip }
	else = { remove_variable = acm_auto_equip }
	if = { limit = { has_global_variable = acm_s2_features } set_variable = acm_features }
	else = { remove_variable = acm_features }
	if = { limit = { has_global_variable = acm_s2_creator_is_owner } set_variable = acm_creator_is_owner }
	else = { remove_variable = acm_creator_is_owner }
	if = { limit = { has_global_variable = acm_s2_maker } set_variable = { name = acm_maker value = global_var:acm_s2_maker } }
	else = { remove_variable = acm_maker }
	if = { limit = { has_global_variable = acm_s2_history_actor } set_variable = { name = acm_history_actor value = global_var:acm_s2_history_actor } }
	else = { remove_variable = acm_history_actor }
	if = { limit = { has_global_variable = acm_s2_m_diplomacy } set_variable = { name = acm_m_diplomacy value = global_var:acm_s2_m_diplomacy } }
	else = { set_variable = { name = acm_m_diplomacy value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_martial } set_variable = { name = acm_m_martial value = global_var:acm_s2_m_martial } }
	else = { set_variable = { name = acm_m_martial value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_stewardship } set_variable = { name = acm_m_stewardship value = global_var:acm_s2_m_stewardship } }
	else = { set_variable = { name = acm_m_stewardship value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_intrigue } set_variable = { name = acm_m_intrigue value = global_var:acm_s2_m_intrigue } }
	else = { set_variable = { name = acm_m_intrigue value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_learning } set_variable = { name = acm_m_learning value = global_var:acm_s2_m_learning } }
	else = { set_variable = { name = acm_m_learning value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_prowess_no_portrait } set_variable = { name = acm_m_prowess_no_portrait value = global_var:acm_s2_m_prowess_no_portrait } }
	else = { set_variable = { name = acm_m_prowess_no_portrait value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_diplomacy_mult } set_variable = { name = acm_m_diplomacy_mult value = global_var:acm_s2_m_diplomacy_mult } }
	else = { set_variable = { name = acm_m_diplomacy_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_martial_mult } set_variable = { name = acm_m_martial_mult value = global_var:acm_s2_m_martial_mult } }
	else = { set_variable = { name = acm_m_martial_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_stewardship_mult } set_variable = { name = acm_m_stewardship_mult value = global_var:acm_s2_m_stewardship_mult } }
	else = { set_variable = { name = acm_m_stewardship_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_intrigue_mult } set_variable = { name = acm_m_intrigue_mult value = global_var:acm_s2_m_intrigue_mult } }
	else = { set_variable = { name = acm_m_intrigue_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_learning_mult } set_variable = { name = acm_m_learning_mult value = global_var:acm_s2_m_learning_mult } }
	else = { set_variable = { name = acm_m_learning_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_prowess_mult } set_variable = { name = acm_m_prowess_mult value = global_var:acm_s2_m_prowess_mult } }
	else = { set_variable = { name = acm_m_prowess_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_lifestyle_xp_gain_mult value = global_var:acm_s2_m_monthly_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_diplomacy_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_diplomacy_lifestyle_xp_gain_mult value = global_var:acm_s2_m_monthly_diplomacy_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_diplomacy_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_martial_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_martial_lifestyle_xp_gain_mult value = global_var:acm_s2_m_monthly_martial_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_martial_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_stewardship_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_stewardship_lifestyle_xp_gain_mult value = global_var:acm_s2_m_monthly_stewardship_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_stewardship_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_intrigue_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_intrigue_lifestyle_xp_gain_mult value = global_var:acm_s2_m_monthly_intrigue_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_intrigue_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_learning_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_learning_lifestyle_xp_gain_mult value = global_var:acm_s2_m_monthly_learning_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_learning_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_prestige } set_variable = { name = acm_m_monthly_prestige value = global_var:acm_s2_m_monthly_prestige } }
	else = { set_variable = { name = acm_m_monthly_prestige value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_piety } set_variable = { name = acm_m_monthly_piety value = global_var:acm_s2_m_monthly_piety } }
	else = { set_variable = { name = acm_m_monthly_piety value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_income } set_variable = { name = acm_m_monthly_income value = global_var:acm_s2_m_monthly_income } }
	else = { set_variable = { name = acm_m_monthly_income value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_dynasty_prestige } set_variable = { name = acm_m_monthly_dynasty_prestige value = global_var:acm_s2_m_monthly_dynasty_prestige } }
	else = { set_variable = { name = acm_m_monthly_dynasty_prestige value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_influence } set_variable = { name = acm_m_monthly_influence value = global_var:acm_s2_m_monthly_influence } }
	else = { set_variable = { name = acm_m_monthly_influence value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_prestige_gain_mult } set_variable = { name = acm_m_monthly_prestige_gain_mult value = global_var:acm_s2_m_monthly_prestige_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_prestige_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_piety_gain_mult } set_variable = { name = acm_m_monthly_piety_gain_mult value = global_var:acm_s2_m_monthly_piety_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_piety_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_income_mult } set_variable = { name = acm_m_monthly_income_mult value = global_var:acm_s2_m_monthly_income_mult } }
	else = { set_variable = { name = acm_m_monthly_income_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_dynasty_prestige_mult } set_variable = { name = acm_m_monthly_dynasty_prestige_mult value = global_var:acm_s2_m_monthly_dynasty_prestige_mult } }
	else = { set_variable = { name = acm_m_monthly_dynasty_prestige_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_influence_mult } set_variable = { name = acm_m_monthly_influence_mult value = global_var:acm_s2_m_monthly_influence_mult } }
	else = { set_variable = { name = acm_m_monthly_influence_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_merit_mult } set_variable = { name = acm_m_monthly_merit_mult value = global_var:acm_s2_m_monthly_merit_mult } }
	else = { set_variable = { name = acm_m_monthly_merit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_domain_tax_mult } set_variable = { name = acm_m_domain_tax_mult value = global_var:acm_s2_m_domain_tax_mult } }
	else = { set_variable = { name = acm_m_domain_tax_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_vassal_tax_contribution_mult } set_variable = { name = acm_m_vassal_tax_contribution_mult value = global_var:acm_s2_m_vassal_tax_contribution_mult } }
	else = { set_variable = { name = acm_m_vassal_tax_contribution_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_war_income_add } set_variable = { name = acm_m_monthly_war_income_add value = global_var:acm_s2_m_monthly_war_income_add } }
	else = { set_variable = { name = acm_m_monthly_war_income_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_herd_gain_mult } set_variable = { name = acm_m_herd_gain_mult value = global_var:acm_s2_m_herd_gain_mult } }
	else = { set_variable = { name = acm_m_herd_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_court_grandeur_baseline_add } set_variable = { name = acm_m_court_grandeur_baseline_add value = global_var:acm_s2_m_court_grandeur_baseline_add } }
	else = { set_variable = { name = acm_m_court_grandeur_baseline_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_domain_limit } set_variable = { name = acm_m_domain_limit value = global_var:acm_s2_m_domain_limit } }
	else = { set_variable = { name = acm_m_domain_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_vassal_limit } set_variable = { name = acm_m_vassal_limit value = global_var:acm_s2_m_vassal_limit } }
	else = { set_variable = { name = acm_m_vassal_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_knight_limit } set_variable = { name = acm_m_knight_limit value = global_var:acm_s2_m_knight_limit } }
	else = { set_variable = { name = acm_m_knight_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_men_at_arms_limit } set_variable = { name = acm_m_men_at_arms_limit value = global_var:acm_s2_m_men_at_arms_limit } }
	else = { set_variable = { name = acm_m_men_at_arms_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_men_at_arms_cap } set_variable = { name = acm_m_men_at_arms_cap value = global_var:acm_s2_m_men_at_arms_cap } }
	else = { set_variable = { name = acm_m_men_at_arms_cap value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_legitimacy_gain_mult } set_variable = { name = acm_m_legitimacy_gain_mult value = global_var:acm_s2_m_legitimacy_gain_mult } }
	else = { set_variable = { name = acm_m_legitimacy_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_legitimacy_loss_mult } set_variable = { name = acm_m_legitimacy_loss_mult value = global_var:acm_s2_m_legitimacy_loss_mult } }
	else = { set_variable = { name = acm_m_legitimacy_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_short_reign_duration_mult } set_variable = { name = acm_m_short_reign_duration_mult value = global_var:acm_s2_m_short_reign_duration_mult } }
	else = { set_variable = { name = acm_m_short_reign_duration_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_dread_baseline_add } set_variable = { name = acm_m_dread_baseline_add value = global_var:acm_s2_m_dread_baseline_add } }
	else = { set_variable = { name = acm_m_dread_baseline_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_dread_gain_mult } set_variable = { name = acm_m_dread_gain_mult value = global_var:acm_s2_m_dread_gain_mult } }
	else = { set_variable = { name = acm_m_dread_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_dread_decay_mult } set_variable = { name = acm_m_dread_decay_mult value = global_var:acm_s2_m_dread_decay_mult } }
	else = { set_variable = { name = acm_m_dread_decay_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_tyranny_gain_mult } set_variable = { name = acm_m_tyranny_gain_mult value = global_var:acm_s2_m_tyranny_gain_mult } }
	else = { set_variable = { name = acm_m_tyranny_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_tyranny_loss_mult } set_variable = { name = acm_m_tyranny_loss_mult value = global_var:acm_s2_m_tyranny_loss_mult } }
	else = { set_variable = { name = acm_m_tyranny_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_title_creation_cost_mult } set_variable = { name = acm_m_title_creation_cost_mult value = global_var:acm_s2_m_title_creation_cost_mult } }
	else = { set_variable = { name = acm_m_title_creation_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_build_gold_cost } set_variable = { name = acm_m_build_gold_cost value = global_var:acm_s2_m_build_gold_cost } }
	else = { set_variable = { name = acm_m_build_gold_cost value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_build_speed } set_variable = { name = acm_m_build_speed value = global_var:acm_s2_m_build_speed } }
	else = { set_variable = { name = acm_m_build_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_development_growth } set_variable = { name = acm_m_development_growth value = global_var:acm_s2_m_development_growth } }
	else = { set_variable = { name = acm_m_development_growth value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_development_growth_factor } set_variable = { name = acm_m_development_growth_factor value = global_var:acm_s2_m_development_growth_factor } }
	else = { set_variable = { name = acm_m_development_growth_factor value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_monthly_county_control_growth_add } set_variable = { name = acm_m_monthly_county_control_growth_add value = global_var:acm_s2_m_monthly_county_control_growth_add } }
	else = { set_variable = { name = acm_m_monthly_county_control_growth_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_levy_size } set_variable = { name = acm_m_levy_size value = global_var:acm_s2_m_levy_size } }
	else = { set_variable = { name = acm_m_levy_size value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_levy_reinforcement_rate } set_variable = { name = acm_m_levy_reinforcement_rate value = global_var:acm_s2_m_levy_reinforcement_rate } }
	else = { set_variable = { name = acm_m_levy_reinforcement_rate value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_garrison_size } set_variable = { name = acm_m_garrison_size value = global_var:acm_s2_m_garrison_size } }
	else = { set_variable = { name = acm_m_garrison_size value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_fort_level } set_variable = { name = acm_m_fort_level value = global_var:acm_s2_m_fort_level } }
	else = { set_variable = { name = acm_m_fort_level value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_cultural_head_fascination_mult } set_variable = { name = acm_m_cultural_head_fascination_mult value = global_var:acm_s2_m_cultural_head_fascination_mult } }
	else = { set_variable = { name = acm_m_cultural_head_fascination_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_owned_legend_spread_mult } set_variable = { name = acm_m_owned_legend_spread_mult value = global_var:acm_s2_m_owned_legend_spread_mult } }
	else = { set_variable = { name = acm_m_owned_legend_spread_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_general_opinion } set_variable = { name = acm_m_general_opinion value = global_var:acm_s2_m_general_opinion } }
	else = { set_variable = { name = acm_m_general_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_vassal_opinion } set_variable = { name = acm_m_vassal_opinion value = global_var:acm_s2_m_vassal_opinion } }
	else = { set_variable = { name = acm_m_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_direct_vassal_opinion } set_variable = { name = acm_m_direct_vassal_opinion value = global_var:acm_s2_m_direct_vassal_opinion } }
	else = { set_variable = { name = acm_m_direct_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_powerful_vassal_opinion } set_variable = { name = acm_m_powerful_vassal_opinion value = global_var:acm_s2_m_powerful_vassal_opinion } }
	else = { set_variable = { name = acm_m_powerful_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_clergy_opinion } set_variable = { name = acm_m_clergy_opinion value = global_var:acm_s2_m_clergy_opinion } }
	else = { set_variable = { name = acm_m_clergy_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_courtly_opinion } set_variable = { name = acm_m_courtly_opinion value = global_var:acm_s2_m_courtly_opinion } }
	else = { set_variable = { name = acm_m_courtly_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_zealot_opinion } set_variable = { name = acm_m_zealot_opinion value = global_var:acm_s2_m_zealot_opinion } }
	else = { set_variable = { name = acm_m_zealot_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_glory_hound_opinion } set_variable = { name = acm_m_glory_hound_opinion value = global_var:acm_s2_m_glory_hound_opinion } }
	else = { set_variable = { name = acm_m_glory_hound_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_parochial_opinion } set_variable = { name = acm_m_parochial_opinion value = global_var:acm_s2_m_parochial_opinion } }
	else = { set_variable = { name = acm_m_parochial_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_belligerent_opinion } set_variable = { name = acm_m_belligerent_opinion value = global_var:acm_s2_m_belligerent_opinion } }
	else = { set_variable = { name = acm_m_belligerent_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_dynasty_opinion } set_variable = { name = acm_m_dynasty_opinion value = global_var:acm_s2_m_dynasty_opinion } }
	else = { set_variable = { name = acm_m_dynasty_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_spouse_opinion } set_variable = { name = acm_m_spouse_opinion value = global_var:acm_s2_m_spouse_opinion } }
	else = { set_variable = { name = acm_m_spouse_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_child_opinion } set_variable = { name = acm_m_child_opinion value = global_var:acm_s2_m_child_opinion } }
	else = { set_variable = { name = acm_m_child_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_attraction_opinion } set_variable = { name = acm_m_attraction_opinion value = global_var:acm_s2_m_attraction_opinion } }
	else = { set_variable = { name = acm_m_attraction_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_courtier_and_guest_opinion } set_variable = { name = acm_m_courtier_and_guest_opinion value = global_var:acm_s2_m_courtier_and_guest_opinion } }
	else = { set_variable = { name = acm_m_courtier_and_guest_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_same_faith_opinion } set_variable = { name = acm_m_same_faith_opinion value = global_var:acm_s2_m_same_faith_opinion } }
	else = { set_variable = { name = acm_m_same_faith_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_different_faith_opinion } set_variable = { name = acm_m_different_faith_opinion value = global_var:acm_s2_m_different_faith_opinion } }
	else = { set_variable = { name = acm_m_different_faith_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_same_culture_opinion } set_variable = { name = acm_m_same_culture_opinion value = global_var:acm_s2_m_same_culture_opinion } }
	else = { set_variable = { name = acm_m_same_culture_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_different_culture_opinion } set_variable = { name = acm_m_different_culture_opinion value = global_var:acm_s2_m_different_culture_opinion } }
	else = { set_variable = { name = acm_m_different_culture_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_independent_ruler_opinion } set_variable = { name = acm_m_independent_ruler_opinion value = global_var:acm_s2_m_independent_ruler_opinion } }
	else = { set_variable = { name = acm_m_independent_ruler_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_religious_head_opinion } set_variable = { name = acm_m_religious_head_opinion value = global_var:acm_s2_m_religious_head_opinion } }
	else = { set_variable = { name = acm_m_religious_head_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_county_opinion_add } set_variable = { name = acm_m_county_opinion_add value = global_var:acm_s2_m_county_opinion_add } }
	else = { set_variable = { name = acm_m_county_opinion_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_prisoner_opinion } set_variable = { name = acm_m_prisoner_opinion value = global_var:acm_s2_m_prisoner_opinion } }
	else = { set_variable = { name = acm_m_prisoner_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_health } set_variable = { name = acm_m_health value = global_var:acm_s2_m_health } }
	else = { set_variable = { name = acm_m_health value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_negate_health_penalty_add } set_variable = { name = acm_m_negate_health_penalty_add value = global_var:acm_s2_m_negate_health_penalty_add } }
	else = { set_variable = { name = acm_m_negate_health_penalty_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_fertility } set_variable = { name = acm_m_fertility value = global_var:acm_s2_m_fertility } }
	else = { set_variable = { name = acm_m_fertility value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_life_expectancy } set_variable = { name = acm_m_life_expectancy value = global_var:acm_s2_m_life_expectancy } }
	else = { set_variable = { name = acm_m_life_expectancy value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_years_of_fertility } set_variable = { name = acm_m_years_of_fertility value = global_var:acm_s2_m_years_of_fertility } }
	else = { set_variable = { name = acm_m_years_of_fertility value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_stress_gain_mult } set_variable = { name = acm_m_stress_gain_mult value = global_var:acm_s2_m_stress_gain_mult } }
	else = { set_variable = { name = acm_m_stress_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_stress_loss_mult } set_variable = { name = acm_m_stress_loss_mult value = global_var:acm_s2_m_stress_loss_mult } }
	else = { set_variable = { name = acm_m_stress_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_epidemic_resistance } set_variable = { name = acm_m_epidemic_resistance value = global_var:acm_s2_m_epidemic_resistance } }
	else = { set_variable = { name = acm_m_epidemic_resistance value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_negate_prowess_penalty_add } set_variable = { name = acm_m_negate_prowess_penalty_add value = global_var:acm_s2_m_negate_prowess_penalty_add } }
	else = { set_variable = { name = acm_m_negate_prowess_penalty_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_positive_inactive_inheritance_chance } set_variable = { name = acm_m_positive_inactive_inheritance_chance value = global_var:acm_s2_m_positive_inactive_inheritance_chance } }
	else = { set_variable = { name = acm_m_positive_inactive_inheritance_chance value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_owned_hostile_scheme_success_chance_add } set_variable = { name = acm_m_owned_hostile_scheme_success_chance_add value = global_var:acm_s2_m_owned_hostile_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_owned_hostile_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_owned_personal_scheme_success_chance_add } set_variable = { name = acm_m_owned_personal_scheme_success_chance_add value = global_var:acm_s2_m_owned_personal_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_owned_personal_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_owned_scheme_secrecy_add } set_variable = { name = acm_m_owned_scheme_secrecy_add value = global_var:acm_s2_m_owned_scheme_secrecy_add } }
	else = { set_variable = { name = acm_m_owned_scheme_secrecy_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_enemy_hostile_scheme_success_chance_add } set_variable = { name = acm_m_enemy_hostile_scheme_success_chance_add value = global_var:acm_s2_m_enemy_hostile_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_enemy_hostile_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_enemy_personal_scheme_success_chance_add } set_variable = { name = acm_m_enemy_personal_scheme_success_chance_add value = global_var:acm_s2_m_enemy_personal_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_enemy_personal_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_hostile_scheme_phase_duration_add } set_variable = { name = acm_m_hostile_scheme_phase_duration_add value = global_var:acm_s2_m_hostile_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_hostile_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_personal_scheme_phase_duration_add } set_variable = { name = acm_m_personal_scheme_phase_duration_add value = global_var:acm_s2_m_personal_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_personal_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_enemy_hostile_scheme_phase_duration_add } set_variable = { name = acm_m_enemy_hostile_scheme_phase_duration_add value = global_var:acm_s2_m_enemy_hostile_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_enemy_hostile_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_max_hostile_schemes_add } set_variable = { name = acm_m_max_hostile_schemes_add value = global_var:acm_s2_m_max_hostile_schemes_add } }
	else = { set_variable = { name = acm_m_max_hostile_schemes_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_max_personal_schemes_add } set_variable = { name = acm_m_max_personal_schemes_add value = global_var:acm_s2_m_max_personal_schemes_add } }
	else = { set_variable = { name = acm_m_max_personal_schemes_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_seduce_scheme_phase_duration_add } set_variable = { name = acm_m_seduce_scheme_phase_duration_add value = global_var:acm_s2_m_seduce_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_seduce_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_courting_scheme_phase_duration_add } set_variable = { name = acm_m_courting_scheme_phase_duration_add value = global_var:acm_s2_m_courting_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_courting_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_befriend_scheme_phase_duration_add } set_variable = { name = acm_m_befriend_scheme_phase_duration_add value = global_var:acm_s2_m_befriend_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_befriend_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_learn_language_scheme_phase_duration_add } set_variable = { name = acm_m_learn_language_scheme_phase_duration_add value = global_var:acm_s2_m_learn_language_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_learn_language_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_knight_effectiveness_mult } set_variable = { name = acm_m_knight_effectiveness_mult value = global_var:acm_s2_m_knight_effectiveness_mult } }
	else = { set_variable = { name = acm_m_knight_effectiveness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_army_damage_mult } set_variable = { name = acm_m_army_damage_mult value = global_var:acm_s2_m_army_damage_mult } }
	else = { set_variable = { name = acm_m_army_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_army_toughness_mult } set_variable = { name = acm_m_army_toughness_mult value = global_var:acm_s2_m_army_toughness_mult } }
	else = { set_variable = { name = acm_m_army_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_army_pursuit_mult } set_variable = { name = acm_m_army_pursuit_mult value = global_var:acm_s2_m_army_pursuit_mult } }
	else = { set_variable = { name = acm_m_army_pursuit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_army_screen_mult } set_variable = { name = acm_m_army_screen_mult value = global_var:acm_s2_m_army_screen_mult } }
	else = { set_variable = { name = acm_m_army_screen_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_army_maintenance_mult } set_variable = { name = acm_m_army_maintenance_mult value = global_var:acm_s2_m_army_maintenance_mult } }
	else = { set_variable = { name = acm_m_army_maintenance_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_men_at_arms_maintenance } set_variable = { name = acm_m_men_at_arms_maintenance value = global_var:acm_s2_m_men_at_arms_maintenance } }
	else = { set_variable = { name = acm_m_men_at_arms_maintenance value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_mercenary_hire_cost_mult } set_variable = { name = acm_m_mercenary_hire_cost_mult value = global_var:acm_s2_m_mercenary_hire_cost_mult } }
	else = { set_variable = { name = acm_m_mercenary_hire_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_enemy_hard_casualty_modifier } set_variable = { name = acm_m_enemy_hard_casualty_modifier value = global_var:acm_s2_m_enemy_hard_casualty_modifier } }
	else = { set_variable = { name = acm_m_enemy_hard_casualty_modifier value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_hard_casualty_modifier } set_variable = { name = acm_m_hard_casualty_modifier value = global_var:acm_s2_m_hard_casualty_modifier } }
	else = { set_variable = { name = acm_m_hard_casualty_modifier value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_retreat_losses } set_variable = { name = acm_m_retreat_losses value = global_var:acm_s2_m_retreat_losses } }
	else = { set_variable = { name = acm_m_retreat_losses value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_supply_limit_mult } set_variable = { name = acm_m_supply_limit_mult value = global_var:acm_s2_m_supply_limit_mult } }
	else = { set_variable = { name = acm_m_supply_limit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_movement_speed } set_variable = { name = acm_m_movement_speed value = global_var:acm_s2_m_movement_speed } }
	else = { set_variable = { name = acm_m_movement_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_naval_movement_speed_mult } set_variable = { name = acm_m_naval_movement_speed_mult value = global_var:acm_s2_m_naval_movement_speed_mult } }
	else = { set_variable = { name = acm_m_naval_movement_speed_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_embarkation_cost_mult } set_variable = { name = acm_m_embarkation_cost_mult value = global_var:acm_s2_m_embarkation_cost_mult } }
	else = { set_variable = { name = acm_m_embarkation_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_raid_speed } set_variable = { name = acm_m_raid_speed value = global_var:acm_s2_m_raid_speed } }
	else = { set_variable = { name = acm_m_raid_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_controlled_province_advantage } set_variable = { name = acm_m_controlled_province_advantage value = global_var:acm_s2_m_controlled_province_advantage } }
	else = { set_variable = { name = acm_m_controlled_province_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_defender_advantage } set_variable = { name = acm_m_defender_advantage value = global_var:acm_s2_m_defender_advantage } }
	else = { set_variable = { name = acm_m_defender_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_tolerance_advantage_mod } set_variable = { name = acm_m_tolerance_advantage_mod value = global_var:acm_s2_m_tolerance_advantage_mod } }
	else = { set_variable = { name = acm_m_tolerance_advantage_mod value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_led_by_owner_extra_advantage_add } set_variable = { name = acm_m_led_by_owner_extra_advantage_add value = global_var:acm_s2_m_led_by_owner_extra_advantage_add } }
	else = { set_variable = { name = acm_m_led_by_owner_extra_advantage_add value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_pursue_efficiency } set_variable = { name = acm_m_pursue_efficiency value = global_var:acm_s2_m_pursue_efficiency } }
	else = { set_variable = { name = acm_m_pursue_efficiency value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_levy_reinforcement_rate_same_faith } set_variable = { name = acm_m_levy_reinforcement_rate_same_faith value = global_var:acm_s2_m_levy_reinforcement_rate_same_faith } }
	else = { set_variable = { name = acm_m_levy_reinforcement_rate_same_faith value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_heavy_infantry_damage_mult } set_variable = { name = acm_m_heavy_infantry_damage_mult value = global_var:acm_s2_m_heavy_infantry_damage_mult } }
	else = { set_variable = { name = acm_m_heavy_infantry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_heavy_infantry_toughness_mult } set_variable = { name = acm_m_heavy_infantry_toughness_mult value = global_var:acm_s2_m_heavy_infantry_toughness_mult } }
	else = { set_variable = { name = acm_m_heavy_infantry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_heavy_cavalry_damage_mult } set_variable = { name = acm_m_heavy_cavalry_damage_mult value = global_var:acm_s2_m_heavy_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_heavy_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_heavy_cavalry_toughness_mult } set_variable = { name = acm_m_heavy_cavalry_toughness_mult value = global_var:acm_s2_m_heavy_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_heavy_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_light_cavalry_damage_mult } set_variable = { name = acm_m_light_cavalry_damage_mult value = global_var:acm_s2_m_light_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_light_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_light_cavalry_toughness_mult } set_variable = { name = acm_m_light_cavalry_toughness_mult value = global_var:acm_s2_m_light_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_light_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_archers_damage_mult } set_variable = { name = acm_m_archers_damage_mult value = global_var:acm_s2_m_archers_damage_mult } }
	else = { set_variable = { name = acm_m_archers_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_archers_toughness_mult } set_variable = { name = acm_m_archers_toughness_mult value = global_var:acm_s2_m_archers_toughness_mult } }
	else = { set_variable = { name = acm_m_archers_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_pikemen_damage_mult } set_variable = { name = acm_m_pikemen_damage_mult value = global_var:acm_s2_m_pikemen_damage_mult } }
	else = { set_variable = { name = acm_m_pikemen_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_pikemen_toughness_mult } set_variable = { name = acm_m_pikemen_toughness_mult value = global_var:acm_s2_m_pikemen_toughness_mult } }
	else = { set_variable = { name = acm_m_pikemen_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_skirmishers_damage_mult } set_variable = { name = acm_m_skirmishers_damage_mult value = global_var:acm_s2_m_skirmishers_damage_mult } }
	else = { set_variable = { name = acm_m_skirmishers_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_skirmishers_toughness_mult } set_variable = { name = acm_m_skirmishers_toughness_mult value = global_var:acm_s2_m_skirmishers_toughness_mult } }
	else = { set_variable = { name = acm_m_skirmishers_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_archer_cavalry_damage_mult } set_variable = { name = acm_m_archer_cavalry_damage_mult value = global_var:acm_s2_m_archer_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_archer_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_archer_cavalry_toughness_mult } set_variable = { name = acm_m_archer_cavalry_toughness_mult value = global_var:acm_s2_m_archer_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_archer_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_camel_cavalry_damage_mult } set_variable = { name = acm_m_camel_cavalry_damage_mult value = global_var:acm_s2_m_camel_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_camel_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_elephant_cavalry_damage_mult } set_variable = { name = acm_m_elephant_cavalry_damage_mult value = global_var:acm_s2_m_elephant_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_elephant_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_siege_weapon_siege_value_mult } set_variable = { name = acm_m_siege_weapon_siege_value_mult value = global_var:acm_s2_m_siege_weapon_siege_value_mult } }
	else = { set_variable = { name = acm_m_siege_weapon_siege_value_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_plains_advantage } set_variable = { name = acm_m_plains_advantage value = global_var:acm_s2_m_plains_advantage } }
	else = { set_variable = { name = acm_m_plains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_farmlands_advantage } set_variable = { name = acm_m_farmlands_advantage value = global_var:acm_s2_m_farmlands_advantage } }
	else = { set_variable = { name = acm_m_farmlands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_hills_advantage } set_variable = { name = acm_m_hills_advantage value = global_var:acm_s2_m_hills_advantage } }
	else = { set_variable = { name = acm_m_hills_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_mountains_advantage } set_variable = { name = acm_m_mountains_advantage value = global_var:acm_s2_m_mountains_advantage } }
	else = { set_variable = { name = acm_m_mountains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_desert_advantage } set_variable = { name = acm_m_desert_advantage value = global_var:acm_s2_m_desert_advantage } }
	else = { set_variable = { name = acm_m_desert_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_desert_mountains_advantage } set_variable = { name = acm_m_desert_mountains_advantage value = global_var:acm_s2_m_desert_mountains_advantage } }
	else = { set_variable = { name = acm_m_desert_mountains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_oasis_advantage } set_variable = { name = acm_m_oasis_advantage value = global_var:acm_s2_m_oasis_advantage } }
	else = { set_variable = { name = acm_m_oasis_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_jungle_advantage } set_variable = { name = acm_m_jungle_advantage value = global_var:acm_s2_m_jungle_advantage } }
	else = { set_variable = { name = acm_m_jungle_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_forest_advantage } set_variable = { name = acm_m_forest_advantage value = global_var:acm_s2_m_forest_advantage } }
	else = { set_variable = { name = acm_m_forest_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_taiga_advantage } set_variable = { name = acm_m_taiga_advantage value = global_var:acm_s2_m_taiga_advantage } }
	else = { set_variable = { name = acm_m_taiga_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_wetlands_advantage } set_variable = { name = acm_m_wetlands_advantage value = global_var:acm_s2_m_wetlands_advantage } }
	else = { set_variable = { name = acm_m_wetlands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_steppe_advantage } set_variable = { name = acm_m_steppe_advantage value = global_var:acm_s2_m_steppe_advantage } }
	else = { set_variable = { name = acm_m_steppe_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_floodplains_advantage } set_variable = { name = acm_m_floodplains_advantage value = global_var:acm_s2_m_floodplains_advantage } }
	else = { set_variable = { name = acm_m_floodplains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_drylands_advantage } set_variable = { name = acm_m_drylands_advantage value = global_var:acm_s2_m_drylands_advantage } }
	else = { set_variable = { name = acm_m_drylands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_winter_advantage } set_variable = { name = acm_m_winter_advantage value = global_var:acm_s2_m_winter_advantage } }
	else = { set_variable = { name = acm_m_winter_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_coastal_advantage } set_variable = { name = acm_m_coastal_advantage value = global_var:acm_s2_m_coastal_advantage } }
	else = { set_variable = { name = acm_m_coastal_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_character_travel_speed } set_variable = { name = acm_m_character_travel_speed value = global_var:acm_s2_m_character_travel_speed } }
	else = { set_variable = { name = acm_m_character_travel_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_character_travel_safety } set_variable = { name = acm_m_character_travel_safety value = global_var:acm_s2_m_character_travel_safety } }
	else = { set_variable = { name = acm_m_character_travel_safety value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_character_travel_speed_mult } set_variable = { name = acm_m_character_travel_speed_mult value = global_var:acm_s2_m_character_travel_speed_mult } }
	else = { set_variable = { name = acm_m_character_travel_speed_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_character_travel_safety_mult } set_variable = { name = acm_m_character_travel_safety_mult value = global_var:acm_s2_m_character_travel_safety_mult } }
	else = { set_variable = { name = acm_m_character_travel_safety_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s2_m_winter_movement_speed } set_variable = { name = acm_m_winter_movement_speed value = global_var:acm_s2_m_winter_movement_speed } }
	else = { set_variable = { name = acm_m_winter_movement_speed value = 0 } }
	acm_init_settings_effect = yes
}

acm_slot_clear_2_effect = {
	remove_global_variable = acm_s2_saved
	remove_global_variable = acm_s2_type
	remove_global_variable = acm_s2_icon
	remove_global_variable = acm_s2_asset
	remove_global_variable = acm_s2_support
	remove_global_variable = acm_s2_rarity
	remove_global_variable = acm_s2_history
	remove_global_variable = acm_s2_name
	remove_global_variable = acm_s2_desc
	remove_global_variable = acm_s2_benefit
	remove_global_variable = acm_s2_equip
	remove_global_variable = acm_s2_relic
	remove_global_variable = acm_s2_msg
	remove_global_variable = acm_s2_vset
	remove_global_variable = acm_s2_preset
	remove_global_variable = acm_s2_quality
	remove_global_variable = acm_s2_wealth
	remove_global_variable = acm_s2_durability
	remove_global_variable = acm_s2_auto_look
	remove_global_variable = acm_s2_unique
	remove_global_variable = acm_s2_no_decay
	remove_global_variable = acm_s2_no_reforge
	remove_global_variable = acm_s2_no_repair
	remove_global_variable = acm_s2_auto_equip
	remove_global_variable = acm_s2_features
	remove_global_variable = acm_s2_creator_is_owner
	remove_global_variable = acm_s2_maker
	remove_global_variable = acm_s2_history_actor
	remove_global_variable = acm_s2_m_diplomacy
	remove_global_variable = acm_s2_m_martial
	remove_global_variable = acm_s2_m_stewardship
	remove_global_variable = acm_s2_m_intrigue
	remove_global_variable = acm_s2_m_learning
	remove_global_variable = acm_s2_m_prowess_no_portrait
	remove_global_variable = acm_s2_m_diplomacy_mult
	remove_global_variable = acm_s2_m_martial_mult
	remove_global_variable = acm_s2_m_stewardship_mult
	remove_global_variable = acm_s2_m_intrigue_mult
	remove_global_variable = acm_s2_m_learning_mult
	remove_global_variable = acm_s2_m_prowess_mult
	remove_global_variable = acm_s2_m_monthly_lifestyle_xp_gain_mult
	remove_global_variable = acm_s2_m_monthly_diplomacy_lifestyle_xp_gain_mult
	remove_global_variable = acm_s2_m_monthly_martial_lifestyle_xp_gain_mult
	remove_global_variable = acm_s2_m_monthly_stewardship_lifestyle_xp_gain_mult
	remove_global_variable = acm_s2_m_monthly_intrigue_lifestyle_xp_gain_mult
	remove_global_variable = acm_s2_m_monthly_learning_lifestyle_xp_gain_mult
	remove_global_variable = acm_s2_m_monthly_prestige
	remove_global_variable = acm_s2_m_monthly_piety
	remove_global_variable = acm_s2_m_monthly_income
	remove_global_variable = acm_s2_m_monthly_dynasty_prestige
	remove_global_variable = acm_s2_m_monthly_influence
	remove_global_variable = acm_s2_m_monthly_prestige_gain_mult
	remove_global_variable = acm_s2_m_monthly_piety_gain_mult
	remove_global_variable = acm_s2_m_monthly_income_mult
	remove_global_variable = acm_s2_m_monthly_dynasty_prestige_mult
	remove_global_variable = acm_s2_m_monthly_influence_mult
	remove_global_variable = acm_s2_m_monthly_merit_mult
	remove_global_variable = acm_s2_m_domain_tax_mult
	remove_global_variable = acm_s2_m_vassal_tax_contribution_mult
	remove_global_variable = acm_s2_m_monthly_war_income_add
	remove_global_variable = acm_s2_m_herd_gain_mult
	remove_global_variable = acm_s2_m_court_grandeur_baseline_add
	remove_global_variable = acm_s2_m_domain_limit
	remove_global_variable = acm_s2_m_vassal_limit
	remove_global_variable = acm_s2_m_knight_limit
	remove_global_variable = acm_s2_m_men_at_arms_limit
	remove_global_variable = acm_s2_m_men_at_arms_cap
	remove_global_variable = acm_s2_m_legitimacy_gain_mult
	remove_global_variable = acm_s2_m_legitimacy_loss_mult
	remove_global_variable = acm_s2_m_short_reign_duration_mult
	remove_global_variable = acm_s2_m_dread_baseline_add
	remove_global_variable = acm_s2_m_dread_gain_mult
	remove_global_variable = acm_s2_m_dread_decay_mult
	remove_global_variable = acm_s2_m_tyranny_gain_mult
	remove_global_variable = acm_s2_m_tyranny_loss_mult
	remove_global_variable = acm_s2_m_title_creation_cost_mult
	remove_global_variable = acm_s2_m_build_gold_cost
	remove_global_variable = acm_s2_m_build_speed
	remove_global_variable = acm_s2_m_development_growth
	remove_global_variable = acm_s2_m_development_growth_factor
	remove_global_variable = acm_s2_m_monthly_county_control_growth_add
	remove_global_variable = acm_s2_m_levy_size
	remove_global_variable = acm_s2_m_levy_reinforcement_rate
	remove_global_variable = acm_s2_m_garrison_size
	remove_global_variable = acm_s2_m_fort_level
	remove_global_variable = acm_s2_m_cultural_head_fascination_mult
	remove_global_variable = acm_s2_m_owned_legend_spread_mult
	remove_global_variable = acm_s2_m_general_opinion
	remove_global_variable = acm_s2_m_vassal_opinion
	remove_global_variable = acm_s2_m_direct_vassal_opinion
	remove_global_variable = acm_s2_m_powerful_vassal_opinion
	remove_global_variable = acm_s2_m_clergy_opinion
	remove_global_variable = acm_s2_m_courtly_opinion
	remove_global_variable = acm_s2_m_zealot_opinion
	remove_global_variable = acm_s2_m_glory_hound_opinion
	remove_global_variable = acm_s2_m_parochial_opinion
	remove_global_variable = acm_s2_m_belligerent_opinion
	remove_global_variable = acm_s2_m_dynasty_opinion
	remove_global_variable = acm_s2_m_spouse_opinion
	remove_global_variable = acm_s2_m_child_opinion
	remove_global_variable = acm_s2_m_attraction_opinion
	remove_global_variable = acm_s2_m_courtier_and_guest_opinion
	remove_global_variable = acm_s2_m_same_faith_opinion
	remove_global_variable = acm_s2_m_different_faith_opinion
	remove_global_variable = acm_s2_m_same_culture_opinion
	remove_global_variable = acm_s2_m_different_culture_opinion
	remove_global_variable = acm_s2_m_independent_ruler_opinion
	remove_global_variable = acm_s2_m_religious_head_opinion
	remove_global_variable = acm_s2_m_county_opinion_add
	remove_global_variable = acm_s2_m_prisoner_opinion
	remove_global_variable = acm_s2_m_health
	remove_global_variable = acm_s2_m_negate_health_penalty_add
	remove_global_variable = acm_s2_m_fertility
	remove_global_variable = acm_s2_m_life_expectancy
	remove_global_variable = acm_s2_m_years_of_fertility
	remove_global_variable = acm_s2_m_stress_gain_mult
	remove_global_variable = acm_s2_m_stress_loss_mult
	remove_global_variable = acm_s2_m_epidemic_resistance
	remove_global_variable = acm_s2_m_negate_prowess_penalty_add
	remove_global_variable = acm_s2_m_positive_inactive_inheritance_chance
	remove_global_variable = acm_s2_m_owned_hostile_scheme_success_chance_add
	remove_global_variable = acm_s2_m_owned_personal_scheme_success_chance_add
	remove_global_variable = acm_s2_m_owned_scheme_secrecy_add
	remove_global_variable = acm_s2_m_enemy_hostile_scheme_success_chance_add
	remove_global_variable = acm_s2_m_enemy_personal_scheme_success_chance_add
	remove_global_variable = acm_s2_m_hostile_scheme_phase_duration_add
	remove_global_variable = acm_s2_m_personal_scheme_phase_duration_add
	remove_global_variable = acm_s2_m_enemy_hostile_scheme_phase_duration_add
	remove_global_variable = acm_s2_m_max_hostile_schemes_add
	remove_global_variable = acm_s2_m_max_personal_schemes_add
	remove_global_variable = acm_s2_m_seduce_scheme_phase_duration_add
	remove_global_variable = acm_s2_m_courting_scheme_phase_duration_add
	remove_global_variable = acm_s2_m_befriend_scheme_phase_duration_add
	remove_global_variable = acm_s2_m_learn_language_scheme_phase_duration_add
	remove_global_variable = acm_s2_m_knight_effectiveness_mult
	remove_global_variable = acm_s2_m_army_damage_mult
	remove_global_variable = acm_s2_m_army_toughness_mult
	remove_global_variable = acm_s2_m_army_pursuit_mult
	remove_global_variable = acm_s2_m_army_screen_mult
	remove_global_variable = acm_s2_m_army_maintenance_mult
	remove_global_variable = acm_s2_m_men_at_arms_maintenance
	remove_global_variable = acm_s2_m_mercenary_hire_cost_mult
	remove_global_variable = acm_s2_m_enemy_hard_casualty_modifier
	remove_global_variable = acm_s2_m_hard_casualty_modifier
	remove_global_variable = acm_s2_m_retreat_losses
	remove_global_variable = acm_s2_m_supply_limit_mult
	remove_global_variable = acm_s2_m_movement_speed
	remove_global_variable = acm_s2_m_naval_movement_speed_mult
	remove_global_variable = acm_s2_m_embarkation_cost_mult
	remove_global_variable = acm_s2_m_raid_speed
	remove_global_variable = acm_s2_m_controlled_province_advantage
	remove_global_variable = acm_s2_m_defender_advantage
	remove_global_variable = acm_s2_m_tolerance_advantage_mod
	remove_global_variable = acm_s2_m_led_by_owner_extra_advantage_add
	remove_global_variable = acm_s2_m_pursue_efficiency
	remove_global_variable = acm_s2_m_levy_reinforcement_rate_same_faith
	remove_global_variable = acm_s2_m_heavy_infantry_damage_mult
	remove_global_variable = acm_s2_m_heavy_infantry_toughness_mult
	remove_global_variable = acm_s2_m_heavy_cavalry_damage_mult
	remove_global_variable = acm_s2_m_heavy_cavalry_toughness_mult
	remove_global_variable = acm_s2_m_light_cavalry_damage_mult
	remove_global_variable = acm_s2_m_light_cavalry_toughness_mult
	remove_global_variable = acm_s2_m_archers_damage_mult
	remove_global_variable = acm_s2_m_archers_toughness_mult
	remove_global_variable = acm_s2_m_pikemen_damage_mult
	remove_global_variable = acm_s2_m_pikemen_toughness_mult
	remove_global_variable = acm_s2_m_skirmishers_damage_mult
	remove_global_variable = acm_s2_m_skirmishers_toughness_mult
	remove_global_variable = acm_s2_m_archer_cavalry_damage_mult
	remove_global_variable = acm_s2_m_archer_cavalry_toughness_mult
	remove_global_variable = acm_s2_m_camel_cavalry_damage_mult
	remove_global_variable = acm_s2_m_elephant_cavalry_damage_mult
	remove_global_variable = acm_s2_m_siege_weapon_siege_value_mult
	remove_global_variable = acm_s2_m_plains_advantage
	remove_global_variable = acm_s2_m_farmlands_advantage
	remove_global_variable = acm_s2_m_hills_advantage
	remove_global_variable = acm_s2_m_mountains_advantage
	remove_global_variable = acm_s2_m_desert_advantage
	remove_global_variable = acm_s2_m_desert_mountains_advantage
	remove_global_variable = acm_s2_m_oasis_advantage
	remove_global_variable = acm_s2_m_jungle_advantage
	remove_global_variable = acm_s2_m_forest_advantage
	remove_global_variable = acm_s2_m_taiga_advantage
	remove_global_variable = acm_s2_m_wetlands_advantage
	remove_global_variable = acm_s2_m_steppe_advantage
	remove_global_variable = acm_s2_m_floodplains_advantage
	remove_global_variable = acm_s2_m_drylands_advantage
	remove_global_variable = acm_s2_m_winter_advantage
	remove_global_variable = acm_s2_m_coastal_advantage
	remove_global_variable = acm_s2_m_character_travel_speed
	remove_global_variable = acm_s2_m_character_travel_safety
	remove_global_variable = acm_s2_m_character_travel_speed_mult
	remove_global_variable = acm_s2_m_character_travel_safety_mult
	remove_global_variable = acm_s2_m_winter_movement_speed
}

acm_slot_save_3_effect = {
	set_global_variable = { name = acm_s3_saved value = yes }
	if = { limit = { has_variable = acm_type } set_global_variable = { name = acm_s3_type value = var:acm_type } }
	else = { remove_global_variable = acm_s3_type }
	if = { limit = { has_variable = acm_icon } set_global_variable = { name = acm_s3_icon value = var:acm_icon } }
	else = { remove_global_variable = acm_s3_icon }
	if = { limit = { has_variable = acm_asset } set_global_variable = { name = acm_s3_asset value = var:acm_asset } }
	else = { remove_global_variable = acm_s3_asset }
	if = { limit = { has_variable = acm_support } set_global_variable = { name = acm_s3_support value = var:acm_support } }
	else = { remove_global_variable = acm_s3_support }
	if = { limit = { has_variable = acm_rarity } set_global_variable = { name = acm_s3_rarity value = var:acm_rarity } }
	else = { remove_global_variable = acm_s3_rarity }
	if = { limit = { has_variable = acm_history } set_global_variable = { name = acm_s3_history value = var:acm_history } }
	else = { remove_global_variable = acm_s3_history }
	if = { limit = { has_variable = acm_name } set_global_variable = { name = acm_s3_name value = var:acm_name } }
	else = { remove_global_variable = acm_s3_name }
	if = { limit = { has_variable = acm_desc } set_global_variable = { name = acm_s3_desc value = var:acm_desc } }
	else = { remove_global_variable = acm_s3_desc }
	if = { limit = { has_variable = acm_benefit } set_global_variable = { name = acm_s3_benefit value = var:acm_benefit } }
	else = { remove_global_variable = acm_s3_benefit }
	if = { limit = { has_variable = acm_equip } set_global_variable = { name = acm_s3_equip value = var:acm_equip } }
	else = { remove_global_variable = acm_s3_equip }
	if = { limit = { has_variable = acm_relic } set_global_variable = { name = acm_s3_relic value = var:acm_relic } }
	else = { remove_global_variable = acm_s3_relic }
	if = { limit = { has_variable = acm_msg } set_global_variable = { name = acm_s3_msg value = var:acm_msg } }
	else = { remove_global_variable = acm_s3_msg }
	if = { limit = { has_variable = acm_vset } set_global_variable = { name = acm_s3_vset value = var:acm_vset } }
	else = { remove_global_variable = acm_s3_vset }
	if = { limit = { has_variable = acm_preset } set_global_variable = { name = acm_s3_preset value = var:acm_preset } }
	else = { remove_global_variable = acm_s3_preset }
	if = { limit = { has_variable = acm_quality } set_global_variable = { name = acm_s3_quality value = var:acm_quality } }
	else = { remove_global_variable = acm_s3_quality }
	if = { limit = { has_variable = acm_wealth } set_global_variable = { name = acm_s3_wealth value = var:acm_wealth } }
	else = { remove_global_variable = acm_s3_wealth }
	if = { limit = { has_variable = acm_durability } set_global_variable = { name = acm_s3_durability value = var:acm_durability } }
	else = { remove_global_variable = acm_s3_durability }
	if = { limit = { has_variable = acm_auto_look } set_global_variable = { name = acm_s3_auto_look value = yes } }
	else = { remove_global_variable = acm_s3_auto_look }
	if = { limit = { has_variable = acm_unique } set_global_variable = { name = acm_s3_unique value = yes } }
	else = { remove_global_variable = acm_s3_unique }
	if = { limit = { has_variable = acm_no_decay } set_global_variable = { name = acm_s3_no_decay value = yes } }
	else = { remove_global_variable = acm_s3_no_decay }
	if = { limit = { has_variable = acm_no_reforge } set_global_variable = { name = acm_s3_no_reforge value = yes } }
	else = { remove_global_variable = acm_s3_no_reforge }
	if = { limit = { has_variable = acm_no_repair } set_global_variable = { name = acm_s3_no_repair value = yes } }
	else = { remove_global_variable = acm_s3_no_repair }
	if = { limit = { has_variable = acm_auto_equip } set_global_variable = { name = acm_s3_auto_equip value = yes } }
	else = { remove_global_variable = acm_s3_auto_equip }
	if = { limit = { has_variable = acm_features } set_global_variable = { name = acm_s3_features value = yes } }
	else = { remove_global_variable = acm_s3_features }
	if = { limit = { has_variable = acm_creator_is_owner } set_global_variable = { name = acm_s3_creator_is_owner value = yes } }
	else = { remove_global_variable = acm_s3_creator_is_owner }
	if = { limit = { has_variable = acm_maker } set_global_variable = { name = acm_s3_maker value = var:acm_maker } }
	else = { remove_global_variable = acm_s3_maker }
	if = { limit = { has_variable = acm_history_actor } set_global_variable = { name = acm_s3_history_actor value = var:acm_history_actor } }
	else = { remove_global_variable = acm_s3_history_actor }
	if = { limit = { NOT = { var:acm_m_diplomacy ?= 0 } } set_global_variable = { name = acm_s3_m_diplomacy value = var:acm_m_diplomacy } }
	else = { remove_global_variable = acm_s3_m_diplomacy }
	if = { limit = { NOT = { var:acm_m_martial ?= 0 } } set_global_variable = { name = acm_s3_m_martial value = var:acm_m_martial } }
	else = { remove_global_variable = acm_s3_m_martial }
	if = { limit = { NOT = { var:acm_m_stewardship ?= 0 } } set_global_variable = { name = acm_s3_m_stewardship value = var:acm_m_stewardship } }
	else = { remove_global_variable = acm_s3_m_stewardship }
	if = { limit = { NOT = { var:acm_m_intrigue ?= 0 } } set_global_variable = { name = acm_s3_m_intrigue value = var:acm_m_intrigue } }
	else = { remove_global_variable = acm_s3_m_intrigue }
	if = { limit = { NOT = { var:acm_m_learning ?= 0 } } set_global_variable = { name = acm_s3_m_learning value = var:acm_m_learning } }
	else = { remove_global_variable = acm_s3_m_learning }
	if = { limit = { NOT = { var:acm_m_prowess_no_portrait ?= 0 } } set_global_variable = { name = acm_s3_m_prowess_no_portrait value = var:acm_m_prowess_no_portrait } }
	else = { remove_global_variable = acm_s3_m_prowess_no_portrait }
	if = { limit = { NOT = { var:acm_m_diplomacy_mult ?= 0 } } set_global_variable = { name = acm_s3_m_diplomacy_mult value = var:acm_m_diplomacy_mult } }
	else = { remove_global_variable = acm_s3_m_diplomacy_mult }
	if = { limit = { NOT = { var:acm_m_martial_mult ?= 0 } } set_global_variable = { name = acm_s3_m_martial_mult value = var:acm_m_martial_mult } }
	else = { remove_global_variable = acm_s3_m_martial_mult }
	if = { limit = { NOT = { var:acm_m_stewardship_mult ?= 0 } } set_global_variable = { name = acm_s3_m_stewardship_mult value = var:acm_m_stewardship_mult } }
	else = { remove_global_variable = acm_s3_m_stewardship_mult }
	if = { limit = { NOT = { var:acm_m_intrigue_mult ?= 0 } } set_global_variable = { name = acm_s3_m_intrigue_mult value = var:acm_m_intrigue_mult } }
	else = { remove_global_variable = acm_s3_m_intrigue_mult }
	if = { limit = { NOT = { var:acm_m_learning_mult ?= 0 } } set_global_variable = { name = acm_s3_m_learning_mult value = var:acm_m_learning_mult } }
	else = { remove_global_variable = acm_s3_m_learning_mult }
	if = { limit = { NOT = { var:acm_m_prowess_mult ?= 0 } } set_global_variable = { name = acm_s3_m_prowess_mult value = var:acm_m_prowess_mult } }
	else = { remove_global_variable = acm_s3_m_prowess_mult }
	if = { limit = { NOT = { var:acm_m_monthly_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_lifestyle_xp_gain_mult value = var:acm_m_monthly_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_diplomacy_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_diplomacy_lifestyle_xp_gain_mult value = var:acm_m_monthly_diplomacy_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_diplomacy_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_martial_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_martial_lifestyle_xp_gain_mult value = var:acm_m_monthly_martial_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_martial_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_stewardship_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_stewardship_lifestyle_xp_gain_mult value = var:acm_m_monthly_stewardship_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_stewardship_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_intrigue_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_intrigue_lifestyle_xp_gain_mult value = var:acm_m_monthly_intrigue_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_intrigue_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_learning_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_learning_lifestyle_xp_gain_mult value = var:acm_m_monthly_learning_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_learning_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_prestige ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_prestige value = var:acm_m_monthly_prestige } }
	else = { remove_global_variable = acm_s3_m_monthly_prestige }
	if = { limit = { NOT = { var:acm_m_monthly_piety ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_piety value = var:acm_m_monthly_piety } }
	else = { remove_global_variable = acm_s3_m_monthly_piety }
	if = { limit = { NOT = { var:acm_m_monthly_income ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_income value = var:acm_m_monthly_income } }
	else = { remove_global_variable = acm_s3_m_monthly_income }
	if = { limit = { NOT = { var:acm_m_monthly_dynasty_prestige ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_dynasty_prestige value = var:acm_m_monthly_dynasty_prestige } }
	else = { remove_global_variable = acm_s3_m_monthly_dynasty_prestige }
	if = { limit = { NOT = { var:acm_m_monthly_influence ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_influence value = var:acm_m_monthly_influence } }
	else = { remove_global_variable = acm_s3_m_monthly_influence }
	if = { limit = { NOT = { var:acm_m_monthly_prestige_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_prestige_gain_mult value = var:acm_m_monthly_prestige_gain_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_prestige_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_piety_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_piety_gain_mult value = var:acm_m_monthly_piety_gain_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_piety_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_income_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_income_mult value = var:acm_m_monthly_income_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_income_mult }
	if = { limit = { NOT = { var:acm_m_monthly_dynasty_prestige_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_dynasty_prestige_mult value = var:acm_m_monthly_dynasty_prestige_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_dynasty_prestige_mult }
	if = { limit = { NOT = { var:acm_m_monthly_influence_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_influence_mult value = var:acm_m_monthly_influence_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_influence_mult }
	if = { limit = { NOT = { var:acm_m_monthly_merit_mult ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_merit_mult value = var:acm_m_monthly_merit_mult } }
	else = { remove_global_variable = acm_s3_m_monthly_merit_mult }
	if = { limit = { NOT = { var:acm_m_domain_tax_mult ?= 0 } } set_global_variable = { name = acm_s3_m_domain_tax_mult value = var:acm_m_domain_tax_mult } }
	else = { remove_global_variable = acm_s3_m_domain_tax_mult }
	if = { limit = { NOT = { var:acm_m_vassal_tax_contribution_mult ?= 0 } } set_global_variable = { name = acm_s3_m_vassal_tax_contribution_mult value = var:acm_m_vassal_tax_contribution_mult } }
	else = { remove_global_variable = acm_s3_m_vassal_tax_contribution_mult }
	if = { limit = { NOT = { var:acm_m_monthly_war_income_add ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_war_income_add value = var:acm_m_monthly_war_income_add } }
	else = { remove_global_variable = acm_s3_m_monthly_war_income_add }
	if = { limit = { NOT = { var:acm_m_herd_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_herd_gain_mult value = var:acm_m_herd_gain_mult } }
	else = { remove_global_variable = acm_s3_m_herd_gain_mult }
	if = { limit = { NOT = { var:acm_m_court_grandeur_baseline_add ?= 0 } } set_global_variable = { name = acm_s3_m_court_grandeur_baseline_add value = var:acm_m_court_grandeur_baseline_add } }
	else = { remove_global_variable = acm_s3_m_court_grandeur_baseline_add }
	if = { limit = { NOT = { var:acm_m_domain_limit ?= 0 } } set_global_variable = { name = acm_s3_m_domain_limit value = var:acm_m_domain_limit } }
	else = { remove_global_variable = acm_s3_m_domain_limit }
	if = { limit = { NOT = { var:acm_m_vassal_limit ?= 0 } } set_global_variable = { name = acm_s3_m_vassal_limit value = var:acm_m_vassal_limit } }
	else = { remove_global_variable = acm_s3_m_vassal_limit }
	if = { limit = { NOT = { var:acm_m_knight_limit ?= 0 } } set_global_variable = { name = acm_s3_m_knight_limit value = var:acm_m_knight_limit } }
	else = { remove_global_variable = acm_s3_m_knight_limit }
	if = { limit = { NOT = { var:acm_m_men_at_arms_limit ?= 0 } } set_global_variable = { name = acm_s3_m_men_at_arms_limit value = var:acm_m_men_at_arms_limit } }
	else = { remove_global_variable = acm_s3_m_men_at_arms_limit }
	if = { limit = { NOT = { var:acm_m_men_at_arms_cap ?= 0 } } set_global_variable = { name = acm_s3_m_men_at_arms_cap value = var:acm_m_men_at_arms_cap } }
	else = { remove_global_variable = acm_s3_m_men_at_arms_cap }
	if = { limit = { NOT = { var:acm_m_legitimacy_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_legitimacy_gain_mult value = var:acm_m_legitimacy_gain_mult } }
	else = { remove_global_variable = acm_s3_m_legitimacy_gain_mult }
	if = { limit = { NOT = { var:acm_m_legitimacy_loss_mult ?= 0 } } set_global_variable = { name = acm_s3_m_legitimacy_loss_mult value = var:acm_m_legitimacy_loss_mult } }
	else = { remove_global_variable = acm_s3_m_legitimacy_loss_mult }
	if = { limit = { NOT = { var:acm_m_short_reign_duration_mult ?= 0 } } set_global_variable = { name = acm_s3_m_short_reign_duration_mult value = var:acm_m_short_reign_duration_mult } }
	else = { remove_global_variable = acm_s3_m_short_reign_duration_mult }
	if = { limit = { NOT = { var:acm_m_dread_baseline_add ?= 0 } } set_global_variable = { name = acm_s3_m_dread_baseline_add value = var:acm_m_dread_baseline_add } }
	else = { remove_global_variable = acm_s3_m_dread_baseline_add }
	if = { limit = { NOT = { var:acm_m_dread_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_dread_gain_mult value = var:acm_m_dread_gain_mult } }
	else = { remove_global_variable = acm_s3_m_dread_gain_mult }
	if = { limit = { NOT = { var:acm_m_dread_decay_mult ?= 0 } } set_global_variable = { name = acm_s3_m_dread_decay_mult value = var:acm_m_dread_decay_mult } }
	else = { remove_global_variable = acm_s3_m_dread_decay_mult }
	if = { limit = { NOT = { var:acm_m_tyranny_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_tyranny_gain_mult value = var:acm_m_tyranny_gain_mult } }
	else = { remove_global_variable = acm_s3_m_tyranny_gain_mult }
	if = { limit = { NOT = { var:acm_m_tyranny_loss_mult ?= 0 } } set_global_variable = { name = acm_s3_m_tyranny_loss_mult value = var:acm_m_tyranny_loss_mult } }
	else = { remove_global_variable = acm_s3_m_tyranny_loss_mult }
	if = { limit = { NOT = { var:acm_m_title_creation_cost_mult ?= 0 } } set_global_variable = { name = acm_s3_m_title_creation_cost_mult value = var:acm_m_title_creation_cost_mult } }
	else = { remove_global_variable = acm_s3_m_title_creation_cost_mult }
	if = { limit = { NOT = { var:acm_m_build_gold_cost ?= 0 } } set_global_variable = { name = acm_s3_m_build_gold_cost value = var:acm_m_build_gold_cost } }
	else = { remove_global_variable = acm_s3_m_build_gold_cost }
	if = { limit = { NOT = { var:acm_m_build_speed ?= 0 } } set_global_variable = { name = acm_s3_m_build_speed value = var:acm_m_build_speed } }
	else = { remove_global_variable = acm_s3_m_build_speed }
	if = { limit = { NOT = { var:acm_m_development_growth ?= 0 } } set_global_variable = { name = acm_s3_m_development_growth value = var:acm_m_development_growth } }
	else = { remove_global_variable = acm_s3_m_development_growth }
	if = { limit = { NOT = { var:acm_m_development_growth_factor ?= 0 } } set_global_variable = { name = acm_s3_m_development_growth_factor value = var:acm_m_development_growth_factor } }
	else = { remove_global_variable = acm_s3_m_development_growth_factor }
	if = { limit = { NOT = { var:acm_m_monthly_county_control_growth_add ?= 0 } } set_global_variable = { name = acm_s3_m_monthly_county_control_growth_add value = var:acm_m_monthly_county_control_growth_add } }
	else = { remove_global_variable = acm_s3_m_monthly_county_control_growth_add }
	if = { limit = { NOT = { var:acm_m_levy_size ?= 0 } } set_global_variable = { name = acm_s3_m_levy_size value = var:acm_m_levy_size } }
	else = { remove_global_variable = acm_s3_m_levy_size }
	if = { limit = { NOT = { var:acm_m_levy_reinforcement_rate ?= 0 } } set_global_variable = { name = acm_s3_m_levy_reinforcement_rate value = var:acm_m_levy_reinforcement_rate } }
	else = { remove_global_variable = acm_s3_m_levy_reinforcement_rate }
	if = { limit = { NOT = { var:acm_m_garrison_size ?= 0 } } set_global_variable = { name = acm_s3_m_garrison_size value = var:acm_m_garrison_size } }
	else = { remove_global_variable = acm_s3_m_garrison_size }
	if = { limit = { NOT = { var:acm_m_fort_level ?= 0 } } set_global_variable = { name = acm_s3_m_fort_level value = var:acm_m_fort_level } }
	else = { remove_global_variable = acm_s3_m_fort_level }
	if = { limit = { NOT = { var:acm_m_cultural_head_fascination_mult ?= 0 } } set_global_variable = { name = acm_s3_m_cultural_head_fascination_mult value = var:acm_m_cultural_head_fascination_mult } }
	else = { remove_global_variable = acm_s3_m_cultural_head_fascination_mult }
	if = { limit = { NOT = { var:acm_m_owned_legend_spread_mult ?= 0 } } set_global_variable = { name = acm_s3_m_owned_legend_spread_mult value = var:acm_m_owned_legend_spread_mult } }
	else = { remove_global_variable = acm_s3_m_owned_legend_spread_mult }
	if = { limit = { NOT = { var:acm_m_general_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_general_opinion value = var:acm_m_general_opinion } }
	else = { remove_global_variable = acm_s3_m_general_opinion }
	if = { limit = { NOT = { var:acm_m_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_vassal_opinion value = var:acm_m_vassal_opinion } }
	else = { remove_global_variable = acm_s3_m_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_direct_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_direct_vassal_opinion value = var:acm_m_direct_vassal_opinion } }
	else = { remove_global_variable = acm_s3_m_direct_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_powerful_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_powerful_vassal_opinion value = var:acm_m_powerful_vassal_opinion } }
	else = { remove_global_variable = acm_s3_m_powerful_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_clergy_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_clergy_opinion value = var:acm_m_clergy_opinion } }
	else = { remove_global_variable = acm_s3_m_clergy_opinion }
	if = { limit = { NOT = { var:acm_m_courtly_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_courtly_opinion value = var:acm_m_courtly_opinion } }
	else = { remove_global_variable = acm_s3_m_courtly_opinion }
	if = { limit = { NOT = { var:acm_m_zealot_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_zealot_opinion value = var:acm_m_zealot_opinion } }
	else = { remove_global_variable = acm_s3_m_zealot_opinion }
	if = { limit = { NOT = { var:acm_m_glory_hound_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_glory_hound_opinion value = var:acm_m_glory_hound_opinion } }
	else = { remove_global_variable = acm_s3_m_glory_hound_opinion }
	if = { limit = { NOT = { var:acm_m_parochial_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_parochial_opinion value = var:acm_m_parochial_opinion } }
	else = { remove_global_variable = acm_s3_m_parochial_opinion }
	if = { limit = { NOT = { var:acm_m_belligerent_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_belligerent_opinion value = var:acm_m_belligerent_opinion } }
	else = { remove_global_variable = acm_s3_m_belligerent_opinion }
	if = { limit = { NOT = { var:acm_m_dynasty_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_dynasty_opinion value = var:acm_m_dynasty_opinion } }
	else = { remove_global_variable = acm_s3_m_dynasty_opinion }
	if = { limit = { NOT = { var:acm_m_spouse_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_spouse_opinion value = var:acm_m_spouse_opinion } }
	else = { remove_global_variable = acm_s3_m_spouse_opinion }
	if = { limit = { NOT = { var:acm_m_child_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_child_opinion value = var:acm_m_child_opinion } }
	else = { remove_global_variable = acm_s3_m_child_opinion }
	if = { limit = { NOT = { var:acm_m_attraction_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_attraction_opinion value = var:acm_m_attraction_opinion } }
	else = { remove_global_variable = acm_s3_m_attraction_opinion }
	if = { limit = { NOT = { var:acm_m_courtier_and_guest_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_courtier_and_guest_opinion value = var:acm_m_courtier_and_guest_opinion } }
	else = { remove_global_variable = acm_s3_m_courtier_and_guest_opinion }
	if = { limit = { NOT = { var:acm_m_same_faith_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_same_faith_opinion value = var:acm_m_same_faith_opinion } }
	else = { remove_global_variable = acm_s3_m_same_faith_opinion }
	if = { limit = { NOT = { var:acm_m_different_faith_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_different_faith_opinion value = var:acm_m_different_faith_opinion } }
	else = { remove_global_variable = acm_s3_m_different_faith_opinion }
	if = { limit = { NOT = { var:acm_m_same_culture_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_same_culture_opinion value = var:acm_m_same_culture_opinion } }
	else = { remove_global_variable = acm_s3_m_same_culture_opinion }
	if = { limit = { NOT = { var:acm_m_different_culture_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_different_culture_opinion value = var:acm_m_different_culture_opinion } }
	else = { remove_global_variable = acm_s3_m_different_culture_opinion }
	if = { limit = { NOT = { var:acm_m_independent_ruler_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_independent_ruler_opinion value = var:acm_m_independent_ruler_opinion } }
	else = { remove_global_variable = acm_s3_m_independent_ruler_opinion }
	if = { limit = { NOT = { var:acm_m_religious_head_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_religious_head_opinion value = var:acm_m_religious_head_opinion } }
	else = { remove_global_variable = acm_s3_m_religious_head_opinion }
	if = { limit = { NOT = { var:acm_m_county_opinion_add ?= 0 } } set_global_variable = { name = acm_s3_m_county_opinion_add value = var:acm_m_county_opinion_add } }
	else = { remove_global_variable = acm_s3_m_county_opinion_add }
	if = { limit = { NOT = { var:acm_m_prisoner_opinion ?= 0 } } set_global_variable = { name = acm_s3_m_prisoner_opinion value = var:acm_m_prisoner_opinion } }
	else = { remove_global_variable = acm_s3_m_prisoner_opinion }
	if = { limit = { NOT = { var:acm_m_health ?= 0 } } set_global_variable = { name = acm_s3_m_health value = var:acm_m_health } }
	else = { remove_global_variable = acm_s3_m_health }
	if = { limit = { NOT = { var:acm_m_negate_health_penalty_add ?= 0 } } set_global_variable = { name = acm_s3_m_negate_health_penalty_add value = var:acm_m_negate_health_penalty_add } }
	else = { remove_global_variable = acm_s3_m_negate_health_penalty_add }
	if = { limit = { NOT = { var:acm_m_fertility ?= 0 } } set_global_variable = { name = acm_s3_m_fertility value = var:acm_m_fertility } }
	else = { remove_global_variable = acm_s3_m_fertility }
	if = { limit = { NOT = { var:acm_m_life_expectancy ?= 0 } } set_global_variable = { name = acm_s3_m_life_expectancy value = var:acm_m_life_expectancy } }
	else = { remove_global_variable = acm_s3_m_life_expectancy }
	if = { limit = { NOT = { var:acm_m_years_of_fertility ?= 0 } } set_global_variable = { name = acm_s3_m_years_of_fertility value = var:acm_m_years_of_fertility } }
	else = { remove_global_variable = acm_s3_m_years_of_fertility }
	if = { limit = { NOT = { var:acm_m_stress_gain_mult ?= 0 } } set_global_variable = { name = acm_s3_m_stress_gain_mult value = var:acm_m_stress_gain_mult } }
	else = { remove_global_variable = acm_s3_m_stress_gain_mult }
	if = { limit = { NOT = { var:acm_m_stress_loss_mult ?= 0 } } set_global_variable = { name = acm_s3_m_stress_loss_mult value = var:acm_m_stress_loss_mult } }
	else = { remove_global_variable = acm_s3_m_stress_loss_mult }
	if = { limit = { NOT = { var:acm_m_epidemic_resistance ?= 0 } } set_global_variable = { name = acm_s3_m_epidemic_resistance value = var:acm_m_epidemic_resistance } }
	else = { remove_global_variable = acm_s3_m_epidemic_resistance }
	if = { limit = { NOT = { var:acm_m_negate_prowess_penalty_add ?= 0 } } set_global_variable = { name = acm_s3_m_negate_prowess_penalty_add value = var:acm_m_negate_prowess_penalty_add } }
	else = { remove_global_variable = acm_s3_m_negate_prowess_penalty_add }
	if = { limit = { NOT = { var:acm_m_positive_inactive_inheritance_chance ?= 0 } } set_global_variable = { name = acm_s3_m_positive_inactive_inheritance_chance value = var:acm_m_positive_inactive_inheritance_chance } }
	else = { remove_global_variable = acm_s3_m_positive_inactive_inheritance_chance }
	if = { limit = { NOT = { var:acm_m_owned_hostile_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s3_m_owned_hostile_scheme_success_chance_add value = var:acm_m_owned_hostile_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s3_m_owned_hostile_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_owned_personal_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s3_m_owned_personal_scheme_success_chance_add value = var:acm_m_owned_personal_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s3_m_owned_personal_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_owned_scheme_secrecy_add ?= 0 } } set_global_variable = { name = acm_s3_m_owned_scheme_secrecy_add value = var:acm_m_owned_scheme_secrecy_add } }
	else = { remove_global_variable = acm_s3_m_owned_scheme_secrecy_add }
	if = { limit = { NOT = { var:acm_m_enemy_hostile_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s3_m_enemy_hostile_scheme_success_chance_add value = var:acm_m_enemy_hostile_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s3_m_enemy_hostile_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_enemy_personal_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s3_m_enemy_personal_scheme_success_chance_add value = var:acm_m_enemy_personal_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s3_m_enemy_personal_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_hostile_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s3_m_hostile_scheme_phase_duration_add value = var:acm_m_hostile_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s3_m_hostile_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_personal_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s3_m_personal_scheme_phase_duration_add value = var:acm_m_personal_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s3_m_personal_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_enemy_hostile_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s3_m_enemy_hostile_scheme_phase_duration_add value = var:acm_m_enemy_hostile_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s3_m_enemy_hostile_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_max_hostile_schemes_add ?= 0 } } set_global_variable = { name = acm_s3_m_max_hostile_schemes_add value = var:acm_m_max_hostile_schemes_add } }
	else = { remove_global_variable = acm_s3_m_max_hostile_schemes_add }
	if = { limit = { NOT = { var:acm_m_max_personal_schemes_add ?= 0 } } set_global_variable = { name = acm_s3_m_max_personal_schemes_add value = var:acm_m_max_personal_schemes_add } }
	else = { remove_global_variable = acm_s3_m_max_personal_schemes_add }
	if = { limit = { NOT = { var:acm_m_seduce_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s3_m_seduce_scheme_phase_duration_add value = var:acm_m_seduce_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s3_m_seduce_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_courting_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s3_m_courting_scheme_phase_duration_add value = var:acm_m_courting_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s3_m_courting_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_befriend_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s3_m_befriend_scheme_phase_duration_add value = var:acm_m_befriend_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s3_m_befriend_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_learn_language_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s3_m_learn_language_scheme_phase_duration_add value = var:acm_m_learn_language_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s3_m_learn_language_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_knight_effectiveness_mult ?= 0 } } set_global_variable = { name = acm_s3_m_knight_effectiveness_mult value = var:acm_m_knight_effectiveness_mult } }
	else = { remove_global_variable = acm_s3_m_knight_effectiveness_mult }
	if = { limit = { NOT = { var:acm_m_army_damage_mult ?= 0 } } set_global_variable = { name = acm_s3_m_army_damage_mult value = var:acm_m_army_damage_mult } }
	else = { remove_global_variable = acm_s3_m_army_damage_mult }
	if = { limit = { NOT = { var:acm_m_army_toughness_mult ?= 0 } } set_global_variable = { name = acm_s3_m_army_toughness_mult value = var:acm_m_army_toughness_mult } }
	else = { remove_global_variable = acm_s3_m_army_toughness_mult }
	if = { limit = { NOT = { var:acm_m_army_pursuit_mult ?= 0 } } set_global_variable = { name = acm_s3_m_army_pursuit_mult value = var:acm_m_army_pursuit_mult } }
	else = { remove_global_variable = acm_s3_m_army_pursuit_mult }
	if = { limit = { NOT = { var:acm_m_army_screen_mult ?= 0 } } set_global_variable = { name = acm_s3_m_army_screen_mult value = var:acm_m_army_screen_mult } }
	else = { remove_global_variable = acm_s3_m_army_screen_mult }
	if = { limit = { NOT = { var:acm_m_army_maintenance_mult ?= 0 } } set_global_variable = { name = acm_s3_m_army_maintenance_mult value = var:acm_m_army_maintenance_mult } }
	else = { remove_global_variable = acm_s3_m_army_maintenance_mult }
	if = { limit = { NOT = { var:acm_m_men_at_arms_maintenance ?= 0 } } set_global_variable = { name = acm_s3_m_men_at_arms_maintenance value = var:acm_m_men_at_arms_maintenance } }
	else = { remove_global_variable = acm_s3_m_men_at_arms_maintenance }
	if = { limit = { NOT = { var:acm_m_mercenary_hire_cost_mult ?= 0 } } set_global_variable = { name = acm_s3_m_mercenary_hire_cost_mult value = var:acm_m_mercenary_hire_cost_mult } }
	else = { remove_global_variable = acm_s3_m_mercenary_hire_cost_mult }
	if = { limit = { NOT = { var:acm_m_enemy_hard_casualty_modifier ?= 0 } } set_global_variable = { name = acm_s3_m_enemy_hard_casualty_modifier value = var:acm_m_enemy_hard_casualty_modifier } }
	else = { remove_global_variable = acm_s3_m_enemy_hard_casualty_modifier }
	if = { limit = { NOT = { var:acm_m_hard_casualty_modifier ?= 0 } } set_global_variable = { name = acm_s3_m_hard_casualty_modifier value = var:acm_m_hard_casualty_modifier } }
	else = { remove_global_variable = acm_s3_m_hard_casualty_modifier }
	if = { limit = { NOT = { var:acm_m_retreat_losses ?= 0 } } set_global_variable = { name = acm_s3_m_retreat_losses value = var:acm_m_retreat_losses } }
	else = { remove_global_variable = acm_s3_m_retreat_losses }
	if = { limit = { NOT = { var:acm_m_supply_limit_mult ?= 0 } } set_global_variable = { name = acm_s3_m_supply_limit_mult value = var:acm_m_supply_limit_mult } }
	else = { remove_global_variable = acm_s3_m_supply_limit_mult }
	if = { limit = { NOT = { var:acm_m_movement_speed ?= 0 } } set_global_variable = { name = acm_s3_m_movement_speed value = var:acm_m_movement_speed } }
	else = { remove_global_variable = acm_s3_m_movement_speed }
	if = { limit = { NOT = { var:acm_m_naval_movement_speed_mult ?= 0 } } set_global_variable = { name = acm_s3_m_naval_movement_speed_mult value = var:acm_m_naval_movement_speed_mult } }
	else = { remove_global_variable = acm_s3_m_naval_movement_speed_mult }
	if = { limit = { NOT = { var:acm_m_embarkation_cost_mult ?= 0 } } set_global_variable = { name = acm_s3_m_embarkation_cost_mult value = var:acm_m_embarkation_cost_mult } }
	else = { remove_global_variable = acm_s3_m_embarkation_cost_mult }
	if = { limit = { NOT = { var:acm_m_raid_speed ?= 0 } } set_global_variable = { name = acm_s3_m_raid_speed value = var:acm_m_raid_speed } }
	else = { remove_global_variable = acm_s3_m_raid_speed }
	if = { limit = { NOT = { var:acm_m_controlled_province_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_controlled_province_advantage value = var:acm_m_controlled_province_advantage } }
	else = { remove_global_variable = acm_s3_m_controlled_province_advantage }
	if = { limit = { NOT = { var:acm_m_defender_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_defender_advantage value = var:acm_m_defender_advantage } }
	else = { remove_global_variable = acm_s3_m_defender_advantage }
	if = { limit = { NOT = { var:acm_m_tolerance_advantage_mod ?= 0 } } set_global_variable = { name = acm_s3_m_tolerance_advantage_mod value = var:acm_m_tolerance_advantage_mod } }
	else = { remove_global_variable = acm_s3_m_tolerance_advantage_mod }
	if = { limit = { NOT = { var:acm_m_led_by_owner_extra_advantage_add ?= 0 } } set_global_variable = { name = acm_s3_m_led_by_owner_extra_advantage_add value = var:acm_m_led_by_owner_extra_advantage_add } }
	else = { remove_global_variable = acm_s3_m_led_by_owner_extra_advantage_add }
	if = { limit = { NOT = { var:acm_m_pursue_efficiency ?= 0 } } set_global_variable = { name = acm_s3_m_pursue_efficiency value = var:acm_m_pursue_efficiency } }
	else = { remove_global_variable = acm_s3_m_pursue_efficiency }
	if = { limit = { NOT = { var:acm_m_levy_reinforcement_rate_same_faith ?= 0 } } set_global_variable = { name = acm_s3_m_levy_reinforcement_rate_same_faith value = var:acm_m_levy_reinforcement_rate_same_faith } }
	else = { remove_global_variable = acm_s3_m_levy_reinforcement_rate_same_faith }
	if = { limit = { NOT = { var:acm_m_heavy_infantry_damage_mult ?= 0 } } set_global_variable = { name = acm_s3_m_heavy_infantry_damage_mult value = var:acm_m_heavy_infantry_damage_mult } }
	else = { remove_global_variable = acm_s3_m_heavy_infantry_damage_mult }
	if = { limit = { NOT = { var:acm_m_heavy_infantry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s3_m_heavy_infantry_toughness_mult value = var:acm_m_heavy_infantry_toughness_mult } }
	else = { remove_global_variable = acm_s3_m_heavy_infantry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_heavy_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s3_m_heavy_cavalry_damage_mult value = var:acm_m_heavy_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s3_m_heavy_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_heavy_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s3_m_heavy_cavalry_toughness_mult value = var:acm_m_heavy_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s3_m_heavy_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_light_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s3_m_light_cavalry_damage_mult value = var:acm_m_light_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s3_m_light_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_light_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s3_m_light_cavalry_toughness_mult value = var:acm_m_light_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s3_m_light_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_archers_damage_mult ?= 0 } } set_global_variable = { name = acm_s3_m_archers_damage_mult value = var:acm_m_archers_damage_mult } }
	else = { remove_global_variable = acm_s3_m_archers_damage_mult }
	if = { limit = { NOT = { var:acm_m_archers_toughness_mult ?= 0 } } set_global_variable = { name = acm_s3_m_archers_toughness_mult value = var:acm_m_archers_toughness_mult } }
	else = { remove_global_variable = acm_s3_m_archers_toughness_mult }
	if = { limit = { NOT = { var:acm_m_pikemen_damage_mult ?= 0 } } set_global_variable = { name = acm_s3_m_pikemen_damage_mult value = var:acm_m_pikemen_damage_mult } }
	else = { remove_global_variable = acm_s3_m_pikemen_damage_mult }
	if = { limit = { NOT = { var:acm_m_pikemen_toughness_mult ?= 0 } } set_global_variable = { name = acm_s3_m_pikemen_toughness_mult value = var:acm_m_pikemen_toughness_mult } }
	else = { remove_global_variable = acm_s3_m_pikemen_toughness_mult }
	if = { limit = { NOT = { var:acm_m_skirmishers_damage_mult ?= 0 } } set_global_variable = { name = acm_s3_m_skirmishers_damage_mult value = var:acm_m_skirmishers_damage_mult } }
	else = { remove_global_variable = acm_s3_m_skirmishers_damage_mult }
	if = { limit = { NOT = { var:acm_m_skirmishers_toughness_mult ?= 0 } } set_global_variable = { name = acm_s3_m_skirmishers_toughness_mult value = var:acm_m_skirmishers_toughness_mult } }
	else = { remove_global_variable = acm_s3_m_skirmishers_toughness_mult }
	if = { limit = { NOT = { var:acm_m_archer_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s3_m_archer_cavalry_damage_mult value = var:acm_m_archer_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s3_m_archer_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_archer_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s3_m_archer_cavalry_toughness_mult value = var:acm_m_archer_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s3_m_archer_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_camel_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s3_m_camel_cavalry_damage_mult value = var:acm_m_camel_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s3_m_camel_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_elephant_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s3_m_elephant_cavalry_damage_mult value = var:acm_m_elephant_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s3_m_elephant_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_siege_weapon_siege_value_mult ?= 0 } } set_global_variable = { name = acm_s3_m_siege_weapon_siege_value_mult value = var:acm_m_siege_weapon_siege_value_mult } }
	else = { remove_global_variable = acm_s3_m_siege_weapon_siege_value_mult }
	if = { limit = { NOT = { var:acm_m_plains_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_plains_advantage value = var:acm_m_plains_advantage } }
	else = { remove_global_variable = acm_s3_m_plains_advantage }
	if = { limit = { NOT = { var:acm_m_farmlands_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_farmlands_advantage value = var:acm_m_farmlands_advantage } }
	else = { remove_global_variable = acm_s3_m_farmlands_advantage }
	if = { limit = { NOT = { var:acm_m_hills_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_hills_advantage value = var:acm_m_hills_advantage } }
	else = { remove_global_variable = acm_s3_m_hills_advantage }
	if = { limit = { NOT = { var:acm_m_mountains_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_mountains_advantage value = var:acm_m_mountains_advantage } }
	else = { remove_global_variable = acm_s3_m_mountains_advantage }
	if = { limit = { NOT = { var:acm_m_desert_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_desert_advantage value = var:acm_m_desert_advantage } }
	else = { remove_global_variable = acm_s3_m_desert_advantage }
	if = { limit = { NOT = { var:acm_m_desert_mountains_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_desert_mountains_advantage value = var:acm_m_desert_mountains_advantage } }
	else = { remove_global_variable = acm_s3_m_desert_mountains_advantage }
	if = { limit = { NOT = { var:acm_m_oasis_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_oasis_advantage value = var:acm_m_oasis_advantage } }
	else = { remove_global_variable = acm_s3_m_oasis_advantage }
	if = { limit = { NOT = { var:acm_m_jungle_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_jungle_advantage value = var:acm_m_jungle_advantage } }
	else = { remove_global_variable = acm_s3_m_jungle_advantage }
	if = { limit = { NOT = { var:acm_m_forest_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_forest_advantage value = var:acm_m_forest_advantage } }
	else = { remove_global_variable = acm_s3_m_forest_advantage }
	if = { limit = { NOT = { var:acm_m_taiga_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_taiga_advantage value = var:acm_m_taiga_advantage } }
	else = { remove_global_variable = acm_s3_m_taiga_advantage }
	if = { limit = { NOT = { var:acm_m_wetlands_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_wetlands_advantage value = var:acm_m_wetlands_advantage } }
	else = { remove_global_variable = acm_s3_m_wetlands_advantage }
	if = { limit = { NOT = { var:acm_m_steppe_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_steppe_advantage value = var:acm_m_steppe_advantage } }
	else = { remove_global_variable = acm_s3_m_steppe_advantage }
	if = { limit = { NOT = { var:acm_m_floodplains_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_floodplains_advantage value = var:acm_m_floodplains_advantage } }
	else = { remove_global_variable = acm_s3_m_floodplains_advantage }
	if = { limit = { NOT = { var:acm_m_drylands_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_drylands_advantage value = var:acm_m_drylands_advantage } }
	else = { remove_global_variable = acm_s3_m_drylands_advantage }
	if = { limit = { NOT = { var:acm_m_winter_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_winter_advantage value = var:acm_m_winter_advantage } }
	else = { remove_global_variable = acm_s3_m_winter_advantage }
	if = { limit = { NOT = { var:acm_m_coastal_advantage ?= 0 } } set_global_variable = { name = acm_s3_m_coastal_advantage value = var:acm_m_coastal_advantage } }
	else = { remove_global_variable = acm_s3_m_coastal_advantage }
	if = { limit = { NOT = { var:acm_m_character_travel_speed ?= 0 } } set_global_variable = { name = acm_s3_m_character_travel_speed value = var:acm_m_character_travel_speed } }
	else = { remove_global_variable = acm_s3_m_character_travel_speed }
	if = { limit = { NOT = { var:acm_m_character_travel_safety ?= 0 } } set_global_variable = { name = acm_s3_m_character_travel_safety value = var:acm_m_character_travel_safety } }
	else = { remove_global_variable = acm_s3_m_character_travel_safety }
	if = { limit = { NOT = { var:acm_m_character_travel_speed_mult ?= 0 } } set_global_variable = { name = acm_s3_m_character_travel_speed_mult value = var:acm_m_character_travel_speed_mult } }
	else = { remove_global_variable = acm_s3_m_character_travel_speed_mult }
	if = { limit = { NOT = { var:acm_m_character_travel_safety_mult ?= 0 } } set_global_variable = { name = acm_s3_m_character_travel_safety_mult value = var:acm_m_character_travel_safety_mult } }
	else = { remove_global_variable = acm_s3_m_character_travel_safety_mult }
	if = { limit = { NOT = { var:acm_m_winter_movement_speed ?= 0 } } set_global_variable = { name = acm_s3_m_winter_movement_speed value = var:acm_m_winter_movement_speed } }
	else = { remove_global_variable = acm_s3_m_winter_movement_speed }
}

acm_slot_load_3_effect = {
	if = { limit = { has_global_variable = acm_s3_type } set_variable = { name = acm_type value = global_var:acm_s3_type } }
	else = { remove_variable = acm_type }
	if = { limit = { has_global_variable = acm_s3_icon } set_variable = { name = acm_icon value = global_var:acm_s3_icon } }
	else = { remove_variable = acm_icon }
	if = { limit = { has_global_variable = acm_s3_asset } set_variable = { name = acm_asset value = global_var:acm_s3_asset } }
	else = { remove_variable = acm_asset }
	if = { limit = { has_global_variable = acm_s3_support } set_variable = { name = acm_support value = global_var:acm_s3_support } }
	else = { remove_variable = acm_support }
	if = { limit = { has_global_variable = acm_s3_rarity } set_variable = { name = acm_rarity value = global_var:acm_s3_rarity } }
	else = { remove_variable = acm_rarity }
	if = { limit = { has_global_variable = acm_s3_history } set_variable = { name = acm_history value = global_var:acm_s3_history } }
	else = { remove_variable = acm_history }
	if = { limit = { has_global_variable = acm_s3_name } set_variable = { name = acm_name value = global_var:acm_s3_name } }
	else = { remove_variable = acm_name }
	if = { limit = { has_global_variable = acm_s3_desc } set_variable = { name = acm_desc value = global_var:acm_s3_desc } }
	else = { remove_variable = acm_desc }
	if = { limit = { has_global_variable = acm_s3_benefit } set_variable = { name = acm_benefit value = global_var:acm_s3_benefit } }
	else = { remove_variable = acm_benefit }
	if = { limit = { has_global_variable = acm_s3_equip } set_variable = { name = acm_equip value = global_var:acm_s3_equip } }
	else = { remove_variable = acm_equip }
	if = { limit = { has_global_variable = acm_s3_relic } set_variable = { name = acm_relic value = global_var:acm_s3_relic } }
	else = { remove_variable = acm_relic }
	if = { limit = { has_global_variable = acm_s3_msg } set_variable = { name = acm_msg value = global_var:acm_s3_msg } }
	else = { remove_variable = acm_msg }
	if = { limit = { has_global_variable = acm_s3_vset } set_variable = { name = acm_vset value = global_var:acm_s3_vset } }
	else = { remove_variable = acm_vset }
	if = { limit = { has_global_variable = acm_s3_preset } set_variable = { name = acm_preset value = global_var:acm_s3_preset } }
	else = { remove_variable = acm_preset }
	if = { limit = { has_global_variable = acm_s3_quality } set_variable = { name = acm_quality value = global_var:acm_s3_quality } }
	else = { remove_variable = acm_quality }
	if = { limit = { has_global_variable = acm_s3_wealth } set_variable = { name = acm_wealth value = global_var:acm_s3_wealth } }
	else = { remove_variable = acm_wealth }
	if = { limit = { has_global_variable = acm_s3_durability } set_variable = { name = acm_durability value = global_var:acm_s3_durability } }
	else = { remove_variable = acm_durability }
	if = { limit = { has_global_variable = acm_s3_auto_look } set_variable = acm_auto_look }
	else = { remove_variable = acm_auto_look }
	if = { limit = { has_global_variable = acm_s3_unique } set_variable = acm_unique }
	else = { remove_variable = acm_unique }
	if = { limit = { has_global_variable = acm_s3_no_decay } set_variable = acm_no_decay }
	else = { remove_variable = acm_no_decay }
	if = { limit = { has_global_variable = acm_s3_no_reforge } set_variable = acm_no_reforge }
	else = { remove_variable = acm_no_reforge }
	if = { limit = { has_global_variable = acm_s3_no_repair } set_variable = acm_no_repair }
	else = { remove_variable = acm_no_repair }
	if = { limit = { has_global_variable = acm_s3_auto_equip } set_variable = acm_auto_equip }
	else = { remove_variable = acm_auto_equip }
	if = { limit = { has_global_variable = acm_s3_features } set_variable = acm_features }
	else = { remove_variable = acm_features }
	if = { limit = { has_global_variable = acm_s3_creator_is_owner } set_variable = acm_creator_is_owner }
	else = { remove_variable = acm_creator_is_owner }
	if = { limit = { has_global_variable = acm_s3_maker } set_variable = { name = acm_maker value = global_var:acm_s3_maker } }
	else = { remove_variable = acm_maker }
	if = { limit = { has_global_variable = acm_s3_history_actor } set_variable = { name = acm_history_actor value = global_var:acm_s3_history_actor } }
	else = { remove_variable = acm_history_actor }
	if = { limit = { has_global_variable = acm_s3_m_diplomacy } set_variable = { name = acm_m_diplomacy value = global_var:acm_s3_m_diplomacy } }
	else = { set_variable = { name = acm_m_diplomacy value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_martial } set_variable = { name = acm_m_martial value = global_var:acm_s3_m_martial } }
	else = { set_variable = { name = acm_m_martial value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_stewardship } set_variable = { name = acm_m_stewardship value = global_var:acm_s3_m_stewardship } }
	else = { set_variable = { name = acm_m_stewardship value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_intrigue } set_variable = { name = acm_m_intrigue value = global_var:acm_s3_m_intrigue } }
	else = { set_variable = { name = acm_m_intrigue value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_learning } set_variable = { name = acm_m_learning value = global_var:acm_s3_m_learning } }
	else = { set_variable = { name = acm_m_learning value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_prowess_no_portrait } set_variable = { name = acm_m_prowess_no_portrait value = global_var:acm_s3_m_prowess_no_portrait } }
	else = { set_variable = { name = acm_m_prowess_no_portrait value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_diplomacy_mult } set_variable = { name = acm_m_diplomacy_mult value = global_var:acm_s3_m_diplomacy_mult } }
	else = { set_variable = { name = acm_m_diplomacy_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_martial_mult } set_variable = { name = acm_m_martial_mult value = global_var:acm_s3_m_martial_mult } }
	else = { set_variable = { name = acm_m_martial_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_stewardship_mult } set_variable = { name = acm_m_stewardship_mult value = global_var:acm_s3_m_stewardship_mult } }
	else = { set_variable = { name = acm_m_stewardship_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_intrigue_mult } set_variable = { name = acm_m_intrigue_mult value = global_var:acm_s3_m_intrigue_mult } }
	else = { set_variable = { name = acm_m_intrigue_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_learning_mult } set_variable = { name = acm_m_learning_mult value = global_var:acm_s3_m_learning_mult } }
	else = { set_variable = { name = acm_m_learning_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_prowess_mult } set_variable = { name = acm_m_prowess_mult value = global_var:acm_s3_m_prowess_mult } }
	else = { set_variable = { name = acm_m_prowess_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_lifestyle_xp_gain_mult value = global_var:acm_s3_m_monthly_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_diplomacy_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_diplomacy_lifestyle_xp_gain_mult value = global_var:acm_s3_m_monthly_diplomacy_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_diplomacy_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_martial_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_martial_lifestyle_xp_gain_mult value = global_var:acm_s3_m_monthly_martial_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_martial_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_stewardship_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_stewardship_lifestyle_xp_gain_mult value = global_var:acm_s3_m_monthly_stewardship_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_stewardship_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_intrigue_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_intrigue_lifestyle_xp_gain_mult value = global_var:acm_s3_m_monthly_intrigue_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_intrigue_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_learning_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_learning_lifestyle_xp_gain_mult value = global_var:acm_s3_m_monthly_learning_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_learning_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_prestige } set_variable = { name = acm_m_monthly_prestige value = global_var:acm_s3_m_monthly_prestige } }
	else = { set_variable = { name = acm_m_monthly_prestige value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_piety } set_variable = { name = acm_m_monthly_piety value = global_var:acm_s3_m_monthly_piety } }
	else = { set_variable = { name = acm_m_monthly_piety value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_income } set_variable = { name = acm_m_monthly_income value = global_var:acm_s3_m_monthly_income } }
	else = { set_variable = { name = acm_m_monthly_income value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_dynasty_prestige } set_variable = { name = acm_m_monthly_dynasty_prestige value = global_var:acm_s3_m_monthly_dynasty_prestige } }
	else = { set_variable = { name = acm_m_monthly_dynasty_prestige value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_influence } set_variable = { name = acm_m_monthly_influence value = global_var:acm_s3_m_monthly_influence } }
	else = { set_variable = { name = acm_m_monthly_influence value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_prestige_gain_mult } set_variable = { name = acm_m_monthly_prestige_gain_mult value = global_var:acm_s3_m_monthly_prestige_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_prestige_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_piety_gain_mult } set_variable = { name = acm_m_monthly_piety_gain_mult value = global_var:acm_s3_m_monthly_piety_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_piety_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_income_mult } set_variable = { name = acm_m_monthly_income_mult value = global_var:acm_s3_m_monthly_income_mult } }
	else = { set_variable = { name = acm_m_monthly_income_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_dynasty_prestige_mult } set_variable = { name = acm_m_monthly_dynasty_prestige_mult value = global_var:acm_s3_m_monthly_dynasty_prestige_mult } }
	else = { set_variable = { name = acm_m_monthly_dynasty_prestige_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_influence_mult } set_variable = { name = acm_m_monthly_influence_mult value = global_var:acm_s3_m_monthly_influence_mult } }
	else = { set_variable = { name = acm_m_monthly_influence_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_merit_mult } set_variable = { name = acm_m_monthly_merit_mult value = global_var:acm_s3_m_monthly_merit_mult } }
	else = { set_variable = { name = acm_m_monthly_merit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_domain_tax_mult } set_variable = { name = acm_m_domain_tax_mult value = global_var:acm_s3_m_domain_tax_mult } }
	else = { set_variable = { name = acm_m_domain_tax_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_vassal_tax_contribution_mult } set_variable = { name = acm_m_vassal_tax_contribution_mult value = global_var:acm_s3_m_vassal_tax_contribution_mult } }
	else = { set_variable = { name = acm_m_vassal_tax_contribution_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_war_income_add } set_variable = { name = acm_m_monthly_war_income_add value = global_var:acm_s3_m_monthly_war_income_add } }
	else = { set_variable = { name = acm_m_monthly_war_income_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_herd_gain_mult } set_variable = { name = acm_m_herd_gain_mult value = global_var:acm_s3_m_herd_gain_mult } }
	else = { set_variable = { name = acm_m_herd_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_court_grandeur_baseline_add } set_variable = { name = acm_m_court_grandeur_baseline_add value = global_var:acm_s3_m_court_grandeur_baseline_add } }
	else = { set_variable = { name = acm_m_court_grandeur_baseline_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_domain_limit } set_variable = { name = acm_m_domain_limit value = global_var:acm_s3_m_domain_limit } }
	else = { set_variable = { name = acm_m_domain_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_vassal_limit } set_variable = { name = acm_m_vassal_limit value = global_var:acm_s3_m_vassal_limit } }
	else = { set_variable = { name = acm_m_vassal_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_knight_limit } set_variable = { name = acm_m_knight_limit value = global_var:acm_s3_m_knight_limit } }
	else = { set_variable = { name = acm_m_knight_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_men_at_arms_limit } set_variable = { name = acm_m_men_at_arms_limit value = global_var:acm_s3_m_men_at_arms_limit } }
	else = { set_variable = { name = acm_m_men_at_arms_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_men_at_arms_cap } set_variable = { name = acm_m_men_at_arms_cap value = global_var:acm_s3_m_men_at_arms_cap } }
	else = { set_variable = { name = acm_m_men_at_arms_cap value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_legitimacy_gain_mult } set_variable = { name = acm_m_legitimacy_gain_mult value = global_var:acm_s3_m_legitimacy_gain_mult } }
	else = { set_variable = { name = acm_m_legitimacy_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_legitimacy_loss_mult } set_variable = { name = acm_m_legitimacy_loss_mult value = global_var:acm_s3_m_legitimacy_loss_mult } }
	else = { set_variable = { name = acm_m_legitimacy_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_short_reign_duration_mult } set_variable = { name = acm_m_short_reign_duration_mult value = global_var:acm_s3_m_short_reign_duration_mult } }
	else = { set_variable = { name = acm_m_short_reign_duration_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_dread_baseline_add } set_variable = { name = acm_m_dread_baseline_add value = global_var:acm_s3_m_dread_baseline_add } }
	else = { set_variable = { name = acm_m_dread_baseline_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_dread_gain_mult } set_variable = { name = acm_m_dread_gain_mult value = global_var:acm_s3_m_dread_gain_mult } }
	else = { set_variable = { name = acm_m_dread_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_dread_decay_mult } set_variable = { name = acm_m_dread_decay_mult value = global_var:acm_s3_m_dread_decay_mult } }
	else = { set_variable = { name = acm_m_dread_decay_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_tyranny_gain_mult } set_variable = { name = acm_m_tyranny_gain_mult value = global_var:acm_s3_m_tyranny_gain_mult } }
	else = { set_variable = { name = acm_m_tyranny_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_tyranny_loss_mult } set_variable = { name = acm_m_tyranny_loss_mult value = global_var:acm_s3_m_tyranny_loss_mult } }
	else = { set_variable = { name = acm_m_tyranny_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_title_creation_cost_mult } set_variable = { name = acm_m_title_creation_cost_mult value = global_var:acm_s3_m_title_creation_cost_mult } }
	else = { set_variable = { name = acm_m_title_creation_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_build_gold_cost } set_variable = { name = acm_m_build_gold_cost value = global_var:acm_s3_m_build_gold_cost } }
	else = { set_variable = { name = acm_m_build_gold_cost value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_build_speed } set_variable = { name = acm_m_build_speed value = global_var:acm_s3_m_build_speed } }
	else = { set_variable = { name = acm_m_build_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_development_growth } set_variable = { name = acm_m_development_growth value = global_var:acm_s3_m_development_growth } }
	else = { set_variable = { name = acm_m_development_growth value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_development_growth_factor } set_variable = { name = acm_m_development_growth_factor value = global_var:acm_s3_m_development_growth_factor } }
	else = { set_variable = { name = acm_m_development_growth_factor value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_monthly_county_control_growth_add } set_variable = { name = acm_m_monthly_county_control_growth_add value = global_var:acm_s3_m_monthly_county_control_growth_add } }
	else = { set_variable = { name = acm_m_monthly_county_control_growth_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_levy_size } set_variable = { name = acm_m_levy_size value = global_var:acm_s3_m_levy_size } }
	else = { set_variable = { name = acm_m_levy_size value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_levy_reinforcement_rate } set_variable = { name = acm_m_levy_reinforcement_rate value = global_var:acm_s3_m_levy_reinforcement_rate } }
	else = { set_variable = { name = acm_m_levy_reinforcement_rate value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_garrison_size } set_variable = { name = acm_m_garrison_size value = global_var:acm_s3_m_garrison_size } }
	else = { set_variable = { name = acm_m_garrison_size value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_fort_level } set_variable = { name = acm_m_fort_level value = global_var:acm_s3_m_fort_level } }
	else = { set_variable = { name = acm_m_fort_level value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_cultural_head_fascination_mult } set_variable = { name = acm_m_cultural_head_fascination_mult value = global_var:acm_s3_m_cultural_head_fascination_mult } }
	else = { set_variable = { name = acm_m_cultural_head_fascination_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_owned_legend_spread_mult } set_variable = { name = acm_m_owned_legend_spread_mult value = global_var:acm_s3_m_owned_legend_spread_mult } }
	else = { set_variable = { name = acm_m_owned_legend_spread_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_general_opinion } set_variable = { name = acm_m_general_opinion value = global_var:acm_s3_m_general_opinion } }
	else = { set_variable = { name = acm_m_general_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_vassal_opinion } set_variable = { name = acm_m_vassal_opinion value = global_var:acm_s3_m_vassal_opinion } }
	else = { set_variable = { name = acm_m_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_direct_vassal_opinion } set_variable = { name = acm_m_direct_vassal_opinion value = global_var:acm_s3_m_direct_vassal_opinion } }
	else = { set_variable = { name = acm_m_direct_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_powerful_vassal_opinion } set_variable = { name = acm_m_powerful_vassal_opinion value = global_var:acm_s3_m_powerful_vassal_opinion } }
	else = { set_variable = { name = acm_m_powerful_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_clergy_opinion } set_variable = { name = acm_m_clergy_opinion value = global_var:acm_s3_m_clergy_opinion } }
	else = { set_variable = { name = acm_m_clergy_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_courtly_opinion } set_variable = { name = acm_m_courtly_opinion value = global_var:acm_s3_m_courtly_opinion } }
	else = { set_variable = { name = acm_m_courtly_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_zealot_opinion } set_variable = { name = acm_m_zealot_opinion value = global_var:acm_s3_m_zealot_opinion } }
	else = { set_variable = { name = acm_m_zealot_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_glory_hound_opinion } set_variable = { name = acm_m_glory_hound_opinion value = global_var:acm_s3_m_glory_hound_opinion } }
	else = { set_variable = { name = acm_m_glory_hound_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_parochial_opinion } set_variable = { name = acm_m_parochial_opinion value = global_var:acm_s3_m_parochial_opinion } }
	else = { set_variable = { name = acm_m_parochial_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_belligerent_opinion } set_variable = { name = acm_m_belligerent_opinion value = global_var:acm_s3_m_belligerent_opinion } }
	else = { set_variable = { name = acm_m_belligerent_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_dynasty_opinion } set_variable = { name = acm_m_dynasty_opinion value = global_var:acm_s3_m_dynasty_opinion } }
	else = { set_variable = { name = acm_m_dynasty_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_spouse_opinion } set_variable = { name = acm_m_spouse_opinion value = global_var:acm_s3_m_spouse_opinion } }
	else = { set_variable = { name = acm_m_spouse_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_child_opinion } set_variable = { name = acm_m_child_opinion value = global_var:acm_s3_m_child_opinion } }
	else = { set_variable = { name = acm_m_child_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_attraction_opinion } set_variable = { name = acm_m_attraction_opinion value = global_var:acm_s3_m_attraction_opinion } }
	else = { set_variable = { name = acm_m_attraction_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_courtier_and_guest_opinion } set_variable = { name = acm_m_courtier_and_guest_opinion value = global_var:acm_s3_m_courtier_and_guest_opinion } }
	else = { set_variable = { name = acm_m_courtier_and_guest_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_same_faith_opinion } set_variable = { name = acm_m_same_faith_opinion value = global_var:acm_s3_m_same_faith_opinion } }
	else = { set_variable = { name = acm_m_same_faith_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_different_faith_opinion } set_variable = { name = acm_m_different_faith_opinion value = global_var:acm_s3_m_different_faith_opinion } }
	else = { set_variable = { name = acm_m_different_faith_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_same_culture_opinion } set_variable = { name = acm_m_same_culture_opinion value = global_var:acm_s3_m_same_culture_opinion } }
	else = { set_variable = { name = acm_m_same_culture_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_different_culture_opinion } set_variable = { name = acm_m_different_culture_opinion value = global_var:acm_s3_m_different_culture_opinion } }
	else = { set_variable = { name = acm_m_different_culture_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_independent_ruler_opinion } set_variable = { name = acm_m_independent_ruler_opinion value = global_var:acm_s3_m_independent_ruler_opinion } }
	else = { set_variable = { name = acm_m_independent_ruler_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_religious_head_opinion } set_variable = { name = acm_m_religious_head_opinion value = global_var:acm_s3_m_religious_head_opinion } }
	else = { set_variable = { name = acm_m_religious_head_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_county_opinion_add } set_variable = { name = acm_m_county_opinion_add value = global_var:acm_s3_m_county_opinion_add } }
	else = { set_variable = { name = acm_m_county_opinion_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_prisoner_opinion } set_variable = { name = acm_m_prisoner_opinion value = global_var:acm_s3_m_prisoner_opinion } }
	else = { set_variable = { name = acm_m_prisoner_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_health } set_variable = { name = acm_m_health value = global_var:acm_s3_m_health } }
	else = { set_variable = { name = acm_m_health value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_negate_health_penalty_add } set_variable = { name = acm_m_negate_health_penalty_add value = global_var:acm_s3_m_negate_health_penalty_add } }
	else = { set_variable = { name = acm_m_negate_health_penalty_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_fertility } set_variable = { name = acm_m_fertility value = global_var:acm_s3_m_fertility } }
	else = { set_variable = { name = acm_m_fertility value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_life_expectancy } set_variable = { name = acm_m_life_expectancy value = global_var:acm_s3_m_life_expectancy } }
	else = { set_variable = { name = acm_m_life_expectancy value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_years_of_fertility } set_variable = { name = acm_m_years_of_fertility value = global_var:acm_s3_m_years_of_fertility } }
	else = { set_variable = { name = acm_m_years_of_fertility value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_stress_gain_mult } set_variable = { name = acm_m_stress_gain_mult value = global_var:acm_s3_m_stress_gain_mult } }
	else = { set_variable = { name = acm_m_stress_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_stress_loss_mult } set_variable = { name = acm_m_stress_loss_mult value = global_var:acm_s3_m_stress_loss_mult } }
	else = { set_variable = { name = acm_m_stress_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_epidemic_resistance } set_variable = { name = acm_m_epidemic_resistance value = global_var:acm_s3_m_epidemic_resistance } }
	else = { set_variable = { name = acm_m_epidemic_resistance value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_negate_prowess_penalty_add } set_variable = { name = acm_m_negate_prowess_penalty_add value = global_var:acm_s3_m_negate_prowess_penalty_add } }
	else = { set_variable = { name = acm_m_negate_prowess_penalty_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_positive_inactive_inheritance_chance } set_variable = { name = acm_m_positive_inactive_inheritance_chance value = global_var:acm_s3_m_positive_inactive_inheritance_chance } }
	else = { set_variable = { name = acm_m_positive_inactive_inheritance_chance value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_owned_hostile_scheme_success_chance_add } set_variable = { name = acm_m_owned_hostile_scheme_success_chance_add value = global_var:acm_s3_m_owned_hostile_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_owned_hostile_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_owned_personal_scheme_success_chance_add } set_variable = { name = acm_m_owned_personal_scheme_success_chance_add value = global_var:acm_s3_m_owned_personal_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_owned_personal_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_owned_scheme_secrecy_add } set_variable = { name = acm_m_owned_scheme_secrecy_add value = global_var:acm_s3_m_owned_scheme_secrecy_add } }
	else = { set_variable = { name = acm_m_owned_scheme_secrecy_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_enemy_hostile_scheme_success_chance_add } set_variable = { name = acm_m_enemy_hostile_scheme_success_chance_add value = global_var:acm_s3_m_enemy_hostile_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_enemy_hostile_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_enemy_personal_scheme_success_chance_add } set_variable = { name = acm_m_enemy_personal_scheme_success_chance_add value = global_var:acm_s3_m_enemy_personal_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_enemy_personal_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_hostile_scheme_phase_duration_add } set_variable = { name = acm_m_hostile_scheme_phase_duration_add value = global_var:acm_s3_m_hostile_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_hostile_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_personal_scheme_phase_duration_add } set_variable = { name = acm_m_personal_scheme_phase_duration_add value = global_var:acm_s3_m_personal_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_personal_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_enemy_hostile_scheme_phase_duration_add } set_variable = { name = acm_m_enemy_hostile_scheme_phase_duration_add value = global_var:acm_s3_m_enemy_hostile_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_enemy_hostile_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_max_hostile_schemes_add } set_variable = { name = acm_m_max_hostile_schemes_add value = global_var:acm_s3_m_max_hostile_schemes_add } }
	else = { set_variable = { name = acm_m_max_hostile_schemes_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_max_personal_schemes_add } set_variable = { name = acm_m_max_personal_schemes_add value = global_var:acm_s3_m_max_personal_schemes_add } }
	else = { set_variable = { name = acm_m_max_personal_schemes_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_seduce_scheme_phase_duration_add } set_variable = { name = acm_m_seduce_scheme_phase_duration_add value = global_var:acm_s3_m_seduce_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_seduce_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_courting_scheme_phase_duration_add } set_variable = { name = acm_m_courting_scheme_phase_duration_add value = global_var:acm_s3_m_courting_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_courting_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_befriend_scheme_phase_duration_add } set_variable = { name = acm_m_befriend_scheme_phase_duration_add value = global_var:acm_s3_m_befriend_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_befriend_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_learn_language_scheme_phase_duration_add } set_variable = { name = acm_m_learn_language_scheme_phase_duration_add value = global_var:acm_s3_m_learn_language_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_learn_language_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_knight_effectiveness_mult } set_variable = { name = acm_m_knight_effectiveness_mult value = global_var:acm_s3_m_knight_effectiveness_mult } }
	else = { set_variable = { name = acm_m_knight_effectiveness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_army_damage_mult } set_variable = { name = acm_m_army_damage_mult value = global_var:acm_s3_m_army_damage_mult } }
	else = { set_variable = { name = acm_m_army_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_army_toughness_mult } set_variable = { name = acm_m_army_toughness_mult value = global_var:acm_s3_m_army_toughness_mult } }
	else = { set_variable = { name = acm_m_army_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_army_pursuit_mult } set_variable = { name = acm_m_army_pursuit_mult value = global_var:acm_s3_m_army_pursuit_mult } }
	else = { set_variable = { name = acm_m_army_pursuit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_army_screen_mult } set_variable = { name = acm_m_army_screen_mult value = global_var:acm_s3_m_army_screen_mult } }
	else = { set_variable = { name = acm_m_army_screen_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_army_maintenance_mult } set_variable = { name = acm_m_army_maintenance_mult value = global_var:acm_s3_m_army_maintenance_mult } }
	else = { set_variable = { name = acm_m_army_maintenance_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_men_at_arms_maintenance } set_variable = { name = acm_m_men_at_arms_maintenance value = global_var:acm_s3_m_men_at_arms_maintenance } }
	else = { set_variable = { name = acm_m_men_at_arms_maintenance value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_mercenary_hire_cost_mult } set_variable = { name = acm_m_mercenary_hire_cost_mult value = global_var:acm_s3_m_mercenary_hire_cost_mult } }
	else = { set_variable = { name = acm_m_mercenary_hire_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_enemy_hard_casualty_modifier } set_variable = { name = acm_m_enemy_hard_casualty_modifier value = global_var:acm_s3_m_enemy_hard_casualty_modifier } }
	else = { set_variable = { name = acm_m_enemy_hard_casualty_modifier value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_hard_casualty_modifier } set_variable = { name = acm_m_hard_casualty_modifier value = global_var:acm_s3_m_hard_casualty_modifier } }
	else = { set_variable = { name = acm_m_hard_casualty_modifier value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_retreat_losses } set_variable = { name = acm_m_retreat_losses value = global_var:acm_s3_m_retreat_losses } }
	else = { set_variable = { name = acm_m_retreat_losses value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_supply_limit_mult } set_variable = { name = acm_m_supply_limit_mult value = global_var:acm_s3_m_supply_limit_mult } }
	else = { set_variable = { name = acm_m_supply_limit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_movement_speed } set_variable = { name = acm_m_movement_speed value = global_var:acm_s3_m_movement_speed } }
	else = { set_variable = { name = acm_m_movement_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_naval_movement_speed_mult } set_variable = { name = acm_m_naval_movement_speed_mult value = global_var:acm_s3_m_naval_movement_speed_mult } }
	else = { set_variable = { name = acm_m_naval_movement_speed_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_embarkation_cost_mult } set_variable = { name = acm_m_embarkation_cost_mult value = global_var:acm_s3_m_embarkation_cost_mult } }
	else = { set_variable = { name = acm_m_embarkation_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_raid_speed } set_variable = { name = acm_m_raid_speed value = global_var:acm_s3_m_raid_speed } }
	else = { set_variable = { name = acm_m_raid_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_controlled_province_advantage } set_variable = { name = acm_m_controlled_province_advantage value = global_var:acm_s3_m_controlled_province_advantage } }
	else = { set_variable = { name = acm_m_controlled_province_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_defender_advantage } set_variable = { name = acm_m_defender_advantage value = global_var:acm_s3_m_defender_advantage } }
	else = { set_variable = { name = acm_m_defender_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_tolerance_advantage_mod } set_variable = { name = acm_m_tolerance_advantage_mod value = global_var:acm_s3_m_tolerance_advantage_mod } }
	else = { set_variable = { name = acm_m_tolerance_advantage_mod value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_led_by_owner_extra_advantage_add } set_variable = { name = acm_m_led_by_owner_extra_advantage_add value = global_var:acm_s3_m_led_by_owner_extra_advantage_add } }
	else = { set_variable = { name = acm_m_led_by_owner_extra_advantage_add value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_pursue_efficiency } set_variable = { name = acm_m_pursue_efficiency value = global_var:acm_s3_m_pursue_efficiency } }
	else = { set_variable = { name = acm_m_pursue_efficiency value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_levy_reinforcement_rate_same_faith } set_variable = { name = acm_m_levy_reinforcement_rate_same_faith value = global_var:acm_s3_m_levy_reinforcement_rate_same_faith } }
	else = { set_variable = { name = acm_m_levy_reinforcement_rate_same_faith value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_heavy_infantry_damage_mult } set_variable = { name = acm_m_heavy_infantry_damage_mult value = global_var:acm_s3_m_heavy_infantry_damage_mult } }
	else = { set_variable = { name = acm_m_heavy_infantry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_heavy_infantry_toughness_mult } set_variable = { name = acm_m_heavy_infantry_toughness_mult value = global_var:acm_s3_m_heavy_infantry_toughness_mult } }
	else = { set_variable = { name = acm_m_heavy_infantry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_heavy_cavalry_damage_mult } set_variable = { name = acm_m_heavy_cavalry_damage_mult value = global_var:acm_s3_m_heavy_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_heavy_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_heavy_cavalry_toughness_mult } set_variable = { name = acm_m_heavy_cavalry_toughness_mult value = global_var:acm_s3_m_heavy_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_heavy_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_light_cavalry_damage_mult } set_variable = { name = acm_m_light_cavalry_damage_mult value = global_var:acm_s3_m_light_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_light_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_light_cavalry_toughness_mult } set_variable = { name = acm_m_light_cavalry_toughness_mult value = global_var:acm_s3_m_light_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_light_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_archers_damage_mult } set_variable = { name = acm_m_archers_damage_mult value = global_var:acm_s3_m_archers_damage_mult } }
	else = { set_variable = { name = acm_m_archers_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_archers_toughness_mult } set_variable = { name = acm_m_archers_toughness_mult value = global_var:acm_s3_m_archers_toughness_mult } }
	else = { set_variable = { name = acm_m_archers_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_pikemen_damage_mult } set_variable = { name = acm_m_pikemen_damage_mult value = global_var:acm_s3_m_pikemen_damage_mult } }
	else = { set_variable = { name = acm_m_pikemen_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_pikemen_toughness_mult } set_variable = { name = acm_m_pikemen_toughness_mult value = global_var:acm_s3_m_pikemen_toughness_mult } }
	else = { set_variable = { name = acm_m_pikemen_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_skirmishers_damage_mult } set_variable = { name = acm_m_skirmishers_damage_mult value = global_var:acm_s3_m_skirmishers_damage_mult } }
	else = { set_variable = { name = acm_m_skirmishers_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_skirmishers_toughness_mult } set_variable = { name = acm_m_skirmishers_toughness_mult value = global_var:acm_s3_m_skirmishers_toughness_mult } }
	else = { set_variable = { name = acm_m_skirmishers_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_archer_cavalry_damage_mult } set_variable = { name = acm_m_archer_cavalry_damage_mult value = global_var:acm_s3_m_archer_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_archer_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_archer_cavalry_toughness_mult } set_variable = { name = acm_m_archer_cavalry_toughness_mult value = global_var:acm_s3_m_archer_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_archer_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_camel_cavalry_damage_mult } set_variable = { name = acm_m_camel_cavalry_damage_mult value = global_var:acm_s3_m_camel_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_camel_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_elephant_cavalry_damage_mult } set_variable = { name = acm_m_elephant_cavalry_damage_mult value = global_var:acm_s3_m_elephant_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_elephant_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_siege_weapon_siege_value_mult } set_variable = { name = acm_m_siege_weapon_siege_value_mult value = global_var:acm_s3_m_siege_weapon_siege_value_mult } }
	else = { set_variable = { name = acm_m_siege_weapon_siege_value_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_plains_advantage } set_variable = { name = acm_m_plains_advantage value = global_var:acm_s3_m_plains_advantage } }
	else = { set_variable = { name = acm_m_plains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_farmlands_advantage } set_variable = { name = acm_m_farmlands_advantage value = global_var:acm_s3_m_farmlands_advantage } }
	else = { set_variable = { name = acm_m_farmlands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_hills_advantage } set_variable = { name = acm_m_hills_advantage value = global_var:acm_s3_m_hills_advantage } }
	else = { set_variable = { name = acm_m_hills_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_mountains_advantage } set_variable = { name = acm_m_mountains_advantage value = global_var:acm_s3_m_mountains_advantage } }
	else = { set_variable = { name = acm_m_mountains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_desert_advantage } set_variable = { name = acm_m_desert_advantage value = global_var:acm_s3_m_desert_advantage } }
	else = { set_variable = { name = acm_m_desert_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_desert_mountains_advantage } set_variable = { name = acm_m_desert_mountains_advantage value = global_var:acm_s3_m_desert_mountains_advantage } }
	else = { set_variable = { name = acm_m_desert_mountains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_oasis_advantage } set_variable = { name = acm_m_oasis_advantage value = global_var:acm_s3_m_oasis_advantage } }
	else = { set_variable = { name = acm_m_oasis_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_jungle_advantage } set_variable = { name = acm_m_jungle_advantage value = global_var:acm_s3_m_jungle_advantage } }
	else = { set_variable = { name = acm_m_jungle_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_forest_advantage } set_variable = { name = acm_m_forest_advantage value = global_var:acm_s3_m_forest_advantage } }
	else = { set_variable = { name = acm_m_forest_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_taiga_advantage } set_variable = { name = acm_m_taiga_advantage value = global_var:acm_s3_m_taiga_advantage } }
	else = { set_variable = { name = acm_m_taiga_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_wetlands_advantage } set_variable = { name = acm_m_wetlands_advantage value = global_var:acm_s3_m_wetlands_advantage } }
	else = { set_variable = { name = acm_m_wetlands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_steppe_advantage } set_variable = { name = acm_m_steppe_advantage value = global_var:acm_s3_m_steppe_advantage } }
	else = { set_variable = { name = acm_m_steppe_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_floodplains_advantage } set_variable = { name = acm_m_floodplains_advantage value = global_var:acm_s3_m_floodplains_advantage } }
	else = { set_variable = { name = acm_m_floodplains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_drylands_advantage } set_variable = { name = acm_m_drylands_advantage value = global_var:acm_s3_m_drylands_advantage } }
	else = { set_variable = { name = acm_m_drylands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_winter_advantage } set_variable = { name = acm_m_winter_advantage value = global_var:acm_s3_m_winter_advantage } }
	else = { set_variable = { name = acm_m_winter_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_coastal_advantage } set_variable = { name = acm_m_coastal_advantage value = global_var:acm_s3_m_coastal_advantage } }
	else = { set_variable = { name = acm_m_coastal_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_character_travel_speed } set_variable = { name = acm_m_character_travel_speed value = global_var:acm_s3_m_character_travel_speed } }
	else = { set_variable = { name = acm_m_character_travel_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_character_travel_safety } set_variable = { name = acm_m_character_travel_safety value = global_var:acm_s3_m_character_travel_safety } }
	else = { set_variable = { name = acm_m_character_travel_safety value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_character_travel_speed_mult } set_variable = { name = acm_m_character_travel_speed_mult value = global_var:acm_s3_m_character_travel_speed_mult } }
	else = { set_variable = { name = acm_m_character_travel_speed_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_character_travel_safety_mult } set_variable = { name = acm_m_character_travel_safety_mult value = global_var:acm_s3_m_character_travel_safety_mult } }
	else = { set_variable = { name = acm_m_character_travel_safety_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s3_m_winter_movement_speed } set_variable = { name = acm_m_winter_movement_speed value = global_var:acm_s3_m_winter_movement_speed } }
	else = { set_variable = { name = acm_m_winter_movement_speed value = 0 } }
	acm_init_settings_effect = yes
}

acm_slot_clear_3_effect = {
	remove_global_variable = acm_s3_saved
	remove_global_variable = acm_s3_type
	remove_global_variable = acm_s3_icon
	remove_global_variable = acm_s3_asset
	remove_global_variable = acm_s3_support
	remove_global_variable = acm_s3_rarity
	remove_global_variable = acm_s3_history
	remove_global_variable = acm_s3_name
	remove_global_variable = acm_s3_desc
	remove_global_variable = acm_s3_benefit
	remove_global_variable = acm_s3_equip
	remove_global_variable = acm_s3_relic
	remove_global_variable = acm_s3_msg
	remove_global_variable = acm_s3_vset
	remove_global_variable = acm_s3_preset
	remove_global_variable = acm_s3_quality
	remove_global_variable = acm_s3_wealth
	remove_global_variable = acm_s3_durability
	remove_global_variable = acm_s3_auto_look
	remove_global_variable = acm_s3_unique
	remove_global_variable = acm_s3_no_decay
	remove_global_variable = acm_s3_no_reforge
	remove_global_variable = acm_s3_no_repair
	remove_global_variable = acm_s3_auto_equip
	remove_global_variable = acm_s3_features
	remove_global_variable = acm_s3_creator_is_owner
	remove_global_variable = acm_s3_maker
	remove_global_variable = acm_s3_history_actor
	remove_global_variable = acm_s3_m_diplomacy
	remove_global_variable = acm_s3_m_martial
	remove_global_variable = acm_s3_m_stewardship
	remove_global_variable = acm_s3_m_intrigue
	remove_global_variable = acm_s3_m_learning
	remove_global_variable = acm_s3_m_prowess_no_portrait
	remove_global_variable = acm_s3_m_diplomacy_mult
	remove_global_variable = acm_s3_m_martial_mult
	remove_global_variable = acm_s3_m_stewardship_mult
	remove_global_variable = acm_s3_m_intrigue_mult
	remove_global_variable = acm_s3_m_learning_mult
	remove_global_variable = acm_s3_m_prowess_mult
	remove_global_variable = acm_s3_m_monthly_lifestyle_xp_gain_mult
	remove_global_variable = acm_s3_m_monthly_diplomacy_lifestyle_xp_gain_mult
	remove_global_variable = acm_s3_m_monthly_martial_lifestyle_xp_gain_mult
	remove_global_variable = acm_s3_m_monthly_stewardship_lifestyle_xp_gain_mult
	remove_global_variable = acm_s3_m_monthly_intrigue_lifestyle_xp_gain_mult
	remove_global_variable = acm_s3_m_monthly_learning_lifestyle_xp_gain_mult
	remove_global_variable = acm_s3_m_monthly_prestige
	remove_global_variable = acm_s3_m_monthly_piety
	remove_global_variable = acm_s3_m_monthly_income
	remove_global_variable = acm_s3_m_monthly_dynasty_prestige
	remove_global_variable = acm_s3_m_monthly_influence
	remove_global_variable = acm_s3_m_monthly_prestige_gain_mult
	remove_global_variable = acm_s3_m_monthly_piety_gain_mult
	remove_global_variable = acm_s3_m_monthly_income_mult
	remove_global_variable = acm_s3_m_monthly_dynasty_prestige_mult
	remove_global_variable = acm_s3_m_monthly_influence_mult
	remove_global_variable = acm_s3_m_monthly_merit_mult
	remove_global_variable = acm_s3_m_domain_tax_mult
	remove_global_variable = acm_s3_m_vassal_tax_contribution_mult
	remove_global_variable = acm_s3_m_monthly_war_income_add
	remove_global_variable = acm_s3_m_herd_gain_mult
	remove_global_variable = acm_s3_m_court_grandeur_baseline_add
	remove_global_variable = acm_s3_m_domain_limit
	remove_global_variable = acm_s3_m_vassal_limit
	remove_global_variable = acm_s3_m_knight_limit
	remove_global_variable = acm_s3_m_men_at_arms_limit
	remove_global_variable = acm_s3_m_men_at_arms_cap
	remove_global_variable = acm_s3_m_legitimacy_gain_mult
	remove_global_variable = acm_s3_m_legitimacy_loss_mult
	remove_global_variable = acm_s3_m_short_reign_duration_mult
	remove_global_variable = acm_s3_m_dread_baseline_add
	remove_global_variable = acm_s3_m_dread_gain_mult
	remove_global_variable = acm_s3_m_dread_decay_mult
	remove_global_variable = acm_s3_m_tyranny_gain_mult
	remove_global_variable = acm_s3_m_tyranny_loss_mult
	remove_global_variable = acm_s3_m_title_creation_cost_mult
	remove_global_variable = acm_s3_m_build_gold_cost
	remove_global_variable = acm_s3_m_build_speed
	remove_global_variable = acm_s3_m_development_growth
	remove_global_variable = acm_s3_m_development_growth_factor
	remove_global_variable = acm_s3_m_monthly_county_control_growth_add
	remove_global_variable = acm_s3_m_levy_size
	remove_global_variable = acm_s3_m_levy_reinforcement_rate
	remove_global_variable = acm_s3_m_garrison_size
	remove_global_variable = acm_s3_m_fort_level
	remove_global_variable = acm_s3_m_cultural_head_fascination_mult
	remove_global_variable = acm_s3_m_owned_legend_spread_mult
	remove_global_variable = acm_s3_m_general_opinion
	remove_global_variable = acm_s3_m_vassal_opinion
	remove_global_variable = acm_s3_m_direct_vassal_opinion
	remove_global_variable = acm_s3_m_powerful_vassal_opinion
	remove_global_variable = acm_s3_m_clergy_opinion
	remove_global_variable = acm_s3_m_courtly_opinion
	remove_global_variable = acm_s3_m_zealot_opinion
	remove_global_variable = acm_s3_m_glory_hound_opinion
	remove_global_variable = acm_s3_m_parochial_opinion
	remove_global_variable = acm_s3_m_belligerent_opinion
	remove_global_variable = acm_s3_m_dynasty_opinion
	remove_global_variable = acm_s3_m_spouse_opinion
	remove_global_variable = acm_s3_m_child_opinion
	remove_global_variable = acm_s3_m_attraction_opinion
	remove_global_variable = acm_s3_m_courtier_and_guest_opinion
	remove_global_variable = acm_s3_m_same_faith_opinion
	remove_global_variable = acm_s3_m_different_faith_opinion
	remove_global_variable = acm_s3_m_same_culture_opinion
	remove_global_variable = acm_s3_m_different_culture_opinion
	remove_global_variable = acm_s3_m_independent_ruler_opinion
	remove_global_variable = acm_s3_m_religious_head_opinion
	remove_global_variable = acm_s3_m_county_opinion_add
	remove_global_variable = acm_s3_m_prisoner_opinion
	remove_global_variable = acm_s3_m_health
	remove_global_variable = acm_s3_m_negate_health_penalty_add
	remove_global_variable = acm_s3_m_fertility
	remove_global_variable = acm_s3_m_life_expectancy
	remove_global_variable = acm_s3_m_years_of_fertility
	remove_global_variable = acm_s3_m_stress_gain_mult
	remove_global_variable = acm_s3_m_stress_loss_mult
	remove_global_variable = acm_s3_m_epidemic_resistance
	remove_global_variable = acm_s3_m_negate_prowess_penalty_add
	remove_global_variable = acm_s3_m_positive_inactive_inheritance_chance
	remove_global_variable = acm_s3_m_owned_hostile_scheme_success_chance_add
	remove_global_variable = acm_s3_m_owned_personal_scheme_success_chance_add
	remove_global_variable = acm_s3_m_owned_scheme_secrecy_add
	remove_global_variable = acm_s3_m_enemy_hostile_scheme_success_chance_add
	remove_global_variable = acm_s3_m_enemy_personal_scheme_success_chance_add
	remove_global_variable = acm_s3_m_hostile_scheme_phase_duration_add
	remove_global_variable = acm_s3_m_personal_scheme_phase_duration_add
	remove_global_variable = acm_s3_m_enemy_hostile_scheme_phase_duration_add
	remove_global_variable = acm_s3_m_max_hostile_schemes_add
	remove_global_variable = acm_s3_m_max_personal_schemes_add
	remove_global_variable = acm_s3_m_seduce_scheme_phase_duration_add
	remove_global_variable = acm_s3_m_courting_scheme_phase_duration_add
	remove_global_variable = acm_s3_m_befriend_scheme_phase_duration_add
	remove_global_variable = acm_s3_m_learn_language_scheme_phase_duration_add
	remove_global_variable = acm_s3_m_knight_effectiveness_mult
	remove_global_variable = acm_s3_m_army_damage_mult
	remove_global_variable = acm_s3_m_army_toughness_mult
	remove_global_variable = acm_s3_m_army_pursuit_mult
	remove_global_variable = acm_s3_m_army_screen_mult
	remove_global_variable = acm_s3_m_army_maintenance_mult
	remove_global_variable = acm_s3_m_men_at_arms_maintenance
	remove_global_variable = acm_s3_m_mercenary_hire_cost_mult
	remove_global_variable = acm_s3_m_enemy_hard_casualty_modifier
	remove_global_variable = acm_s3_m_hard_casualty_modifier
	remove_global_variable = acm_s3_m_retreat_losses
	remove_global_variable = acm_s3_m_supply_limit_mult
	remove_global_variable = acm_s3_m_movement_speed
	remove_global_variable = acm_s3_m_naval_movement_speed_mult
	remove_global_variable = acm_s3_m_embarkation_cost_mult
	remove_global_variable = acm_s3_m_raid_speed
	remove_global_variable = acm_s3_m_controlled_province_advantage
	remove_global_variable = acm_s3_m_defender_advantage
	remove_global_variable = acm_s3_m_tolerance_advantage_mod
	remove_global_variable = acm_s3_m_led_by_owner_extra_advantage_add
	remove_global_variable = acm_s3_m_pursue_efficiency
	remove_global_variable = acm_s3_m_levy_reinforcement_rate_same_faith
	remove_global_variable = acm_s3_m_heavy_infantry_damage_mult
	remove_global_variable = acm_s3_m_heavy_infantry_toughness_mult
	remove_global_variable = acm_s3_m_heavy_cavalry_damage_mult
	remove_global_variable = acm_s3_m_heavy_cavalry_toughness_mult
	remove_global_variable = acm_s3_m_light_cavalry_damage_mult
	remove_global_variable = acm_s3_m_light_cavalry_toughness_mult
	remove_global_variable = acm_s3_m_archers_damage_mult
	remove_global_variable = acm_s3_m_archers_toughness_mult
	remove_global_variable = acm_s3_m_pikemen_damage_mult
	remove_global_variable = acm_s3_m_pikemen_toughness_mult
	remove_global_variable = acm_s3_m_skirmishers_damage_mult
	remove_global_variable = acm_s3_m_skirmishers_toughness_mult
	remove_global_variable = acm_s3_m_archer_cavalry_damage_mult
	remove_global_variable = acm_s3_m_archer_cavalry_toughness_mult
	remove_global_variable = acm_s3_m_camel_cavalry_damage_mult
	remove_global_variable = acm_s3_m_elephant_cavalry_damage_mult
	remove_global_variable = acm_s3_m_siege_weapon_siege_value_mult
	remove_global_variable = acm_s3_m_plains_advantage
	remove_global_variable = acm_s3_m_farmlands_advantage
	remove_global_variable = acm_s3_m_hills_advantage
	remove_global_variable = acm_s3_m_mountains_advantage
	remove_global_variable = acm_s3_m_desert_advantage
	remove_global_variable = acm_s3_m_desert_mountains_advantage
	remove_global_variable = acm_s3_m_oasis_advantage
	remove_global_variable = acm_s3_m_jungle_advantage
	remove_global_variable = acm_s3_m_forest_advantage
	remove_global_variable = acm_s3_m_taiga_advantage
	remove_global_variable = acm_s3_m_wetlands_advantage
	remove_global_variable = acm_s3_m_steppe_advantage
	remove_global_variable = acm_s3_m_floodplains_advantage
	remove_global_variable = acm_s3_m_drylands_advantage
	remove_global_variable = acm_s3_m_winter_advantage
	remove_global_variable = acm_s3_m_coastal_advantage
	remove_global_variable = acm_s3_m_character_travel_speed
	remove_global_variable = acm_s3_m_character_travel_safety
	remove_global_variable = acm_s3_m_character_travel_speed_mult
	remove_global_variable = acm_s3_m_character_travel_safety_mult
	remove_global_variable = acm_s3_m_winter_movement_speed
}

acm_slot_save_4_effect = {
	set_global_variable = { name = acm_s4_saved value = yes }
	if = { limit = { has_variable = acm_type } set_global_variable = { name = acm_s4_type value = var:acm_type } }
	else = { remove_global_variable = acm_s4_type }
	if = { limit = { has_variable = acm_icon } set_global_variable = { name = acm_s4_icon value = var:acm_icon } }
	else = { remove_global_variable = acm_s4_icon }
	if = { limit = { has_variable = acm_asset } set_global_variable = { name = acm_s4_asset value = var:acm_asset } }
	else = { remove_global_variable = acm_s4_asset }
	if = { limit = { has_variable = acm_support } set_global_variable = { name = acm_s4_support value = var:acm_support } }
	else = { remove_global_variable = acm_s4_support }
	if = { limit = { has_variable = acm_rarity } set_global_variable = { name = acm_s4_rarity value = var:acm_rarity } }
	else = { remove_global_variable = acm_s4_rarity }
	if = { limit = { has_variable = acm_history } set_global_variable = { name = acm_s4_history value = var:acm_history } }
	else = { remove_global_variable = acm_s4_history }
	if = { limit = { has_variable = acm_name } set_global_variable = { name = acm_s4_name value = var:acm_name } }
	else = { remove_global_variable = acm_s4_name }
	if = { limit = { has_variable = acm_desc } set_global_variable = { name = acm_s4_desc value = var:acm_desc } }
	else = { remove_global_variable = acm_s4_desc }
	if = { limit = { has_variable = acm_benefit } set_global_variable = { name = acm_s4_benefit value = var:acm_benefit } }
	else = { remove_global_variable = acm_s4_benefit }
	if = { limit = { has_variable = acm_equip } set_global_variable = { name = acm_s4_equip value = var:acm_equip } }
	else = { remove_global_variable = acm_s4_equip }
	if = { limit = { has_variable = acm_relic } set_global_variable = { name = acm_s4_relic value = var:acm_relic } }
	else = { remove_global_variable = acm_s4_relic }
	if = { limit = { has_variable = acm_msg } set_global_variable = { name = acm_s4_msg value = var:acm_msg } }
	else = { remove_global_variable = acm_s4_msg }
	if = { limit = { has_variable = acm_vset } set_global_variable = { name = acm_s4_vset value = var:acm_vset } }
	else = { remove_global_variable = acm_s4_vset }
	if = { limit = { has_variable = acm_preset } set_global_variable = { name = acm_s4_preset value = var:acm_preset } }
	else = { remove_global_variable = acm_s4_preset }
	if = { limit = { has_variable = acm_quality } set_global_variable = { name = acm_s4_quality value = var:acm_quality } }
	else = { remove_global_variable = acm_s4_quality }
	if = { limit = { has_variable = acm_wealth } set_global_variable = { name = acm_s4_wealth value = var:acm_wealth } }
	else = { remove_global_variable = acm_s4_wealth }
	if = { limit = { has_variable = acm_durability } set_global_variable = { name = acm_s4_durability value = var:acm_durability } }
	else = { remove_global_variable = acm_s4_durability }
	if = { limit = { has_variable = acm_auto_look } set_global_variable = { name = acm_s4_auto_look value = yes } }
	else = { remove_global_variable = acm_s4_auto_look }
	if = { limit = { has_variable = acm_unique } set_global_variable = { name = acm_s4_unique value = yes } }
	else = { remove_global_variable = acm_s4_unique }
	if = { limit = { has_variable = acm_no_decay } set_global_variable = { name = acm_s4_no_decay value = yes } }
	else = { remove_global_variable = acm_s4_no_decay }
	if = { limit = { has_variable = acm_no_reforge } set_global_variable = { name = acm_s4_no_reforge value = yes } }
	else = { remove_global_variable = acm_s4_no_reforge }
	if = { limit = { has_variable = acm_no_repair } set_global_variable = { name = acm_s4_no_repair value = yes } }
	else = { remove_global_variable = acm_s4_no_repair }
	if = { limit = { has_variable = acm_auto_equip } set_global_variable = { name = acm_s4_auto_equip value = yes } }
	else = { remove_global_variable = acm_s4_auto_equip }
	if = { limit = { has_variable = acm_features } set_global_variable = { name = acm_s4_features value = yes } }
	else = { remove_global_variable = acm_s4_features }
	if = { limit = { has_variable = acm_creator_is_owner } set_global_variable = { name = acm_s4_creator_is_owner value = yes } }
	else = { remove_global_variable = acm_s4_creator_is_owner }
	if = { limit = { has_variable = acm_maker } set_global_variable = { name = acm_s4_maker value = var:acm_maker } }
	else = { remove_global_variable = acm_s4_maker }
	if = { limit = { has_variable = acm_history_actor } set_global_variable = { name = acm_s4_history_actor value = var:acm_history_actor } }
	else = { remove_global_variable = acm_s4_history_actor }
	if = { limit = { NOT = { var:acm_m_diplomacy ?= 0 } } set_global_variable = { name = acm_s4_m_diplomacy value = var:acm_m_diplomacy } }
	else = { remove_global_variable = acm_s4_m_diplomacy }
	if = { limit = { NOT = { var:acm_m_martial ?= 0 } } set_global_variable = { name = acm_s4_m_martial value = var:acm_m_martial } }
	else = { remove_global_variable = acm_s4_m_martial }
	if = { limit = { NOT = { var:acm_m_stewardship ?= 0 } } set_global_variable = { name = acm_s4_m_stewardship value = var:acm_m_stewardship } }
	else = { remove_global_variable = acm_s4_m_stewardship }
	if = { limit = { NOT = { var:acm_m_intrigue ?= 0 } } set_global_variable = { name = acm_s4_m_intrigue value = var:acm_m_intrigue } }
	else = { remove_global_variable = acm_s4_m_intrigue }
	if = { limit = { NOT = { var:acm_m_learning ?= 0 } } set_global_variable = { name = acm_s4_m_learning value = var:acm_m_learning } }
	else = { remove_global_variable = acm_s4_m_learning }
	if = { limit = { NOT = { var:acm_m_prowess_no_portrait ?= 0 } } set_global_variable = { name = acm_s4_m_prowess_no_portrait value = var:acm_m_prowess_no_portrait } }
	else = { remove_global_variable = acm_s4_m_prowess_no_portrait }
	if = { limit = { NOT = { var:acm_m_diplomacy_mult ?= 0 } } set_global_variable = { name = acm_s4_m_diplomacy_mult value = var:acm_m_diplomacy_mult } }
	else = { remove_global_variable = acm_s4_m_diplomacy_mult }
	if = { limit = { NOT = { var:acm_m_martial_mult ?= 0 } } set_global_variable = { name = acm_s4_m_martial_mult value = var:acm_m_martial_mult } }
	else = { remove_global_variable = acm_s4_m_martial_mult }
	if = { limit = { NOT = { var:acm_m_stewardship_mult ?= 0 } } set_global_variable = { name = acm_s4_m_stewardship_mult value = var:acm_m_stewardship_mult } }
	else = { remove_global_variable = acm_s4_m_stewardship_mult }
	if = { limit = { NOT = { var:acm_m_intrigue_mult ?= 0 } } set_global_variable = { name = acm_s4_m_intrigue_mult value = var:acm_m_intrigue_mult } }
	else = { remove_global_variable = acm_s4_m_intrigue_mult }
	if = { limit = { NOT = { var:acm_m_learning_mult ?= 0 } } set_global_variable = { name = acm_s4_m_learning_mult value = var:acm_m_learning_mult } }
	else = { remove_global_variable = acm_s4_m_learning_mult }
	if = { limit = { NOT = { var:acm_m_prowess_mult ?= 0 } } set_global_variable = { name = acm_s4_m_prowess_mult value = var:acm_m_prowess_mult } }
	else = { remove_global_variable = acm_s4_m_prowess_mult }
	if = { limit = { NOT = { var:acm_m_monthly_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_lifestyle_xp_gain_mult value = var:acm_m_monthly_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_diplomacy_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_diplomacy_lifestyle_xp_gain_mult value = var:acm_m_monthly_diplomacy_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_diplomacy_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_martial_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_martial_lifestyle_xp_gain_mult value = var:acm_m_monthly_martial_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_martial_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_stewardship_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_stewardship_lifestyle_xp_gain_mult value = var:acm_m_monthly_stewardship_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_stewardship_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_intrigue_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_intrigue_lifestyle_xp_gain_mult value = var:acm_m_monthly_intrigue_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_intrigue_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_learning_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_learning_lifestyle_xp_gain_mult value = var:acm_m_monthly_learning_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_learning_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_prestige ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_prestige value = var:acm_m_monthly_prestige } }
	else = { remove_global_variable = acm_s4_m_monthly_prestige }
	if = { limit = { NOT = { var:acm_m_monthly_piety ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_piety value = var:acm_m_monthly_piety } }
	else = { remove_global_variable = acm_s4_m_monthly_piety }
	if = { limit = { NOT = { var:acm_m_monthly_income ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_income value = var:acm_m_monthly_income } }
	else = { remove_global_variable = acm_s4_m_monthly_income }
	if = { limit = { NOT = { var:acm_m_monthly_dynasty_prestige ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_dynasty_prestige value = var:acm_m_monthly_dynasty_prestige } }
	else = { remove_global_variable = acm_s4_m_monthly_dynasty_prestige }
	if = { limit = { NOT = { var:acm_m_monthly_influence ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_influence value = var:acm_m_monthly_influence } }
	else = { remove_global_variable = acm_s4_m_monthly_influence }
	if = { limit = { NOT = { var:acm_m_monthly_prestige_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_prestige_gain_mult value = var:acm_m_monthly_prestige_gain_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_prestige_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_piety_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_piety_gain_mult value = var:acm_m_monthly_piety_gain_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_piety_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_income_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_income_mult value = var:acm_m_monthly_income_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_income_mult }
	if = { limit = { NOT = { var:acm_m_monthly_dynasty_prestige_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_dynasty_prestige_mult value = var:acm_m_monthly_dynasty_prestige_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_dynasty_prestige_mult }
	if = { limit = { NOT = { var:acm_m_monthly_influence_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_influence_mult value = var:acm_m_monthly_influence_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_influence_mult }
	if = { limit = { NOT = { var:acm_m_monthly_merit_mult ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_merit_mult value = var:acm_m_monthly_merit_mult } }
	else = { remove_global_variable = acm_s4_m_monthly_merit_mult }
	if = { limit = { NOT = { var:acm_m_domain_tax_mult ?= 0 } } set_global_variable = { name = acm_s4_m_domain_tax_mult value = var:acm_m_domain_tax_mult } }
	else = { remove_global_variable = acm_s4_m_domain_tax_mult }
	if = { limit = { NOT = { var:acm_m_vassal_tax_contribution_mult ?= 0 } } set_global_variable = { name = acm_s4_m_vassal_tax_contribution_mult value = var:acm_m_vassal_tax_contribution_mult } }
	else = { remove_global_variable = acm_s4_m_vassal_tax_contribution_mult }
	if = { limit = { NOT = { var:acm_m_monthly_war_income_add ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_war_income_add value = var:acm_m_monthly_war_income_add } }
	else = { remove_global_variable = acm_s4_m_monthly_war_income_add }
	if = { limit = { NOT = { var:acm_m_herd_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_herd_gain_mult value = var:acm_m_herd_gain_mult } }
	else = { remove_global_variable = acm_s4_m_herd_gain_mult }
	if = { limit = { NOT = { var:acm_m_court_grandeur_baseline_add ?= 0 } } set_global_variable = { name = acm_s4_m_court_grandeur_baseline_add value = var:acm_m_court_grandeur_baseline_add } }
	else = { remove_global_variable = acm_s4_m_court_grandeur_baseline_add }
	if = { limit = { NOT = { var:acm_m_domain_limit ?= 0 } } set_global_variable = { name = acm_s4_m_domain_limit value = var:acm_m_domain_limit } }
	else = { remove_global_variable = acm_s4_m_domain_limit }
	if = { limit = { NOT = { var:acm_m_vassal_limit ?= 0 } } set_global_variable = { name = acm_s4_m_vassal_limit value = var:acm_m_vassal_limit } }
	else = { remove_global_variable = acm_s4_m_vassal_limit }
	if = { limit = { NOT = { var:acm_m_knight_limit ?= 0 } } set_global_variable = { name = acm_s4_m_knight_limit value = var:acm_m_knight_limit } }
	else = { remove_global_variable = acm_s4_m_knight_limit }
	if = { limit = { NOT = { var:acm_m_men_at_arms_limit ?= 0 } } set_global_variable = { name = acm_s4_m_men_at_arms_limit value = var:acm_m_men_at_arms_limit } }
	else = { remove_global_variable = acm_s4_m_men_at_arms_limit }
	if = { limit = { NOT = { var:acm_m_men_at_arms_cap ?= 0 } } set_global_variable = { name = acm_s4_m_men_at_arms_cap value = var:acm_m_men_at_arms_cap } }
	else = { remove_global_variable = acm_s4_m_men_at_arms_cap }
	if = { limit = { NOT = { var:acm_m_legitimacy_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_legitimacy_gain_mult value = var:acm_m_legitimacy_gain_mult } }
	else = { remove_global_variable = acm_s4_m_legitimacy_gain_mult }
	if = { limit = { NOT = { var:acm_m_legitimacy_loss_mult ?= 0 } } set_global_variable = { name = acm_s4_m_legitimacy_loss_mult value = var:acm_m_legitimacy_loss_mult } }
	else = { remove_global_variable = acm_s4_m_legitimacy_loss_mult }
	if = { limit = { NOT = { var:acm_m_short_reign_duration_mult ?= 0 } } set_global_variable = { name = acm_s4_m_short_reign_duration_mult value = var:acm_m_short_reign_duration_mult } }
	else = { remove_global_variable = acm_s4_m_short_reign_duration_mult }
	if = { limit = { NOT = { var:acm_m_dread_baseline_add ?= 0 } } set_global_variable = { name = acm_s4_m_dread_baseline_add value = var:acm_m_dread_baseline_add } }
	else = { remove_global_variable = acm_s4_m_dread_baseline_add }
	if = { limit = { NOT = { var:acm_m_dread_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_dread_gain_mult value = var:acm_m_dread_gain_mult } }
	else = { remove_global_variable = acm_s4_m_dread_gain_mult }
	if = { limit = { NOT = { var:acm_m_dread_decay_mult ?= 0 } } set_global_variable = { name = acm_s4_m_dread_decay_mult value = var:acm_m_dread_decay_mult } }
	else = { remove_global_variable = acm_s4_m_dread_decay_mult }
	if = { limit = { NOT = { var:acm_m_tyranny_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_tyranny_gain_mult value = var:acm_m_tyranny_gain_mult } }
	else = { remove_global_variable = acm_s4_m_tyranny_gain_mult }
	if = { limit = { NOT = { var:acm_m_tyranny_loss_mult ?= 0 } } set_global_variable = { name = acm_s4_m_tyranny_loss_mult value = var:acm_m_tyranny_loss_mult } }
	else = { remove_global_variable = acm_s4_m_tyranny_loss_mult }
	if = { limit = { NOT = { var:acm_m_title_creation_cost_mult ?= 0 } } set_global_variable = { name = acm_s4_m_title_creation_cost_mult value = var:acm_m_title_creation_cost_mult } }
	else = { remove_global_variable = acm_s4_m_title_creation_cost_mult }
	if = { limit = { NOT = { var:acm_m_build_gold_cost ?= 0 } } set_global_variable = { name = acm_s4_m_build_gold_cost value = var:acm_m_build_gold_cost } }
	else = { remove_global_variable = acm_s4_m_build_gold_cost }
	if = { limit = { NOT = { var:acm_m_build_speed ?= 0 } } set_global_variable = { name = acm_s4_m_build_speed value = var:acm_m_build_speed } }
	else = { remove_global_variable = acm_s4_m_build_speed }
	if = { limit = { NOT = { var:acm_m_development_growth ?= 0 } } set_global_variable = { name = acm_s4_m_development_growth value = var:acm_m_development_growth } }
	else = { remove_global_variable = acm_s4_m_development_growth }
	if = { limit = { NOT = { var:acm_m_development_growth_factor ?= 0 } } set_global_variable = { name = acm_s4_m_development_growth_factor value = var:acm_m_development_growth_factor } }
	else = { remove_global_variable = acm_s4_m_development_growth_factor }
	if = { limit = { NOT = { var:acm_m_monthly_county_control_growth_add ?= 0 } } set_global_variable = { name = acm_s4_m_monthly_county_control_growth_add value = var:acm_m_monthly_county_control_growth_add } }
	else = { remove_global_variable = acm_s4_m_monthly_county_control_growth_add }
	if = { limit = { NOT = { var:acm_m_levy_size ?= 0 } } set_global_variable = { name = acm_s4_m_levy_size value = var:acm_m_levy_size } }
	else = { remove_global_variable = acm_s4_m_levy_size }
	if = { limit = { NOT = { var:acm_m_levy_reinforcement_rate ?= 0 } } set_global_variable = { name = acm_s4_m_levy_reinforcement_rate value = var:acm_m_levy_reinforcement_rate } }
	else = { remove_global_variable = acm_s4_m_levy_reinforcement_rate }
	if = { limit = { NOT = { var:acm_m_garrison_size ?= 0 } } set_global_variable = { name = acm_s4_m_garrison_size value = var:acm_m_garrison_size } }
	else = { remove_global_variable = acm_s4_m_garrison_size }
	if = { limit = { NOT = { var:acm_m_fort_level ?= 0 } } set_global_variable = { name = acm_s4_m_fort_level value = var:acm_m_fort_level } }
	else = { remove_global_variable = acm_s4_m_fort_level }
	if = { limit = { NOT = { var:acm_m_cultural_head_fascination_mult ?= 0 } } set_global_variable = { name = acm_s4_m_cultural_head_fascination_mult value = var:acm_m_cultural_head_fascination_mult } }
	else = { remove_global_variable = acm_s4_m_cultural_head_fascination_mult }
	if = { limit = { NOT = { var:acm_m_owned_legend_spread_mult ?= 0 } } set_global_variable = { name = acm_s4_m_owned_legend_spread_mult value = var:acm_m_owned_legend_spread_mult } }
	else = { remove_global_variable = acm_s4_m_owned_legend_spread_mult }
	if = { limit = { NOT = { var:acm_m_general_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_general_opinion value = var:acm_m_general_opinion } }
	else = { remove_global_variable = acm_s4_m_general_opinion }
	if = { limit = { NOT = { var:acm_m_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_vassal_opinion value = var:acm_m_vassal_opinion } }
	else = { remove_global_variable = acm_s4_m_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_direct_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_direct_vassal_opinion value = var:acm_m_direct_vassal_opinion } }
	else = { remove_global_variable = acm_s4_m_direct_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_powerful_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_powerful_vassal_opinion value = var:acm_m_powerful_vassal_opinion } }
	else = { remove_global_variable = acm_s4_m_powerful_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_clergy_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_clergy_opinion value = var:acm_m_clergy_opinion } }
	else = { remove_global_variable = acm_s4_m_clergy_opinion }
	if = { limit = { NOT = { var:acm_m_courtly_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_courtly_opinion value = var:acm_m_courtly_opinion } }
	else = { remove_global_variable = acm_s4_m_courtly_opinion }
	if = { limit = { NOT = { var:acm_m_zealot_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_zealot_opinion value = var:acm_m_zealot_opinion } }
	else = { remove_global_variable = acm_s4_m_zealot_opinion }
	if = { limit = { NOT = { var:acm_m_glory_hound_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_glory_hound_opinion value = var:acm_m_glory_hound_opinion } }
	else = { remove_global_variable = acm_s4_m_glory_hound_opinion }
	if = { limit = { NOT = { var:acm_m_parochial_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_parochial_opinion value = var:acm_m_parochial_opinion } }
	else = { remove_global_variable = acm_s4_m_parochial_opinion }
	if = { limit = { NOT = { var:acm_m_belligerent_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_belligerent_opinion value = var:acm_m_belligerent_opinion } }
	else = { remove_global_variable = acm_s4_m_belligerent_opinion }
	if = { limit = { NOT = { var:acm_m_dynasty_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_dynasty_opinion value = var:acm_m_dynasty_opinion } }
	else = { remove_global_variable = acm_s4_m_dynasty_opinion }
	if = { limit = { NOT = { var:acm_m_spouse_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_spouse_opinion value = var:acm_m_spouse_opinion } }
	else = { remove_global_variable = acm_s4_m_spouse_opinion }
	if = { limit = { NOT = { var:acm_m_child_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_child_opinion value = var:acm_m_child_opinion } }
	else = { remove_global_variable = acm_s4_m_child_opinion }
	if = { limit = { NOT = { var:acm_m_attraction_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_attraction_opinion value = var:acm_m_attraction_opinion } }
	else = { remove_global_variable = acm_s4_m_attraction_opinion }
	if = { limit = { NOT = { var:acm_m_courtier_and_guest_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_courtier_and_guest_opinion value = var:acm_m_courtier_and_guest_opinion } }
	else = { remove_global_variable = acm_s4_m_courtier_and_guest_opinion }
	if = { limit = { NOT = { var:acm_m_same_faith_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_same_faith_opinion value = var:acm_m_same_faith_opinion } }
	else = { remove_global_variable = acm_s4_m_same_faith_opinion }
	if = { limit = { NOT = { var:acm_m_different_faith_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_different_faith_opinion value = var:acm_m_different_faith_opinion } }
	else = { remove_global_variable = acm_s4_m_different_faith_opinion }
	if = { limit = { NOT = { var:acm_m_same_culture_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_same_culture_opinion value = var:acm_m_same_culture_opinion } }
	else = { remove_global_variable = acm_s4_m_same_culture_opinion }
	if = { limit = { NOT = { var:acm_m_different_culture_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_different_culture_opinion value = var:acm_m_different_culture_opinion } }
	else = { remove_global_variable = acm_s4_m_different_culture_opinion }
	if = { limit = { NOT = { var:acm_m_independent_ruler_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_independent_ruler_opinion value = var:acm_m_independent_ruler_opinion } }
	else = { remove_global_variable = acm_s4_m_independent_ruler_opinion }
	if = { limit = { NOT = { var:acm_m_religious_head_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_religious_head_opinion value = var:acm_m_religious_head_opinion } }
	else = { remove_global_variable = acm_s4_m_religious_head_opinion }
	if = { limit = { NOT = { var:acm_m_county_opinion_add ?= 0 } } set_global_variable = { name = acm_s4_m_county_opinion_add value = var:acm_m_county_opinion_add } }
	else = { remove_global_variable = acm_s4_m_county_opinion_add }
	if = { limit = { NOT = { var:acm_m_prisoner_opinion ?= 0 } } set_global_variable = { name = acm_s4_m_prisoner_opinion value = var:acm_m_prisoner_opinion } }
	else = { remove_global_variable = acm_s4_m_prisoner_opinion }
	if = { limit = { NOT = { var:acm_m_health ?= 0 } } set_global_variable = { name = acm_s4_m_health value = var:acm_m_health } }
	else = { remove_global_variable = acm_s4_m_health }
	if = { limit = { NOT = { var:acm_m_negate_health_penalty_add ?= 0 } } set_global_variable = { name = acm_s4_m_negate_health_penalty_add value = var:acm_m_negate_health_penalty_add } }
	else = { remove_global_variable = acm_s4_m_negate_health_penalty_add }
	if = { limit = { NOT = { var:acm_m_fertility ?= 0 } } set_global_variable = { name = acm_s4_m_fertility value = var:acm_m_fertility } }
	else = { remove_global_variable = acm_s4_m_fertility }
	if = { limit = { NOT = { var:acm_m_life_expectancy ?= 0 } } set_global_variable = { name = acm_s4_m_life_expectancy value = var:acm_m_life_expectancy } }
	else = { remove_global_variable = acm_s4_m_life_expectancy }
	if = { limit = { NOT = { var:acm_m_years_of_fertility ?= 0 } } set_global_variable = { name = acm_s4_m_years_of_fertility value = var:acm_m_years_of_fertility } }
	else = { remove_global_variable = acm_s4_m_years_of_fertility }
	if = { limit = { NOT = { var:acm_m_stress_gain_mult ?= 0 } } set_global_variable = { name = acm_s4_m_stress_gain_mult value = var:acm_m_stress_gain_mult } }
	else = { remove_global_variable = acm_s4_m_stress_gain_mult }
	if = { limit = { NOT = { var:acm_m_stress_loss_mult ?= 0 } } set_global_variable = { name = acm_s4_m_stress_loss_mult value = var:acm_m_stress_loss_mult } }
	else = { remove_global_variable = acm_s4_m_stress_loss_mult }
	if = { limit = { NOT = { var:acm_m_epidemic_resistance ?= 0 } } set_global_variable = { name = acm_s4_m_epidemic_resistance value = var:acm_m_epidemic_resistance } }
	else = { remove_global_variable = acm_s4_m_epidemic_resistance }
	if = { limit = { NOT = { var:acm_m_negate_prowess_penalty_add ?= 0 } } set_global_variable = { name = acm_s4_m_negate_prowess_penalty_add value = var:acm_m_negate_prowess_penalty_add } }
	else = { remove_global_variable = acm_s4_m_negate_prowess_penalty_add }
	if = { limit = { NOT = { var:acm_m_positive_inactive_inheritance_chance ?= 0 } } set_global_variable = { name = acm_s4_m_positive_inactive_inheritance_chance value = var:acm_m_positive_inactive_inheritance_chance } }
	else = { remove_global_variable = acm_s4_m_positive_inactive_inheritance_chance }
	if = { limit = { NOT = { var:acm_m_owned_hostile_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s4_m_owned_hostile_scheme_success_chance_add value = var:acm_m_owned_hostile_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s4_m_owned_hostile_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_owned_personal_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s4_m_owned_personal_scheme_success_chance_add value = var:acm_m_owned_personal_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s4_m_owned_personal_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_owned_scheme_secrecy_add ?= 0 } } set_global_variable = { name = acm_s4_m_owned_scheme_secrecy_add value = var:acm_m_owned_scheme_secrecy_add } }
	else = { remove_global_variable = acm_s4_m_owned_scheme_secrecy_add }
	if = { limit = { NOT = { var:acm_m_enemy_hostile_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s4_m_enemy_hostile_scheme_success_chance_add value = var:acm_m_enemy_hostile_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s4_m_enemy_hostile_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_enemy_personal_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s4_m_enemy_personal_scheme_success_chance_add value = var:acm_m_enemy_personal_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s4_m_enemy_personal_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_hostile_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s4_m_hostile_scheme_phase_duration_add value = var:acm_m_hostile_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s4_m_hostile_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_personal_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s4_m_personal_scheme_phase_duration_add value = var:acm_m_personal_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s4_m_personal_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_enemy_hostile_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s4_m_enemy_hostile_scheme_phase_duration_add value = var:acm_m_enemy_hostile_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s4_m_enemy_hostile_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_max_hostile_schemes_add ?= 0 } } set_global_variable = { name = acm_s4_m_max_hostile_schemes_add value = var:acm_m_max_hostile_schemes_add } }
	else = { remove_global_variable = acm_s4_m_max_hostile_schemes_add }
	if = { limit = { NOT = { var:acm_m_max_personal_schemes_add ?= 0 } } set_global_variable = { name = acm_s4_m_max_personal_schemes_add value = var:acm_m_max_personal_schemes_add } }
	else = { remove_global_variable = acm_s4_m_max_personal_schemes_add }
	if = { limit = { NOT = { var:acm_m_seduce_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s4_m_seduce_scheme_phase_duration_add value = var:acm_m_seduce_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s4_m_seduce_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_courting_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s4_m_courting_scheme_phase_duration_add value = var:acm_m_courting_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s4_m_courting_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_befriend_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s4_m_befriend_scheme_phase_duration_add value = var:acm_m_befriend_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s4_m_befriend_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_learn_language_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s4_m_learn_language_scheme_phase_duration_add value = var:acm_m_learn_language_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s4_m_learn_language_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_knight_effectiveness_mult ?= 0 } } set_global_variable = { name = acm_s4_m_knight_effectiveness_mult value = var:acm_m_knight_effectiveness_mult } }
	else = { remove_global_variable = acm_s4_m_knight_effectiveness_mult }
	if = { limit = { NOT = { var:acm_m_army_damage_mult ?= 0 } } set_global_variable = { name = acm_s4_m_army_damage_mult value = var:acm_m_army_damage_mult } }
	else = { remove_global_variable = acm_s4_m_army_damage_mult }
	if = { limit = { NOT = { var:acm_m_army_toughness_mult ?= 0 } } set_global_variable = { name = acm_s4_m_army_toughness_mult value = var:acm_m_army_toughness_mult } }
	else = { remove_global_variable = acm_s4_m_army_toughness_mult }
	if = { limit = { NOT = { var:acm_m_army_pursuit_mult ?= 0 } } set_global_variable = { name = acm_s4_m_army_pursuit_mult value = var:acm_m_army_pursuit_mult } }
	else = { remove_global_variable = acm_s4_m_army_pursuit_mult }
	if = { limit = { NOT = { var:acm_m_army_screen_mult ?= 0 } } set_global_variable = { name = acm_s4_m_army_screen_mult value = var:acm_m_army_screen_mult } }
	else = { remove_global_variable = acm_s4_m_army_screen_mult }
	if = { limit = { NOT = { var:acm_m_army_maintenance_mult ?= 0 } } set_global_variable = { name = acm_s4_m_army_maintenance_mult value = var:acm_m_army_maintenance_mult } }
	else = { remove_global_variable = acm_s4_m_army_maintenance_mult }
	if = { limit = { NOT = { var:acm_m_men_at_arms_maintenance ?= 0 } } set_global_variable = { name = acm_s4_m_men_at_arms_maintenance value = var:acm_m_men_at_arms_maintenance } }
	else = { remove_global_variable = acm_s4_m_men_at_arms_maintenance }
	if = { limit = { NOT = { var:acm_m_mercenary_hire_cost_mult ?= 0 } } set_global_variable = { name = acm_s4_m_mercenary_hire_cost_mult value = var:acm_m_mercenary_hire_cost_mult } }
	else = { remove_global_variable = acm_s4_m_mercenary_hire_cost_mult }
	if = { limit = { NOT = { var:acm_m_enemy_hard_casualty_modifier ?= 0 } } set_global_variable = { name = acm_s4_m_enemy_hard_casualty_modifier value = var:acm_m_enemy_hard_casualty_modifier } }
	else = { remove_global_variable = acm_s4_m_enemy_hard_casualty_modifier }
	if = { limit = { NOT = { var:acm_m_hard_casualty_modifier ?= 0 } } set_global_variable = { name = acm_s4_m_hard_casualty_modifier value = var:acm_m_hard_casualty_modifier } }
	else = { remove_global_variable = acm_s4_m_hard_casualty_modifier }
	if = { limit = { NOT = { var:acm_m_retreat_losses ?= 0 } } set_global_variable = { name = acm_s4_m_retreat_losses value = var:acm_m_retreat_losses } }
	else = { remove_global_variable = acm_s4_m_retreat_losses }
	if = { limit = { NOT = { var:acm_m_supply_limit_mult ?= 0 } } set_global_variable = { name = acm_s4_m_supply_limit_mult value = var:acm_m_supply_limit_mult } }
	else = { remove_global_variable = acm_s4_m_supply_limit_mult }
	if = { limit = { NOT = { var:acm_m_movement_speed ?= 0 } } set_global_variable = { name = acm_s4_m_movement_speed value = var:acm_m_movement_speed } }
	else = { remove_global_variable = acm_s4_m_movement_speed }
	if = { limit = { NOT = { var:acm_m_naval_movement_speed_mult ?= 0 } } set_global_variable = { name = acm_s4_m_naval_movement_speed_mult value = var:acm_m_naval_movement_speed_mult } }
	else = { remove_global_variable = acm_s4_m_naval_movement_speed_mult }
	if = { limit = { NOT = { var:acm_m_embarkation_cost_mult ?= 0 } } set_global_variable = { name = acm_s4_m_embarkation_cost_mult value = var:acm_m_embarkation_cost_mult } }
	else = { remove_global_variable = acm_s4_m_embarkation_cost_mult }
	if = { limit = { NOT = { var:acm_m_raid_speed ?= 0 } } set_global_variable = { name = acm_s4_m_raid_speed value = var:acm_m_raid_speed } }
	else = { remove_global_variable = acm_s4_m_raid_speed }
	if = { limit = { NOT = { var:acm_m_controlled_province_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_controlled_province_advantage value = var:acm_m_controlled_province_advantage } }
	else = { remove_global_variable = acm_s4_m_controlled_province_advantage }
	if = { limit = { NOT = { var:acm_m_defender_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_defender_advantage value = var:acm_m_defender_advantage } }
	else = { remove_global_variable = acm_s4_m_defender_advantage }
	if = { limit = { NOT = { var:acm_m_tolerance_advantage_mod ?= 0 } } set_global_variable = { name = acm_s4_m_tolerance_advantage_mod value = var:acm_m_tolerance_advantage_mod } }
	else = { remove_global_variable = acm_s4_m_tolerance_advantage_mod }
	if = { limit = { NOT = { var:acm_m_led_by_owner_extra_advantage_add ?= 0 } } set_global_variable = { name = acm_s4_m_led_by_owner_extra_advantage_add value = var:acm_m_led_by_owner_extra_advantage_add } }
	else = { remove_global_variable = acm_s4_m_led_by_owner_extra_advantage_add }
	if = { limit = { NOT = { var:acm_m_pursue_efficiency ?= 0 } } set_global_variable = { name = acm_s4_m_pursue_efficiency value = var:acm_m_pursue_efficiency } }
	else = { remove_global_variable = acm_s4_m_pursue_efficiency }
	if = { limit = { NOT = { var:acm_m_levy_reinforcement_rate_same_faith ?= 0 } } set_global_variable = { name = acm_s4_m_levy_reinforcement_rate_same_faith value = var:acm_m_levy_reinforcement_rate_same_faith } }
	else = { remove_global_variable = acm_s4_m_levy_reinforcement_rate_same_faith }
	if = { limit = { NOT = { var:acm_m_heavy_infantry_damage_mult ?= 0 } } set_global_variable = { name = acm_s4_m_heavy_infantry_damage_mult value = var:acm_m_heavy_infantry_damage_mult } }
	else = { remove_global_variable = acm_s4_m_heavy_infantry_damage_mult }
	if = { limit = { NOT = { var:acm_m_heavy_infantry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s4_m_heavy_infantry_toughness_mult value = var:acm_m_heavy_infantry_toughness_mult } }
	else = { remove_global_variable = acm_s4_m_heavy_infantry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_heavy_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s4_m_heavy_cavalry_damage_mult value = var:acm_m_heavy_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s4_m_heavy_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_heavy_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s4_m_heavy_cavalry_toughness_mult value = var:acm_m_heavy_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s4_m_heavy_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_light_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s4_m_light_cavalry_damage_mult value = var:acm_m_light_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s4_m_light_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_light_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s4_m_light_cavalry_toughness_mult value = var:acm_m_light_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s4_m_light_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_archers_damage_mult ?= 0 } } set_global_variable = { name = acm_s4_m_archers_damage_mult value = var:acm_m_archers_damage_mult } }
	else = { remove_global_variable = acm_s4_m_archers_damage_mult }
	if = { limit = { NOT = { var:acm_m_archers_toughness_mult ?= 0 } } set_global_variable = { name = acm_s4_m_archers_toughness_mult value = var:acm_m_archers_toughness_mult } }
	else = { remove_global_variable = acm_s4_m_archers_toughness_mult }
	if = { limit = { NOT = { var:acm_m_pikemen_damage_mult ?= 0 } } set_global_variable = { name = acm_s4_m_pikemen_damage_mult value = var:acm_m_pikemen_damage_mult } }
	else = { remove_global_variable = acm_s4_m_pikemen_damage_mult }
	if = { limit = { NOT = { var:acm_m_pikemen_toughness_mult ?= 0 } } set_global_variable = { name = acm_s4_m_pikemen_toughness_mult value = var:acm_m_pikemen_toughness_mult } }
	else = { remove_global_variable = acm_s4_m_pikemen_toughness_mult }
	if = { limit = { NOT = { var:acm_m_skirmishers_damage_mult ?= 0 } } set_global_variable = { name = acm_s4_m_skirmishers_damage_mult value = var:acm_m_skirmishers_damage_mult } }
	else = { remove_global_variable = acm_s4_m_skirmishers_damage_mult }
	if = { limit = { NOT = { var:acm_m_skirmishers_toughness_mult ?= 0 } } set_global_variable = { name = acm_s4_m_skirmishers_toughness_mult value = var:acm_m_skirmishers_toughness_mult } }
	else = { remove_global_variable = acm_s4_m_skirmishers_toughness_mult }
	if = { limit = { NOT = { var:acm_m_archer_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s4_m_archer_cavalry_damage_mult value = var:acm_m_archer_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s4_m_archer_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_archer_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s4_m_archer_cavalry_toughness_mult value = var:acm_m_archer_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s4_m_archer_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_camel_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s4_m_camel_cavalry_damage_mult value = var:acm_m_camel_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s4_m_camel_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_elephant_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s4_m_elephant_cavalry_damage_mult value = var:acm_m_elephant_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s4_m_elephant_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_siege_weapon_siege_value_mult ?= 0 } } set_global_variable = { name = acm_s4_m_siege_weapon_siege_value_mult value = var:acm_m_siege_weapon_siege_value_mult } }
	else = { remove_global_variable = acm_s4_m_siege_weapon_siege_value_mult }
	if = { limit = { NOT = { var:acm_m_plains_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_plains_advantage value = var:acm_m_plains_advantage } }
	else = { remove_global_variable = acm_s4_m_plains_advantage }
	if = { limit = { NOT = { var:acm_m_farmlands_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_farmlands_advantage value = var:acm_m_farmlands_advantage } }
	else = { remove_global_variable = acm_s4_m_farmlands_advantage }
	if = { limit = { NOT = { var:acm_m_hills_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_hills_advantage value = var:acm_m_hills_advantage } }
	else = { remove_global_variable = acm_s4_m_hills_advantage }
	if = { limit = { NOT = { var:acm_m_mountains_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_mountains_advantage value = var:acm_m_mountains_advantage } }
	else = { remove_global_variable = acm_s4_m_mountains_advantage }
	if = { limit = { NOT = { var:acm_m_desert_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_desert_advantage value = var:acm_m_desert_advantage } }
	else = { remove_global_variable = acm_s4_m_desert_advantage }
	if = { limit = { NOT = { var:acm_m_desert_mountains_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_desert_mountains_advantage value = var:acm_m_desert_mountains_advantage } }
	else = { remove_global_variable = acm_s4_m_desert_mountains_advantage }
	if = { limit = { NOT = { var:acm_m_oasis_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_oasis_advantage value = var:acm_m_oasis_advantage } }
	else = { remove_global_variable = acm_s4_m_oasis_advantage }
	if = { limit = { NOT = { var:acm_m_jungle_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_jungle_advantage value = var:acm_m_jungle_advantage } }
	else = { remove_global_variable = acm_s4_m_jungle_advantage }
	if = { limit = { NOT = { var:acm_m_forest_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_forest_advantage value = var:acm_m_forest_advantage } }
	else = { remove_global_variable = acm_s4_m_forest_advantage }
	if = { limit = { NOT = { var:acm_m_taiga_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_taiga_advantage value = var:acm_m_taiga_advantage } }
	else = { remove_global_variable = acm_s4_m_taiga_advantage }
	if = { limit = { NOT = { var:acm_m_wetlands_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_wetlands_advantage value = var:acm_m_wetlands_advantage } }
	else = { remove_global_variable = acm_s4_m_wetlands_advantage }
	if = { limit = { NOT = { var:acm_m_steppe_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_steppe_advantage value = var:acm_m_steppe_advantage } }
	else = { remove_global_variable = acm_s4_m_steppe_advantage }
	if = { limit = { NOT = { var:acm_m_floodplains_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_floodplains_advantage value = var:acm_m_floodplains_advantage } }
	else = { remove_global_variable = acm_s4_m_floodplains_advantage }
	if = { limit = { NOT = { var:acm_m_drylands_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_drylands_advantage value = var:acm_m_drylands_advantage } }
	else = { remove_global_variable = acm_s4_m_drylands_advantage }
	if = { limit = { NOT = { var:acm_m_winter_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_winter_advantage value = var:acm_m_winter_advantage } }
	else = { remove_global_variable = acm_s4_m_winter_advantage }
	if = { limit = { NOT = { var:acm_m_coastal_advantage ?= 0 } } set_global_variable = { name = acm_s4_m_coastal_advantage value = var:acm_m_coastal_advantage } }
	else = { remove_global_variable = acm_s4_m_coastal_advantage }
	if = { limit = { NOT = { var:acm_m_character_travel_speed ?= 0 } } set_global_variable = { name = acm_s4_m_character_travel_speed value = var:acm_m_character_travel_speed } }
	else = { remove_global_variable = acm_s4_m_character_travel_speed }
	if = { limit = { NOT = { var:acm_m_character_travel_safety ?= 0 } } set_global_variable = { name = acm_s4_m_character_travel_safety value = var:acm_m_character_travel_safety } }
	else = { remove_global_variable = acm_s4_m_character_travel_safety }
	if = { limit = { NOT = { var:acm_m_character_travel_speed_mult ?= 0 } } set_global_variable = { name = acm_s4_m_character_travel_speed_mult value = var:acm_m_character_travel_speed_mult } }
	else = { remove_global_variable = acm_s4_m_character_travel_speed_mult }
	if = { limit = { NOT = { var:acm_m_character_travel_safety_mult ?= 0 } } set_global_variable = { name = acm_s4_m_character_travel_safety_mult value = var:acm_m_character_travel_safety_mult } }
	else = { remove_global_variable = acm_s4_m_character_travel_safety_mult }
	if = { limit = { NOT = { var:acm_m_winter_movement_speed ?= 0 } } set_global_variable = { name = acm_s4_m_winter_movement_speed value = var:acm_m_winter_movement_speed } }
	else = { remove_global_variable = acm_s4_m_winter_movement_speed }
}

acm_slot_load_4_effect = {
	if = { limit = { has_global_variable = acm_s4_type } set_variable = { name = acm_type value = global_var:acm_s4_type } }
	else = { remove_variable = acm_type }
	if = { limit = { has_global_variable = acm_s4_icon } set_variable = { name = acm_icon value = global_var:acm_s4_icon } }
	else = { remove_variable = acm_icon }
	if = { limit = { has_global_variable = acm_s4_asset } set_variable = { name = acm_asset value = global_var:acm_s4_asset } }
	else = { remove_variable = acm_asset }
	if = { limit = { has_global_variable = acm_s4_support } set_variable = { name = acm_support value = global_var:acm_s4_support } }
	else = { remove_variable = acm_support }
	if = { limit = { has_global_variable = acm_s4_rarity } set_variable = { name = acm_rarity value = global_var:acm_s4_rarity } }
	else = { remove_variable = acm_rarity }
	if = { limit = { has_global_variable = acm_s4_history } set_variable = { name = acm_history value = global_var:acm_s4_history } }
	else = { remove_variable = acm_history }
	if = { limit = { has_global_variable = acm_s4_name } set_variable = { name = acm_name value = global_var:acm_s4_name } }
	else = { remove_variable = acm_name }
	if = { limit = { has_global_variable = acm_s4_desc } set_variable = { name = acm_desc value = global_var:acm_s4_desc } }
	else = { remove_variable = acm_desc }
	if = { limit = { has_global_variable = acm_s4_benefit } set_variable = { name = acm_benefit value = global_var:acm_s4_benefit } }
	else = { remove_variable = acm_benefit }
	if = { limit = { has_global_variable = acm_s4_equip } set_variable = { name = acm_equip value = global_var:acm_s4_equip } }
	else = { remove_variable = acm_equip }
	if = { limit = { has_global_variable = acm_s4_relic } set_variable = { name = acm_relic value = global_var:acm_s4_relic } }
	else = { remove_variable = acm_relic }
	if = { limit = { has_global_variable = acm_s4_msg } set_variable = { name = acm_msg value = global_var:acm_s4_msg } }
	else = { remove_variable = acm_msg }
	if = { limit = { has_global_variable = acm_s4_vset } set_variable = { name = acm_vset value = global_var:acm_s4_vset } }
	else = { remove_variable = acm_vset }
	if = { limit = { has_global_variable = acm_s4_preset } set_variable = { name = acm_preset value = global_var:acm_s4_preset } }
	else = { remove_variable = acm_preset }
	if = { limit = { has_global_variable = acm_s4_quality } set_variable = { name = acm_quality value = global_var:acm_s4_quality } }
	else = { remove_variable = acm_quality }
	if = { limit = { has_global_variable = acm_s4_wealth } set_variable = { name = acm_wealth value = global_var:acm_s4_wealth } }
	else = { remove_variable = acm_wealth }
	if = { limit = { has_global_variable = acm_s4_durability } set_variable = { name = acm_durability value = global_var:acm_s4_durability } }
	else = { remove_variable = acm_durability }
	if = { limit = { has_global_variable = acm_s4_auto_look } set_variable = acm_auto_look }
	else = { remove_variable = acm_auto_look }
	if = { limit = { has_global_variable = acm_s4_unique } set_variable = acm_unique }
	else = { remove_variable = acm_unique }
	if = { limit = { has_global_variable = acm_s4_no_decay } set_variable = acm_no_decay }
	else = { remove_variable = acm_no_decay }
	if = { limit = { has_global_variable = acm_s4_no_reforge } set_variable = acm_no_reforge }
	else = { remove_variable = acm_no_reforge }
	if = { limit = { has_global_variable = acm_s4_no_repair } set_variable = acm_no_repair }
	else = { remove_variable = acm_no_repair }
	if = { limit = { has_global_variable = acm_s4_auto_equip } set_variable = acm_auto_equip }
	else = { remove_variable = acm_auto_equip }
	if = { limit = { has_global_variable = acm_s4_features } set_variable = acm_features }
	else = { remove_variable = acm_features }
	if = { limit = { has_global_variable = acm_s4_creator_is_owner } set_variable = acm_creator_is_owner }
	else = { remove_variable = acm_creator_is_owner }
	if = { limit = { has_global_variable = acm_s4_maker } set_variable = { name = acm_maker value = global_var:acm_s4_maker } }
	else = { remove_variable = acm_maker }
	if = { limit = { has_global_variable = acm_s4_history_actor } set_variable = { name = acm_history_actor value = global_var:acm_s4_history_actor } }
	else = { remove_variable = acm_history_actor }
	if = { limit = { has_global_variable = acm_s4_m_diplomacy } set_variable = { name = acm_m_diplomacy value = global_var:acm_s4_m_diplomacy } }
	else = { set_variable = { name = acm_m_diplomacy value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_martial } set_variable = { name = acm_m_martial value = global_var:acm_s4_m_martial } }
	else = { set_variable = { name = acm_m_martial value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_stewardship } set_variable = { name = acm_m_stewardship value = global_var:acm_s4_m_stewardship } }
	else = { set_variable = { name = acm_m_stewardship value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_intrigue } set_variable = { name = acm_m_intrigue value = global_var:acm_s4_m_intrigue } }
	else = { set_variable = { name = acm_m_intrigue value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_learning } set_variable = { name = acm_m_learning value = global_var:acm_s4_m_learning } }
	else = { set_variable = { name = acm_m_learning value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_prowess_no_portrait } set_variable = { name = acm_m_prowess_no_portrait value = global_var:acm_s4_m_prowess_no_portrait } }
	else = { set_variable = { name = acm_m_prowess_no_portrait value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_diplomacy_mult } set_variable = { name = acm_m_diplomacy_mult value = global_var:acm_s4_m_diplomacy_mult } }
	else = { set_variable = { name = acm_m_diplomacy_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_martial_mult } set_variable = { name = acm_m_martial_mult value = global_var:acm_s4_m_martial_mult } }
	else = { set_variable = { name = acm_m_martial_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_stewardship_mult } set_variable = { name = acm_m_stewardship_mult value = global_var:acm_s4_m_stewardship_mult } }
	else = { set_variable = { name = acm_m_stewardship_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_intrigue_mult } set_variable = { name = acm_m_intrigue_mult value = global_var:acm_s4_m_intrigue_mult } }
	else = { set_variable = { name = acm_m_intrigue_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_learning_mult } set_variable = { name = acm_m_learning_mult value = global_var:acm_s4_m_learning_mult } }
	else = { set_variable = { name = acm_m_learning_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_prowess_mult } set_variable = { name = acm_m_prowess_mult value = global_var:acm_s4_m_prowess_mult } }
	else = { set_variable = { name = acm_m_prowess_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_lifestyle_xp_gain_mult value = global_var:acm_s4_m_monthly_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_diplomacy_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_diplomacy_lifestyle_xp_gain_mult value = global_var:acm_s4_m_monthly_diplomacy_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_diplomacy_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_martial_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_martial_lifestyle_xp_gain_mult value = global_var:acm_s4_m_monthly_martial_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_martial_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_stewardship_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_stewardship_lifestyle_xp_gain_mult value = global_var:acm_s4_m_monthly_stewardship_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_stewardship_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_intrigue_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_intrigue_lifestyle_xp_gain_mult value = global_var:acm_s4_m_monthly_intrigue_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_intrigue_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_learning_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_learning_lifestyle_xp_gain_mult value = global_var:acm_s4_m_monthly_learning_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_learning_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_prestige } set_variable = { name = acm_m_monthly_prestige value = global_var:acm_s4_m_monthly_prestige } }
	else = { set_variable = { name = acm_m_monthly_prestige value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_piety } set_variable = { name = acm_m_monthly_piety value = global_var:acm_s4_m_monthly_piety } }
	else = { set_variable = { name = acm_m_monthly_piety value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_income } set_variable = { name = acm_m_monthly_income value = global_var:acm_s4_m_monthly_income } }
	else = { set_variable = { name = acm_m_monthly_income value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_dynasty_prestige } set_variable = { name = acm_m_monthly_dynasty_prestige value = global_var:acm_s4_m_monthly_dynasty_prestige } }
	else = { set_variable = { name = acm_m_monthly_dynasty_prestige value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_influence } set_variable = { name = acm_m_monthly_influence value = global_var:acm_s4_m_monthly_influence } }
	else = { set_variable = { name = acm_m_monthly_influence value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_prestige_gain_mult } set_variable = { name = acm_m_monthly_prestige_gain_mult value = global_var:acm_s4_m_monthly_prestige_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_prestige_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_piety_gain_mult } set_variable = { name = acm_m_monthly_piety_gain_mult value = global_var:acm_s4_m_monthly_piety_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_piety_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_income_mult } set_variable = { name = acm_m_monthly_income_mult value = global_var:acm_s4_m_monthly_income_mult } }
	else = { set_variable = { name = acm_m_monthly_income_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_dynasty_prestige_mult } set_variable = { name = acm_m_monthly_dynasty_prestige_mult value = global_var:acm_s4_m_monthly_dynasty_prestige_mult } }
	else = { set_variable = { name = acm_m_monthly_dynasty_prestige_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_influence_mult } set_variable = { name = acm_m_monthly_influence_mult value = global_var:acm_s4_m_monthly_influence_mult } }
	else = { set_variable = { name = acm_m_monthly_influence_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_merit_mult } set_variable = { name = acm_m_monthly_merit_mult value = global_var:acm_s4_m_monthly_merit_mult } }
	else = { set_variable = { name = acm_m_monthly_merit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_domain_tax_mult } set_variable = { name = acm_m_domain_tax_mult value = global_var:acm_s4_m_domain_tax_mult } }
	else = { set_variable = { name = acm_m_domain_tax_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_vassal_tax_contribution_mult } set_variable = { name = acm_m_vassal_tax_contribution_mult value = global_var:acm_s4_m_vassal_tax_contribution_mult } }
	else = { set_variable = { name = acm_m_vassal_tax_contribution_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_war_income_add } set_variable = { name = acm_m_monthly_war_income_add value = global_var:acm_s4_m_monthly_war_income_add } }
	else = { set_variable = { name = acm_m_monthly_war_income_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_herd_gain_mult } set_variable = { name = acm_m_herd_gain_mult value = global_var:acm_s4_m_herd_gain_mult } }
	else = { set_variable = { name = acm_m_herd_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_court_grandeur_baseline_add } set_variable = { name = acm_m_court_grandeur_baseline_add value = global_var:acm_s4_m_court_grandeur_baseline_add } }
	else = { set_variable = { name = acm_m_court_grandeur_baseline_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_domain_limit } set_variable = { name = acm_m_domain_limit value = global_var:acm_s4_m_domain_limit } }
	else = { set_variable = { name = acm_m_domain_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_vassal_limit } set_variable = { name = acm_m_vassal_limit value = global_var:acm_s4_m_vassal_limit } }
	else = { set_variable = { name = acm_m_vassal_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_knight_limit } set_variable = { name = acm_m_knight_limit value = global_var:acm_s4_m_knight_limit } }
	else = { set_variable = { name = acm_m_knight_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_men_at_arms_limit } set_variable = { name = acm_m_men_at_arms_limit value = global_var:acm_s4_m_men_at_arms_limit } }
	else = { set_variable = { name = acm_m_men_at_arms_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_men_at_arms_cap } set_variable = { name = acm_m_men_at_arms_cap value = global_var:acm_s4_m_men_at_arms_cap } }
	else = { set_variable = { name = acm_m_men_at_arms_cap value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_legitimacy_gain_mult } set_variable = { name = acm_m_legitimacy_gain_mult value = global_var:acm_s4_m_legitimacy_gain_mult } }
	else = { set_variable = { name = acm_m_legitimacy_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_legitimacy_loss_mult } set_variable = { name = acm_m_legitimacy_loss_mult value = global_var:acm_s4_m_legitimacy_loss_mult } }
	else = { set_variable = { name = acm_m_legitimacy_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_short_reign_duration_mult } set_variable = { name = acm_m_short_reign_duration_mult value = global_var:acm_s4_m_short_reign_duration_mult } }
	else = { set_variable = { name = acm_m_short_reign_duration_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_dread_baseline_add } set_variable = { name = acm_m_dread_baseline_add value = global_var:acm_s4_m_dread_baseline_add } }
	else = { set_variable = { name = acm_m_dread_baseline_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_dread_gain_mult } set_variable = { name = acm_m_dread_gain_mult value = global_var:acm_s4_m_dread_gain_mult } }
	else = { set_variable = { name = acm_m_dread_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_dread_decay_mult } set_variable = { name = acm_m_dread_decay_mult value = global_var:acm_s4_m_dread_decay_mult } }
	else = { set_variable = { name = acm_m_dread_decay_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_tyranny_gain_mult } set_variable = { name = acm_m_tyranny_gain_mult value = global_var:acm_s4_m_tyranny_gain_mult } }
	else = { set_variable = { name = acm_m_tyranny_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_tyranny_loss_mult } set_variable = { name = acm_m_tyranny_loss_mult value = global_var:acm_s4_m_tyranny_loss_mult } }
	else = { set_variable = { name = acm_m_tyranny_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_title_creation_cost_mult } set_variable = { name = acm_m_title_creation_cost_mult value = global_var:acm_s4_m_title_creation_cost_mult } }
	else = { set_variable = { name = acm_m_title_creation_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_build_gold_cost } set_variable = { name = acm_m_build_gold_cost value = global_var:acm_s4_m_build_gold_cost } }
	else = { set_variable = { name = acm_m_build_gold_cost value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_build_speed } set_variable = { name = acm_m_build_speed value = global_var:acm_s4_m_build_speed } }
	else = { set_variable = { name = acm_m_build_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_development_growth } set_variable = { name = acm_m_development_growth value = global_var:acm_s4_m_development_growth } }
	else = { set_variable = { name = acm_m_development_growth value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_development_growth_factor } set_variable = { name = acm_m_development_growth_factor value = global_var:acm_s4_m_development_growth_factor } }
	else = { set_variable = { name = acm_m_development_growth_factor value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_monthly_county_control_growth_add } set_variable = { name = acm_m_monthly_county_control_growth_add value = global_var:acm_s4_m_monthly_county_control_growth_add } }
	else = { set_variable = { name = acm_m_monthly_county_control_growth_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_levy_size } set_variable = { name = acm_m_levy_size value = global_var:acm_s4_m_levy_size } }
	else = { set_variable = { name = acm_m_levy_size value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_levy_reinforcement_rate } set_variable = { name = acm_m_levy_reinforcement_rate value = global_var:acm_s4_m_levy_reinforcement_rate } }
	else = { set_variable = { name = acm_m_levy_reinforcement_rate value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_garrison_size } set_variable = { name = acm_m_garrison_size value = global_var:acm_s4_m_garrison_size } }
	else = { set_variable = { name = acm_m_garrison_size value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_fort_level } set_variable = { name = acm_m_fort_level value = global_var:acm_s4_m_fort_level } }
	else = { set_variable = { name = acm_m_fort_level value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_cultural_head_fascination_mult } set_variable = { name = acm_m_cultural_head_fascination_mult value = global_var:acm_s4_m_cultural_head_fascination_mult } }
	else = { set_variable = { name = acm_m_cultural_head_fascination_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_owned_legend_spread_mult } set_variable = { name = acm_m_owned_legend_spread_mult value = global_var:acm_s4_m_owned_legend_spread_mult } }
	else = { set_variable = { name = acm_m_owned_legend_spread_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_general_opinion } set_variable = { name = acm_m_general_opinion value = global_var:acm_s4_m_general_opinion } }
	else = { set_variable = { name = acm_m_general_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_vassal_opinion } set_variable = { name = acm_m_vassal_opinion value = global_var:acm_s4_m_vassal_opinion } }
	else = { set_variable = { name = acm_m_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_direct_vassal_opinion } set_variable = { name = acm_m_direct_vassal_opinion value = global_var:acm_s4_m_direct_vassal_opinion } }
	else = { set_variable = { name = acm_m_direct_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_powerful_vassal_opinion } set_variable = { name = acm_m_powerful_vassal_opinion value = global_var:acm_s4_m_powerful_vassal_opinion } }
	else = { set_variable = { name = acm_m_powerful_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_clergy_opinion } set_variable = { name = acm_m_clergy_opinion value = global_var:acm_s4_m_clergy_opinion } }
	else = { set_variable = { name = acm_m_clergy_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_courtly_opinion } set_variable = { name = acm_m_courtly_opinion value = global_var:acm_s4_m_courtly_opinion } }
	else = { set_variable = { name = acm_m_courtly_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_zealot_opinion } set_variable = { name = acm_m_zealot_opinion value = global_var:acm_s4_m_zealot_opinion } }
	else = { set_variable = { name = acm_m_zealot_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_glory_hound_opinion } set_variable = { name = acm_m_glory_hound_opinion value = global_var:acm_s4_m_glory_hound_opinion } }
	else = { set_variable = { name = acm_m_glory_hound_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_parochial_opinion } set_variable = { name = acm_m_parochial_opinion value = global_var:acm_s4_m_parochial_opinion } }
	else = { set_variable = { name = acm_m_parochial_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_belligerent_opinion } set_variable = { name = acm_m_belligerent_opinion value = global_var:acm_s4_m_belligerent_opinion } }
	else = { set_variable = { name = acm_m_belligerent_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_dynasty_opinion } set_variable = { name = acm_m_dynasty_opinion value = global_var:acm_s4_m_dynasty_opinion } }
	else = { set_variable = { name = acm_m_dynasty_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_spouse_opinion } set_variable = { name = acm_m_spouse_opinion value = global_var:acm_s4_m_spouse_opinion } }
	else = { set_variable = { name = acm_m_spouse_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_child_opinion } set_variable = { name = acm_m_child_opinion value = global_var:acm_s4_m_child_opinion } }
	else = { set_variable = { name = acm_m_child_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_attraction_opinion } set_variable = { name = acm_m_attraction_opinion value = global_var:acm_s4_m_attraction_opinion } }
	else = { set_variable = { name = acm_m_attraction_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_courtier_and_guest_opinion } set_variable = { name = acm_m_courtier_and_guest_opinion value = global_var:acm_s4_m_courtier_and_guest_opinion } }
	else = { set_variable = { name = acm_m_courtier_and_guest_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_same_faith_opinion } set_variable = { name = acm_m_same_faith_opinion value = global_var:acm_s4_m_same_faith_opinion } }
	else = { set_variable = { name = acm_m_same_faith_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_different_faith_opinion } set_variable = { name = acm_m_different_faith_opinion value = global_var:acm_s4_m_different_faith_opinion } }
	else = { set_variable = { name = acm_m_different_faith_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_same_culture_opinion } set_variable = { name = acm_m_same_culture_opinion value = global_var:acm_s4_m_same_culture_opinion } }
	else = { set_variable = { name = acm_m_same_culture_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_different_culture_opinion } set_variable = { name = acm_m_different_culture_opinion value = global_var:acm_s4_m_different_culture_opinion } }
	else = { set_variable = { name = acm_m_different_culture_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_independent_ruler_opinion } set_variable = { name = acm_m_independent_ruler_opinion value = global_var:acm_s4_m_independent_ruler_opinion } }
	else = { set_variable = { name = acm_m_independent_ruler_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_religious_head_opinion } set_variable = { name = acm_m_religious_head_opinion value = global_var:acm_s4_m_religious_head_opinion } }
	else = { set_variable = { name = acm_m_religious_head_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_county_opinion_add } set_variable = { name = acm_m_county_opinion_add value = global_var:acm_s4_m_county_opinion_add } }
	else = { set_variable = { name = acm_m_county_opinion_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_prisoner_opinion } set_variable = { name = acm_m_prisoner_opinion value = global_var:acm_s4_m_prisoner_opinion } }
	else = { set_variable = { name = acm_m_prisoner_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_health } set_variable = { name = acm_m_health value = global_var:acm_s4_m_health } }
	else = { set_variable = { name = acm_m_health value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_negate_health_penalty_add } set_variable = { name = acm_m_negate_health_penalty_add value = global_var:acm_s4_m_negate_health_penalty_add } }
	else = { set_variable = { name = acm_m_negate_health_penalty_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_fertility } set_variable = { name = acm_m_fertility value = global_var:acm_s4_m_fertility } }
	else = { set_variable = { name = acm_m_fertility value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_life_expectancy } set_variable = { name = acm_m_life_expectancy value = global_var:acm_s4_m_life_expectancy } }
	else = { set_variable = { name = acm_m_life_expectancy value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_years_of_fertility } set_variable = { name = acm_m_years_of_fertility value = global_var:acm_s4_m_years_of_fertility } }
	else = { set_variable = { name = acm_m_years_of_fertility value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_stress_gain_mult } set_variable = { name = acm_m_stress_gain_mult value = global_var:acm_s4_m_stress_gain_mult } }
	else = { set_variable = { name = acm_m_stress_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_stress_loss_mult } set_variable = { name = acm_m_stress_loss_mult value = global_var:acm_s4_m_stress_loss_mult } }
	else = { set_variable = { name = acm_m_stress_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_epidemic_resistance } set_variable = { name = acm_m_epidemic_resistance value = global_var:acm_s4_m_epidemic_resistance } }
	else = { set_variable = { name = acm_m_epidemic_resistance value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_negate_prowess_penalty_add } set_variable = { name = acm_m_negate_prowess_penalty_add value = global_var:acm_s4_m_negate_prowess_penalty_add } }
	else = { set_variable = { name = acm_m_negate_prowess_penalty_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_positive_inactive_inheritance_chance } set_variable = { name = acm_m_positive_inactive_inheritance_chance value = global_var:acm_s4_m_positive_inactive_inheritance_chance } }
	else = { set_variable = { name = acm_m_positive_inactive_inheritance_chance value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_owned_hostile_scheme_success_chance_add } set_variable = { name = acm_m_owned_hostile_scheme_success_chance_add value = global_var:acm_s4_m_owned_hostile_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_owned_hostile_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_owned_personal_scheme_success_chance_add } set_variable = { name = acm_m_owned_personal_scheme_success_chance_add value = global_var:acm_s4_m_owned_personal_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_owned_personal_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_owned_scheme_secrecy_add } set_variable = { name = acm_m_owned_scheme_secrecy_add value = global_var:acm_s4_m_owned_scheme_secrecy_add } }
	else = { set_variable = { name = acm_m_owned_scheme_secrecy_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_enemy_hostile_scheme_success_chance_add } set_variable = { name = acm_m_enemy_hostile_scheme_success_chance_add value = global_var:acm_s4_m_enemy_hostile_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_enemy_hostile_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_enemy_personal_scheme_success_chance_add } set_variable = { name = acm_m_enemy_personal_scheme_success_chance_add value = global_var:acm_s4_m_enemy_personal_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_enemy_personal_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_hostile_scheme_phase_duration_add } set_variable = { name = acm_m_hostile_scheme_phase_duration_add value = global_var:acm_s4_m_hostile_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_hostile_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_personal_scheme_phase_duration_add } set_variable = { name = acm_m_personal_scheme_phase_duration_add value = global_var:acm_s4_m_personal_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_personal_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_enemy_hostile_scheme_phase_duration_add } set_variable = { name = acm_m_enemy_hostile_scheme_phase_duration_add value = global_var:acm_s4_m_enemy_hostile_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_enemy_hostile_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_max_hostile_schemes_add } set_variable = { name = acm_m_max_hostile_schemes_add value = global_var:acm_s4_m_max_hostile_schemes_add } }
	else = { set_variable = { name = acm_m_max_hostile_schemes_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_max_personal_schemes_add } set_variable = { name = acm_m_max_personal_schemes_add value = global_var:acm_s4_m_max_personal_schemes_add } }
	else = { set_variable = { name = acm_m_max_personal_schemes_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_seduce_scheme_phase_duration_add } set_variable = { name = acm_m_seduce_scheme_phase_duration_add value = global_var:acm_s4_m_seduce_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_seduce_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_courting_scheme_phase_duration_add } set_variable = { name = acm_m_courting_scheme_phase_duration_add value = global_var:acm_s4_m_courting_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_courting_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_befriend_scheme_phase_duration_add } set_variable = { name = acm_m_befriend_scheme_phase_duration_add value = global_var:acm_s4_m_befriend_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_befriend_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_learn_language_scheme_phase_duration_add } set_variable = { name = acm_m_learn_language_scheme_phase_duration_add value = global_var:acm_s4_m_learn_language_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_learn_language_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_knight_effectiveness_mult } set_variable = { name = acm_m_knight_effectiveness_mult value = global_var:acm_s4_m_knight_effectiveness_mult } }
	else = { set_variable = { name = acm_m_knight_effectiveness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_army_damage_mult } set_variable = { name = acm_m_army_damage_mult value = global_var:acm_s4_m_army_damage_mult } }
	else = { set_variable = { name = acm_m_army_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_army_toughness_mult } set_variable = { name = acm_m_army_toughness_mult value = global_var:acm_s4_m_army_toughness_mult } }
	else = { set_variable = { name = acm_m_army_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_army_pursuit_mult } set_variable = { name = acm_m_army_pursuit_mult value = global_var:acm_s4_m_army_pursuit_mult } }
	else = { set_variable = { name = acm_m_army_pursuit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_army_screen_mult } set_variable = { name = acm_m_army_screen_mult value = global_var:acm_s4_m_army_screen_mult } }
	else = { set_variable = { name = acm_m_army_screen_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_army_maintenance_mult } set_variable = { name = acm_m_army_maintenance_mult value = global_var:acm_s4_m_army_maintenance_mult } }
	else = { set_variable = { name = acm_m_army_maintenance_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_men_at_arms_maintenance } set_variable = { name = acm_m_men_at_arms_maintenance value = global_var:acm_s4_m_men_at_arms_maintenance } }
	else = { set_variable = { name = acm_m_men_at_arms_maintenance value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_mercenary_hire_cost_mult } set_variable = { name = acm_m_mercenary_hire_cost_mult value = global_var:acm_s4_m_mercenary_hire_cost_mult } }
	else = { set_variable = { name = acm_m_mercenary_hire_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_enemy_hard_casualty_modifier } set_variable = { name = acm_m_enemy_hard_casualty_modifier value = global_var:acm_s4_m_enemy_hard_casualty_modifier } }
	else = { set_variable = { name = acm_m_enemy_hard_casualty_modifier value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_hard_casualty_modifier } set_variable = { name = acm_m_hard_casualty_modifier value = global_var:acm_s4_m_hard_casualty_modifier } }
	else = { set_variable = { name = acm_m_hard_casualty_modifier value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_retreat_losses } set_variable = { name = acm_m_retreat_losses value = global_var:acm_s4_m_retreat_losses } }
	else = { set_variable = { name = acm_m_retreat_losses value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_supply_limit_mult } set_variable = { name = acm_m_supply_limit_mult value = global_var:acm_s4_m_supply_limit_mult } }
	else = { set_variable = { name = acm_m_supply_limit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_movement_speed } set_variable = { name = acm_m_movement_speed value = global_var:acm_s4_m_movement_speed } }
	else = { set_variable = { name = acm_m_movement_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_naval_movement_speed_mult } set_variable = { name = acm_m_naval_movement_speed_mult value = global_var:acm_s4_m_naval_movement_speed_mult } }
	else = { set_variable = { name = acm_m_naval_movement_speed_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_embarkation_cost_mult } set_variable = { name = acm_m_embarkation_cost_mult value = global_var:acm_s4_m_embarkation_cost_mult } }
	else = { set_variable = { name = acm_m_embarkation_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_raid_speed } set_variable = { name = acm_m_raid_speed value = global_var:acm_s4_m_raid_speed } }
	else = { set_variable = { name = acm_m_raid_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_controlled_province_advantage } set_variable = { name = acm_m_controlled_province_advantage value = global_var:acm_s4_m_controlled_province_advantage } }
	else = { set_variable = { name = acm_m_controlled_province_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_defender_advantage } set_variable = { name = acm_m_defender_advantage value = global_var:acm_s4_m_defender_advantage } }
	else = { set_variable = { name = acm_m_defender_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_tolerance_advantage_mod } set_variable = { name = acm_m_tolerance_advantage_mod value = global_var:acm_s4_m_tolerance_advantage_mod } }
	else = { set_variable = { name = acm_m_tolerance_advantage_mod value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_led_by_owner_extra_advantage_add } set_variable = { name = acm_m_led_by_owner_extra_advantage_add value = global_var:acm_s4_m_led_by_owner_extra_advantage_add } }
	else = { set_variable = { name = acm_m_led_by_owner_extra_advantage_add value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_pursue_efficiency } set_variable = { name = acm_m_pursue_efficiency value = global_var:acm_s4_m_pursue_efficiency } }
	else = { set_variable = { name = acm_m_pursue_efficiency value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_levy_reinforcement_rate_same_faith } set_variable = { name = acm_m_levy_reinforcement_rate_same_faith value = global_var:acm_s4_m_levy_reinforcement_rate_same_faith } }
	else = { set_variable = { name = acm_m_levy_reinforcement_rate_same_faith value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_heavy_infantry_damage_mult } set_variable = { name = acm_m_heavy_infantry_damage_mult value = global_var:acm_s4_m_heavy_infantry_damage_mult } }
	else = { set_variable = { name = acm_m_heavy_infantry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_heavy_infantry_toughness_mult } set_variable = { name = acm_m_heavy_infantry_toughness_mult value = global_var:acm_s4_m_heavy_infantry_toughness_mult } }
	else = { set_variable = { name = acm_m_heavy_infantry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_heavy_cavalry_damage_mult } set_variable = { name = acm_m_heavy_cavalry_damage_mult value = global_var:acm_s4_m_heavy_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_heavy_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_heavy_cavalry_toughness_mult } set_variable = { name = acm_m_heavy_cavalry_toughness_mult value = global_var:acm_s4_m_heavy_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_heavy_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_light_cavalry_damage_mult } set_variable = { name = acm_m_light_cavalry_damage_mult value = global_var:acm_s4_m_light_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_light_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_light_cavalry_toughness_mult } set_variable = { name = acm_m_light_cavalry_toughness_mult value = global_var:acm_s4_m_light_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_light_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_archers_damage_mult } set_variable = { name = acm_m_archers_damage_mult value = global_var:acm_s4_m_archers_damage_mult } }
	else = { set_variable = { name = acm_m_archers_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_archers_toughness_mult } set_variable = { name = acm_m_archers_toughness_mult value = global_var:acm_s4_m_archers_toughness_mult } }
	else = { set_variable = { name = acm_m_archers_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_pikemen_damage_mult } set_variable = { name = acm_m_pikemen_damage_mult value = global_var:acm_s4_m_pikemen_damage_mult } }
	else = { set_variable = { name = acm_m_pikemen_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_pikemen_toughness_mult } set_variable = { name = acm_m_pikemen_toughness_mult value = global_var:acm_s4_m_pikemen_toughness_mult } }
	else = { set_variable = { name = acm_m_pikemen_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_skirmishers_damage_mult } set_variable = { name = acm_m_skirmishers_damage_mult value = global_var:acm_s4_m_skirmishers_damage_mult } }
	else = { set_variable = { name = acm_m_skirmishers_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_skirmishers_toughness_mult } set_variable = { name = acm_m_skirmishers_toughness_mult value = global_var:acm_s4_m_skirmishers_toughness_mult } }
	else = { set_variable = { name = acm_m_skirmishers_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_archer_cavalry_damage_mult } set_variable = { name = acm_m_archer_cavalry_damage_mult value = global_var:acm_s4_m_archer_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_archer_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_archer_cavalry_toughness_mult } set_variable = { name = acm_m_archer_cavalry_toughness_mult value = global_var:acm_s4_m_archer_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_archer_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_camel_cavalry_damage_mult } set_variable = { name = acm_m_camel_cavalry_damage_mult value = global_var:acm_s4_m_camel_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_camel_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_elephant_cavalry_damage_mult } set_variable = { name = acm_m_elephant_cavalry_damage_mult value = global_var:acm_s4_m_elephant_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_elephant_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_siege_weapon_siege_value_mult } set_variable = { name = acm_m_siege_weapon_siege_value_mult value = global_var:acm_s4_m_siege_weapon_siege_value_mult } }
	else = { set_variable = { name = acm_m_siege_weapon_siege_value_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_plains_advantage } set_variable = { name = acm_m_plains_advantage value = global_var:acm_s4_m_plains_advantage } }
	else = { set_variable = { name = acm_m_plains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_farmlands_advantage } set_variable = { name = acm_m_farmlands_advantage value = global_var:acm_s4_m_farmlands_advantage } }
	else = { set_variable = { name = acm_m_farmlands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_hills_advantage } set_variable = { name = acm_m_hills_advantage value = global_var:acm_s4_m_hills_advantage } }
	else = { set_variable = { name = acm_m_hills_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_mountains_advantage } set_variable = { name = acm_m_mountains_advantage value = global_var:acm_s4_m_mountains_advantage } }
	else = { set_variable = { name = acm_m_mountains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_desert_advantage } set_variable = { name = acm_m_desert_advantage value = global_var:acm_s4_m_desert_advantage } }
	else = { set_variable = { name = acm_m_desert_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_desert_mountains_advantage } set_variable = { name = acm_m_desert_mountains_advantage value = global_var:acm_s4_m_desert_mountains_advantage } }
	else = { set_variable = { name = acm_m_desert_mountains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_oasis_advantage } set_variable = { name = acm_m_oasis_advantage value = global_var:acm_s4_m_oasis_advantage } }
	else = { set_variable = { name = acm_m_oasis_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_jungle_advantage } set_variable = { name = acm_m_jungle_advantage value = global_var:acm_s4_m_jungle_advantage } }
	else = { set_variable = { name = acm_m_jungle_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_forest_advantage } set_variable = { name = acm_m_forest_advantage value = global_var:acm_s4_m_forest_advantage } }
	else = { set_variable = { name = acm_m_forest_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_taiga_advantage } set_variable = { name = acm_m_taiga_advantage value = global_var:acm_s4_m_taiga_advantage } }
	else = { set_variable = { name = acm_m_taiga_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_wetlands_advantage } set_variable = { name = acm_m_wetlands_advantage value = global_var:acm_s4_m_wetlands_advantage } }
	else = { set_variable = { name = acm_m_wetlands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_steppe_advantage } set_variable = { name = acm_m_steppe_advantage value = global_var:acm_s4_m_steppe_advantage } }
	else = { set_variable = { name = acm_m_steppe_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_floodplains_advantage } set_variable = { name = acm_m_floodplains_advantage value = global_var:acm_s4_m_floodplains_advantage } }
	else = { set_variable = { name = acm_m_floodplains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_drylands_advantage } set_variable = { name = acm_m_drylands_advantage value = global_var:acm_s4_m_drylands_advantage } }
	else = { set_variable = { name = acm_m_drylands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_winter_advantage } set_variable = { name = acm_m_winter_advantage value = global_var:acm_s4_m_winter_advantage } }
	else = { set_variable = { name = acm_m_winter_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_coastal_advantage } set_variable = { name = acm_m_coastal_advantage value = global_var:acm_s4_m_coastal_advantage } }
	else = { set_variable = { name = acm_m_coastal_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_character_travel_speed } set_variable = { name = acm_m_character_travel_speed value = global_var:acm_s4_m_character_travel_speed } }
	else = { set_variable = { name = acm_m_character_travel_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_character_travel_safety } set_variable = { name = acm_m_character_travel_safety value = global_var:acm_s4_m_character_travel_safety } }
	else = { set_variable = { name = acm_m_character_travel_safety value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_character_travel_speed_mult } set_variable = { name = acm_m_character_travel_speed_mult value = global_var:acm_s4_m_character_travel_speed_mult } }
	else = { set_variable = { name = acm_m_character_travel_speed_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_character_travel_safety_mult } set_variable = { name = acm_m_character_travel_safety_mult value = global_var:acm_s4_m_character_travel_safety_mult } }
	else = { set_variable = { name = acm_m_character_travel_safety_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s4_m_winter_movement_speed } set_variable = { name = acm_m_winter_movement_speed value = global_var:acm_s4_m_winter_movement_speed } }
	else = { set_variable = { name = acm_m_winter_movement_speed value = 0 } }
	acm_init_settings_effect = yes
}

acm_slot_clear_4_effect = {
	remove_global_variable = acm_s4_saved
	remove_global_variable = acm_s4_type
	remove_global_variable = acm_s4_icon
	remove_global_variable = acm_s4_asset
	remove_global_variable = acm_s4_support
	remove_global_variable = acm_s4_rarity
	remove_global_variable = acm_s4_history
	remove_global_variable = acm_s4_name
	remove_global_variable = acm_s4_desc
	remove_global_variable = acm_s4_benefit
	remove_global_variable = acm_s4_equip
	remove_global_variable = acm_s4_relic
	remove_global_variable = acm_s4_msg
	remove_global_variable = acm_s4_vset
	remove_global_variable = acm_s4_preset
	remove_global_variable = acm_s4_quality
	remove_global_variable = acm_s4_wealth
	remove_global_variable = acm_s4_durability
	remove_global_variable = acm_s4_auto_look
	remove_global_variable = acm_s4_unique
	remove_global_variable = acm_s4_no_decay
	remove_global_variable = acm_s4_no_reforge
	remove_global_variable = acm_s4_no_repair
	remove_global_variable = acm_s4_auto_equip
	remove_global_variable = acm_s4_features
	remove_global_variable = acm_s4_creator_is_owner
	remove_global_variable = acm_s4_maker
	remove_global_variable = acm_s4_history_actor
	remove_global_variable = acm_s4_m_diplomacy
	remove_global_variable = acm_s4_m_martial
	remove_global_variable = acm_s4_m_stewardship
	remove_global_variable = acm_s4_m_intrigue
	remove_global_variable = acm_s4_m_learning
	remove_global_variable = acm_s4_m_prowess_no_portrait
	remove_global_variable = acm_s4_m_diplomacy_mult
	remove_global_variable = acm_s4_m_martial_mult
	remove_global_variable = acm_s4_m_stewardship_mult
	remove_global_variable = acm_s4_m_intrigue_mult
	remove_global_variable = acm_s4_m_learning_mult
	remove_global_variable = acm_s4_m_prowess_mult
	remove_global_variable = acm_s4_m_monthly_lifestyle_xp_gain_mult
	remove_global_variable = acm_s4_m_monthly_diplomacy_lifestyle_xp_gain_mult
	remove_global_variable = acm_s4_m_monthly_martial_lifestyle_xp_gain_mult
	remove_global_variable = acm_s4_m_monthly_stewardship_lifestyle_xp_gain_mult
	remove_global_variable = acm_s4_m_monthly_intrigue_lifestyle_xp_gain_mult
	remove_global_variable = acm_s4_m_monthly_learning_lifestyle_xp_gain_mult
	remove_global_variable = acm_s4_m_monthly_prestige
	remove_global_variable = acm_s4_m_monthly_piety
	remove_global_variable = acm_s4_m_monthly_income
	remove_global_variable = acm_s4_m_monthly_dynasty_prestige
	remove_global_variable = acm_s4_m_monthly_influence
	remove_global_variable = acm_s4_m_monthly_prestige_gain_mult
	remove_global_variable = acm_s4_m_monthly_piety_gain_mult
	remove_global_variable = acm_s4_m_monthly_income_mult
	remove_global_variable = acm_s4_m_monthly_dynasty_prestige_mult
	remove_global_variable = acm_s4_m_monthly_influence_mult
	remove_global_variable = acm_s4_m_monthly_merit_mult
	remove_global_variable = acm_s4_m_domain_tax_mult
	remove_global_variable = acm_s4_m_vassal_tax_contribution_mult
	remove_global_variable = acm_s4_m_monthly_war_income_add
	remove_global_variable = acm_s4_m_herd_gain_mult
	remove_global_variable = acm_s4_m_court_grandeur_baseline_add
	remove_global_variable = acm_s4_m_domain_limit
	remove_global_variable = acm_s4_m_vassal_limit
	remove_global_variable = acm_s4_m_knight_limit
	remove_global_variable = acm_s4_m_men_at_arms_limit
	remove_global_variable = acm_s4_m_men_at_arms_cap
	remove_global_variable = acm_s4_m_legitimacy_gain_mult
	remove_global_variable = acm_s4_m_legitimacy_loss_mult
	remove_global_variable = acm_s4_m_short_reign_duration_mult
	remove_global_variable = acm_s4_m_dread_baseline_add
	remove_global_variable = acm_s4_m_dread_gain_mult
	remove_global_variable = acm_s4_m_dread_decay_mult
	remove_global_variable = acm_s4_m_tyranny_gain_mult
	remove_global_variable = acm_s4_m_tyranny_loss_mult
	remove_global_variable = acm_s4_m_title_creation_cost_mult
	remove_global_variable = acm_s4_m_build_gold_cost
	remove_global_variable = acm_s4_m_build_speed
	remove_global_variable = acm_s4_m_development_growth
	remove_global_variable = acm_s4_m_development_growth_factor
	remove_global_variable = acm_s4_m_monthly_county_control_growth_add
	remove_global_variable = acm_s4_m_levy_size
	remove_global_variable = acm_s4_m_levy_reinforcement_rate
	remove_global_variable = acm_s4_m_garrison_size
	remove_global_variable = acm_s4_m_fort_level
	remove_global_variable = acm_s4_m_cultural_head_fascination_mult
	remove_global_variable = acm_s4_m_owned_legend_spread_mult
	remove_global_variable = acm_s4_m_general_opinion
	remove_global_variable = acm_s4_m_vassal_opinion
	remove_global_variable = acm_s4_m_direct_vassal_opinion
	remove_global_variable = acm_s4_m_powerful_vassal_opinion
	remove_global_variable = acm_s4_m_clergy_opinion
	remove_global_variable = acm_s4_m_courtly_opinion
	remove_global_variable = acm_s4_m_zealot_opinion
	remove_global_variable = acm_s4_m_glory_hound_opinion
	remove_global_variable = acm_s4_m_parochial_opinion
	remove_global_variable = acm_s4_m_belligerent_opinion
	remove_global_variable = acm_s4_m_dynasty_opinion
	remove_global_variable = acm_s4_m_spouse_opinion
	remove_global_variable = acm_s4_m_child_opinion
	remove_global_variable = acm_s4_m_attraction_opinion
	remove_global_variable = acm_s4_m_courtier_and_guest_opinion
	remove_global_variable = acm_s4_m_same_faith_opinion
	remove_global_variable = acm_s4_m_different_faith_opinion
	remove_global_variable = acm_s4_m_same_culture_opinion
	remove_global_variable = acm_s4_m_different_culture_opinion
	remove_global_variable = acm_s4_m_independent_ruler_opinion
	remove_global_variable = acm_s4_m_religious_head_opinion
	remove_global_variable = acm_s4_m_county_opinion_add
	remove_global_variable = acm_s4_m_prisoner_opinion
	remove_global_variable = acm_s4_m_health
	remove_global_variable = acm_s4_m_negate_health_penalty_add
	remove_global_variable = acm_s4_m_fertility
	remove_global_variable = acm_s4_m_life_expectancy
	remove_global_variable = acm_s4_m_years_of_fertility
	remove_global_variable = acm_s4_m_stress_gain_mult
	remove_global_variable = acm_s4_m_stress_loss_mult
	remove_global_variable = acm_s4_m_epidemic_resistance
	remove_global_variable = acm_s4_m_negate_prowess_penalty_add
	remove_global_variable = acm_s4_m_positive_inactive_inheritance_chance
	remove_global_variable = acm_s4_m_owned_hostile_scheme_success_chance_add
	remove_global_variable = acm_s4_m_owned_personal_scheme_success_chance_add
	remove_global_variable = acm_s4_m_owned_scheme_secrecy_add
	remove_global_variable = acm_s4_m_enemy_hostile_scheme_success_chance_add
	remove_global_variable = acm_s4_m_enemy_personal_scheme_success_chance_add
	remove_global_variable = acm_s4_m_hostile_scheme_phase_duration_add
	remove_global_variable = acm_s4_m_personal_scheme_phase_duration_add
	remove_global_variable = acm_s4_m_enemy_hostile_scheme_phase_duration_add
	remove_global_variable = acm_s4_m_max_hostile_schemes_add
	remove_global_variable = acm_s4_m_max_personal_schemes_add
	remove_global_variable = acm_s4_m_seduce_scheme_phase_duration_add
	remove_global_variable = acm_s4_m_courting_scheme_phase_duration_add
	remove_global_variable = acm_s4_m_befriend_scheme_phase_duration_add
	remove_global_variable = acm_s4_m_learn_language_scheme_phase_duration_add
	remove_global_variable = acm_s4_m_knight_effectiveness_mult
	remove_global_variable = acm_s4_m_army_damage_mult
	remove_global_variable = acm_s4_m_army_toughness_mult
	remove_global_variable = acm_s4_m_army_pursuit_mult
	remove_global_variable = acm_s4_m_army_screen_mult
	remove_global_variable = acm_s4_m_army_maintenance_mult
	remove_global_variable = acm_s4_m_men_at_arms_maintenance
	remove_global_variable = acm_s4_m_mercenary_hire_cost_mult
	remove_global_variable = acm_s4_m_enemy_hard_casualty_modifier
	remove_global_variable = acm_s4_m_hard_casualty_modifier
	remove_global_variable = acm_s4_m_retreat_losses
	remove_global_variable = acm_s4_m_supply_limit_mult
	remove_global_variable = acm_s4_m_movement_speed
	remove_global_variable = acm_s4_m_naval_movement_speed_mult
	remove_global_variable = acm_s4_m_embarkation_cost_mult
	remove_global_variable = acm_s4_m_raid_speed
	remove_global_variable = acm_s4_m_controlled_province_advantage
	remove_global_variable = acm_s4_m_defender_advantage
	remove_global_variable = acm_s4_m_tolerance_advantage_mod
	remove_global_variable = acm_s4_m_led_by_owner_extra_advantage_add
	remove_global_variable = acm_s4_m_pursue_efficiency
	remove_global_variable = acm_s4_m_levy_reinforcement_rate_same_faith
	remove_global_variable = acm_s4_m_heavy_infantry_damage_mult
	remove_global_variable = acm_s4_m_heavy_infantry_toughness_mult
	remove_global_variable = acm_s4_m_heavy_cavalry_damage_mult
	remove_global_variable = acm_s4_m_heavy_cavalry_toughness_mult
	remove_global_variable = acm_s4_m_light_cavalry_damage_mult
	remove_global_variable = acm_s4_m_light_cavalry_toughness_mult
	remove_global_variable = acm_s4_m_archers_damage_mult
	remove_global_variable = acm_s4_m_archers_toughness_mult
	remove_global_variable = acm_s4_m_pikemen_damage_mult
	remove_global_variable = acm_s4_m_pikemen_toughness_mult
	remove_global_variable = acm_s4_m_skirmishers_damage_mult
	remove_global_variable = acm_s4_m_skirmishers_toughness_mult
	remove_global_variable = acm_s4_m_archer_cavalry_damage_mult
	remove_global_variable = acm_s4_m_archer_cavalry_toughness_mult
	remove_global_variable = acm_s4_m_camel_cavalry_damage_mult
	remove_global_variable = acm_s4_m_elephant_cavalry_damage_mult
	remove_global_variable = acm_s4_m_siege_weapon_siege_value_mult
	remove_global_variable = acm_s4_m_plains_advantage
	remove_global_variable = acm_s4_m_farmlands_advantage
	remove_global_variable = acm_s4_m_hills_advantage
	remove_global_variable = acm_s4_m_mountains_advantage
	remove_global_variable = acm_s4_m_desert_advantage
	remove_global_variable = acm_s4_m_desert_mountains_advantage
	remove_global_variable = acm_s4_m_oasis_advantage
	remove_global_variable = acm_s4_m_jungle_advantage
	remove_global_variable = acm_s4_m_forest_advantage
	remove_global_variable = acm_s4_m_taiga_advantage
	remove_global_variable = acm_s4_m_wetlands_advantage
	remove_global_variable = acm_s4_m_steppe_advantage
	remove_global_variable = acm_s4_m_floodplains_advantage
	remove_global_variable = acm_s4_m_drylands_advantage
	remove_global_variable = acm_s4_m_winter_advantage
	remove_global_variable = acm_s4_m_coastal_advantage
	remove_global_variable = acm_s4_m_character_travel_speed
	remove_global_variable = acm_s4_m_character_travel_safety
	remove_global_variable = acm_s4_m_character_travel_speed_mult
	remove_global_variable = acm_s4_m_character_travel_safety_mult
	remove_global_variable = acm_s4_m_winter_movement_speed
}

acm_slot_save_5_effect = {
	set_global_variable = { name = acm_s5_saved value = yes }
	if = { limit = { has_variable = acm_type } set_global_variable = { name = acm_s5_type value = var:acm_type } }
	else = { remove_global_variable = acm_s5_type }
	if = { limit = { has_variable = acm_icon } set_global_variable = { name = acm_s5_icon value = var:acm_icon } }
	else = { remove_global_variable = acm_s5_icon }
	if = { limit = { has_variable = acm_asset } set_global_variable = { name = acm_s5_asset value = var:acm_asset } }
	else = { remove_global_variable = acm_s5_asset }
	if = { limit = { has_variable = acm_support } set_global_variable = { name = acm_s5_support value = var:acm_support } }
	else = { remove_global_variable = acm_s5_support }
	if = { limit = { has_variable = acm_rarity } set_global_variable = { name = acm_s5_rarity value = var:acm_rarity } }
	else = { remove_global_variable = acm_s5_rarity }
	if = { limit = { has_variable = acm_history } set_global_variable = { name = acm_s5_history value = var:acm_history } }
	else = { remove_global_variable = acm_s5_history }
	if = { limit = { has_variable = acm_name } set_global_variable = { name = acm_s5_name value = var:acm_name } }
	else = { remove_global_variable = acm_s5_name }
	if = { limit = { has_variable = acm_desc } set_global_variable = { name = acm_s5_desc value = var:acm_desc } }
	else = { remove_global_variable = acm_s5_desc }
	if = { limit = { has_variable = acm_benefit } set_global_variable = { name = acm_s5_benefit value = var:acm_benefit } }
	else = { remove_global_variable = acm_s5_benefit }
	if = { limit = { has_variable = acm_equip } set_global_variable = { name = acm_s5_equip value = var:acm_equip } }
	else = { remove_global_variable = acm_s5_equip }
	if = { limit = { has_variable = acm_relic } set_global_variable = { name = acm_s5_relic value = var:acm_relic } }
	else = { remove_global_variable = acm_s5_relic }
	if = { limit = { has_variable = acm_msg } set_global_variable = { name = acm_s5_msg value = var:acm_msg } }
	else = { remove_global_variable = acm_s5_msg }
	if = { limit = { has_variable = acm_vset } set_global_variable = { name = acm_s5_vset value = var:acm_vset } }
	else = { remove_global_variable = acm_s5_vset }
	if = { limit = { has_variable = acm_preset } set_global_variable = { name = acm_s5_preset value = var:acm_preset } }
	else = { remove_global_variable = acm_s5_preset }
	if = { limit = { has_variable = acm_quality } set_global_variable = { name = acm_s5_quality value = var:acm_quality } }
	else = { remove_global_variable = acm_s5_quality }
	if = { limit = { has_variable = acm_wealth } set_global_variable = { name = acm_s5_wealth value = var:acm_wealth } }
	else = { remove_global_variable = acm_s5_wealth }
	if = { limit = { has_variable = acm_durability } set_global_variable = { name = acm_s5_durability value = var:acm_durability } }
	else = { remove_global_variable = acm_s5_durability }
	if = { limit = { has_variable = acm_auto_look } set_global_variable = { name = acm_s5_auto_look value = yes } }
	else = { remove_global_variable = acm_s5_auto_look }
	if = { limit = { has_variable = acm_unique } set_global_variable = { name = acm_s5_unique value = yes } }
	else = { remove_global_variable = acm_s5_unique }
	if = { limit = { has_variable = acm_no_decay } set_global_variable = { name = acm_s5_no_decay value = yes } }
	else = { remove_global_variable = acm_s5_no_decay }
	if = { limit = { has_variable = acm_no_reforge } set_global_variable = { name = acm_s5_no_reforge value = yes } }
	else = { remove_global_variable = acm_s5_no_reforge }
	if = { limit = { has_variable = acm_no_repair } set_global_variable = { name = acm_s5_no_repair value = yes } }
	else = { remove_global_variable = acm_s5_no_repair }
	if = { limit = { has_variable = acm_auto_equip } set_global_variable = { name = acm_s5_auto_equip value = yes } }
	else = { remove_global_variable = acm_s5_auto_equip }
	if = { limit = { has_variable = acm_features } set_global_variable = { name = acm_s5_features value = yes } }
	else = { remove_global_variable = acm_s5_features }
	if = { limit = { has_variable = acm_creator_is_owner } set_global_variable = { name = acm_s5_creator_is_owner value = yes } }
	else = { remove_global_variable = acm_s5_creator_is_owner }
	if = { limit = { has_variable = acm_maker } set_global_variable = { name = acm_s5_maker value = var:acm_maker } }
	else = { remove_global_variable = acm_s5_maker }
	if = { limit = { has_variable = acm_history_actor } set_global_variable = { name = acm_s5_history_actor value = var:acm_history_actor } }
	else = { remove_global_variable = acm_s5_history_actor }
	if = { limit = { NOT = { var:acm_m_diplomacy ?= 0 } } set_global_variable = { name = acm_s5_m_diplomacy value = var:acm_m_diplomacy } }
	else = { remove_global_variable = acm_s5_m_diplomacy }
	if = { limit = { NOT = { var:acm_m_martial ?= 0 } } set_global_variable = { name = acm_s5_m_martial value = var:acm_m_martial } }
	else = { remove_global_variable = acm_s5_m_martial }
	if = { limit = { NOT = { var:acm_m_stewardship ?= 0 } } set_global_variable = { name = acm_s5_m_stewardship value = var:acm_m_stewardship } }
	else = { remove_global_variable = acm_s5_m_stewardship }
	if = { limit = { NOT = { var:acm_m_intrigue ?= 0 } } set_global_variable = { name = acm_s5_m_intrigue value = var:acm_m_intrigue } }
	else = { remove_global_variable = acm_s5_m_intrigue }
	if = { limit = { NOT = { var:acm_m_learning ?= 0 } } set_global_variable = { name = acm_s5_m_learning value = var:acm_m_learning } }
	else = { remove_global_variable = acm_s5_m_learning }
	if = { limit = { NOT = { var:acm_m_prowess_no_portrait ?= 0 } } set_global_variable = { name = acm_s5_m_prowess_no_portrait value = var:acm_m_prowess_no_portrait } }
	else = { remove_global_variable = acm_s5_m_prowess_no_portrait }
	if = { limit = { NOT = { var:acm_m_diplomacy_mult ?= 0 } } set_global_variable = { name = acm_s5_m_diplomacy_mult value = var:acm_m_diplomacy_mult } }
	else = { remove_global_variable = acm_s5_m_diplomacy_mult }
	if = { limit = { NOT = { var:acm_m_martial_mult ?= 0 } } set_global_variable = { name = acm_s5_m_martial_mult value = var:acm_m_martial_mult } }
	else = { remove_global_variable = acm_s5_m_martial_mult }
	if = { limit = { NOT = { var:acm_m_stewardship_mult ?= 0 } } set_global_variable = { name = acm_s5_m_stewardship_mult value = var:acm_m_stewardship_mult } }
	else = { remove_global_variable = acm_s5_m_stewardship_mult }
	if = { limit = { NOT = { var:acm_m_intrigue_mult ?= 0 } } set_global_variable = { name = acm_s5_m_intrigue_mult value = var:acm_m_intrigue_mult } }
	else = { remove_global_variable = acm_s5_m_intrigue_mult }
	if = { limit = { NOT = { var:acm_m_learning_mult ?= 0 } } set_global_variable = { name = acm_s5_m_learning_mult value = var:acm_m_learning_mult } }
	else = { remove_global_variable = acm_s5_m_learning_mult }
	if = { limit = { NOT = { var:acm_m_prowess_mult ?= 0 } } set_global_variable = { name = acm_s5_m_prowess_mult value = var:acm_m_prowess_mult } }
	else = { remove_global_variable = acm_s5_m_prowess_mult }
	if = { limit = { NOT = { var:acm_m_monthly_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_lifestyle_xp_gain_mult value = var:acm_m_monthly_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_diplomacy_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_diplomacy_lifestyle_xp_gain_mult value = var:acm_m_monthly_diplomacy_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_diplomacy_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_martial_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_martial_lifestyle_xp_gain_mult value = var:acm_m_monthly_martial_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_martial_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_stewardship_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_stewardship_lifestyle_xp_gain_mult value = var:acm_m_monthly_stewardship_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_stewardship_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_intrigue_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_intrigue_lifestyle_xp_gain_mult value = var:acm_m_monthly_intrigue_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_intrigue_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_learning_lifestyle_xp_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_learning_lifestyle_xp_gain_mult value = var:acm_m_monthly_learning_lifestyle_xp_gain_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_learning_lifestyle_xp_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_prestige ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_prestige value = var:acm_m_monthly_prestige } }
	else = { remove_global_variable = acm_s5_m_monthly_prestige }
	if = { limit = { NOT = { var:acm_m_monthly_piety ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_piety value = var:acm_m_monthly_piety } }
	else = { remove_global_variable = acm_s5_m_monthly_piety }
	if = { limit = { NOT = { var:acm_m_monthly_income ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_income value = var:acm_m_monthly_income } }
	else = { remove_global_variable = acm_s5_m_monthly_income }
	if = { limit = { NOT = { var:acm_m_monthly_dynasty_prestige ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_dynasty_prestige value = var:acm_m_monthly_dynasty_prestige } }
	else = { remove_global_variable = acm_s5_m_monthly_dynasty_prestige }
	if = { limit = { NOT = { var:acm_m_monthly_influence ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_influence value = var:acm_m_monthly_influence } }
	else = { remove_global_variable = acm_s5_m_monthly_influence }
	if = { limit = { NOT = { var:acm_m_monthly_prestige_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_prestige_gain_mult value = var:acm_m_monthly_prestige_gain_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_prestige_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_piety_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_piety_gain_mult value = var:acm_m_monthly_piety_gain_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_piety_gain_mult }
	if = { limit = { NOT = { var:acm_m_monthly_income_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_income_mult value = var:acm_m_monthly_income_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_income_mult }
	if = { limit = { NOT = { var:acm_m_monthly_dynasty_prestige_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_dynasty_prestige_mult value = var:acm_m_monthly_dynasty_prestige_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_dynasty_prestige_mult }
	if = { limit = { NOT = { var:acm_m_monthly_influence_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_influence_mult value = var:acm_m_monthly_influence_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_influence_mult }
	if = { limit = { NOT = { var:acm_m_monthly_merit_mult ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_merit_mult value = var:acm_m_monthly_merit_mult } }
	else = { remove_global_variable = acm_s5_m_monthly_merit_mult }
	if = { limit = { NOT = { var:acm_m_domain_tax_mult ?= 0 } } set_global_variable = { name = acm_s5_m_domain_tax_mult value = var:acm_m_domain_tax_mult } }
	else = { remove_global_variable = acm_s5_m_domain_tax_mult }
	if = { limit = { NOT = { var:acm_m_vassal_tax_contribution_mult ?= 0 } } set_global_variable = { name = acm_s5_m_vassal_tax_contribution_mult value = var:acm_m_vassal_tax_contribution_mult } }
	else = { remove_global_variable = acm_s5_m_vassal_tax_contribution_mult }
	if = { limit = { NOT = { var:acm_m_monthly_war_income_add ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_war_income_add value = var:acm_m_monthly_war_income_add } }
	else = { remove_global_variable = acm_s5_m_monthly_war_income_add }
	if = { limit = { NOT = { var:acm_m_herd_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_herd_gain_mult value = var:acm_m_herd_gain_mult } }
	else = { remove_global_variable = acm_s5_m_herd_gain_mult }
	if = { limit = { NOT = { var:acm_m_court_grandeur_baseline_add ?= 0 } } set_global_variable = { name = acm_s5_m_court_grandeur_baseline_add value = var:acm_m_court_grandeur_baseline_add } }
	else = { remove_global_variable = acm_s5_m_court_grandeur_baseline_add }
	if = { limit = { NOT = { var:acm_m_domain_limit ?= 0 } } set_global_variable = { name = acm_s5_m_domain_limit value = var:acm_m_domain_limit } }
	else = { remove_global_variable = acm_s5_m_domain_limit }
	if = { limit = { NOT = { var:acm_m_vassal_limit ?= 0 } } set_global_variable = { name = acm_s5_m_vassal_limit value = var:acm_m_vassal_limit } }
	else = { remove_global_variable = acm_s5_m_vassal_limit }
	if = { limit = { NOT = { var:acm_m_knight_limit ?= 0 } } set_global_variable = { name = acm_s5_m_knight_limit value = var:acm_m_knight_limit } }
	else = { remove_global_variable = acm_s5_m_knight_limit }
	if = { limit = { NOT = { var:acm_m_men_at_arms_limit ?= 0 } } set_global_variable = { name = acm_s5_m_men_at_arms_limit value = var:acm_m_men_at_arms_limit } }
	else = { remove_global_variable = acm_s5_m_men_at_arms_limit }
	if = { limit = { NOT = { var:acm_m_men_at_arms_cap ?= 0 } } set_global_variable = { name = acm_s5_m_men_at_arms_cap value = var:acm_m_men_at_arms_cap } }
	else = { remove_global_variable = acm_s5_m_men_at_arms_cap }
	if = { limit = { NOT = { var:acm_m_legitimacy_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_legitimacy_gain_mult value = var:acm_m_legitimacy_gain_mult } }
	else = { remove_global_variable = acm_s5_m_legitimacy_gain_mult }
	if = { limit = { NOT = { var:acm_m_legitimacy_loss_mult ?= 0 } } set_global_variable = { name = acm_s5_m_legitimacy_loss_mult value = var:acm_m_legitimacy_loss_mult } }
	else = { remove_global_variable = acm_s5_m_legitimacy_loss_mult }
	if = { limit = { NOT = { var:acm_m_short_reign_duration_mult ?= 0 } } set_global_variable = { name = acm_s5_m_short_reign_duration_mult value = var:acm_m_short_reign_duration_mult } }
	else = { remove_global_variable = acm_s5_m_short_reign_duration_mult }
	if = { limit = { NOT = { var:acm_m_dread_baseline_add ?= 0 } } set_global_variable = { name = acm_s5_m_dread_baseline_add value = var:acm_m_dread_baseline_add } }
	else = { remove_global_variable = acm_s5_m_dread_baseline_add }
	if = { limit = { NOT = { var:acm_m_dread_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_dread_gain_mult value = var:acm_m_dread_gain_mult } }
	else = { remove_global_variable = acm_s5_m_dread_gain_mult }
	if = { limit = { NOT = { var:acm_m_dread_decay_mult ?= 0 } } set_global_variable = { name = acm_s5_m_dread_decay_mult value = var:acm_m_dread_decay_mult } }
	else = { remove_global_variable = acm_s5_m_dread_decay_mult }
	if = { limit = { NOT = { var:acm_m_tyranny_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_tyranny_gain_mult value = var:acm_m_tyranny_gain_mult } }
	else = { remove_global_variable = acm_s5_m_tyranny_gain_mult }
	if = { limit = { NOT = { var:acm_m_tyranny_loss_mult ?= 0 } } set_global_variable = { name = acm_s5_m_tyranny_loss_mult value = var:acm_m_tyranny_loss_mult } }
	else = { remove_global_variable = acm_s5_m_tyranny_loss_mult }
	if = { limit = { NOT = { var:acm_m_title_creation_cost_mult ?= 0 } } set_global_variable = { name = acm_s5_m_title_creation_cost_mult value = var:acm_m_title_creation_cost_mult } }
	else = { remove_global_variable = acm_s5_m_title_creation_cost_mult }
	if = { limit = { NOT = { var:acm_m_build_gold_cost ?= 0 } } set_global_variable = { name = acm_s5_m_build_gold_cost value = var:acm_m_build_gold_cost } }
	else = { remove_global_variable = acm_s5_m_build_gold_cost }
	if = { limit = { NOT = { var:acm_m_build_speed ?= 0 } } set_global_variable = { name = acm_s5_m_build_speed value = var:acm_m_build_speed } }
	else = { remove_global_variable = acm_s5_m_build_speed }
	if = { limit = { NOT = { var:acm_m_development_growth ?= 0 } } set_global_variable = { name = acm_s5_m_development_growth value = var:acm_m_development_growth } }
	else = { remove_global_variable = acm_s5_m_development_growth }
	if = { limit = { NOT = { var:acm_m_development_growth_factor ?= 0 } } set_global_variable = { name = acm_s5_m_development_growth_factor value = var:acm_m_development_growth_factor } }
	else = { remove_global_variable = acm_s5_m_development_growth_factor }
	if = { limit = { NOT = { var:acm_m_monthly_county_control_growth_add ?= 0 } } set_global_variable = { name = acm_s5_m_monthly_county_control_growth_add value = var:acm_m_monthly_county_control_growth_add } }
	else = { remove_global_variable = acm_s5_m_monthly_county_control_growth_add }
	if = { limit = { NOT = { var:acm_m_levy_size ?= 0 } } set_global_variable = { name = acm_s5_m_levy_size value = var:acm_m_levy_size } }
	else = { remove_global_variable = acm_s5_m_levy_size }
	if = { limit = { NOT = { var:acm_m_levy_reinforcement_rate ?= 0 } } set_global_variable = { name = acm_s5_m_levy_reinforcement_rate value = var:acm_m_levy_reinforcement_rate } }
	else = { remove_global_variable = acm_s5_m_levy_reinforcement_rate }
	if = { limit = { NOT = { var:acm_m_garrison_size ?= 0 } } set_global_variable = { name = acm_s5_m_garrison_size value = var:acm_m_garrison_size } }
	else = { remove_global_variable = acm_s5_m_garrison_size }
	if = { limit = { NOT = { var:acm_m_fort_level ?= 0 } } set_global_variable = { name = acm_s5_m_fort_level value = var:acm_m_fort_level } }
	else = { remove_global_variable = acm_s5_m_fort_level }
	if = { limit = { NOT = { var:acm_m_cultural_head_fascination_mult ?= 0 } } set_global_variable = { name = acm_s5_m_cultural_head_fascination_mult value = var:acm_m_cultural_head_fascination_mult } }
	else = { remove_global_variable = acm_s5_m_cultural_head_fascination_mult }
	if = { limit = { NOT = { var:acm_m_owned_legend_spread_mult ?= 0 } } set_global_variable = { name = acm_s5_m_owned_legend_spread_mult value = var:acm_m_owned_legend_spread_mult } }
	else = { remove_global_variable = acm_s5_m_owned_legend_spread_mult }
	if = { limit = { NOT = { var:acm_m_general_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_general_opinion value = var:acm_m_general_opinion } }
	else = { remove_global_variable = acm_s5_m_general_opinion }
	if = { limit = { NOT = { var:acm_m_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_vassal_opinion value = var:acm_m_vassal_opinion } }
	else = { remove_global_variable = acm_s5_m_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_direct_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_direct_vassal_opinion value = var:acm_m_direct_vassal_opinion } }
	else = { remove_global_variable = acm_s5_m_direct_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_powerful_vassal_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_powerful_vassal_opinion value = var:acm_m_powerful_vassal_opinion } }
	else = { remove_global_variable = acm_s5_m_powerful_vassal_opinion }
	if = { limit = { NOT = { var:acm_m_clergy_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_clergy_opinion value = var:acm_m_clergy_opinion } }
	else = { remove_global_variable = acm_s5_m_clergy_opinion }
	if = { limit = { NOT = { var:acm_m_courtly_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_courtly_opinion value = var:acm_m_courtly_opinion } }
	else = { remove_global_variable = acm_s5_m_courtly_opinion }
	if = { limit = { NOT = { var:acm_m_zealot_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_zealot_opinion value = var:acm_m_zealot_opinion } }
	else = { remove_global_variable = acm_s5_m_zealot_opinion }
	if = { limit = { NOT = { var:acm_m_glory_hound_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_glory_hound_opinion value = var:acm_m_glory_hound_opinion } }
	else = { remove_global_variable = acm_s5_m_glory_hound_opinion }
	if = { limit = { NOT = { var:acm_m_parochial_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_parochial_opinion value = var:acm_m_parochial_opinion } }
	else = { remove_global_variable = acm_s5_m_parochial_opinion }
	if = { limit = { NOT = { var:acm_m_belligerent_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_belligerent_opinion value = var:acm_m_belligerent_opinion } }
	else = { remove_global_variable = acm_s5_m_belligerent_opinion }
	if = { limit = { NOT = { var:acm_m_dynasty_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_dynasty_opinion value = var:acm_m_dynasty_opinion } }
	else = { remove_global_variable = acm_s5_m_dynasty_opinion }
	if = { limit = { NOT = { var:acm_m_spouse_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_spouse_opinion value = var:acm_m_spouse_opinion } }
	else = { remove_global_variable = acm_s5_m_spouse_opinion }
	if = { limit = { NOT = { var:acm_m_child_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_child_opinion value = var:acm_m_child_opinion } }
	else = { remove_global_variable = acm_s5_m_child_opinion }
	if = { limit = { NOT = { var:acm_m_attraction_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_attraction_opinion value = var:acm_m_attraction_opinion } }
	else = { remove_global_variable = acm_s5_m_attraction_opinion }
	if = { limit = { NOT = { var:acm_m_courtier_and_guest_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_courtier_and_guest_opinion value = var:acm_m_courtier_and_guest_opinion } }
	else = { remove_global_variable = acm_s5_m_courtier_and_guest_opinion }
	if = { limit = { NOT = { var:acm_m_same_faith_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_same_faith_opinion value = var:acm_m_same_faith_opinion } }
	else = { remove_global_variable = acm_s5_m_same_faith_opinion }
	if = { limit = { NOT = { var:acm_m_different_faith_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_different_faith_opinion value = var:acm_m_different_faith_opinion } }
	else = { remove_global_variable = acm_s5_m_different_faith_opinion }
	if = { limit = { NOT = { var:acm_m_same_culture_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_same_culture_opinion value = var:acm_m_same_culture_opinion } }
	else = { remove_global_variable = acm_s5_m_same_culture_opinion }
	if = { limit = { NOT = { var:acm_m_different_culture_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_different_culture_opinion value = var:acm_m_different_culture_opinion } }
	else = { remove_global_variable = acm_s5_m_different_culture_opinion }
	if = { limit = { NOT = { var:acm_m_independent_ruler_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_independent_ruler_opinion value = var:acm_m_independent_ruler_opinion } }
	else = { remove_global_variable = acm_s5_m_independent_ruler_opinion }
	if = { limit = { NOT = { var:acm_m_religious_head_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_religious_head_opinion value = var:acm_m_religious_head_opinion } }
	else = { remove_global_variable = acm_s5_m_religious_head_opinion }
	if = { limit = { NOT = { var:acm_m_county_opinion_add ?= 0 } } set_global_variable = { name = acm_s5_m_county_opinion_add value = var:acm_m_county_opinion_add } }
	else = { remove_global_variable = acm_s5_m_county_opinion_add }
	if = { limit = { NOT = { var:acm_m_prisoner_opinion ?= 0 } } set_global_variable = { name = acm_s5_m_prisoner_opinion value = var:acm_m_prisoner_opinion } }
	else = { remove_global_variable = acm_s5_m_prisoner_opinion }
	if = { limit = { NOT = { var:acm_m_health ?= 0 } } set_global_variable = { name = acm_s5_m_health value = var:acm_m_health } }
	else = { remove_global_variable = acm_s5_m_health }
	if = { limit = { NOT = { var:acm_m_negate_health_penalty_add ?= 0 } } set_global_variable = { name = acm_s5_m_negate_health_penalty_add value = var:acm_m_negate_health_penalty_add } }
	else = { remove_global_variable = acm_s5_m_negate_health_penalty_add }
	if = { limit = { NOT = { var:acm_m_fertility ?= 0 } } set_global_variable = { name = acm_s5_m_fertility value = var:acm_m_fertility } }
	else = { remove_global_variable = acm_s5_m_fertility }
	if = { limit = { NOT = { var:acm_m_life_expectancy ?= 0 } } set_global_variable = { name = acm_s5_m_life_expectancy value = var:acm_m_life_expectancy } }
	else = { remove_global_variable = acm_s5_m_life_expectancy }
	if = { limit = { NOT = { var:acm_m_years_of_fertility ?= 0 } } set_global_variable = { name = acm_s5_m_years_of_fertility value = var:acm_m_years_of_fertility } }
	else = { remove_global_variable = acm_s5_m_years_of_fertility }
	if = { limit = { NOT = { var:acm_m_stress_gain_mult ?= 0 } } set_global_variable = { name = acm_s5_m_stress_gain_mult value = var:acm_m_stress_gain_mult } }
	else = { remove_global_variable = acm_s5_m_stress_gain_mult }
	if = { limit = { NOT = { var:acm_m_stress_loss_mult ?= 0 } } set_global_variable = { name = acm_s5_m_stress_loss_mult value = var:acm_m_stress_loss_mult } }
	else = { remove_global_variable = acm_s5_m_stress_loss_mult }
	if = { limit = { NOT = { var:acm_m_epidemic_resistance ?= 0 } } set_global_variable = { name = acm_s5_m_epidemic_resistance value = var:acm_m_epidemic_resistance } }
	else = { remove_global_variable = acm_s5_m_epidemic_resistance }
	if = { limit = { NOT = { var:acm_m_negate_prowess_penalty_add ?= 0 } } set_global_variable = { name = acm_s5_m_negate_prowess_penalty_add value = var:acm_m_negate_prowess_penalty_add } }
	else = { remove_global_variable = acm_s5_m_negate_prowess_penalty_add }
	if = { limit = { NOT = { var:acm_m_positive_inactive_inheritance_chance ?= 0 } } set_global_variable = { name = acm_s5_m_positive_inactive_inheritance_chance value = var:acm_m_positive_inactive_inheritance_chance } }
	else = { remove_global_variable = acm_s5_m_positive_inactive_inheritance_chance }
	if = { limit = { NOT = { var:acm_m_owned_hostile_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s5_m_owned_hostile_scheme_success_chance_add value = var:acm_m_owned_hostile_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s5_m_owned_hostile_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_owned_personal_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s5_m_owned_personal_scheme_success_chance_add value = var:acm_m_owned_personal_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s5_m_owned_personal_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_owned_scheme_secrecy_add ?= 0 } } set_global_variable = { name = acm_s5_m_owned_scheme_secrecy_add value = var:acm_m_owned_scheme_secrecy_add } }
	else = { remove_global_variable = acm_s5_m_owned_scheme_secrecy_add }
	if = { limit = { NOT = { var:acm_m_enemy_hostile_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s5_m_enemy_hostile_scheme_success_chance_add value = var:acm_m_enemy_hostile_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s5_m_enemy_hostile_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_enemy_personal_scheme_success_chance_add ?= 0 } } set_global_variable = { name = acm_s5_m_enemy_personal_scheme_success_chance_add value = var:acm_m_enemy_personal_scheme_success_chance_add } }
	else = { remove_global_variable = acm_s5_m_enemy_personal_scheme_success_chance_add }
	if = { limit = { NOT = { var:acm_m_hostile_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s5_m_hostile_scheme_phase_duration_add value = var:acm_m_hostile_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s5_m_hostile_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_personal_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s5_m_personal_scheme_phase_duration_add value = var:acm_m_personal_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s5_m_personal_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_enemy_hostile_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s5_m_enemy_hostile_scheme_phase_duration_add value = var:acm_m_enemy_hostile_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s5_m_enemy_hostile_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_max_hostile_schemes_add ?= 0 } } set_global_variable = { name = acm_s5_m_max_hostile_schemes_add value = var:acm_m_max_hostile_schemes_add } }
	else = { remove_global_variable = acm_s5_m_max_hostile_schemes_add }
	if = { limit = { NOT = { var:acm_m_max_personal_schemes_add ?= 0 } } set_global_variable = { name = acm_s5_m_max_personal_schemes_add value = var:acm_m_max_personal_schemes_add } }
	else = { remove_global_variable = acm_s5_m_max_personal_schemes_add }
	if = { limit = { NOT = { var:acm_m_seduce_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s5_m_seduce_scheme_phase_duration_add value = var:acm_m_seduce_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s5_m_seduce_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_courting_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s5_m_courting_scheme_phase_duration_add value = var:acm_m_courting_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s5_m_courting_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_befriend_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s5_m_befriend_scheme_phase_duration_add value = var:acm_m_befriend_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s5_m_befriend_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_learn_language_scheme_phase_duration_add ?= 0 } } set_global_variable = { name = acm_s5_m_learn_language_scheme_phase_duration_add value = var:acm_m_learn_language_scheme_phase_duration_add } }
	else = { remove_global_variable = acm_s5_m_learn_language_scheme_phase_duration_add }
	if = { limit = { NOT = { var:acm_m_knight_effectiveness_mult ?= 0 } } set_global_variable = { name = acm_s5_m_knight_effectiveness_mult value = var:acm_m_knight_effectiveness_mult } }
	else = { remove_global_variable = acm_s5_m_knight_effectiveness_mult }
	if = { limit = { NOT = { var:acm_m_army_damage_mult ?= 0 } } set_global_variable = { name = acm_s5_m_army_damage_mult value = var:acm_m_army_damage_mult } }
	else = { remove_global_variable = acm_s5_m_army_damage_mult }
	if = { limit = { NOT = { var:acm_m_army_toughness_mult ?= 0 } } set_global_variable = { name = acm_s5_m_army_toughness_mult value = var:acm_m_army_toughness_mult } }
	else = { remove_global_variable = acm_s5_m_army_toughness_mult }
	if = { limit = { NOT = { var:acm_m_army_pursuit_mult ?= 0 } } set_global_variable = { name = acm_s5_m_army_pursuit_mult value = var:acm_m_army_pursuit_mult } }
	else = { remove_global_variable = acm_s5_m_army_pursuit_mult }
	if = { limit = { NOT = { var:acm_m_army_screen_mult ?= 0 } } set_global_variable = { name = acm_s5_m_army_screen_mult value = var:acm_m_army_screen_mult } }
	else = { remove_global_variable = acm_s5_m_army_screen_mult }
	if = { limit = { NOT = { var:acm_m_army_maintenance_mult ?= 0 } } set_global_variable = { name = acm_s5_m_army_maintenance_mult value = var:acm_m_army_maintenance_mult } }
	else = { remove_global_variable = acm_s5_m_army_maintenance_mult }
	if = { limit = { NOT = { var:acm_m_men_at_arms_maintenance ?= 0 } } set_global_variable = { name = acm_s5_m_men_at_arms_maintenance value = var:acm_m_men_at_arms_maintenance } }
	else = { remove_global_variable = acm_s5_m_men_at_arms_maintenance }
	if = { limit = { NOT = { var:acm_m_mercenary_hire_cost_mult ?= 0 } } set_global_variable = { name = acm_s5_m_mercenary_hire_cost_mult value = var:acm_m_mercenary_hire_cost_mult } }
	else = { remove_global_variable = acm_s5_m_mercenary_hire_cost_mult }
	if = { limit = { NOT = { var:acm_m_enemy_hard_casualty_modifier ?= 0 } } set_global_variable = { name = acm_s5_m_enemy_hard_casualty_modifier value = var:acm_m_enemy_hard_casualty_modifier } }
	else = { remove_global_variable = acm_s5_m_enemy_hard_casualty_modifier }
	if = { limit = { NOT = { var:acm_m_hard_casualty_modifier ?= 0 } } set_global_variable = { name = acm_s5_m_hard_casualty_modifier value = var:acm_m_hard_casualty_modifier } }
	else = { remove_global_variable = acm_s5_m_hard_casualty_modifier }
	if = { limit = { NOT = { var:acm_m_retreat_losses ?= 0 } } set_global_variable = { name = acm_s5_m_retreat_losses value = var:acm_m_retreat_losses } }
	else = { remove_global_variable = acm_s5_m_retreat_losses }
	if = { limit = { NOT = { var:acm_m_supply_limit_mult ?= 0 } } set_global_variable = { name = acm_s5_m_supply_limit_mult value = var:acm_m_supply_limit_mult } }
	else = { remove_global_variable = acm_s5_m_supply_limit_mult }
	if = { limit = { NOT = { var:acm_m_movement_speed ?= 0 } } set_global_variable = { name = acm_s5_m_movement_speed value = var:acm_m_movement_speed } }
	else = { remove_global_variable = acm_s5_m_movement_speed }
	if = { limit = { NOT = { var:acm_m_naval_movement_speed_mult ?= 0 } } set_global_variable = { name = acm_s5_m_naval_movement_speed_mult value = var:acm_m_naval_movement_speed_mult } }
	else = { remove_global_variable = acm_s5_m_naval_movement_speed_mult }
	if = { limit = { NOT = { var:acm_m_embarkation_cost_mult ?= 0 } } set_global_variable = { name = acm_s5_m_embarkation_cost_mult value = var:acm_m_embarkation_cost_mult } }
	else = { remove_global_variable = acm_s5_m_embarkation_cost_mult }
	if = { limit = { NOT = { var:acm_m_raid_speed ?= 0 } } set_global_variable = { name = acm_s5_m_raid_speed value = var:acm_m_raid_speed } }
	else = { remove_global_variable = acm_s5_m_raid_speed }
	if = { limit = { NOT = { var:acm_m_controlled_province_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_controlled_province_advantage value = var:acm_m_controlled_province_advantage } }
	else = { remove_global_variable = acm_s5_m_controlled_province_advantage }
	if = { limit = { NOT = { var:acm_m_defender_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_defender_advantage value = var:acm_m_defender_advantage } }
	else = { remove_global_variable = acm_s5_m_defender_advantage }
	if = { limit = { NOT = { var:acm_m_tolerance_advantage_mod ?= 0 } } set_global_variable = { name = acm_s5_m_tolerance_advantage_mod value = var:acm_m_tolerance_advantage_mod } }
	else = { remove_global_variable = acm_s5_m_tolerance_advantage_mod }
	if = { limit = { NOT = { var:acm_m_led_by_owner_extra_advantage_add ?= 0 } } set_global_variable = { name = acm_s5_m_led_by_owner_extra_advantage_add value = var:acm_m_led_by_owner_extra_advantage_add } }
	else = { remove_global_variable = acm_s5_m_led_by_owner_extra_advantage_add }
	if = { limit = { NOT = { var:acm_m_pursue_efficiency ?= 0 } } set_global_variable = { name = acm_s5_m_pursue_efficiency value = var:acm_m_pursue_efficiency } }
	else = { remove_global_variable = acm_s5_m_pursue_efficiency }
	if = { limit = { NOT = { var:acm_m_levy_reinforcement_rate_same_faith ?= 0 } } set_global_variable = { name = acm_s5_m_levy_reinforcement_rate_same_faith value = var:acm_m_levy_reinforcement_rate_same_faith } }
	else = { remove_global_variable = acm_s5_m_levy_reinforcement_rate_same_faith }
	if = { limit = { NOT = { var:acm_m_heavy_infantry_damage_mult ?= 0 } } set_global_variable = { name = acm_s5_m_heavy_infantry_damage_mult value = var:acm_m_heavy_infantry_damage_mult } }
	else = { remove_global_variable = acm_s5_m_heavy_infantry_damage_mult }
	if = { limit = { NOT = { var:acm_m_heavy_infantry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s5_m_heavy_infantry_toughness_mult value = var:acm_m_heavy_infantry_toughness_mult } }
	else = { remove_global_variable = acm_s5_m_heavy_infantry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_heavy_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s5_m_heavy_cavalry_damage_mult value = var:acm_m_heavy_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s5_m_heavy_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_heavy_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s5_m_heavy_cavalry_toughness_mult value = var:acm_m_heavy_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s5_m_heavy_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_light_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s5_m_light_cavalry_damage_mult value = var:acm_m_light_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s5_m_light_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_light_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s5_m_light_cavalry_toughness_mult value = var:acm_m_light_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s5_m_light_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_archers_damage_mult ?= 0 } } set_global_variable = { name = acm_s5_m_archers_damage_mult value = var:acm_m_archers_damage_mult } }
	else = { remove_global_variable = acm_s5_m_archers_damage_mult }
	if = { limit = { NOT = { var:acm_m_archers_toughness_mult ?= 0 } } set_global_variable = { name = acm_s5_m_archers_toughness_mult value = var:acm_m_archers_toughness_mult } }
	else = { remove_global_variable = acm_s5_m_archers_toughness_mult }
	if = { limit = { NOT = { var:acm_m_pikemen_damage_mult ?= 0 } } set_global_variable = { name = acm_s5_m_pikemen_damage_mult value = var:acm_m_pikemen_damage_mult } }
	else = { remove_global_variable = acm_s5_m_pikemen_damage_mult }
	if = { limit = { NOT = { var:acm_m_pikemen_toughness_mult ?= 0 } } set_global_variable = { name = acm_s5_m_pikemen_toughness_mult value = var:acm_m_pikemen_toughness_mult } }
	else = { remove_global_variable = acm_s5_m_pikemen_toughness_mult }
	if = { limit = { NOT = { var:acm_m_skirmishers_damage_mult ?= 0 } } set_global_variable = { name = acm_s5_m_skirmishers_damage_mult value = var:acm_m_skirmishers_damage_mult } }
	else = { remove_global_variable = acm_s5_m_skirmishers_damage_mult }
	if = { limit = { NOT = { var:acm_m_skirmishers_toughness_mult ?= 0 } } set_global_variable = { name = acm_s5_m_skirmishers_toughness_mult value = var:acm_m_skirmishers_toughness_mult } }
	else = { remove_global_variable = acm_s5_m_skirmishers_toughness_mult }
	if = { limit = { NOT = { var:acm_m_archer_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s5_m_archer_cavalry_damage_mult value = var:acm_m_archer_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s5_m_archer_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_archer_cavalry_toughness_mult ?= 0 } } set_global_variable = { name = acm_s5_m_archer_cavalry_toughness_mult value = var:acm_m_archer_cavalry_toughness_mult } }
	else = { remove_global_variable = acm_s5_m_archer_cavalry_toughness_mult }
	if = { limit = { NOT = { var:acm_m_camel_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s5_m_camel_cavalry_damage_mult value = var:acm_m_camel_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s5_m_camel_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_elephant_cavalry_damage_mult ?= 0 } } set_global_variable = { name = acm_s5_m_elephant_cavalry_damage_mult value = var:acm_m_elephant_cavalry_damage_mult } }
	else = { remove_global_variable = acm_s5_m_elephant_cavalry_damage_mult }
	if = { limit = { NOT = { var:acm_m_siege_weapon_siege_value_mult ?= 0 } } set_global_variable = { name = acm_s5_m_siege_weapon_siege_value_mult value = var:acm_m_siege_weapon_siege_value_mult } }
	else = { remove_global_variable = acm_s5_m_siege_weapon_siege_value_mult }
	if = { limit = { NOT = { var:acm_m_plains_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_plains_advantage value = var:acm_m_plains_advantage } }
	else = { remove_global_variable = acm_s5_m_plains_advantage }
	if = { limit = { NOT = { var:acm_m_farmlands_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_farmlands_advantage value = var:acm_m_farmlands_advantage } }
	else = { remove_global_variable = acm_s5_m_farmlands_advantage }
	if = { limit = { NOT = { var:acm_m_hills_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_hills_advantage value = var:acm_m_hills_advantage } }
	else = { remove_global_variable = acm_s5_m_hills_advantage }
	if = { limit = { NOT = { var:acm_m_mountains_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_mountains_advantage value = var:acm_m_mountains_advantage } }
	else = { remove_global_variable = acm_s5_m_mountains_advantage }
	if = { limit = { NOT = { var:acm_m_desert_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_desert_advantage value = var:acm_m_desert_advantage } }
	else = { remove_global_variable = acm_s5_m_desert_advantage }
	if = { limit = { NOT = { var:acm_m_desert_mountains_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_desert_mountains_advantage value = var:acm_m_desert_mountains_advantage } }
	else = { remove_global_variable = acm_s5_m_desert_mountains_advantage }
	if = { limit = { NOT = { var:acm_m_oasis_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_oasis_advantage value = var:acm_m_oasis_advantage } }
	else = { remove_global_variable = acm_s5_m_oasis_advantage }
	if = { limit = { NOT = { var:acm_m_jungle_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_jungle_advantage value = var:acm_m_jungle_advantage } }
	else = { remove_global_variable = acm_s5_m_jungle_advantage }
	if = { limit = { NOT = { var:acm_m_forest_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_forest_advantage value = var:acm_m_forest_advantage } }
	else = { remove_global_variable = acm_s5_m_forest_advantage }
	if = { limit = { NOT = { var:acm_m_taiga_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_taiga_advantage value = var:acm_m_taiga_advantage } }
	else = { remove_global_variable = acm_s5_m_taiga_advantage }
	if = { limit = { NOT = { var:acm_m_wetlands_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_wetlands_advantage value = var:acm_m_wetlands_advantage } }
	else = { remove_global_variable = acm_s5_m_wetlands_advantage }
	if = { limit = { NOT = { var:acm_m_steppe_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_steppe_advantage value = var:acm_m_steppe_advantage } }
	else = { remove_global_variable = acm_s5_m_steppe_advantage }
	if = { limit = { NOT = { var:acm_m_floodplains_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_floodplains_advantage value = var:acm_m_floodplains_advantage } }
	else = { remove_global_variable = acm_s5_m_floodplains_advantage }
	if = { limit = { NOT = { var:acm_m_drylands_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_drylands_advantage value = var:acm_m_drylands_advantage } }
	else = { remove_global_variable = acm_s5_m_drylands_advantage }
	if = { limit = { NOT = { var:acm_m_winter_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_winter_advantage value = var:acm_m_winter_advantage } }
	else = { remove_global_variable = acm_s5_m_winter_advantage }
	if = { limit = { NOT = { var:acm_m_coastal_advantage ?= 0 } } set_global_variable = { name = acm_s5_m_coastal_advantage value = var:acm_m_coastal_advantage } }
	else = { remove_global_variable = acm_s5_m_coastal_advantage }
	if = { limit = { NOT = { var:acm_m_character_travel_speed ?= 0 } } set_global_variable = { name = acm_s5_m_character_travel_speed value = var:acm_m_character_travel_speed } }
	else = { remove_global_variable = acm_s5_m_character_travel_speed }
	if = { limit = { NOT = { var:acm_m_character_travel_safety ?= 0 } } set_global_variable = { name = acm_s5_m_character_travel_safety value = var:acm_m_character_travel_safety } }
	else = { remove_global_variable = acm_s5_m_character_travel_safety }
	if = { limit = { NOT = { var:acm_m_character_travel_speed_mult ?= 0 } } set_global_variable = { name = acm_s5_m_character_travel_speed_mult value = var:acm_m_character_travel_speed_mult } }
	else = { remove_global_variable = acm_s5_m_character_travel_speed_mult }
	if = { limit = { NOT = { var:acm_m_character_travel_safety_mult ?= 0 } } set_global_variable = { name = acm_s5_m_character_travel_safety_mult value = var:acm_m_character_travel_safety_mult } }
	else = { remove_global_variable = acm_s5_m_character_travel_safety_mult }
	if = { limit = { NOT = { var:acm_m_winter_movement_speed ?= 0 } } set_global_variable = { name = acm_s5_m_winter_movement_speed value = var:acm_m_winter_movement_speed } }
	else = { remove_global_variable = acm_s5_m_winter_movement_speed }
}

acm_slot_load_5_effect = {
	if = { limit = { has_global_variable = acm_s5_type } set_variable = { name = acm_type value = global_var:acm_s5_type } }
	else = { remove_variable = acm_type }
	if = { limit = { has_global_variable = acm_s5_icon } set_variable = { name = acm_icon value = global_var:acm_s5_icon } }
	else = { remove_variable = acm_icon }
	if = { limit = { has_global_variable = acm_s5_asset } set_variable = { name = acm_asset value = global_var:acm_s5_asset } }
	else = { remove_variable = acm_asset }
	if = { limit = { has_global_variable = acm_s5_support } set_variable = { name = acm_support value = global_var:acm_s5_support } }
	else = { remove_variable = acm_support }
	if = { limit = { has_global_variable = acm_s5_rarity } set_variable = { name = acm_rarity value = global_var:acm_s5_rarity } }
	else = { remove_variable = acm_rarity }
	if = { limit = { has_global_variable = acm_s5_history } set_variable = { name = acm_history value = global_var:acm_s5_history } }
	else = { remove_variable = acm_history }
	if = { limit = { has_global_variable = acm_s5_name } set_variable = { name = acm_name value = global_var:acm_s5_name } }
	else = { remove_variable = acm_name }
	if = { limit = { has_global_variable = acm_s5_desc } set_variable = { name = acm_desc value = global_var:acm_s5_desc } }
	else = { remove_variable = acm_desc }
	if = { limit = { has_global_variable = acm_s5_benefit } set_variable = { name = acm_benefit value = global_var:acm_s5_benefit } }
	else = { remove_variable = acm_benefit }
	if = { limit = { has_global_variable = acm_s5_equip } set_variable = { name = acm_equip value = global_var:acm_s5_equip } }
	else = { remove_variable = acm_equip }
	if = { limit = { has_global_variable = acm_s5_relic } set_variable = { name = acm_relic value = global_var:acm_s5_relic } }
	else = { remove_variable = acm_relic }
	if = { limit = { has_global_variable = acm_s5_msg } set_variable = { name = acm_msg value = global_var:acm_s5_msg } }
	else = { remove_variable = acm_msg }
	if = { limit = { has_global_variable = acm_s5_vset } set_variable = { name = acm_vset value = global_var:acm_s5_vset } }
	else = { remove_variable = acm_vset }
	if = { limit = { has_global_variable = acm_s5_preset } set_variable = { name = acm_preset value = global_var:acm_s5_preset } }
	else = { remove_variable = acm_preset }
	if = { limit = { has_global_variable = acm_s5_quality } set_variable = { name = acm_quality value = global_var:acm_s5_quality } }
	else = { remove_variable = acm_quality }
	if = { limit = { has_global_variable = acm_s5_wealth } set_variable = { name = acm_wealth value = global_var:acm_s5_wealth } }
	else = { remove_variable = acm_wealth }
	if = { limit = { has_global_variable = acm_s5_durability } set_variable = { name = acm_durability value = global_var:acm_s5_durability } }
	else = { remove_variable = acm_durability }
	if = { limit = { has_global_variable = acm_s5_auto_look } set_variable = acm_auto_look }
	else = { remove_variable = acm_auto_look }
	if = { limit = { has_global_variable = acm_s5_unique } set_variable = acm_unique }
	else = { remove_variable = acm_unique }
	if = { limit = { has_global_variable = acm_s5_no_decay } set_variable = acm_no_decay }
	else = { remove_variable = acm_no_decay }
	if = { limit = { has_global_variable = acm_s5_no_reforge } set_variable = acm_no_reforge }
	else = { remove_variable = acm_no_reforge }
	if = { limit = { has_global_variable = acm_s5_no_repair } set_variable = acm_no_repair }
	else = { remove_variable = acm_no_repair }
	if = { limit = { has_global_variable = acm_s5_auto_equip } set_variable = acm_auto_equip }
	else = { remove_variable = acm_auto_equip }
	if = { limit = { has_global_variable = acm_s5_features } set_variable = acm_features }
	else = { remove_variable = acm_features }
	if = { limit = { has_global_variable = acm_s5_creator_is_owner } set_variable = acm_creator_is_owner }
	else = { remove_variable = acm_creator_is_owner }
	if = { limit = { has_global_variable = acm_s5_maker } set_variable = { name = acm_maker value = global_var:acm_s5_maker } }
	else = { remove_variable = acm_maker }
	if = { limit = { has_global_variable = acm_s5_history_actor } set_variable = { name = acm_history_actor value = global_var:acm_s5_history_actor } }
	else = { remove_variable = acm_history_actor }
	if = { limit = { has_global_variable = acm_s5_m_diplomacy } set_variable = { name = acm_m_diplomacy value = global_var:acm_s5_m_diplomacy } }
	else = { set_variable = { name = acm_m_diplomacy value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_martial } set_variable = { name = acm_m_martial value = global_var:acm_s5_m_martial } }
	else = { set_variable = { name = acm_m_martial value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_stewardship } set_variable = { name = acm_m_stewardship value = global_var:acm_s5_m_stewardship } }
	else = { set_variable = { name = acm_m_stewardship value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_intrigue } set_variable = { name = acm_m_intrigue value = global_var:acm_s5_m_intrigue } }
	else = { set_variable = { name = acm_m_intrigue value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_learning } set_variable = { name = acm_m_learning value = global_var:acm_s5_m_learning } }
	else = { set_variable = { name = acm_m_learning value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_prowess_no_portrait } set_variable = { name = acm_m_prowess_no_portrait value = global_var:acm_s5_m_prowess_no_portrait } }
	else = { set_variable = { name = acm_m_prowess_no_portrait value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_diplomacy_mult } set_variable = { name = acm_m_diplomacy_mult value = global_var:acm_s5_m_diplomacy_mult } }
	else = { set_variable = { name = acm_m_diplomacy_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_martial_mult } set_variable = { name = acm_m_martial_mult value = global_var:acm_s5_m_martial_mult } }
	else = { set_variable = { name = acm_m_martial_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_stewardship_mult } set_variable = { name = acm_m_stewardship_mult value = global_var:acm_s5_m_stewardship_mult } }
	else = { set_variable = { name = acm_m_stewardship_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_intrigue_mult } set_variable = { name = acm_m_intrigue_mult value = global_var:acm_s5_m_intrigue_mult } }
	else = { set_variable = { name = acm_m_intrigue_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_learning_mult } set_variable = { name = acm_m_learning_mult value = global_var:acm_s5_m_learning_mult } }
	else = { set_variable = { name = acm_m_learning_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_prowess_mult } set_variable = { name = acm_m_prowess_mult value = global_var:acm_s5_m_prowess_mult } }
	else = { set_variable = { name = acm_m_prowess_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_lifestyle_xp_gain_mult value = global_var:acm_s5_m_monthly_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_diplomacy_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_diplomacy_lifestyle_xp_gain_mult value = global_var:acm_s5_m_monthly_diplomacy_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_diplomacy_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_martial_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_martial_lifestyle_xp_gain_mult value = global_var:acm_s5_m_monthly_martial_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_martial_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_stewardship_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_stewardship_lifestyle_xp_gain_mult value = global_var:acm_s5_m_monthly_stewardship_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_stewardship_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_intrigue_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_intrigue_lifestyle_xp_gain_mult value = global_var:acm_s5_m_monthly_intrigue_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_intrigue_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_learning_lifestyle_xp_gain_mult } set_variable = { name = acm_m_monthly_learning_lifestyle_xp_gain_mult value = global_var:acm_s5_m_monthly_learning_lifestyle_xp_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_learning_lifestyle_xp_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_prestige } set_variable = { name = acm_m_monthly_prestige value = global_var:acm_s5_m_monthly_prestige } }
	else = { set_variable = { name = acm_m_monthly_prestige value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_piety } set_variable = { name = acm_m_monthly_piety value = global_var:acm_s5_m_monthly_piety } }
	else = { set_variable = { name = acm_m_monthly_piety value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_income } set_variable = { name = acm_m_monthly_income value = global_var:acm_s5_m_monthly_income } }
	else = { set_variable = { name = acm_m_monthly_income value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_dynasty_prestige } set_variable = { name = acm_m_monthly_dynasty_prestige value = global_var:acm_s5_m_monthly_dynasty_prestige } }
	else = { set_variable = { name = acm_m_monthly_dynasty_prestige value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_influence } set_variable = { name = acm_m_monthly_influence value = global_var:acm_s5_m_monthly_influence } }
	else = { set_variable = { name = acm_m_monthly_influence value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_prestige_gain_mult } set_variable = { name = acm_m_monthly_prestige_gain_mult value = global_var:acm_s5_m_monthly_prestige_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_prestige_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_piety_gain_mult } set_variable = { name = acm_m_monthly_piety_gain_mult value = global_var:acm_s5_m_monthly_piety_gain_mult } }
	else = { set_variable = { name = acm_m_monthly_piety_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_income_mult } set_variable = { name = acm_m_monthly_income_mult value = global_var:acm_s5_m_monthly_income_mult } }
	else = { set_variable = { name = acm_m_monthly_income_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_dynasty_prestige_mult } set_variable = { name = acm_m_monthly_dynasty_prestige_mult value = global_var:acm_s5_m_monthly_dynasty_prestige_mult } }
	else = { set_variable = { name = acm_m_monthly_dynasty_prestige_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_influence_mult } set_variable = { name = acm_m_monthly_influence_mult value = global_var:acm_s5_m_monthly_influence_mult } }
	else = { set_variable = { name = acm_m_monthly_influence_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_merit_mult } set_variable = { name = acm_m_monthly_merit_mult value = global_var:acm_s5_m_monthly_merit_mult } }
	else = { set_variable = { name = acm_m_monthly_merit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_domain_tax_mult } set_variable = { name = acm_m_domain_tax_mult value = global_var:acm_s5_m_domain_tax_mult } }
	else = { set_variable = { name = acm_m_domain_tax_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_vassal_tax_contribution_mult } set_variable = { name = acm_m_vassal_tax_contribution_mult value = global_var:acm_s5_m_vassal_tax_contribution_mult } }
	else = { set_variable = { name = acm_m_vassal_tax_contribution_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_war_income_add } set_variable = { name = acm_m_monthly_war_income_add value = global_var:acm_s5_m_monthly_war_income_add } }
	else = { set_variable = { name = acm_m_monthly_war_income_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_herd_gain_mult } set_variable = { name = acm_m_herd_gain_mult value = global_var:acm_s5_m_herd_gain_mult } }
	else = { set_variable = { name = acm_m_herd_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_court_grandeur_baseline_add } set_variable = { name = acm_m_court_grandeur_baseline_add value = global_var:acm_s5_m_court_grandeur_baseline_add } }
	else = { set_variable = { name = acm_m_court_grandeur_baseline_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_domain_limit } set_variable = { name = acm_m_domain_limit value = global_var:acm_s5_m_domain_limit } }
	else = { set_variable = { name = acm_m_domain_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_vassal_limit } set_variable = { name = acm_m_vassal_limit value = global_var:acm_s5_m_vassal_limit } }
	else = { set_variable = { name = acm_m_vassal_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_knight_limit } set_variable = { name = acm_m_knight_limit value = global_var:acm_s5_m_knight_limit } }
	else = { set_variable = { name = acm_m_knight_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_men_at_arms_limit } set_variable = { name = acm_m_men_at_arms_limit value = global_var:acm_s5_m_men_at_arms_limit } }
	else = { set_variable = { name = acm_m_men_at_arms_limit value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_men_at_arms_cap } set_variable = { name = acm_m_men_at_arms_cap value = global_var:acm_s5_m_men_at_arms_cap } }
	else = { set_variable = { name = acm_m_men_at_arms_cap value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_legitimacy_gain_mult } set_variable = { name = acm_m_legitimacy_gain_mult value = global_var:acm_s5_m_legitimacy_gain_mult } }
	else = { set_variable = { name = acm_m_legitimacy_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_legitimacy_loss_mult } set_variable = { name = acm_m_legitimacy_loss_mult value = global_var:acm_s5_m_legitimacy_loss_mult } }
	else = { set_variable = { name = acm_m_legitimacy_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_short_reign_duration_mult } set_variable = { name = acm_m_short_reign_duration_mult value = global_var:acm_s5_m_short_reign_duration_mult } }
	else = { set_variable = { name = acm_m_short_reign_duration_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_dread_baseline_add } set_variable = { name = acm_m_dread_baseline_add value = global_var:acm_s5_m_dread_baseline_add } }
	else = { set_variable = { name = acm_m_dread_baseline_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_dread_gain_mult } set_variable = { name = acm_m_dread_gain_mult value = global_var:acm_s5_m_dread_gain_mult } }
	else = { set_variable = { name = acm_m_dread_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_dread_decay_mult } set_variable = { name = acm_m_dread_decay_mult value = global_var:acm_s5_m_dread_decay_mult } }
	else = { set_variable = { name = acm_m_dread_decay_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_tyranny_gain_mult } set_variable = { name = acm_m_tyranny_gain_mult value = global_var:acm_s5_m_tyranny_gain_mult } }
	else = { set_variable = { name = acm_m_tyranny_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_tyranny_loss_mult } set_variable = { name = acm_m_tyranny_loss_mult value = global_var:acm_s5_m_tyranny_loss_mult } }
	else = { set_variable = { name = acm_m_tyranny_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_title_creation_cost_mult } set_variable = { name = acm_m_title_creation_cost_mult value = global_var:acm_s5_m_title_creation_cost_mult } }
	else = { set_variable = { name = acm_m_title_creation_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_build_gold_cost } set_variable = { name = acm_m_build_gold_cost value = global_var:acm_s5_m_build_gold_cost } }
	else = { set_variable = { name = acm_m_build_gold_cost value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_build_speed } set_variable = { name = acm_m_build_speed value = global_var:acm_s5_m_build_speed } }
	else = { set_variable = { name = acm_m_build_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_development_growth } set_variable = { name = acm_m_development_growth value = global_var:acm_s5_m_development_growth } }
	else = { set_variable = { name = acm_m_development_growth value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_development_growth_factor } set_variable = { name = acm_m_development_growth_factor value = global_var:acm_s5_m_development_growth_factor } }
	else = { set_variable = { name = acm_m_development_growth_factor value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_monthly_county_control_growth_add } set_variable = { name = acm_m_monthly_county_control_growth_add value = global_var:acm_s5_m_monthly_county_control_growth_add } }
	else = { set_variable = { name = acm_m_monthly_county_control_growth_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_levy_size } set_variable = { name = acm_m_levy_size value = global_var:acm_s5_m_levy_size } }
	else = { set_variable = { name = acm_m_levy_size value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_levy_reinforcement_rate } set_variable = { name = acm_m_levy_reinforcement_rate value = global_var:acm_s5_m_levy_reinforcement_rate } }
	else = { set_variable = { name = acm_m_levy_reinforcement_rate value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_garrison_size } set_variable = { name = acm_m_garrison_size value = global_var:acm_s5_m_garrison_size } }
	else = { set_variable = { name = acm_m_garrison_size value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_fort_level } set_variable = { name = acm_m_fort_level value = global_var:acm_s5_m_fort_level } }
	else = { set_variable = { name = acm_m_fort_level value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_cultural_head_fascination_mult } set_variable = { name = acm_m_cultural_head_fascination_mult value = global_var:acm_s5_m_cultural_head_fascination_mult } }
	else = { set_variable = { name = acm_m_cultural_head_fascination_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_owned_legend_spread_mult } set_variable = { name = acm_m_owned_legend_spread_mult value = global_var:acm_s5_m_owned_legend_spread_mult } }
	else = { set_variable = { name = acm_m_owned_legend_spread_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_general_opinion } set_variable = { name = acm_m_general_opinion value = global_var:acm_s5_m_general_opinion } }
	else = { set_variable = { name = acm_m_general_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_vassal_opinion } set_variable = { name = acm_m_vassal_opinion value = global_var:acm_s5_m_vassal_opinion } }
	else = { set_variable = { name = acm_m_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_direct_vassal_opinion } set_variable = { name = acm_m_direct_vassal_opinion value = global_var:acm_s5_m_direct_vassal_opinion } }
	else = { set_variable = { name = acm_m_direct_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_powerful_vassal_opinion } set_variable = { name = acm_m_powerful_vassal_opinion value = global_var:acm_s5_m_powerful_vassal_opinion } }
	else = { set_variable = { name = acm_m_powerful_vassal_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_clergy_opinion } set_variable = { name = acm_m_clergy_opinion value = global_var:acm_s5_m_clergy_opinion } }
	else = { set_variable = { name = acm_m_clergy_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_courtly_opinion } set_variable = { name = acm_m_courtly_opinion value = global_var:acm_s5_m_courtly_opinion } }
	else = { set_variable = { name = acm_m_courtly_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_zealot_opinion } set_variable = { name = acm_m_zealot_opinion value = global_var:acm_s5_m_zealot_opinion } }
	else = { set_variable = { name = acm_m_zealot_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_glory_hound_opinion } set_variable = { name = acm_m_glory_hound_opinion value = global_var:acm_s5_m_glory_hound_opinion } }
	else = { set_variable = { name = acm_m_glory_hound_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_parochial_opinion } set_variable = { name = acm_m_parochial_opinion value = global_var:acm_s5_m_parochial_opinion } }
	else = { set_variable = { name = acm_m_parochial_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_belligerent_opinion } set_variable = { name = acm_m_belligerent_opinion value = global_var:acm_s5_m_belligerent_opinion } }
	else = { set_variable = { name = acm_m_belligerent_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_dynasty_opinion } set_variable = { name = acm_m_dynasty_opinion value = global_var:acm_s5_m_dynasty_opinion } }
	else = { set_variable = { name = acm_m_dynasty_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_spouse_opinion } set_variable = { name = acm_m_spouse_opinion value = global_var:acm_s5_m_spouse_opinion } }
	else = { set_variable = { name = acm_m_spouse_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_child_opinion } set_variable = { name = acm_m_child_opinion value = global_var:acm_s5_m_child_opinion } }
	else = { set_variable = { name = acm_m_child_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_attraction_opinion } set_variable = { name = acm_m_attraction_opinion value = global_var:acm_s5_m_attraction_opinion } }
	else = { set_variable = { name = acm_m_attraction_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_courtier_and_guest_opinion } set_variable = { name = acm_m_courtier_and_guest_opinion value = global_var:acm_s5_m_courtier_and_guest_opinion } }
	else = { set_variable = { name = acm_m_courtier_and_guest_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_same_faith_opinion } set_variable = { name = acm_m_same_faith_opinion value = global_var:acm_s5_m_same_faith_opinion } }
	else = { set_variable = { name = acm_m_same_faith_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_different_faith_opinion } set_variable = { name = acm_m_different_faith_opinion value = global_var:acm_s5_m_different_faith_opinion } }
	else = { set_variable = { name = acm_m_different_faith_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_same_culture_opinion } set_variable = { name = acm_m_same_culture_opinion value = global_var:acm_s5_m_same_culture_opinion } }
	else = { set_variable = { name = acm_m_same_culture_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_different_culture_opinion } set_variable = { name = acm_m_different_culture_opinion value = global_var:acm_s5_m_different_culture_opinion } }
	else = { set_variable = { name = acm_m_different_culture_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_independent_ruler_opinion } set_variable = { name = acm_m_independent_ruler_opinion value = global_var:acm_s5_m_independent_ruler_opinion } }
	else = { set_variable = { name = acm_m_independent_ruler_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_religious_head_opinion } set_variable = { name = acm_m_religious_head_opinion value = global_var:acm_s5_m_religious_head_opinion } }
	else = { set_variable = { name = acm_m_religious_head_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_county_opinion_add } set_variable = { name = acm_m_county_opinion_add value = global_var:acm_s5_m_county_opinion_add } }
	else = { set_variable = { name = acm_m_county_opinion_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_prisoner_opinion } set_variable = { name = acm_m_prisoner_opinion value = global_var:acm_s5_m_prisoner_opinion } }
	else = { set_variable = { name = acm_m_prisoner_opinion value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_health } set_variable = { name = acm_m_health value = global_var:acm_s5_m_health } }
	else = { set_variable = { name = acm_m_health value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_negate_health_penalty_add } set_variable = { name = acm_m_negate_health_penalty_add value = global_var:acm_s5_m_negate_health_penalty_add } }
	else = { set_variable = { name = acm_m_negate_health_penalty_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_fertility } set_variable = { name = acm_m_fertility value = global_var:acm_s5_m_fertility } }
	else = { set_variable = { name = acm_m_fertility value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_life_expectancy } set_variable = { name = acm_m_life_expectancy value = global_var:acm_s5_m_life_expectancy } }
	else = { set_variable = { name = acm_m_life_expectancy value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_years_of_fertility } set_variable = { name = acm_m_years_of_fertility value = global_var:acm_s5_m_years_of_fertility } }
	else = { set_variable = { name = acm_m_years_of_fertility value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_stress_gain_mult } set_variable = { name = acm_m_stress_gain_mult value = global_var:acm_s5_m_stress_gain_mult } }
	else = { set_variable = { name = acm_m_stress_gain_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_stress_loss_mult } set_variable = { name = acm_m_stress_loss_mult value = global_var:acm_s5_m_stress_loss_mult } }
	else = { set_variable = { name = acm_m_stress_loss_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_epidemic_resistance } set_variable = { name = acm_m_epidemic_resistance value = global_var:acm_s5_m_epidemic_resistance } }
	else = { set_variable = { name = acm_m_epidemic_resistance value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_negate_prowess_penalty_add } set_variable = { name = acm_m_negate_prowess_penalty_add value = global_var:acm_s5_m_negate_prowess_penalty_add } }
	else = { set_variable = { name = acm_m_negate_prowess_penalty_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_positive_inactive_inheritance_chance } set_variable = { name = acm_m_positive_inactive_inheritance_chance value = global_var:acm_s5_m_positive_inactive_inheritance_chance } }
	else = { set_variable = { name = acm_m_positive_inactive_inheritance_chance value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_owned_hostile_scheme_success_chance_add } set_variable = { name = acm_m_owned_hostile_scheme_success_chance_add value = global_var:acm_s5_m_owned_hostile_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_owned_hostile_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_owned_personal_scheme_success_chance_add } set_variable = { name = acm_m_owned_personal_scheme_success_chance_add value = global_var:acm_s5_m_owned_personal_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_owned_personal_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_owned_scheme_secrecy_add } set_variable = { name = acm_m_owned_scheme_secrecy_add value = global_var:acm_s5_m_owned_scheme_secrecy_add } }
	else = { set_variable = { name = acm_m_owned_scheme_secrecy_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_enemy_hostile_scheme_success_chance_add } set_variable = { name = acm_m_enemy_hostile_scheme_success_chance_add value = global_var:acm_s5_m_enemy_hostile_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_enemy_hostile_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_enemy_personal_scheme_success_chance_add } set_variable = { name = acm_m_enemy_personal_scheme_success_chance_add value = global_var:acm_s5_m_enemy_personal_scheme_success_chance_add } }
	else = { set_variable = { name = acm_m_enemy_personal_scheme_success_chance_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_hostile_scheme_phase_duration_add } set_variable = { name = acm_m_hostile_scheme_phase_duration_add value = global_var:acm_s5_m_hostile_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_hostile_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_personal_scheme_phase_duration_add } set_variable = { name = acm_m_personal_scheme_phase_duration_add value = global_var:acm_s5_m_personal_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_personal_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_enemy_hostile_scheme_phase_duration_add } set_variable = { name = acm_m_enemy_hostile_scheme_phase_duration_add value = global_var:acm_s5_m_enemy_hostile_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_enemy_hostile_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_max_hostile_schemes_add } set_variable = { name = acm_m_max_hostile_schemes_add value = global_var:acm_s5_m_max_hostile_schemes_add } }
	else = { set_variable = { name = acm_m_max_hostile_schemes_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_max_personal_schemes_add } set_variable = { name = acm_m_max_personal_schemes_add value = global_var:acm_s5_m_max_personal_schemes_add } }
	else = { set_variable = { name = acm_m_max_personal_schemes_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_seduce_scheme_phase_duration_add } set_variable = { name = acm_m_seduce_scheme_phase_duration_add value = global_var:acm_s5_m_seduce_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_seduce_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_courting_scheme_phase_duration_add } set_variable = { name = acm_m_courting_scheme_phase_duration_add value = global_var:acm_s5_m_courting_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_courting_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_befriend_scheme_phase_duration_add } set_variable = { name = acm_m_befriend_scheme_phase_duration_add value = global_var:acm_s5_m_befriend_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_befriend_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_learn_language_scheme_phase_duration_add } set_variable = { name = acm_m_learn_language_scheme_phase_duration_add value = global_var:acm_s5_m_learn_language_scheme_phase_duration_add } }
	else = { set_variable = { name = acm_m_learn_language_scheme_phase_duration_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_knight_effectiveness_mult } set_variable = { name = acm_m_knight_effectiveness_mult value = global_var:acm_s5_m_knight_effectiveness_mult } }
	else = { set_variable = { name = acm_m_knight_effectiveness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_army_damage_mult } set_variable = { name = acm_m_army_damage_mult value = global_var:acm_s5_m_army_damage_mult } }
	else = { set_variable = { name = acm_m_army_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_army_toughness_mult } set_variable = { name = acm_m_army_toughness_mult value = global_var:acm_s5_m_army_toughness_mult } }
	else = { set_variable = { name = acm_m_army_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_army_pursuit_mult } set_variable = { name = acm_m_army_pursuit_mult value = global_var:acm_s5_m_army_pursuit_mult } }
	else = { set_variable = { name = acm_m_army_pursuit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_army_screen_mult } set_variable = { name = acm_m_army_screen_mult value = global_var:acm_s5_m_army_screen_mult } }
	else = { set_variable = { name = acm_m_army_screen_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_army_maintenance_mult } set_variable = { name = acm_m_army_maintenance_mult value = global_var:acm_s5_m_army_maintenance_mult } }
	else = { set_variable = { name = acm_m_army_maintenance_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_men_at_arms_maintenance } set_variable = { name = acm_m_men_at_arms_maintenance value = global_var:acm_s5_m_men_at_arms_maintenance } }
	else = { set_variable = { name = acm_m_men_at_arms_maintenance value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_mercenary_hire_cost_mult } set_variable = { name = acm_m_mercenary_hire_cost_mult value = global_var:acm_s5_m_mercenary_hire_cost_mult } }
	else = { set_variable = { name = acm_m_mercenary_hire_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_enemy_hard_casualty_modifier } set_variable = { name = acm_m_enemy_hard_casualty_modifier value = global_var:acm_s5_m_enemy_hard_casualty_modifier } }
	else = { set_variable = { name = acm_m_enemy_hard_casualty_modifier value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_hard_casualty_modifier } set_variable = { name = acm_m_hard_casualty_modifier value = global_var:acm_s5_m_hard_casualty_modifier } }
	else = { set_variable = { name = acm_m_hard_casualty_modifier value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_retreat_losses } set_variable = { name = acm_m_retreat_losses value = global_var:acm_s5_m_retreat_losses } }
	else = { set_variable = { name = acm_m_retreat_losses value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_supply_limit_mult } set_variable = { name = acm_m_supply_limit_mult value = global_var:acm_s5_m_supply_limit_mult } }
	else = { set_variable = { name = acm_m_supply_limit_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_movement_speed } set_variable = { name = acm_m_movement_speed value = global_var:acm_s5_m_movement_speed } }
	else = { set_variable = { name = acm_m_movement_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_naval_movement_speed_mult } set_variable = { name = acm_m_naval_movement_speed_mult value = global_var:acm_s5_m_naval_movement_speed_mult } }
	else = { set_variable = { name = acm_m_naval_movement_speed_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_embarkation_cost_mult } set_variable = { name = acm_m_embarkation_cost_mult value = global_var:acm_s5_m_embarkation_cost_mult } }
	else = { set_variable = { name = acm_m_embarkation_cost_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_raid_speed } set_variable = { name = acm_m_raid_speed value = global_var:acm_s5_m_raid_speed } }
	else = { set_variable = { name = acm_m_raid_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_controlled_province_advantage } set_variable = { name = acm_m_controlled_province_advantage value = global_var:acm_s5_m_controlled_province_advantage } }
	else = { set_variable = { name = acm_m_controlled_province_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_defender_advantage } set_variable = { name = acm_m_defender_advantage value = global_var:acm_s5_m_defender_advantage } }
	else = { set_variable = { name = acm_m_defender_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_tolerance_advantage_mod } set_variable = { name = acm_m_tolerance_advantage_mod value = global_var:acm_s5_m_tolerance_advantage_mod } }
	else = { set_variable = { name = acm_m_tolerance_advantage_mod value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_led_by_owner_extra_advantage_add } set_variable = { name = acm_m_led_by_owner_extra_advantage_add value = global_var:acm_s5_m_led_by_owner_extra_advantage_add } }
	else = { set_variable = { name = acm_m_led_by_owner_extra_advantage_add value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_pursue_efficiency } set_variable = { name = acm_m_pursue_efficiency value = global_var:acm_s5_m_pursue_efficiency } }
	else = { set_variable = { name = acm_m_pursue_efficiency value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_levy_reinforcement_rate_same_faith } set_variable = { name = acm_m_levy_reinforcement_rate_same_faith value = global_var:acm_s5_m_levy_reinforcement_rate_same_faith } }
	else = { set_variable = { name = acm_m_levy_reinforcement_rate_same_faith value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_heavy_infantry_damage_mult } set_variable = { name = acm_m_heavy_infantry_damage_mult value = global_var:acm_s5_m_heavy_infantry_damage_mult } }
	else = { set_variable = { name = acm_m_heavy_infantry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_heavy_infantry_toughness_mult } set_variable = { name = acm_m_heavy_infantry_toughness_mult value = global_var:acm_s5_m_heavy_infantry_toughness_mult } }
	else = { set_variable = { name = acm_m_heavy_infantry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_heavy_cavalry_damage_mult } set_variable = { name = acm_m_heavy_cavalry_damage_mult value = global_var:acm_s5_m_heavy_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_heavy_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_heavy_cavalry_toughness_mult } set_variable = { name = acm_m_heavy_cavalry_toughness_mult value = global_var:acm_s5_m_heavy_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_heavy_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_light_cavalry_damage_mult } set_variable = { name = acm_m_light_cavalry_damage_mult value = global_var:acm_s5_m_light_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_light_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_light_cavalry_toughness_mult } set_variable = { name = acm_m_light_cavalry_toughness_mult value = global_var:acm_s5_m_light_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_light_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_archers_damage_mult } set_variable = { name = acm_m_archers_damage_mult value = global_var:acm_s5_m_archers_damage_mult } }
	else = { set_variable = { name = acm_m_archers_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_archers_toughness_mult } set_variable = { name = acm_m_archers_toughness_mult value = global_var:acm_s5_m_archers_toughness_mult } }
	else = { set_variable = { name = acm_m_archers_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_pikemen_damage_mult } set_variable = { name = acm_m_pikemen_damage_mult value = global_var:acm_s5_m_pikemen_damage_mult } }
	else = { set_variable = { name = acm_m_pikemen_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_pikemen_toughness_mult } set_variable = { name = acm_m_pikemen_toughness_mult value = global_var:acm_s5_m_pikemen_toughness_mult } }
	else = { set_variable = { name = acm_m_pikemen_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_skirmishers_damage_mult } set_variable = { name = acm_m_skirmishers_damage_mult value = global_var:acm_s5_m_skirmishers_damage_mult } }
	else = { set_variable = { name = acm_m_skirmishers_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_skirmishers_toughness_mult } set_variable = { name = acm_m_skirmishers_toughness_mult value = global_var:acm_s5_m_skirmishers_toughness_mult } }
	else = { set_variable = { name = acm_m_skirmishers_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_archer_cavalry_damage_mult } set_variable = { name = acm_m_archer_cavalry_damage_mult value = global_var:acm_s5_m_archer_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_archer_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_archer_cavalry_toughness_mult } set_variable = { name = acm_m_archer_cavalry_toughness_mult value = global_var:acm_s5_m_archer_cavalry_toughness_mult } }
	else = { set_variable = { name = acm_m_archer_cavalry_toughness_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_camel_cavalry_damage_mult } set_variable = { name = acm_m_camel_cavalry_damage_mult value = global_var:acm_s5_m_camel_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_camel_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_elephant_cavalry_damage_mult } set_variable = { name = acm_m_elephant_cavalry_damage_mult value = global_var:acm_s5_m_elephant_cavalry_damage_mult } }
	else = { set_variable = { name = acm_m_elephant_cavalry_damage_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_siege_weapon_siege_value_mult } set_variable = { name = acm_m_siege_weapon_siege_value_mult value = global_var:acm_s5_m_siege_weapon_siege_value_mult } }
	else = { set_variable = { name = acm_m_siege_weapon_siege_value_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_plains_advantage } set_variable = { name = acm_m_plains_advantage value = global_var:acm_s5_m_plains_advantage } }
	else = { set_variable = { name = acm_m_plains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_farmlands_advantage } set_variable = { name = acm_m_farmlands_advantage value = global_var:acm_s5_m_farmlands_advantage } }
	else = { set_variable = { name = acm_m_farmlands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_hills_advantage } set_variable = { name = acm_m_hills_advantage value = global_var:acm_s5_m_hills_advantage } }
	else = { set_variable = { name = acm_m_hills_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_mountains_advantage } set_variable = { name = acm_m_mountains_advantage value = global_var:acm_s5_m_mountains_advantage } }
	else = { set_variable = { name = acm_m_mountains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_desert_advantage } set_variable = { name = acm_m_desert_advantage value = global_var:acm_s5_m_desert_advantage } }
	else = { set_variable = { name = acm_m_desert_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_desert_mountains_advantage } set_variable = { name = acm_m_desert_mountains_advantage value = global_var:acm_s5_m_desert_mountains_advantage } }
	else = { set_variable = { name = acm_m_desert_mountains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_oasis_advantage } set_variable = { name = acm_m_oasis_advantage value = global_var:acm_s5_m_oasis_advantage } }
	else = { set_variable = { name = acm_m_oasis_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_jungle_advantage } set_variable = { name = acm_m_jungle_advantage value = global_var:acm_s5_m_jungle_advantage } }
	else = { set_variable = { name = acm_m_jungle_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_forest_advantage } set_variable = { name = acm_m_forest_advantage value = global_var:acm_s5_m_forest_advantage } }
	else = { set_variable = { name = acm_m_forest_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_taiga_advantage } set_variable = { name = acm_m_taiga_advantage value = global_var:acm_s5_m_taiga_advantage } }
	else = { set_variable = { name = acm_m_taiga_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_wetlands_advantage } set_variable = { name = acm_m_wetlands_advantage value = global_var:acm_s5_m_wetlands_advantage } }
	else = { set_variable = { name = acm_m_wetlands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_steppe_advantage } set_variable = { name = acm_m_steppe_advantage value = global_var:acm_s5_m_steppe_advantage } }
	else = { set_variable = { name = acm_m_steppe_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_floodplains_advantage } set_variable = { name = acm_m_floodplains_advantage value = global_var:acm_s5_m_floodplains_advantage } }
	else = { set_variable = { name = acm_m_floodplains_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_drylands_advantage } set_variable = { name = acm_m_drylands_advantage value = global_var:acm_s5_m_drylands_advantage } }
	else = { set_variable = { name = acm_m_drylands_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_winter_advantage } set_variable = { name = acm_m_winter_advantage value = global_var:acm_s5_m_winter_advantage } }
	else = { set_variable = { name = acm_m_winter_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_coastal_advantage } set_variable = { name = acm_m_coastal_advantage value = global_var:acm_s5_m_coastal_advantage } }
	else = { set_variable = { name = acm_m_coastal_advantage value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_character_travel_speed } set_variable = { name = acm_m_character_travel_speed value = global_var:acm_s5_m_character_travel_speed } }
	else = { set_variable = { name = acm_m_character_travel_speed value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_character_travel_safety } set_variable = { name = acm_m_character_travel_safety value = global_var:acm_s5_m_character_travel_safety } }
	else = { set_variable = { name = acm_m_character_travel_safety value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_character_travel_speed_mult } set_variable = { name = acm_m_character_travel_speed_mult value = global_var:acm_s5_m_character_travel_speed_mult } }
	else = { set_variable = { name = acm_m_character_travel_speed_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_character_travel_safety_mult } set_variable = { name = acm_m_character_travel_safety_mult value = global_var:acm_s5_m_character_travel_safety_mult } }
	else = { set_variable = { name = acm_m_character_travel_safety_mult value = 0 } }
	if = { limit = { has_global_variable = acm_s5_m_winter_movement_speed } set_variable = { name = acm_m_winter_movement_speed value = global_var:acm_s5_m_winter_movement_speed } }
	else = { set_variable = { name = acm_m_winter_movement_speed value = 0 } }
	acm_init_settings_effect = yes
}

acm_slot_clear_5_effect = {
	remove_global_variable = acm_s5_saved
	remove_global_variable = acm_s5_type
	remove_global_variable = acm_s5_icon
	remove_global_variable = acm_s5_asset
	remove_global_variable = acm_s5_support
	remove_global_variable = acm_s5_rarity
	remove_global_variable = acm_s5_history
	remove_global_variable = acm_s5_name
	remove_global_variable = acm_s5_desc
	remove_global_variable = acm_s5_benefit
	remove_global_variable = acm_s5_equip
	remove_global_variable = acm_s5_relic
	remove_global_variable = acm_s5_msg
	remove_global_variable = acm_s5_vset
	remove_global_variable = acm_s5_preset
	remove_global_variable = acm_s5_quality
	remove_global_variable = acm_s5_wealth
	remove_global_variable = acm_s5_durability
	remove_global_variable = acm_s5_auto_look
	remove_global_variable = acm_s5_unique
	remove_global_variable = acm_s5_no_decay
	remove_global_variable = acm_s5_no_reforge
	remove_global_variable = acm_s5_no_repair
	remove_global_variable = acm_s5_auto_equip
	remove_global_variable = acm_s5_features
	remove_global_variable = acm_s5_creator_is_owner
	remove_global_variable = acm_s5_maker
	remove_global_variable = acm_s5_history_actor
	remove_global_variable = acm_s5_m_diplomacy
	remove_global_variable = acm_s5_m_martial
	remove_global_variable = acm_s5_m_stewardship
	remove_global_variable = acm_s5_m_intrigue
	remove_global_variable = acm_s5_m_learning
	remove_global_variable = acm_s5_m_prowess_no_portrait
	remove_global_variable = acm_s5_m_diplomacy_mult
	remove_global_variable = acm_s5_m_martial_mult
	remove_global_variable = acm_s5_m_stewardship_mult
	remove_global_variable = acm_s5_m_intrigue_mult
	remove_global_variable = acm_s5_m_learning_mult
	remove_global_variable = acm_s5_m_prowess_mult
	remove_global_variable = acm_s5_m_monthly_lifestyle_xp_gain_mult
	remove_global_variable = acm_s5_m_monthly_diplomacy_lifestyle_xp_gain_mult
	remove_global_variable = acm_s5_m_monthly_martial_lifestyle_xp_gain_mult
	remove_global_variable = acm_s5_m_monthly_stewardship_lifestyle_xp_gain_mult
	remove_global_variable = acm_s5_m_monthly_intrigue_lifestyle_xp_gain_mult
	remove_global_variable = acm_s5_m_monthly_learning_lifestyle_xp_gain_mult
	remove_global_variable = acm_s5_m_monthly_prestige
	remove_global_variable = acm_s5_m_monthly_piety
	remove_global_variable = acm_s5_m_monthly_income
	remove_global_variable = acm_s5_m_monthly_dynasty_prestige
	remove_global_variable = acm_s5_m_monthly_influence
	remove_global_variable = acm_s5_m_monthly_prestige_gain_mult
	remove_global_variable = acm_s5_m_monthly_piety_gain_mult
	remove_global_variable = acm_s5_m_monthly_income_mult
	remove_global_variable = acm_s5_m_monthly_dynasty_prestige_mult
	remove_global_variable = acm_s5_m_monthly_influence_mult
	remove_global_variable = acm_s5_m_monthly_merit_mult
	remove_global_variable = acm_s5_m_domain_tax_mult
	remove_global_variable = acm_s5_m_vassal_tax_contribution_mult
	remove_global_variable = acm_s5_m_monthly_war_income_add
	remove_global_variable = acm_s5_m_herd_gain_mult
	remove_global_variable = acm_s5_m_court_grandeur_baseline_add
	remove_global_variable = acm_s5_m_domain_limit
	remove_global_variable = acm_s5_m_vassal_limit
	remove_global_variable = acm_s5_m_knight_limit
	remove_global_variable = acm_s5_m_men_at_arms_limit
	remove_global_variable = acm_s5_m_men_at_arms_cap
	remove_global_variable = acm_s5_m_legitimacy_gain_mult
	remove_global_variable = acm_s5_m_legitimacy_loss_mult
	remove_global_variable = acm_s5_m_short_reign_duration_mult
	remove_global_variable = acm_s5_m_dread_baseline_add
	remove_global_variable = acm_s5_m_dread_gain_mult
	remove_global_variable = acm_s5_m_dread_decay_mult
	remove_global_variable = acm_s5_m_tyranny_gain_mult
	remove_global_variable = acm_s5_m_tyranny_loss_mult
	remove_global_variable = acm_s5_m_title_creation_cost_mult
	remove_global_variable = acm_s5_m_build_gold_cost
	remove_global_variable = acm_s5_m_build_speed
	remove_global_variable = acm_s5_m_development_growth
	remove_global_variable = acm_s5_m_development_growth_factor
	remove_global_variable = acm_s5_m_monthly_county_control_growth_add
	remove_global_variable = acm_s5_m_levy_size
	remove_global_variable = acm_s5_m_levy_reinforcement_rate
	remove_global_variable = acm_s5_m_garrison_size
	remove_global_variable = acm_s5_m_fort_level
	remove_global_variable = acm_s5_m_cultural_head_fascination_mult
	remove_global_variable = acm_s5_m_owned_legend_spread_mult
	remove_global_variable = acm_s5_m_general_opinion
	remove_global_variable = acm_s5_m_vassal_opinion
	remove_global_variable = acm_s5_m_direct_vassal_opinion
	remove_global_variable = acm_s5_m_powerful_vassal_opinion
	remove_global_variable = acm_s5_m_clergy_opinion
	remove_global_variable = acm_s5_m_courtly_opinion
	remove_global_variable = acm_s5_m_zealot_opinion
	remove_global_variable = acm_s5_m_glory_hound_opinion
	remove_global_variable = acm_s5_m_parochial_opinion
	remove_global_variable = acm_s5_m_belligerent_opinion
	remove_global_variable = acm_s5_m_dynasty_opinion
	remove_global_variable = acm_s5_m_spouse_opinion
	remove_global_variable = acm_s5_m_child_opinion
	remove_global_variable = acm_s5_m_attraction_opinion
	remove_global_variable = acm_s5_m_courtier_and_guest_opinion
	remove_global_variable = acm_s5_m_same_faith_opinion
	remove_global_variable = acm_s5_m_different_faith_opinion
	remove_global_variable = acm_s5_m_same_culture_opinion
	remove_global_variable = acm_s5_m_different_culture_opinion
	remove_global_variable = acm_s5_m_independent_ruler_opinion
	remove_global_variable = acm_s5_m_religious_head_opinion
	remove_global_variable = acm_s5_m_county_opinion_add
	remove_global_variable = acm_s5_m_prisoner_opinion
	remove_global_variable = acm_s5_m_health
	remove_global_variable = acm_s5_m_negate_health_penalty_add
	remove_global_variable = acm_s5_m_fertility
	remove_global_variable = acm_s5_m_life_expectancy
	remove_global_variable = acm_s5_m_years_of_fertility
	remove_global_variable = acm_s5_m_stress_gain_mult
	remove_global_variable = acm_s5_m_stress_loss_mult
	remove_global_variable = acm_s5_m_epidemic_resistance
	remove_global_variable = acm_s5_m_negate_prowess_penalty_add
	remove_global_variable = acm_s5_m_positive_inactive_inheritance_chance
	remove_global_variable = acm_s5_m_owned_hostile_scheme_success_chance_add
	remove_global_variable = acm_s5_m_owned_personal_scheme_success_chance_add
	remove_global_variable = acm_s5_m_owned_scheme_secrecy_add
	remove_global_variable = acm_s5_m_enemy_hostile_scheme_success_chance_add
	remove_global_variable = acm_s5_m_enemy_personal_scheme_success_chance_add
	remove_global_variable = acm_s5_m_hostile_scheme_phase_duration_add
	remove_global_variable = acm_s5_m_personal_scheme_phase_duration_add
	remove_global_variable = acm_s5_m_enemy_hostile_scheme_phase_duration_add
	remove_global_variable = acm_s5_m_max_hostile_schemes_add
	remove_global_variable = acm_s5_m_max_personal_schemes_add
	remove_global_variable = acm_s5_m_seduce_scheme_phase_duration_add
	remove_global_variable = acm_s5_m_courting_scheme_phase_duration_add
	remove_global_variable = acm_s5_m_befriend_scheme_phase_duration_add
	remove_global_variable = acm_s5_m_learn_language_scheme_phase_duration_add
	remove_global_variable = acm_s5_m_knight_effectiveness_mult
	remove_global_variable = acm_s5_m_army_damage_mult
	remove_global_variable = acm_s5_m_army_toughness_mult
	remove_global_variable = acm_s5_m_army_pursuit_mult
	remove_global_variable = acm_s5_m_army_screen_mult
	remove_global_variable = acm_s5_m_army_maintenance_mult
	remove_global_variable = acm_s5_m_men_at_arms_maintenance
	remove_global_variable = acm_s5_m_mercenary_hire_cost_mult
	remove_global_variable = acm_s5_m_enemy_hard_casualty_modifier
	remove_global_variable = acm_s5_m_hard_casualty_modifier
	remove_global_variable = acm_s5_m_retreat_losses
	remove_global_variable = acm_s5_m_supply_limit_mult
	remove_global_variable = acm_s5_m_movement_speed
	remove_global_variable = acm_s5_m_naval_movement_speed_mult
	remove_global_variable = acm_s5_m_embarkation_cost_mult
	remove_global_variable = acm_s5_m_raid_speed
	remove_global_variable = acm_s5_m_controlled_province_advantage
	remove_global_variable = acm_s5_m_defender_advantage
	remove_global_variable = acm_s5_m_tolerance_advantage_mod
	remove_global_variable = acm_s5_m_led_by_owner_extra_advantage_add
	remove_global_variable = acm_s5_m_pursue_efficiency
	remove_global_variable = acm_s5_m_levy_reinforcement_rate_same_faith
	remove_global_variable = acm_s5_m_heavy_infantry_damage_mult
	remove_global_variable = acm_s5_m_heavy_infantry_toughness_mult
	remove_global_variable = acm_s5_m_heavy_cavalry_damage_mult
	remove_global_variable = acm_s5_m_heavy_cavalry_toughness_mult
	remove_global_variable = acm_s5_m_light_cavalry_damage_mult
	remove_global_variable = acm_s5_m_light_cavalry_toughness_mult
	remove_global_variable = acm_s5_m_archers_damage_mult
	remove_global_variable = acm_s5_m_archers_toughness_mult
	remove_global_variable = acm_s5_m_pikemen_damage_mult
	remove_global_variable = acm_s5_m_pikemen_toughness_mult
	remove_global_variable = acm_s5_m_skirmishers_damage_mult
	remove_global_variable = acm_s5_m_skirmishers_toughness_mult
	remove_global_variable = acm_s5_m_archer_cavalry_damage_mult
	remove_global_variable = acm_s5_m_archer_cavalry_toughness_mult
	remove_global_variable = acm_s5_m_camel_cavalry_damage_mult
	remove_global_variable = acm_s5_m_elephant_cavalry_damage_mult
	remove_global_variable = acm_s5_m_siege_weapon_siege_value_mult
	remove_global_variable = acm_s5_m_plains_advantage
	remove_global_variable = acm_s5_m_farmlands_advantage
	remove_global_variable = acm_s5_m_hills_advantage
	remove_global_variable = acm_s5_m_mountains_advantage
	remove_global_variable = acm_s5_m_desert_advantage
	remove_global_variable = acm_s5_m_desert_mountains_advantage
	remove_global_variable = acm_s5_m_oasis_advantage
	remove_global_variable = acm_s5_m_jungle_advantage
	remove_global_variable = acm_s5_m_forest_advantage
	remove_global_variable = acm_s5_m_taiga_advantage
	remove_global_variable = acm_s5_m_wetlands_advantage
	remove_global_variable = acm_s5_m_steppe_advantage
	remove_global_variable = acm_s5_m_floodplains_advantage
	remove_global_variable = acm_s5_m_drylands_advantage
	remove_global_variable = acm_s5_m_winter_advantage
	remove_global_variable = acm_s5_m_coastal_advantage
	remove_global_variable = acm_s5_m_character_travel_speed
	remove_global_variable = acm_s5_m_character_travel_safety
	remove_global_variable = acm_s5_m_character_travel_speed_mult
	remove_global_variable = acm_s5_m_character_travel_safety_mult
	remove_global_variable = acm_s5_m_winter_movement_speed
}

acm_send_creation_message_effect = {
	if = {
		limit = { var:acm_msg ?= flag:random }
		random_list = {
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_01
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_02
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_03
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_04
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_05
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_06
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_07
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_08
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_09
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_10
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_11
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
			1 = {
				send_interface_toast = {
					type = event_toast_text_good
					title = acm_toast_created
					desc = acm_cmsg_12
					left_icon = scope:owner
					right_icon = scope:newly_created_artifact
				}
			}
		}
	}
	else_if = {
		limit = { var:acm_msg ?= flag:custom_01 }
		send_interface_toast = {
			type = event_toast_text_good
			title = acm_toast_created
			desc = acm_cmsg_custom_01
			left_icon = scope:owner
			right_icon = scope:newly_created_artifact
		}
	}
	else_if = {
		limit = { var:acm_msg ?= flag:custom_02 }
		send_interface_toast = {
			type = event_toast_text_good
			title = acm_toast_created
			desc = acm_cmsg_custom_02
			left_icon = scope:owner
			right_icon = scope:newly_created_artifact
		}
	}
	else_if = {
		limit = { var:acm_msg ?= flag:custom_03 }
		send_interface_toast = {
			type = event_toast_text_good
			title = acm_toast_created
			desc = acm_cmsg_custom_03
			left_icon = scope:owner
			right_icon = scope:newly_created_artifact
		}
	}
	else_if = {
		limit = { var:acm_msg ?= flag:custom_04 }
		send_interface_toast = {
			type = event_toast_text_good
			title = acm_toast_created
			desc = acm_cmsg_custom_04
			left_icon = scope:owner
			right_icon = scope:newly_created_artifact
		}
	}
	else_if = {
		limit = { var:acm_msg ?= flag:custom_05 }
		send_interface_toast = {
			type = event_toast_text_good
			title = acm_toast_created
			desc = acm_cmsg_custom_05
			left_icon = scope:owner
			right_icon = scope:newly_created_artifact
		}
	}
	else_if = {
		limit = { var:acm_msg ?= flag:custom_06 }
		send_interface_toast = {
			type = event_toast_text_good
			title = acm_toast_created
			desc = acm_cmsg_custom_06
			left_icon = scope:owner
			right_icon = scope:newly_created_artifact
		}
	}
	else_if = {
		limit = { var:acm_msg ?= flag:custom_07 }
		send_interface_toast = {
			type = event_toast_text_good
			title = acm_toast_created
			desc = acm_cmsg_custom_07
			left_icon = scope:owner
			right_icon = scope:newly_created_artifact
		}
	}
	else_if = {
		limit = { var:acm_msg ?= flag:custom_08 }
		send_interface_toast = {
			type = event_toast_text_good
			title = acm_toast_created
			desc = acm_cmsg_custom_08
			left_icon = scope:owner
			right_icon = scope:newly_created_artifact
		}
	}
	else_if = {
		limit = { var:acm_msg ?= flag:custom_09 }
		send_interface_toast = {
			type = event_toast_text_good
			title = acm_toast_created
			desc = acm_cmsg_custom_09
			left_icon = scope:owner
			right_icon = scope:newly_created_artifact
		}
	}
	else_if = {
		limit = { var:acm_msg ?= flag:custom_10 }
		send_interface_toast = {
			type = event_toast_text_good
			title = acm_toast_created
			desc = acm_cmsg_custom_10
			left_icon = scope:owner
			right_icon = scope:newly_created_artifact
		}
	}
}

acm_qol_register_flags_effect = {
	if = {
		limit = { always = no }
		set_variable = { name = acm_ui_mcat value = flag:crowns }
		set_variable = { name = acm_ui_mcat value = flag:weapons }
		set_variable = { name = acm_ui_mcat value = flag:shields }
		set_variable = { name = acm_ui_mcat value = flag:armor }
		set_variable = { name = acm_ui_mcat value = flag:thrones }
		set_variable = { name = acm_ui_mcat value = flag:jewelry }
		set_variable = { name = acm_ui_mcat value = flag:books }
		set_variable = { name = acm_ui_mcat value = flag:religious }
		set_variable = { name = acm_ui_mcat value = flag:vessels }
		set_variable = { name = acm_ui_mcat value = flag:boxes }
		set_variable = { name = acm_ui_mcat value = flag:furniture }
		set_variable = { name = acm_ui_mcat value = flag:statues }
		set_variable = { name = acm_ui_mcat value = flag:wall }
		set_variable = { name = acm_ui_mcat value = flag:trophies }
		set_variable = { name = acm_ui_mcat value = flag:pedestals }
		set_variable = { name = acm_ui_mcat value = flag:instruments }
		set_variable = { name = acm_ui_mcat value = flag:other }
		set_variable = { name = acm_ui_mcat value = flag:custom }
		set_variable = { name = acm_ui_look value = flag:sets }
		set_variable = { name = acm_ui_look value = flag:icons }
		set_variable = { name = acm_ui_look value = flag:models }
		set_variable = { name = acm_ui_look value = flag:display }
		set_variable = { name = acm_ui_mc value = flag:active }
		set_variable = { name = acm_ui_mc value = flag:skills }
		set_variable = { name = acm_ui_mc value = flag:resources }
		set_variable = { name = acm_ui_mc value = flag:court }
		set_variable = { name = acm_ui_mc value = flag:opinion }
		set_variable = { name = acm_ui_mc value = flag:health }
		set_variable = { name = acm_ui_mc value = flag:schemes }
		set_variable = { name = acm_ui_mc value = flag:military }
		set_variable = { name = acm_ui_mc value = flag:terrain }
		set_variable = { name = acm_ui_mc value = flag:travel }
		set_variable = { name = acm_ui_tab value = flag:edit }
		set_variable = { name = acm_ui_tab value = flag:presets }
		set_variable = { name = acm_ui_tab value = flag:type }
		set_variable = { name = acm_ui_tab value = flag:look }
		set_variable = { name = acm_ui_tab value = flag:bonuses }
		set_variable = { name = acm_ui_tab value = flag:props }
		set_variable = { name = acm_ui_tab value = flag:help }
		set_variable = { name = acm_ui_pcat value = flag:all }
		set_variable = { name = acm_ui_pcat value = flag:fun }
		set_variable = { name = acm_ui_pcat value = flag:op }
		set_variable = { name = acm_ui_pcat value = flag:legend_norse }
		set_variable = { name = acm_ui_pcat value = flag:legend_classical }
		set_variable = { name = acm_ui_pcat value = flag:legend_celtic }
		set_variable = { name = acm_ui_pcat value = flag:legend_holy }
		set_variable = { name = acm_ui_pcat value = flag:legend_east }
		set_variable = { name = acm_ui_pcat value = flag:legend_asia }
		set_variable = { name = acm_ui_pcat value = flag:legend_world }
		set_variable = { name = acm_ui_pcat value = flag:saved }
		set_variable = { name = acm_ui_pkind value = flag:all }
		set_variable = { name = acm_ui_pkind value = flag:weapons }
		set_variable = { name = acm_ui_pkind value = flag:armor }
		set_variable = { name = acm_ui_pkind value = flag:regalia }
		set_variable = { name = acm_ui_pkind value = flag:trinkets }
		set_variable = { name = acm_ui_pkind value = flag:court }
		set_variable = { name = acm_msg value = flag:none }
		set_variable = { name = acm_msg value = flag:random }
		set_variable = { name = acm_msg value = flag:custom_01 }
		set_variable = { name = acm_msg value = flag:custom_02 }
		set_variable = { name = acm_msg value = flag:custom_03 }
		set_variable = { name = acm_msg value = flag:custom_04 }
		set_variable = { name = acm_msg value = flag:custom_05 }
		set_variable = { name = acm_msg value = flag:custom_06 }
		set_variable = { name = acm_msg value = flag:custom_07 }
		set_variable = { name = acm_msg value = flag:custom_08 }
		set_variable = { name = acm_msg value = flag:custom_09 }
		set_variable = { name = acm_msg value = flag:custom_10 }
	}
}
