I am trying to display dialogue entries in a custom UI. What I am doing at the moment is using roughly the following code:
Code: Select all
Conversation conversation = DialogueManager.masterDatabase.GetConversation( "conversationName" );
List<DialogueEntry> dialogueEntries = conversation.dialogueEntries;
myUIComponent.text = dialogueEntries[curIndex].currentDialogueText;
"[var=drainGridsSeen] grids found"
drainGridsSeen is a number tracking the amount of grids a player has found. When this string is shown in my UI, it is displayed as is, including the "[var=drainGridsSeen]" part. When it is displayed in the DSFU subtitle panel, it correctly parses the variable and shows something like "3 grids found".
So my question is, how can I force DSFU to parse the entry text and replace any variables by their respective values?