defined_text = {
	name = eoanb_decision_generic_arrest_opposition_leaders_cost_scripted
	text = {
		trigger = {
			OR = {
				has_idea = GEC_idea_polizeiverein_leader_1
				has_idea = GEC_idea_polizeiverein_leader_2
				has_idea = GEC_idea_polizeiverein_member
			}
		}
		localization_key = eoanb_decision_generic_arrest_opposition_leaders_cost_polizeiverein
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = eoanb_decision_generic_arrest_opposition_leaders_cost_loc
	}
}

defined_text = {
	name = eoanb_decision_generic_arrest_opposition_leaders_cost_blocked_scripted
	text = {
		trigger = {
			OR = {
				has_idea = GEC_idea_polizeiverein_leader_1
				has_idea = GEC_idea_polizeiverein_leader_2
				has_idea = GEC_idea_polizeiverein_member
			}
		}
		localization_key = eoanb_decision_generic_arrest_opposition_leaders_cost_polizeiverein_blocked
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = eoanb_decision_generic_arrest_opposition_leaders_cost_loc_blocked
	}
}

defined_text = {
	name = eoanb_decision_generic_arrest_opposition_leaders_cost_tooltip_scripted
	text = {
		trigger = {
			OR = {
				has_idea = GEC_idea_polizeiverein_leader_1
				has_idea = GEC_idea_polizeiverein_leader_2
				has_idea = GEC_idea_polizeiverein_member
			}
		}
		localization_key = eoanb_decision_generic_arrest_opposition_leaders_cost_polizeiverein_tooltip
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = eoanb_decision_generic_arrest_opposition_leaders_cost_loc_tooltip
	}
}

defined_text = {
	name = eoanb_decision_generic_ban_opposition_party_cost_scripted
	text = {
		trigger = {
			OR = {
				has_idea = GEC_idea_polizeiverein_leader_1
				has_idea = GEC_idea_polizeiverein_leader_2
				has_idea = GEC_idea_polizeiverein_member
			}
		}
		localization_key = eoanb_decision_generic_ban_opposition_party_cost_polizeiverein
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = eoanb_decision_generic_ban_opposition_party_cost_loc
	}
}

defined_text = {
	name = eoanb_decision_generic_ban_opposition_party_cost_blocked_scripted
	text = {
		trigger = {
			OR = {
				has_idea = GEC_idea_polizeiverein_leader_1
				has_idea = GEC_idea_polizeiverein_leader_2
				has_idea = GEC_idea_polizeiverein_member
			}
		}
		localization_key = eoanb_decision_generic_ban_opposition_party_cost_polizeiverein_blocked
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = eoanb_decision_generic_ban_opposition_party_cost_loc_blocked
	}
}

defined_text = {
	name = eoanb_decision_generic_ban_opposition_party_cost_tooltip_scripted
	text = {
		trigger = {
			OR = {
				has_idea = GEC_idea_polizeiverein_leader_1
				has_idea = GEC_idea_polizeiverein_leader_2
				has_idea = GEC_idea_polizeiverein_member
			}
		}
		localization_key = eoanb_decision_generic_ban_opposition_party_cost_polizeiverein_tooltip
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = eoanb_decision_generic_ban_opposition_party_cost_loc_tooltip
	}
}

defined_text = {
	name = GetItalianTraditionCelebrationName
	text = {
		trigger = {
			TAG = PIE
		}
		localization_key = eoanb_lockey_italian_celebrate_traditions_PIE
	}
	text = {
		trigger = {
			TAG = BAV
		}
		localization_key = eoanb_lockey_italian_celebrate_traditions_BAV
	}
	text = {
		trigger = {
			TAG = SPR
		}
		localization_key = eoanb_lockey_italian_celebrate_traditions_SPR
	}
	text = {
		trigger = {
			TAG = PRS
		}
		localization_key = eoanb_lockey_italian_celebrate_traditions_PRS
	}
	text = {
		trigger = {
			TAG = RUS
		}
		localization_key = eoanb_lockey_italian_celebrate_traditions_RUS
	}
	text = {
		trigger = {
			TAG = SWI
		}
		localization_key = eoanb_lockey_italian_celebrate_traditions_SWI
	}
	text = {
		trigger = {
			TAG = BAD
		}
		localization_key = eoanb_lockey_italian_celebrate_traditions_BAD
	}
	text = {
		trigger = {
			TAG = HOL
		}
		localization_key = eoanb_lockey_italian_celebrate_traditions_HOL
	}
	text = {
		trigger = {
			TAG = TUS
		}
		localization_key = eoanb_lockey_italian_celebrate_traditions_TUS
	}
	text = {
		trigger = {
			TAG = NSC
		}
		localization_key = eoanb_lockey_italian_celebrate_traditions_NSC
	}
	text = {
		localization_key = eoanb_lockey_italian_celebrate_traditions_general
	}
}

defined_text = {
	name = GetRUSCaucasianUnrest
	text = {
		trigger = {
			check_variable = {
				RUS_var_caucasus_unrest > 0.7
			}
		}
		localization_key = "RUS_CAUCASIAN_UNREST_HIGH_LOC"
	}
	text = {
		trigger = {
			check_variable = {
				RUS_var_caucasus_unrest < 0.35
			}
		}
		localization_key = "RUS_CAUCASIAN_UNREST_LOW_LOC"
	}
	text = {
		trigger = {
			check_variable = {
				RUS_var_caucasus_unrest < 0
			}
		}
		localization_key = "RUS_CAUCASIAN_UNREST_NONE_LOC"
	}
	text = {
		localization_key = "RUS_CAUCASIAN_UNREST_MEDIUM_LOC"
	}
}

defined_text = {
	name = GetRUSCaucasianStrength
	text = {
		trigger = {
			check_variable = {
				RUS_var_caucasus_strength > 0.7
			}
		}
		localization_key = "RUS_CAUCASIAN_STRENGTH_HIGH_LOC"
	}
	text = {
		trigger = {
			check_variable = {
				RUS_var_caucasus_strength < 0.35
			}
		}
		localization_key = "RUS_CAUCASIAN_STRENGTH_LOW_LOC"
	}
	text = {
		trigger = {
			check_variable = {
				RUS_var_caucasus_strength < 0
			}
		}
		localization_key = "RUS_CAUCASIAN_STRENGTH_NONE_LOC"
	}
	text = {
		localization_key = "RUS_CAUCASIAN_STRENGTH_MEDIUM_LOC"
	}
}

defined_text = {
	name = GetGreekHeirOttoName
	text = {
		trigger = {
			THIS = {
				has_country_flag = GRE_flag_luitpold_heir
			}
		}
		localization_key = "eoanb_greek_heir_otto_luitpold"
	}
	text = {
		trigger = {
			THIS = {
				has_country_flag = GRE_flag_ludwig_heir
			}
		}
		localization_key = "eoanb_greek_heir_otto_ludwig"
	}
	text = {
		localization_key = "eoanb_greek_heir_otto_none"
	}
}

defined_text = {
	name = GetPowerStatusName
	text = {
		trigger = {
			check_variable = {
				var = this.score_array_position_var
				value = 0
				compare = equals
			}
		}
		localization_key = "Unlisted Nation"
	}
	text = {
		trigger = {
			check_variable = {
				var = this.score_array_position_var
				value = 3
				compare = less_than_or_equals
			}
			has_country_flag = eoanb_is_super_power
		}
		localization_key = "Super Power"
	}
	text = {
		trigger = {
			check_variable = {
				var = this.score_array_position_var
				value = 8
				compare = less_than_or_equals
			}
		}
		localization_key = "Great Power"
	}
	text = {
		trigger = {
			check_variable = {
				this.score_array_position_var > 8
			}
			check_variable = {
				var = this.score_array_position_var
				value = 16
				compare = less_than_or_equals
			}
		}
		localization_key = "Secondary Power"
	}
	text = {
		trigger = {
			check_variable = {
				this.score_array_position_var > 16
			}
			check_variable = {
				var = this.score_array_position_var
				value = 40
				compare = less_than_or_equals
			}
		}
		localization_key = "Minor Power"
	}
	text = {
		localization_key = "Insignificant Power"
	}
}

defined_text = {
	name = get_icon_name_texture
	text = {
		trigger = {
			check_variable = {
				show_enemies_button_1 > 0
			}
		}
		localization_key = "GFX_sort_button_202x29_3_frames:2"
	}
	text = {
		localization_key = "GFX_sort_button_202x29_3_frames:1"
	}
}

defined_text = {
	name = GetAUHAustrianMPName
	text = {
		trigger = {
			has_country_flag = AUS_flag_karl_auesperg_aus_mp
		}
		localization_key = "Karl of Auersperg"
	}
}

defined_text = {
	name = GetAUHungarianPMName
	text = {
		trigger = {
			has_country_flag = AUS_flag_andrassy_hun_pm
		}
		localization_key = "Gyula Andrássy"
	}
	text = {
		trigger = {
			has_country_flag = AUS_flag_deak_hun_pm
		}
		localization_key = "Ferenc Deák"
	}
}

defined_text = {
	name = GetAUHungarianPMPortrait
	text = {
		trigger = {
			AUS = {
				has_country_flag = AUS_flag_andrassy_hun_pm
			}
		}
		localization_key = "GFX_AUH_portrait_Gyula_Andrassy"
	}
	text = {
		trigger = {
			AUS = {
				has_country_flag = AUS_flag_deak_hun_pm
			}
		}
		localization_key = "GFX_AUH_portrait_Ferenc_Deak"
	}
}

defined_text = {
	name = GetAUHAustrianMPPortrait
	text = {
		trigger = {
			has_country_flag = AUS_flag_karl_auesperg_aus_mp
		}
		localization_key = "GFX_AUH_portrait_Karl_von_Auesperg"
	}
}

defined_text = {
	name = GetAddRivalPPCost
	text = {
		trigger = {
			has_political_power < var:ppcostaddrival1
		}
		localization_key = "TOOLTIP_ADD_RIVAL_NO"
	}
	text = {
		localization_key = "TOOLTIP_ADD_RIVAL_YES"
	}
}

defined_text = {
	name = GetAddMostFavouredPPCost
	text = {
		trigger = {
			has_political_power < var:ppcostaddmostfavoured1
		}
		localization_key = "TOOLTIP_ADD_RIVAL_NO"
	}
	text = {
		localization_key = "TOOLTIP_ADD_RIVAL_YES"
	}
}

defined_text = {
	name = GetAUHungarianPMPortrait
	text = {
		trigger = {
			AUS = {
				has_country_flag = AUS_flag_andrassy_hun_pm
			}
		}
		localization_key = "GFX_AUH_portrait_Gyula_Andrassy"
	}
	text = {
		trigger = {
			AUS = {
				has_country_flag = AUS_flag_deak_hun_pm
			}
		}
		localization_key = "GFX_AUH_portrait_Ferenc_Deak"
	}
}

defined_text = {
	name = GetAUHAustrianMPPortrait
	text = {
		trigger = {
			has_country_flag = AUS_flag_karl_auesperg_aus_mp
		}
		localization_key = "GFX_AUH_portrait_Karl_von_Auesperg"
	}
}

defined_text = {
	name = GetAddRivalRelationsCost
	text = {
		trigger = {
			var:potential_rivals_array^i = {
				OR = {
					is_in_faction_with = ROOT
					has_guaranteed = ROOT
					gives_military_access_to = ROOT
					has_military_access_to = ROOT
					#check_variable = { This.id = Root.id }
					has_opinion = {
						target = ROOT
						value > 5
					}
				}
			}
		}
		localization_key = "TOOLTIP_ADD_RIVAL_NO"
	}
	text = {
		localization_key = "TOOLTIP_ADD_RIVAL_YES"
	}
}

defined_text = {
	name = GetAddMostFavouredRelationsCost
	text = {
		trigger = {
			var:potential_most_favoured_array^i = {
				NOT = {
					OR = {
						is_in_faction_with = ROOT
						has_guaranteed = ROOT
						gives_military_access_to = ROOT
						has_military_access_to = ROOT
						#check_variable = { This.id = Root.id }
						has_opinion = {
							target = ROOT
							value > 5
						}
					}
				}
			}
		}
		localization_key = "TOOLTIP_ADD_RIVAL_NO"
	}
	text = {
		localization_key = "TOOLTIP_ADD_RIVAL_YES"
	}
}

defined_text = {
	name = GetAddRivalTimeoutEffect
	text = {
		trigger = {
			has_country_flag = eoanbdiplomacy_rival_cooldown
		}
		localization_key = "TOOLTIP_ADD_RIVAL_COOLDOWN"
	}
	text = {
		localization_key = ""
	}
}

defined_text = {
	name = GetHeadofState
	text = {
		trigger = {
			OR = {
				has_idea = AUS_Franz_Joseph_I
				has_idea = AUS_Franz_Joseph_I_old
			}
		}
		localization_key = "Franz Joseph I"
	}
	text = {
		trigger = {
			OR = {
				has_idea = BAD_Friedrich_I_young
				has_idea = BAD_Friedrich_I
			}
		}
		localization_key = "Grand Duke Friedrich I"
	}
	text = {
		trigger = {
			has_idea = BAD_Friedrich_II
		}
		localization_key = "Grand Duke Friedrich II"
	}
	text = {
		trigger = {
			has_idea = BEL_Leopold_I
		}
		localization_key = "Leopold I"
	}
	text = {
		trigger = {
			has_idea = DEN_Frederick_VII
		}
		localization_key = "Frederick VIII"
	}
	text = {
		trigger = {
			has_idea = DEN_Christian_IX
		}
		localization_key = "Pope Benedict XV"
	}
	text = {
		trigger = {
			OR = {
				has_idea = ENG_Victoria
				has_idea = ENG_colonial_Victoria
			}
		}
		localization_key = "Victoria I"
	}
	text = {
		trigger = {
			has_idea = GRE_Otto_I
		}
		localization_key = "Otto I"
	}
	text = {
		trigger = {
			has_idea = GRE_George_I
		}
		localization_key = "George I"
	}
	text = {
		trigger = {
			has_idea = GRE_Alfred_I
		}
		localization_key = "Alfred I"
	}
	text = {
		trigger = {
			has_idea = GRE_Luitpold_I
		}
		localization_key = "Leopold I"
	}
	text = {
		trigger = {
			has_idea = HOL_William_III
		}
		localization_key = "William III"
	}
	text = {
		trigger = {
			has_idea = ITA_hos_Victor_Emmanuel_II
		}
		localization_key = "Victor Emmanuel II"
	}
	text = {
		trigger = {
			has_idea = TUS_hos_Leopold_II
		}
		localization_key = "Leopold II"
	}
	text = {
		trigger = {
			has_idea = OLD_Peter_II
		}
		localization_key = "Peter II"
	}
	text = {
		trigger = {
			has_idea = OTO_Abdulmecid
		}
		localization_key = "Abdulmecid I"
	}
	text = {
		trigger = {
			has_idea = POR_Pedro_V
		}
		localization_key = "Pedro V"
	}
	text = {
		trigger = {
			has_idea = POR_Luis
		}
		localization_key = "Luis I"
	}
	text = {
		trigger = {
			has_idea = PRS_Friedrich_Wilhelm_IV
		}
		localization_key = "Friedrich Wilhelm IV"
	}
	text = {
		trigger = {
			has_idea = PRS_Wilhelm_I
		}
		localization_key = "Wilhelm I"
	}
	text = {
		trigger = {
			has_idea = PRS_Friedrich_III
		}
		localization_key = "Friedrich III"
	}
	text = {
		trigger = {
			has_idea = PRS_Wilhelm_II
		}
		localization_key = "Wilhelm II"
	}
	text = {
		trigger = {
			has_idea = RUS_Alexander_II
		}
		localization_key = "Alexander II"
	}
	text = {
		trigger = {
			has_idea = SWE_Oscar_I
		}
		localization_key = "Oscar I"
	}
	text = {
		trigger = {
			has_idea = SWE_Charles_XV
		}
		localization_key = "Charles XV"
	}
	text = {
		trigger = {
			has_idea = SPR_Isabella_II
		}
		localization_key = "Isabella II"
	}
	text = {
		trigger = {
			has_idea = BRA_Pedro_II
		}
		localization_key = "Pedro II"
	}
	text = {
		localization_key = "[PREV.GetLeader]"
	}
}

defined_text = {
	name = GetHoGAttendance
	text = {
		trigger = {
			OR = {
				has_idea = hos_is_leader
				has_idea = hos_regency
			}
		}
		localization_key = "in attendance of high level state officials"
	}
	text = {
		localization_key = "in attendance of [GetHoGTitle] [From.GetLeader] and the rest of the royal family and high level state officials"
	}
}

defined_text = {
	name = GetWorldFairSuccess1
	text = {
		trigger = {
			check_variable = {
				From.world_fair_preparation_var < 35
			}
		}
		localization_key = "which can be hailed as a total failure as only a few thousand visitor have already flocked to"
	}
	text = {
		trigger = {
			check_variable = {
				From.world_fair_preparation_var > 34
			}
			check_variable = {
				From.world_fair_preparation_var < 55
			}
		}
		localization_key = "which can be hailed as mediocre success as a hundred thousand visitors have already flocked to"
	}
	text = {
		trigger = {
			check_variable = {
				From.world_fair_preparation_var > 54
			}
			check_variable = {
				From.world_fair_preparation_var < 85
			}
		}
		localization_key = "which can be hailed as great success as over a million visitors have already flocked to"
	}
	text = {
		trigger = {
			check_variable = {
				From.world_fair_preparation_var > 84
			}
		}
		localization_key = "which can be hailed as great success as million of visitors from all over the world have already flocked to"
	}
}

defined_text = {
	name = GetWorldFairSuccess2
	text = {
		trigger = {
			check_variable = {
				From.world_fair_preparation_var < 35
			}
		}
		localization_key = "The [From.GetName] invested very little money and resources into putting up this World Fair and it is without doubt that once complete it will rest in history as a disgrace"
	}
	text = {
		trigger = {
			check_variable = {
				From.world_fair_preparation_var > 34
			}
			check_variable = {
				From.world_fair_preparation_var < 55
			}
		}
		localization_key = "The [From.GetName] invested a mediocre amount of money and resources into putting up this World Fair and while it is not one to be remembered in time it is merely a reflection of the current state of the country"
	}
	text = {
		trigger = {
			check_variable = {
				From.world_fair_preparation_var > 54
			}
			check_variable = {
				From.world_fair_preparation_var < 85
			}
		}
		localization_key = "The [From.GetName] invested a significant amount of money and resources into putting up this World Fair and it will surely be remembered as one of the better World Fairs to date"
	}
	text = {
		trigger = {
			check_variable = {
				From.world_fair_preparation_var > 84
			}
		}
		localization_key = "The [From.GetName] is praised for putting up such a wonderful World Fair and it is without doubt that once it is complete the fair will rest in history as one of the best ones to date"
	}
}

defined_text = {
	name = GetWorldFairExhibition1
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					has_full_control_of_state = 428
					has_full_control_of_state = 431
					has_full_control_of_state = 439
					RAJ = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
				}
			}
		}
		localization_key = "Of particular interest will be the Indian exhibition put up by [?from.world_fair_array^0.GetName]"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					has_full_control_of_state = 290
					has_full_control_of_state = 459
					has_full_control_of_state = 458
					has_full_control_of_state = 448
					has_full_control_of_state = 447
					MOR = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					ALG = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					TUN = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					EGY = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
				}
			}
		}
		localization_key = "Of particular interest will be the North African exhibition put up by the [?from.world_fair_array^0.GetName]"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					has_full_control_of_state = 289
					has_full_control_of_state = 922
					has_full_control_of_state = 335
					has_full_control_of_state = 671
					has_full_control_of_state = 741
					has_full_control_of_state = 1019
					has_full_control_of_state = 523
					has_full_control_of_state = 921
					has_full_control_of_state = 998
					has_full_control_of_state = 919
					has_full_control_of_state = 721
					has_full_control_of_state = 529
					BRM = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					SIA = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					CAM = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					VIN = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					ACE = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					INS = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					BRU = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					SUL = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					# MDN = {
					# OR = {
					# is_puppet_of = PREV
					# is_subject_of = PREV
					# }
					# }
					# SPH = {
					# OR = {
					# is_puppet_of = PREV
					# is_subject_of = PREV
					# }
					# }
				}
			}
		}
		localization_key = "Of particular interest will be the East Asian exhibition put up by the [?from.world_fair_array^0.GetName]"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					all_owned_state = {
						is_on_continent = africa
						NOT = {
							OR = {
								state = 290
								state = 461
								state = 462
								state = 178
								state = 1029
								state = 699
								state = 459
								state = 460
								state = 513
								state = 665
								state = 458
								state = 1012
								state = 1013
								state = 1014
								state = 448
								state = 449
								state = 450
								state = 451
								state = 663
								state = 662
								state = 661
								state = 273
								state = 447
								state = 452
								state = 446
								state = 749
								state = 457
								state = 456
								state = 552
								state = 551
								state = 752
								state = 1191
								state = 514
								state = 837
							}
						}
						is_owned_and_controlled_by = PREV
					}
					AND = {
						all_country = {
							any_owned_state = {
								is_on_continent = africa
							}
							NOT = {
								OR = {
									tag = MOR
									tag = ALG
									tag = TUN
									tag = LBA
									tag = SNS
									tag = EGY
								}
							}
							OR = {
								is_puppet_of = PREV
								is_subject_of = PREV
							}
						}
					}
				}
			}
		}
		localization_key = "Of particular interest will be the African exhibition put up by the [?from.world_fair_array^0.GetName]"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				tag = AUS
			}
		}
		localization_key = "Of particular interest will be the [?from.world_fair_array^0.GetAdjective] exhibition featuring an interesting display of ethnographic material from various nationalities throughout the country"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				OR = {
					tag = FIN
					AND = {
						tag = RUS
						FIN = {
							OR = {
								is_puppet_of = RUS
								is_subject_of = RUS
							}
						}
					}
				}
			}
		}
		localization_key = "Of particular interest will be the [?from.world_fair_array^0.GetAdjective] exhibition featuring an interesting display of Finnish saunas, used by the Finns to clean themselves in the harsh winters"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				tag = KOR
			}
		}
		localization_key = "Of particular interest will be the [?from.world_fair_array^0.GetAdjective] display featuring the construction of a traditional Hanok house, reputed for their sturdiness and excellent positioning"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				tag = BEL
			}
		}
		localization_key = "Of particular interest will be the [?from.world_fair_array^0.GetAdjective] pavillion featuring a whole traditional waffle shop where visitors can indulge in the sweet tastes of this typical dish"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				tag = PRS
				date < 1887.01.01
			}
		}
		localization_key = "Of particular interest will be the [?from.world_fair_array^0.GetAdjective] pavillion showing off its industrial achievements and in particular the achievements of Alfred Krupp's company, who has outperformed any other competitor with his steel products"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				tag = PRS
				OR = {
					has_cosmetic_tag = PRS_GER_bismarck_imperial
					has_cosmetic_tag = PRS_GER_bismarck_hre
					has_cosmetic_tag = PRS_GER_bismarck_national
				}
				date < 1875.01.01
			}
		}
		localization_key = "Of particular interest will be the [?from.world_fair_array^0.GetAdjective] pavillion with its display of foklore from throughout the country, a triumphant sign of the recent unification"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				tag = PIE
				has_cosmetic_tag = PIE_focus_ITA
				date < 1870.01.01
			}
		}
		localization_key = "Of particular interest will be the [?from.world_fair_array^0.GetAdjective] pavillion with its display of foklore from throughout the country, a triumphant sign of the recent unification"
	}
	text = {
		trigger = {
			var:From.world_fair_array^0 = {
				tag = FRA
				date > 1862.01.01
				date < 1910.01.01
			}
		}
		localization_key = "Of particular interest will be the [?from.world_fair_array^0.GetAdjective] pavillion featuring impressive structures built with the aid of renowned engineer Gustave Eiffel"
	}
	text = {
		localization_key = "Of particular interest will be the [?from.world_fair_array^0.GetAdjective] pavillion featuring the latest achievements in the fields of industry, technology and the arts."
	}
}

defined_text = {
	name = GetWorldFairExhibition2
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					has_full_control_of_state = 428
					has_full_control_of_state = 431
					has_full_control_of_state = 439
					RAJ = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
				}
			}
		}
		localization_key = "and the Indian exhibition put up by [?from.world_fair_array^2.GetName]"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					has_full_control_of_state = 290
					has_full_control_of_state = 459
					has_full_control_of_state = 458
					has_full_control_of_state = 448
					has_full_control_of_state = 447
					MOR = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					ALG = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					TUN = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					EGY = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
				}
			}
		}
		localization_key = "and the North African exhibition put up by the [?from.world_fair_array^2.GetName]"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					has_full_control_of_state = 289
					has_full_control_of_state = 922
					has_full_control_of_state = 335
					has_full_control_of_state = 671
					has_full_control_of_state = 741
					has_full_control_of_state = 1019
					has_full_control_of_state = 523
					has_full_control_of_state = 921
					has_full_control_of_state = 998
					has_full_control_of_state = 919
					has_full_control_of_state = 721
					has_full_control_of_state = 529
					BRM = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					SIA = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					CAM = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					VIN = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					ACE = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					INS = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					BRU = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					SUL = {
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
					# MDN = {
					# OR = {
					# is_puppet_of = PREV
					# is_subject_of = PREV
					# }
					# }
					# SPH = {
					# OR = {
					# is_puppet_of = PREV
					# is_subject_of = PREV
					# }
					# }
				}
			}
		}
		localization_key = "and the East Asian exhibition put up by the [?from.world_fair_array^2.GetName]"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					all_owned_state = {
						is_on_continent = africa
						NOT = {
							OR = {
								state = 290
								state = 461
								state = 462
								state = 178
								state = 1029
								state = 699
								state = 459
								state = 460
								state = 513
								state = 665
								state = 458
								state = 1012
								state = 1013
								state = 1014
								state = 448
								state = 449
								state = 450
								state = 451
								state = 663
								state = 662
								state = 661
								state = 273
								state = 447
								state = 452
								state = 446
								state = 749
								state = 457
								state = 456
								state = 552
								state = 551
								state = 752
								state = 1191
								state = 514
								state = 837
							}
						}
						is_owned_and_controlled_by = PREV
					}
					all_country = {
						any_owned_state = {
							is_on_continent = africa
						}
						NOT = {
							OR = {
								tag = MOR
								tag = ALG
								tag = TUN
								tag = LBA
								tag = SNS
								tag = EGY
							}
						}
						OR = {
							is_puppet_of = PREV
							is_subject_of = PREV
						}
					}
				}
			}
		}
		localization_key = "and the African exhibition put up by the [?from.world_fair_array^2.GetName]"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				tag = AUS
			}
		}
		localization_key = "and the [?from.world_fair_array^2.GetAdjective] exhibition featuring an interesting display of ethnographic material from various nationalities throughout the country"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				OR = {
					tag = FIN
					AND = {
						tag = RUS
						FIN = {
							OR = {
								is_puppet_of = RUS
								is_subject_of = RUS
							}
						}
					}
				}
			}
		}
		localization_key = "and the [?from.world_fair_array^2.GetAdjective] exhibition featuring an interesting display of Finnish saunas, used by the Finns to clean themselves in the harsh winters"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				tag = KOR
			}
		}
		localization_key = "and the [?from.world_fair_array^2.GetAdjective] display featuring the construction of a traditional Hanok house, reputed for their sturdiness and excellent positioning"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				tag = BEL
			}
		}
		localization_key = "and the [?from.world_fair_array^2.GetAdjective] pavillion featuring a whole traditional waffle shop where visitors can indulge in the sweet tastes of this typical dish"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				tag = PRS
				date < 1887.01.01
			}
		}
		localization_key = "and the [?from.world_fair_array^2.GetAdjective] pavillion showing off its industrial achievements and in particular the achievements of Alfred Krupp's company, who has outformed any other competitor with his metal products"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				tag = PRS
				OR = {
					has_cosmetic_tag = PRS_GER_bismarck_imperial
					has_cosmetic_tag = PRS_GER_bismarck_hre
					has_cosmetic_tag = PRS_GER_bismarck_national
				}
				date < 1875.01.01
			}
		}
		localization_key = "and the [?from.world_fair_array^2.GetAdjective] pavillion with its display of foklore from throughout the country, a triumphant sign of the recent unification"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				tag = PIE
				has_cosmetic_tag = PIE_focus_ITA
				date < 1870.01.01
			}
		}
		localization_key = "and the [?from.world_fair_array^2.GetAdjective] pavillion with its display of foklore from throughout the country, a triumphant sign of the recent unification"
	}
	text = {
		trigger = {
			var:From.world_fair_array^2 = {
				tag = FRA
				date > 1862.01.01
				date < 1910.01.01
			}
		}
		localization_key = "and the [?from.world_fair_array^2.GetAdjective] pavillion featuring impressive structures built with the aid of renowned engineer Gustave Eiffel"
	}
	text = {
		localization_key = "and the [?from.world_fair_array^2.GetAdjective] pavillion featuring the latest achievements in the fields of industry, technology and the arts."
	}
}

### Italian Scripted Loc
defined_text = {
	name = SardiniaPiedmontRussianDiplomacyLoc
	text = {
		trigger = {
			#country_flag for alliance with France
		}
		localization_key = "PIE_Russian_Diplomacy_France_TT"
	}
	text = {
		localization_key = "PIE_Russian_Diplomacy_NotFrance_TT"
	}
}

defined_text = {
	name = SardiniaPiedmontRussianDiplomacyAllianceLoc
	text = {
		trigger = {
			has_country_flag = PIE_RUS_Alliance_2IP
		}
		localization_key = "PIE_Russian_Alliance_TT"
	}
	text = {
		localization_key = "PIE_Russian_Assistance_TT"
	}
}

defined_text = {
	name = SardiniaPiedmontRussianDiplomacyAllianceEventTitleLoc
	text = {
		trigger = {
			has_country_flag = PIE_RUS_Alliance_2IP
		}
		localization_key = "PIE_Russian_Alliance_Title"
	}
	text = {
		localization_key = "PIE_Russian_Assistance_Title"
	}
}

defined_text = {
	name = SardiniaPiedmontRussianD2IPWarBeginsLoc
	text = {
		trigger = {
			PIE = {
				has_country_flag = PIE_RUS_taking_Lombardy
			}
		}
		localization_key = "PIE_Russian_War_Begins_TT"
	}
	text = {
		localization_key = "PIE_Russian_War_Begins_LVN_TT"
	}
}

defined_text = {
	name = 2IPWorldNewsEventDescriptionLoc
	text = {
		trigger = {
			PIE = {
				has_country_flag = PIE_RUS_Alliance_2IP
			}
		}
		localization_key = "PIE_Russian_2IP_Description_TT"
	}
	text = {
		trigger = {
			PIE = {
				#has_country_flag = whatever French one happens here
			}
		}
		localization_key = "PIE_French_2IP_Description_TT"
	}
	text = {
		localization_key = "PIE_Generic_2IP_Description_TT"
	}
}

defined_text = {
	name = SardiniaPiedmontRussianDFranceDeniedLoc
	text = {
		trigger = {
			PIE = {
				has_country_flag = PIE_RUS_Alliance_2IP
			}
		}
		localization_key = "PIE_Russian_French_Deny_TT"
	}
	text = {
		localization_key = "PIE_French_Ally_Regular_TT"
	}
}

defined_text = {
	name = PIEPlombieresRoyalMarriage
	text = {
		trigger = {
			PIE = {
				has_country_flag = PIE_Plombieres_Marriage_Accept
			}
		}
		localization_key = "PIE_FRA_Plombieres_Marriage_Historical"
	}
	text = {
		localization_key = "PIE_FRA_Plombieres_Marriage_Denied"
	}
}

defined_text = {
	name = PIEPlombieresMilitaryComposition
	text = {
		trigger = {
			PIE = {
				has_country_flag = PIE_Plombieres_War_Leader
			}
		}
		localization_key = "PIE_FRA_Plombieres_Piedmont_War"
	}
	text = {
		localization_key = "PIE_FRA_Plombieres_France_War"
	}
}

defined_text = {
	name = ITADIplomaticEndeavors
	text = {
		trigger = {
			tag = PIE
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		localization_key = "PIE_ITA_Diplomatic_Endeavors"
	}
	text = {
		trigger = {
			has_country_flag = is_literally_italy
		}
		localization_key = "ITA_generic_Diplomatic_Endeavors"
	}
	text = {
		trigger = {
			NOT = {
				OR = {
					tag = PIE
					has_country_flag = is_literally_italy
				}
			}
		}
		localization_key = "ITA_generic_Diplomatic_Endeavors_not_PIE"
	}
}

defined_text = {
	name = ITATrentinoProtestEvent
	text = {
		trigger = {
			2 = {
				is_owned_by = ITA
			}
		}
		localization_key = "ITA_Trentino_Protest_Event_Rome_Controlled"
	}
	text = {
		localization_key = "ITA_Trentino_Protest_Event"
	}
}

defined_text = {
	name = ITARussianRecognition
	text = {
		trigger = {
			ITA = {
				OR = {
					has_country_flag = PIE_RUS_Assistance_2IP
					has_country_flag = PIE_RUS_Alliance_2IP
				}
			}
		}
		localization_key = "ITA_Russian_Assistance_Recognition"
	}
	text = {
		localization_key = "ITA_Russian_Recognition"
	}
}

defined_text = {
	name = ITARussianRecognitionRUS
	text = {
		trigger = {
			ITA = {
				OR = {
					has_country_flag = PIE_RUS_Assistance_2IP
					has_country_flag = PIE_RUS_Alliance_2IP
				}
			}
		}
		localization_key = "RUS_Russian_Assistance_Recognition"
	}
	text = {
		localization_key = "RUS_Russian_Recognition"
	}
}

defined_text = {
	name = WHO_SUPPORTED_SARDINIA_IN_THE_2IW
	text = {
		trigger = {
			NOT = { PIE = { has_completed_focus = PIE_The_Russian_Alliance } }
		}
		localization_key = "SARDINIA_FRANCE_HISTORICAL_2IW"
	}
	text = {
		trigger = {
			PIE = { has_completed_focus = PIE_The_Russian_Alliance }
		}
		localization_key = "SARDINIA_RUSSIA_ALTHISTORY_2IW"
	}
}

defined_text = {
	name = FRENCH_OPINION_OF_GERMANY_FROM_ALSACE_LORRAINE
	text = {
		trigger = {
			check_variable = {
				GER_Elsass_Acceptance > 74
			}
		}
		localization_key = "GER_Elsass_Opinion_0_tt"
	}
	text = {
		trigger = {
			check_variable = {
				GER_Elsass_Acceptance > 49
			}
		}
		localization_key = "GER_Elsass_Opinion_1_tt"
	}
	text = {
		trigger = {
			check_variable = {
				GER_Elsass_Acceptance > 25
			}
		}
		localization_key = "GER_Elsass_Opinion_2_tt"
	}
	text = {
		trigger = {
			check_variable = {
				GER_Elsass_Acceptance > 9
			}
		}
		localization_key = "GER_Elsass_Opinion_3_tt"
	}
	text = {
		trigger = {
			check_variable = {
				GER_Elsass_Acceptance < 10
			}
		}
		localization_key = "GER_Elsass_Opinion_4_tt"
	}
}