defined_text = {
	name = NA_N_remove_resource_rights_cost_scripted
	text = {
		trigger = { ROOT = { has_country_flag = NA_N_remove_resource_rights_accepted_flag } }
		localization_key = NA_N_remove_resource_rights_free
	}
	text = {
		trigger = { always = yes }
		localization_key = NA_N_remove_resource_rights_cost
	}
}

defined_text = {
	name = NA_N_remove_resource_rights_cost_blocked_scripted
	text = {
		trigger = { ROOT = { has_country_flag = NA_N_remove_resource_rights_accepted_flag } }
		localization_key = NA_N_remove_resource_rights_free_blocked
	}
	text = {
		trigger = { always = yes }
		localization_key = NA_N_remove_resource_rights_cost_blocked
	}
}

defined_text = {
	name = NA_N_remove_resource_rights_cost_tooltip_scripted
	text = {
		trigger = { ROOT = { has_country_flag = NA_N_remove_resource_rights_accepted_flag } }
		localization_key = NA_N_remove_resource_rights_free_tooltip
	}
	text = {
		trigger = { always = yes }
		localization_key = NA_N_remove_resource_rights_cost_tooltip
	}
}


defined_text = {
	name = NA_N_conflict_escalation_scripted
	text = {
		trigger = { 
			ROOT = {
				OR = {
					TAG = APA
					TAG = NAV
					TAG = SIX
					TAG = BFT
					TAG = NEZ
				}
			}
		}
		localization_key = NA_N_conflict_escalation_native_loc
	}
	text = {
		trigger = { 
			ROOT = {
				OR = {
					is_neighbor_of = APA
					is_neighbor_of = NAV
					is_neighbor_of = SIX
					is_neighbor_of = BFT
					is_neighbor_of = NEZ
				}
			}
		}
		localization_key = NA_N_conflict_escalation_loc
	}
}
defined_text = {
	name = APA_conflict_escalation_scripted
	text = {
		trigger = { ROOT = { is_neighbor_of = APA } }
		localization_key = APA_conflict_escalation_loc
	}
}
defined_text = {
	name = APA_conflict_escalation_color
	text = {
		trigger = { check_variable = { var = APA.NA_N_conflict_escalation_value@ROOT value = 8 compare = greater_than } }
		localization_key = APA_conflict_escalation_red
	}
	text = {
		trigger = { check_variable = { var = APA.NA_N_conflict_escalation_value@ROOT value = 4 compare = greater_than } }
		localization_key = APA_conflict_escalation_orange
	}
	text = {
		trigger = { check_variable = { var = APA.NA_N_conflict_escalation_value@ROOT value = 0 compare = greater_than_or_equals } }
		localization_key = APA_conflict_escalation_green
	}
}

defined_text = {
	name = NAV_conflict_escalation_scripted
	text = {
		trigger = { ROOT = { is_neighbor_of = NAV } }
		localization_key = NAV_conflict_escalation_loc
	}
}
defined_text = {
	name = NAV_conflict_escalation_color
	text = {
		trigger = { check_variable = { var = NAV.NA_N_conflict_escalation_value@ROOT value = 8 compare = greater_than } }
		localization_key = NAV_conflict_escalation_red
	}
	text = {
		trigger = { check_variable = { var = NAV.NA_N_conflict_escalation_value@ROOT value = 4 compare = greater_than } }
		localization_key = NAV_conflict_escalation_orange
	}
	text = {
		trigger = { check_variable = { var = NAV.NA_N_conflict_escalation_value@ROOT value = 0 compare = greater_than_or_equals } }
		localization_key = NAV_conflict_escalation_green
	}
}

defined_text = {
	name = SIX_conflict_escalation_scripted
	text = {
		trigger = { ROOT = { is_neighbor_of = SIX } }
		localization_key = SIX_conflict_escalation_loc
	}
}
defined_text = {
	name = SIX_conflict_escalation_color
	text = {
		trigger = { check_variable = { var = SIX.NA_N_conflict_escalation_value@ROOT value = 8 compare = greater_than } }
		localization_key = SIX_conflict_escalation_red
	}
	text = {
		trigger = { check_variable = { var = SIX.NA_N_conflict_escalation_value@ROOT value = 4 compare = greater_than } }
		localization_key = SIX_conflict_escalation_orange
	}
	text = {
		trigger = { check_variable = { var = SIX.NA_N_conflict_escalation_value@ROOT value = 0 compare = greater_than_or_equals } }
		localization_key = SIX_conflict_escalation_green
	}
}

defined_text = {
	name = SHO_conflict_escalation_scripted
	text = {
		localization_key = SHO_conflict_escalation_loc
	}
}
defined_text = {
	name = SHO_conflict_escalation_color
	text = {
		localization_key = SHO_conflict_escalation_red
	}
	text = {
		localization_key = SHO_conflict_escalation_orange
	}
	text = {
		localization_key = SHO_conflict_escalation_green
	}
}

defined_text = {
	name = BFT_conflict_escalation_scripted
	text = {
		trigger = { ROOT = { is_neighbor_of = BFT } }
		localization_key = BFT_conflict_escalation_loc
	}
}
defined_text = {
	name = BFT_conflict_escalation_color
	text = {
		trigger = { check_variable = { var = BFT.NA_N_conflict_escalation_value@ROOT value = 8 compare = greater_than } }
		localization_key = BFT_conflict_escalation_red
	}
	text = {
		trigger = { check_variable = { var = BFT.NA_N_conflict_escalation_value@ROOT value = 4 compare = greater_than } }
		localization_key = BFT_conflict_escalation_orange
	}
	text = {
		trigger = { check_variable = { var = BFT.NA_N_conflict_escalation_value@ROOT value = 0 compare = greater_than_or_equals } }
		localization_key = BFT_conflict_escalation_green
	}
}

defined_text = {
	name = NEZ_conflict_escalation_scripted
	text = {
		trigger = { ROOT = { is_neighbor_of = NEZ } }
		localization_key = NEZ_conflict_escalation_loc
	}
}
defined_text = {
	name = NEZ_conflict_escalation_color
	text = {
		trigger = { check_variable = { var = NEZ.NA_N_conflict_escalation_value@ROOT value = 8 compare = greater_than } }
		localization_key = NEZ_conflict_escalation_red
	}
	text = {
		trigger = { check_variable = { var = NEZ.NA_N_conflict_escalation_value@ROOT value = 4 compare = greater_than } }
		localization_key = NEZ_conflict_escalation_orange
	}
	text = {
		trigger = { check_variable = { var = NEZ.NA_N_conflict_escalation_value@ROOT value = 0 compare = greater_than_or_equals } }
		localization_key = NEZ_conflict_escalation_green
	}
}

defined_text = {
	name = FROM_conflict_escalation_scripted
	text = {
		trigger = { has_variable = afr_empire_politics_foreign_diplomacy_target }
		localization_key = FROM_conflict_escalation_loc
	}
	text = {
		trigger = { always = yes }
		localization_key = FROM_conflict_escalation_no_target
	}
}
defined_text = {
	name = FROM_conflict_escalation_color
	text = {
		trigger = { check_variable = { var = NA_N_conflict_escalation_value@var:afr_empire_politics_foreign_diplomacy_target value = 8 compare = greater_than } }
		localization_key = FROM_conflict_escalation_red
	}
	text = {
		trigger = { check_variable = { var = NA_N_conflict_escalation_value@var:afr_empire_politics_foreign_diplomacy_target value = 4 compare = greater_than } }
		localization_key = FROM_conflict_escalation_orange
	}
	text = {
		trigger = { check_variable = { var = NA_N_conflict_escalation_value@var:afr_empire_politics_foreign_diplomacy_target value = 0 compare = greater_than_or_equals } }
		localization_key = FROM_conflict_escalation_green
	}
}
