In WARFRAME, some localized messages use string interpolation in order to embed variable values in the game's UI text.
Syntax
WARFRAME uses the variable name in all caps surrounded by vertical bar characters (|) in order to embed them in localized messages. For example, internally, the EN localized message for the Armor stat description is stored as:
Reduces damage to Health by |AMOUNT|%.
Shields are not affected by Armor
where |AMOUNT| is the calculated Damage Reduction percentage gained from Armor.
Examples
According to Public Export's contents,
- Warframe passive descriptions
- Warframe ability descriptions
Other known usage of string interpolation include:
- Stat tooltip descriptions
- Dialog subtitles[1]
- Sortie mission flavor text
Known variables:
|AMOUNT|
|PLAYER_NAME| (e.g. used in Lieutenant Lech Kril's subtitles)
|PLAYER_WARFRAME|
|LOCAL_PLAYER_NAME|
|BOSS_TAG| (boss name, used in Death Mark)
|UNFINISHED_MAP_NODES| (from Arbitrations vendor)
|STACKS|[2]
|CONDITION|
|TIME|
|NAME|
Trivia
- Very rarely the in-game UI bugs out and players will be exposed to the raw localized message which is how this implementation was discovered.
Media
Patch History
Update 35.0 (2023-12-13)
- Fixed unintended "|CONDITION|" appearing in Cascadia Empowered’s and Rising Agony Decree’s description.
Update 34.0 (2023-10-18)
- Fixed on-hover Stat descriptions in Market dioramas showing "|amount|" instead of the % value for Armor reduction.
Hotfix 25.4.1 (2019-07-24)
- Fixed issue with Proton Snap showing "|TIME|" instead of duration value in non-English localizations.
Update 25.3 (2019-07-06)
- Fixed pressing X on controller while in the Relic station displaying the message "Refine |Name| to Intact?".
References
See Also
- Text Icons, for a similar concept but embedding image icons in text instead.
External Links
| Game System Mechanics Edit
|
| Currencies
|
Credits • Orokin Ducats • Endo • Platinum • Aya • Regal Aya • Standing
|
| General
|
Basics
|
Arsenal • Codex • Daily Tribute • Empyrean • Foundry • Market • Mastery Rank • Nightwave • Orbiter • Player Profile • Reset • Star Chart
|
| Lore
|
Alignment • Fragments • Leverian • Quest
|
| Factions
|
Corpus • Grineer • Infested • Orokin • Sentient • Syndicates • Tenno
|
| Social
|
Chat • Clan • Clan Dojo • Leaderboards • Trading
|
| Squad
|
Host Migration • Inactivity Penalty • Matchmaking
|
| Base of Operations
|
Backroom • Clan Dojo • Dormizone • Drifter's Camp • Orbiter
|
| Special
|
1999 Calendar • Kinemantik Instant Messaging
|
| Gameplay
|
Basics
|
Affinity • Buff & Debuff • Death • Hacking • Invisible • Maneuvers • One-Handed Action • Open World • Pickups • Radar • Stealth • Tile Sets • Void Relic • Waypoint
|
| Damage Mechanics
|
Critical Hit • Damage • Damage Redirection • Damage Reduction • Damage Reflection • Damage Type Modifier • Damage Vulnerability • Health • Status Effect • Hits Mechanism
|
| Enemies
|
Bosses • Death Mark • Enemy Behavior • Eximus (Overguard) • Lich System
|
| Mission
|
Arbitrations • Archon Hunt • Break Narmer • Empyrean • Invasion • Sortie • Tactical Alert • The Circuit • The Steel Path • Void Fissure
|
| Activities
|
Captura • Conservation • Fishing • K-Drive Race • Ludoplex • Mining
|
| PvP
|
Duel • Conclave (Lunaro) • Frame Fighter
|
| Other
|
Gravity • Threat Level
|
| Equipment
|
Modding and Arcanes
|
Arcane Enhancements • Archon Shard • Fusion • Mods (Flawed, Riven) • Polarization • Transmutation • Valence Fusion
|
| Warframe
|
Attributes (Armor, Energy, Health, Shield, Sprint Speed) • Abilities (Augment, Casting Speed, Helminth System, Passives, Duration, Efficiency, Range, Strength)
|
| Weapons
|
Accuracy • Alternate Fire • Ammo • Area of Effect • Attack Speed • Bounce • Critical Hit • Damage Falloff • Exalted Weapon • Fire Rate • Hitscan • Holster • Incarnon • Melee • Multishot • Noise • Projectile • Projectile Speed • Punch Through • Recoil • Reload • Ricochet • Trigger Type • Zoom
|
| Operator
|
Amp • Focus (Madurai, Vazarin, Naramon, Unairu, Zenurik) • Lens
|
| Drifter and Duviri
|
Decrees • Drifter Combat • Drifter Intrinsics • Kaithe
|
| Other
|
Archwing • Companion • K-Drive • Necramech • Parazon • Railjack
|
| Technical
|
General
|
AI Director • Drop Tables • HUD • Key Bindings • Material Structures • PBR • Rarity • RNG • Settings • String Interpolation • Text Icons • Upgrade
|
| Software, Networking, and Services
|
Cross Platform Play • Cross Platform Save • Dedicated Servers • EE.cfg • EE.log • File Directory • Fonts • Network Architecture • Public Export • Public Test Cluster • Stress Test • Warframe Arsenal Twitch Extension • World State
|
| Audio
|
Mandachord • Music • Shawzin • Somachord • Sound
|
| Mathematical
|
Calculating Bonuses (Additive Stacking, Multiplicative Stacking) • Condition Overload (Mechanic) • Enemy Level Scaling • Maximization • User Research
|