Send Dialog via Script
Posted: Sun Aug 28, 2022 4:32 am
Say I have a dialogue open, is there a way I can interrupt what's currently displayed and display some other text instead via script? I don't want it to instantly appear.
Support and discussion forum for Pixel Crushers products
https://www.pixelcrushers.com:443/phpbb/
https://www.pixelcrushers.com:443/phpbb/viewtopic.php?t=6154
Code: Select all
var subtitleText = DialogueManager.standardDialogueUI.conversationUIElements.defaultNPCSubtitlePanel.subtitleText;
subtitleText.text = "This is new text.";
Code: Select all
var panel = DialogueManager.standardDialogueUI.conversationUIElements.defaultNPCSubtitlePanel;
panel.GetTypewriter().StartTyping("This is new text.");
Code: Select all
var newDialogueEntry = DialogueManager.masterDatabase.GetDialogueEntry(conversationID, entryID);
var newState = DialogueManager.conversationModel.GetState(newDialogueEntry);
DialogueManager.conversationController.GotoState(newState);
Code: Select all
var subtitle = new Subtitle(speakerInfo, listenerInfo, new FormattedText.Parse("This is new text."), sequence, "", null);
DialogueManager.standardDialogueUI.ShowSubtitle(subtitle);