﻿BDPBattlefieldReputationName = {
	type = character

	text = {
		trigger = { has_variable = bdp_battlefield_reputation var:bdp_battlefield_reputation >= 60 }
		localization_key = bdp_chronicle_reputation_legendary
	}
	text = {
		trigger = { has_variable = bdp_battlefield_reputation var:bdp_battlefield_reputation >= 45 var:bdp_battlefield_reputation < 60 }
		localization_key = bdp_chronicle_reputation_illustrious
	}
	text = {
		trigger = { has_variable = bdp_battlefield_reputation var:bdp_battlefield_reputation >= 30 var:bdp_battlefield_reputation < 45 }
		localization_key = bdp_chronicle_reputation_renowned
	}
	text = {
		trigger = { has_variable = bdp_battlefield_reputation var:bdp_battlefield_reputation >= 10 var:bdp_battlefield_reputation < 30 }
		localization_key = bdp_chronicle_reputation_proven
	}
	text = {
		trigger = { NOT = { has_variable = bdp_battlefield_reputation } }
		localization_key = bdp_chronicle_reputation_unproven
	}
	text = {
		trigger = { has_variable = bdp_battlefield_reputation var:bdp_battlefield_reputation < 10 }
		localization_key = bdp_chronicle_reputation_unproven
	}
}

BDPBattlefieldReputationRecordedResults = {
	type = character

	text = {
		trigger = { is_alive = no }
		localization_key = bdp_battlefield_reputation_recorded_results_empty
	}
	text = {
		trigger = {
			OR = {
				AND = {
					has_variable = bdp_chronicle_victories
					var:bdp_chronicle_victories > 0
				}
				AND = {
					has_variable = bdp_chronicle_defeats
					var:bdp_chronicle_defeats > 0
				}
			}
		}
		localization_key = bdp_battlefield_reputation_recorded_results
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_battlefield_reputation_recorded_results_empty
	}
}

BDPChronicleStandingClause = {
	type = character

	text = {
		trigger = { has_variable = bdp_battlefield_reputation var:bdp_battlefield_reputation >= 60 }
		localization_key = bdp_chronicle_standing_clause_legendary
	}
	text = {
		trigger = { has_variable = bdp_battlefield_reputation var:bdp_battlefield_reputation >= 45 var:bdp_battlefield_reputation < 60 }
		localization_key = bdp_chronicle_standing_clause_illustrious
	}
	text = {
		trigger = { has_variable = bdp_battlefield_reputation var:bdp_battlefield_reputation >= 30 var:bdp_battlefield_reputation < 45 }
		localization_key = bdp_chronicle_standing_clause_renowned
	}
	text = {
		trigger = { has_variable = bdp_battlefield_reputation var:bdp_battlefield_reputation >= 10 var:bdp_battlefield_reputation < 30 }
		localization_key = bdp_chronicle_standing_clause_proven
	}
	text = {
		trigger = { NOT = { has_variable = bdp_battlefield_reputation } }
		localization_key = bdp_chronicle_standing_clause_unproven
	}
	text = {
		trigger = { has_variable = bdp_battlefield_reputation var:bdp_battlefield_reputation < 10 }
		localization_key = bdp_chronicle_standing_clause_unproven
	}
}

BDPChronicleStationParagraph = {
	type = character

	text = {
		trigger = {
			exists = primary_title
			exists = dynasty
		}
		localization_key = bdp_chronicle_station_landed_house
	}
	text = {
		trigger = { exists = primary_title }
		localization_key = bdp_chronicle_station_landed_lowborn
	}
	text = {
		trigger = { exists = dynasty }
		localization_key = bdp_chronicle_station_landless_house
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_station_landless_lowborn
	}
}

BDPChronicleSuccessionClause = {
	type = character

	text = {
		trigger = { has_variable = bdp_chronicle_display_predecessor }
		localization_key = bdp_chronicle_succession_named
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_succession_first_holder
	}
}

BDPChronicleLeftPageText = {
	type = character

	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 2 }
		localization_key = bdp_chronicle_left_battles_text
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 3 }
		localization_key = bdp_chronicle_left_opponents_text
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 4 }
		localization_key = bdp_chronicle_left_past_text
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 5 }
		localization_key = bdp_chronicle_left_archived_overview_text
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 6 }
		localization_key = bdp_chronicle_left_archived_battles_text
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 7 }
		localization_key = bdp_chronicle_left_archived_opponents_text
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_left_overview_text
	}
}

BDPChronicleLeftLeadText = {
	type = character

	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 2 }
		localization_key = bdp_chronicle_left_battles_lead
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 3 }
		localization_key = bdp_chronicle_left_opponents_lead
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 4 }
		localization_key = bdp_chronicle_left_past_lead
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 5 }
		localization_key = bdp_chronicle_left_archived_overview_lead
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 6 }
		localization_key = bdp_chronicle_left_archived_battles_lead
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 7 }
		localization_key = bdp_chronicle_left_archived_opponents_lead
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_left_overview_lead
	}
}

BDPChronicleLeftLeadContinuationText = {
	type = character

	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 2 }
		localization_key = bdp_chronicle_left_battles_lead_continuation
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 3 }
		localization_key = bdp_chronicle_left_opponents_lead_continuation
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 4 }
		localization_key = bdp_chronicle_left_past_lead_continuation
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 5 }
		localization_key = bdp_chronicle_left_archived_overview_lead_continuation
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 6 }
		localization_key = bdp_chronicle_left_archived_battles_lead_continuation
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 7 }
		localization_key = bdp_chronicle_left_archived_opponents_lead_continuation
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_left_overview_lead_continuation
	}
}

BDPChronicleLeftBodyText = {
	type = character

	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 2 }
		localization_key = bdp_chronicle_left_battles_body
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 3 }
		localization_key = bdp_chronicle_left_opponents_body
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 4 }
		localization_key = bdp_chronicle_left_past_body
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 5 }
		localization_key = bdp_chronicle_left_archived_overview_body
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 6 }
		localization_key = bdp_chronicle_left_archived_battles_body
	}
	text = {
		trigger = { has_variable = bdp_chronicle_open_page var:bdp_chronicle_open_page = 7 }
		localization_key = bdp_chronicle_left_archived_opponents_body
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_left_overview_body
	}
}

BDPChronicleContestNoun = {
	type = character

	text = {
		trigger = { has_variable = bdp_chronicle_display_contests var:bdp_chronicle_display_contests = 1 }
		localization_key = bdp_chronicle_contest_singular
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_contest_plural
	}
}

BDPChronicleVictoryNoun = {
	type = character

	text = {
		trigger = { has_variable = bdp_chronicle_victories var:bdp_chronicle_victories = 1 }
		localization_key = bdp_chronicle_victory_singular
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_victory_plural
	}
}

BDPChronicleDefeatNoun = {
	type = character

	text = {
		trigger = { has_variable = bdp_chronicle_defeats var:bdp_chronicle_defeats = 1 }
		localization_key = bdp_chronicle_defeat_singular
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_defeat_plural
	}
}

BDPChronicleDefeatedFoesClause = {
	type = character

	text = {
		trigger = { has_variable = bdp_chronicle_unique_opponents_defeated var:bdp_chronicle_unique_opponents_defeated = 1 }
		localization_key = bdp_chronicle_unique_foes_one
	}
	text = {
		trigger = { has_variable = bdp_chronicle_unique_opponents_defeated var:bdp_chronicle_unique_opponents_defeated > 1 }
		localization_key = bdp_chronicle_unique_foes_many
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_unique_foes_unknown
	}
}

BDPChronicleFighterSketch = {
	type = character

	text = {
		trigger = { has_trait = education_martial_prowess_5 }
		localization_key = bdp_chronicle_fighter_sketch_quicksilver
	}
	text = {
		trigger = { has_trait = education_martial_prowess_4 }
		localization_key = bdp_chronicle_fighter_sketch_formidable
	}
	text = {
		trigger = { has_trait = education_martial_prowess_3 }
		localization_key = bdp_chronicle_fighter_sketch_skilled
	}
	text = {
		trigger = { has_trait = education_martial_prowess_2 }
		localization_key = bdp_chronicle_fighter_sketch_trained
	}
	text = {
		trigger = { has_trait = education_martial_prowess_1 }
		localization_key = bdp_chronicle_fighter_sketch_neophyte
	}
	text = {
		trigger = { prowess >= 30 }
		localization_key = bdp_chronicle_fighter_sketch_untiered_fearsome
	}
	text = {
		trigger = { prowess >= 20 prowess < 30 }
		localization_key = bdp_chronicle_fighter_sketch_untiered_seasoned
	}
	text = {
		trigger = { prowess >= 10 prowess < 20 }
		localization_key = bdp_chronicle_fighter_sketch_untiered_practiced
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_fighter_sketch_untiered_unproven
	}
}

BDPChroniclePhysiqueSketch = {
	type = character

	text = {
		trigger = { has_trait = physique_good_3 is_female = yes }
		localization_key = bdp_chronicle_physique_sketch_amazonian
	}
	text = {
		trigger = { has_trait = physique_good_3 }
		localization_key = bdp_chronicle_physique_sketch_herculean
	}
	text = {
		trigger = { has_trait = giant }
		localization_key = bdp_chronicle_physique_sketch_giant
	}
	text = {
		trigger = { has_trait = strong }
		localization_key = bdp_chronicle_physique_sketch_strong
	}
	text = {
		trigger = { has_trait = physique_good_2 }
		localization_key = bdp_chronicle_physique_sketch_robust
	}
	text = {
		trigger = { has_trait = physique_good_1 }
		localization_key = bdp_chronicle_physique_sketch_hale
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_sketch_empty
	}
}

BDPChronicleTemperamentSketch = {
	type = character

	text = {
		trigger = { has_trait = berserker }
		localization_key = bdp_chronicle_temperament_sketch_berserker
	}
	text = {
		trigger = { has_trait = brave }
		localization_key = bdp_chronicle_temperament_sketch_brave
	}
	text = {
		trigger = { has_trait = craven }
		localization_key = bdp_chronicle_temperament_sketch_craven
	}
	text = {
		trigger = { has_trait = wrathful }
		localization_key = bdp_chronicle_temperament_sketch_wrathful
	}
	text = {
		trigger = { has_trait = sadistic }
		localization_key = bdp_chronicle_temperament_sketch_sadistic
	}
	text = {
		trigger = { has_trait = compassionate }
		localization_key = bdp_chronicle_temperament_sketch_compassionate
	}
	text = {
		trigger = { always = yes }
		localization_key = bdp_chronicle_sketch_empty
	}
}
