GetDialogueEntry does not run Lua commands
Posted: Thu Sep 10, 2020 10:37 am
I am using text from the Dialogue System in my UI so am manually accessing the database as follows:
This was working great until I put a Lua command in the text '[var=mcName]'. Now the displayed text just shows the '[var=mcName]' instead of the name. I tried doing Lua.Run but that seems to require the command be isolated with no text.
So what is the best method to run all inline lua commands on a provided string file? Or is there a way to get the processed string directly from the DialogueManager?
Code: Select all
Conversation con = DialogueManager.masterDatabase.GetConversation(convoRef);
DialogueEntry ent = con.GetDialogueEntry(i+1);
reflectLabel[i].text = ent.DialogueText;
So what is the best method to run all inline lua commands on a provided string file? Or is there a way to get the processed string directly from the DialogueManager?