Change Dialogues at Runtime
Posted: Mon Jun 07, 2021 9:56 am
Hi Tony,
I’m using a conversation as a template for a type of encounter where the content of the conversation is changed by script.
I used this piece of code:
Conversation conversation = database.GetConversation(conversationName);
DialogueEntry dialogueEntry = conversation.GetDialogueEntry(“nameID");
dialogueEntry.currentDialogueText = “Text Value";
While it works before the conversation is called, the values aren’t changed while the conversation is active. How would I go about changing the value of dialogue entries that’s already loaded?
I’m using a conversation as a template for a type of encounter where the content of the conversation is changed by script.
I used this piece of code:
Conversation conversation = database.GetConversation(conversationName);
DialogueEntry dialogueEntry = conversation.GetDialogueEntry(“nameID");
dialogueEntry.currentDialogueText = “Text Value";
While it works before the conversation is called, the values aren’t changed while the conversation is active. How would I go about changing the value of dialogue entries that’s already loaded?