eu4_localisation_and_dynamic_text

Encode and validate EU4 localisation strings with UTF-8 BOM and bracket syntax.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/FSGER9326/My-Anbennar --skill eu4-localisation-and-dynamic-text
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eu4_localisation_and_dynamic_text
Source: https://github.com/FSGER9326/My-Anbennar/tree/main/skills/eu4_localisation_and_dynamic_text
Command: npx skills add https://github.com/FSGER9326/My-Anbennar --skill eu4-localisation-and-dynamic-text

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Teach EU4 localisation rules — encoding, key formats, bracket syntax, dynamic text, and the localisation/replace system.

Core Features & Use Cases

  • Encoding: UTF-8 with BOM, correct localisation file structure, and l_english key conventions.
  • Dynamic text: bracket tokens, variable substitution, and localisation replace usage.
  • Use Case: Prepare a mod that renders consistent tooltips and names with dynamic values.

Quick Start

Create a sample localisation entry that uses bracket syntax to render a dynamic value in a tooltip.

Frequently Asked Questions about eu4_localisation_and_dynamic_text

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use bracket syntax for dynamic text substitution in EU4 localisation?

EU4 localisation uses bracket syntax to render dynamic values by injecting variable tokens directly into string keys. This substitution mechanism allows tooltips and names to display shifting data dynamically throughout gameplay.

Why does my EU4 localisation file fail to load correctly?

EU4 localisation files must use UTF-8 encoding with a BOM and follow standard l_english key naming conventions. Without the correct BOM header or formatting, the localisation pipeline fails to parse and load the strings.

What is the localisation/replace system in EU4 and when should I use it?

The localisation/replace system in EU4 allows you to override existing string entries with new dynamic text. It is used when a mod needs to modify base game tooltips or names to reflect custom variables consistently.

How do I validate EU4 localisation strings for mod tooltips?

You validate EU4 localisation strings by checking UTF-8 BOM encoding, verifying standard key naming conventions, and ensuring bracket syntax tokens match defined variables. This prevents rendering errors in dynamic tooltips.

Can I render dynamic values in EU4 tooltip names without custom scripts?

Yes, you can render dynamic values in EU4 tooltip names purely through localisation syntax. By applying bracket tokens within the localisation file, the engine substitutes the variables directly into the displayed text.

What are the limitations of EU4 bracket syntax for dynamic text?

EU4 bracket syntax for dynamic text is limited to substituting predefined variables and tokens within localisation entries. It cannot execute complex logic or calculations, relying entirely on variables already resolved by the game engine.