defined_text = { # state
	name = r56rp_tool_state_selection_button_2_sloc

	text = {
		trigger = {
			THIS = {
				is_in_array = {
					array = ROOT.r56rp_tool_state_array
					value = THIS.id
				}
			}
		}
		localization_key = r56rp_tool_state_selection_button_rmv_2_loc
	}
	text = {
		trigger = {
			THIS = {
				NOT = {
					is_in_array = {
						array = ROOT.r56rp_tool_state_array
						value = THIS.id
					}
				}
			}
		}
		localization_key = r56rp_tool_state_selection_button_add_2_loc
	}
}

defined_text = { # state
	name = mark_state_tooltip

	text = {
		trigger = {
			has_state_flag = marked_for_transfer
		}
		localization_key = mark_state_no
	}
	text = {
		localization_key = mark_state_yes
	}
}

defined_text = { # global
	name = host_transfer_states_tooltip

	text = {
		trigger = {
			has_country_flag = hosttool_enabled
		}
		localization_key = host_transfer_states_off
	}
	text = {
		localization_key = host_transfer_states_on
	}
}

defined_text = { # global
	name = ST_TOOLTIP

	text = {
		trigger = {
			has_country_flag = hosttool_enabled
		}
		localization_key = ST_TOOLTIP_off
	}
	text = {
		localization_key = ST_TOOLTIP_on
	}
}

defined_text = { # global
	name = host_mark_status

	text = {
		trigger = {
			has_state_flag = marked_for_transfer
		}
		localization_key = mark_status_marked
	}
	text = {
		localization_key = mark_status_unmarked
	}
}

defined_text = {
	name = SCRL_HT_CHEAT_SELEC

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 1
			}
		}
		localization_key = SCRL_HT_CHEAT_1
	}
	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 2
			}
		}
		localization_key = SCRL_HT_CHEAT_2
	}
	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 3
			}
		}
		localization_key = SCRL_HT_CHEAT_3
	}
	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 4
			}
		}
		localization_key = SCRL_HT_CHEAT_4
	}
	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 5
			}
		}
		localization_key = SCRL_HT_CHEAT_5
	}
	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 6
			}
		}
		localization_key = SCRL_HT_CHEAT_6
	}
	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 7
			}
		}
		localization_key = SCRL_HT_CHEAT_7
	}
	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 8
			}
		}
		localization_key = SCRL_HT_CHEAT_8
	}
	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 9
			}
		}
		localization_key = SCRL_HT_CHEAT_9
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 10
			}
		}
		localization_key = SCRL_HT_CHEAT_10
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 11
			}
		}
		localization_key = SCRL_HT_CHEAT_11
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 12
			}
		}
		localization_key = SCRL_HT_CHEAT_12
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 13
			}
		}
		localization_key = SCRL_HT_CHEAT_13
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 14
			}
		}
		localization_key = SCRL_HT_CHEAT_14
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 15
			}
		}
		localization_key = SCRL_HT_CHEAT_15
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 16
			}
		}
		localization_key = SCRL_HT_CHEAT_16
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 17
			}
		}
		localization_key = SCRL_HT_CHEAT_17
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 18
			}
		}
		localization_key = SCRL_HT_CHEAT_18
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 19
			}
		}
		localization_key = SCRL_HT_CHEAT_19
	}

	text = {
		trigger = {
			check_variable = {
				ROOT.r56rp_ht_cheatsl = 20
			}
		}
		localization_key = SCRL_HT_CHEAT_20
	}

	text = {
		localization_key = ht_cheat_scriploc_noselection
	}
}

defined_text = { # state
	name = rt_button_topbar_text

	text = {
		trigger = {
			ROOT = {
				check_variable = {
					rt_status = 1
				}
			}
		}
		localization_key = rt_button_topbar_enabled
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = {
					rt_status = 0
				}
			}
		}
		localization_key = rt_button_topbar_disabled
	}
}

defined_text = { # state
	name = receiver_text

	text = {
		trigger = {
			ROOT ={
				check_variable = { swap_sides = 0 }
			}
		}
		localization_key = rt_tag_1_text
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { swap_sides = 1}
			}
		}
		localization_key = rt_tag_2_text
	}


}

defined_text = { # state
	name = provider_text

	text = {
		trigger = {
			ROOT ={
				check_variable = { swap_sides = 1 }
			}
		}
		localization_key = rt_tag_1_text
	}
	text = {
		trigger = {
			check_variable = { swap_sides = 0 }
		}
		localization_key = rt_tag_2_text
	}


}

defined_text = { # state
	name = receiver_img

	text = {
		trigger = {
			ROOT ={
				check_variable = { swap_sides = 0 }
			}
		}
		localization_key = rt_tag_1_img
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { swap_sides = 1 }
			}
		}
		localization_key = rt_tag_2_img
	}


}

defined_text = { # state
	name = provider_img

	text = {
		trigger = {
			ROOT ={
				check_variable = { swap_sides = 1 }
			}
		}
		localization_key = rt_tag_1_img
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { swap_sides = 0 }
			}
		}
		localization_key = rt_tag_2_img
	}

}

defined_text = { # state
	name = producer

	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 2 }
			}
		}
		localization_key = rt_state_id_locked
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 1 }
			}
		}
		localization_key = rt_state_id_unlocked
	}


}

defined_text = { # state
	name = add_rights_text

	text = {
		trigger = {
			ROOT ={
				check_variable = { swap_sides = 0 }
			}
		}
		localization_key = rt_add_rights_from
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { swap_sides = 1 }
			}
		}
		localization_key = rt_add_rights_to
	}
}

defined_text = { # state
	name = get_steel

	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 2 }
			}
		}
		localization_key = ammount_steel_selected
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 1 }
			}
		}
		localization_key = ammount_steel_any
	}
}
defined_text = { # state
	name = get_oil

	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 2 }
			}
		}
		localization_key = ammount_oil_selected
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 1 }
			}
		}
		localization_key = ammount_oil_any
	}
}
defined_text = { # state
	name = get_chromium

	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 2 }
			}
		}
		localization_key = ammount_chromium_selected
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 1 }
			}
		}
		localization_key = ammount_chromium_any
	}
}
defined_text = { # state
	name = get_rubber

	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 2 }
			}
		}
		localization_key = ammount_rubber_selected
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 1 }
			}
		}
		localization_key = ammount_rubber_any
	}
}
defined_text = { # state
	name = get_tungsten

	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 2 }
			}
		}
		localization_key = ammount_tungsten_selected
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 1 }
			}
		}
		localization_key = ammount_tungsten_any
	}
}
defined_text = { # state
	name = get_aluminium

	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 2 }
			}
		}
		localization_key = ammount_aluminium_selected
	}
	text = {
		trigger = {
			ROOT ={
				check_variable = { state_lock = 1 }
			}
		}
		localization_key = ammount_aluminium_any
	}
}
defined_text = {
	name = rt_list_entry_1

	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^0 = 0 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^0 = 1 }
			}
		}
		localization_key = rt_oil
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^0 = 2 }
			}
		}
		localization_key = rt_aluminium
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^0 = 3 }
			}
		}
		localization_key = rt_rubber
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^0 = 4 }
			}
		}
		localization_key = rt_tungsten
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^0 = 5 }
			}
		}
		localization_key = rt_steel
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^0 = 6 }
			}
		}
		localization_key = rt_chromium
	}
}
defined_text = {
	name = rt_list_entry_3

	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^1 = 0 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^1 = 1 }
			}
		}
		localization_key = rt_oil
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^1 = 2 }
			}
		}
		localization_key = rt_aluminium
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^1 = 3 }
			}
		}
		localization_key = rt_rubber
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^1 = 4 }
			}
		}
		localization_key = rt_tungsten
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^1 = 5 }
			}
		}
		localization_key = rt_steel
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^1 = 6 }
			}
		}
		localization_key = rt_chromium
	}
}
defined_text = {
	name = rt_list_entry_5

	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^2 = 0 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^2 = 1 }
			}
		}
		localization_key = rt_oil
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^2 = 2 }
			}
		}
		localization_key = rt_aluminium
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^2 = 3 }
			}
		}
		localization_key = rt_rubber
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^2 = 4 }
			}
		}
		localization_key = rt_tungsten
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^2 = 5 }
			}
		}
		localization_key = rt_steel
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^2 = 6 }
			}
		}
		localization_key = rt_chromium
	}
}
defined_text = {
	name = rt_list_entry_7

	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^3 = 0 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^3 = 1 }
			}
		}
		localization_key = rt_oil
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^3 = 2 }
			}
		}
		localization_key = rt_aluminium
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^3 = 3 }
			}
		}
		localization_key = rt_rubber
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^3 = 4 }
			}
		}
		localization_key = rt_tungsten
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^3 = 5 }
			}
		}
		localization_key = rt_steel
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^3 = 6 }
			}
		}
		localization_key = rt_chromium
	}
}
defined_text = {
	name = rt_list_entry_9

	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^4 = 0 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^4 = 1 }
			}
		}
		localization_key = rt_oil
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^4 = 2 }
			}
		}
		localization_key = rt_aluminium
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^4 = 3 }
			}
		}
		localization_key = rt_rubber
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^4 = 4 }
			}
		}
		localization_key = rt_tungsten
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^4 = 5 }
			}
		}
		localization_key = rt_steel
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^4 = 6 }
			}
		}
		localization_key = rt_chromium
	}
}
defined_text = {
	name = rt_list_entry_11

	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^5 = 0 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^5 = 1 }
			}
		}
		localization_key = rt_oil
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^5 = 2 }
			}
		}
		localization_key = rt_aluminium
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^5 = 3 }
			}
		}
		localization_key = rt_rubber
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^5 = 4 }
			}
		}
		localization_key = rt_tungsten
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^5 = 5 }
			}
		}
		localization_key = rt_steel
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^5 = 6 }
			}
		}
		localization_key = rt_chromium
	}
}
defined_text = {
	name = rt_list_entry_2
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num < 2 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num > 2 }
			}
		}
		localization_key = rt_comma
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num = 2 }
			}
		}
		localization_key = rt_and
	}
}
defined_text = {
	name = rt_list_entry_4
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num < 3 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num > 3 }
			}
		}
		localization_key = rt_comma
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num = 3 }
			}
		}
		localization_key = rt_and
	}
}
defined_text = {
	name = rt_list_entry_6
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num < 4 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num > 4 }
			}
		}
		localization_key = rt_comma
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num = 4 }
			}
		}
		localization_key = rt_and
	}
}
defined_text = {
	name = rt_list_entry_8
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num < 5 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num > 5}
			}
		}
		localization_key = rt_comma
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num = 5 }
			}
		}
		localization_key = rt_and
	}
}
defined_text = {
	name = rt_list_entry_10
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num < 6 }
			}
		}
		localization_key = rt_empty
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num > 6 }
			}
		}
		localization_key = rt_comma
	}
	text = {
		trigger = {
			ROOT = {
				check_variable = { resource_list^num = 6 }
			}
		}
		localization_key = rt_and
	}
}

defined_text = { # state
	name = mark_state_tooltip

	text = {
		trigger = {
			has_state_flag = marked_for_transfer
		}
		localization_key = mark_state_no
	}
	text = {
		localization_key = mark_state_yes
	}
}

defined_text = { # global
	name = transfer_states_tooltip

	text = {
		trigger = {
			has_country_flag = transfer_enabled
		}
		localization_key = transfer_states_off
	}
	text = {
		localization_key = transfer_states_on
	}
}

defined_text = { # global
	name = ST_TOOLTIP

	text = {
		trigger = {
			has_country_flag = transfer_enabled
		}
		localization_key = ST_TOOLTIP_off
	}
	text = {
		localization_key = ST_TOOLTIP_on
	}
}

defined_text = { # state
	name = mark_status

	text = {
		trigger = {
			has_state_flag = marked_for_transfer
		}
		localization_key = mark_status_marked
	}
	text = {
		localization_key = mark_status_unmarked
	}
}

defined_text = { # global
	name = award_states_tooltip

	text = {
		trigger = {
			all_owned_state = {
				has_state_flag = marked_for_transfer
			} 
		}
		localization_key = AWARD_STATES_DELAYED_cannot_transfer
	}
	text = {
		localization_key = AWARD_STATES_DELAYED_ok
	}
}