Localizing Quest Reference tags in text tables for UI
Posted: Fri Feb 21, 2025 3:31 pm
Hi!
I am having an slight issue with Quest Reference tags and their interaction with localization in text tables, specifically for quest counters and UI.
When a quest counter is setup to use an item from a text table, the translation is used when (a separate) text table for the quest replaces tags. This makes it a longer process if I need to change translated names.
For example, I have a text table for all my items, one of while is a Pile of Dirt.
Field name: PileOfDirt, in English: Pile of Dirt, in French: Tas de terre.
For one quest the player has to collect several items, some of which are piles of dirt, and counters have been set up in the quest using the Item ID from the Item text table.
In the text table for the quest, I need to reference the translated counter name {#Pile of Dirt} / {#Tas de terre} in the for the counter values to show up in the UI in English / French, respectively.
The issue is coming up when I need to change the translated names of items in one (or more) languages, where I need to update all the references in the Quest text table(s), rather than just the once in the Item text table.
Is there a way to generate the the UI elements by having the tags find the text table field name for counters, etc. then return the translated value?
Thanks in advance for any help!
I am having an slight issue with Quest Reference tags and their interaction with localization in text tables, specifically for quest counters and UI.
When a quest counter is setup to use an item from a text table, the translation is used when (a separate) text table for the quest replaces tags. This makes it a longer process if I need to change translated names.
For example, I have a text table for all my items, one of while is a Pile of Dirt.
Field name: PileOfDirt, in English: Pile of Dirt, in French: Tas de terre.
For one quest the player has to collect several items, some of which are piles of dirt, and counters have been set up in the quest using the Item ID from the Item text table.
In the text table for the quest, I need to reference the translated counter name {#Pile of Dirt} / {#Tas de terre} in the for the counter values to show up in the UI in English / French, respectively.
The issue is coming up when I need to change the translated names of items in one (or more) languages, where I need to update all the references in the Quest text table(s), rather than just the once in the Item text table.
Is there a way to generate the the UI elements by having the tags find the text table field name for counters, etc. then return the translated value?
Thanks in advance for any help!