Code: Select all
private void OnConversationLineEnd(Subtitle subtitle) {
DialogueEntry nextEntry = DialogueManager.MasterDatabase.GetDialogueEntry(subtitle.dialogueEntry.outgoingLinks[0]);
ConversationState nextResponseState = DialogueManager.conversationModel.GetState(nextEntry);
DialogueManager.conversationController.GotoState(nextResponseState);
}
now if I put "someTrigger" into a "Hello" entry field, and create a NPC dialogue entry under this entry, that NPC dialogue won't play. However, if I create another Player dialogue entry under that NPC dialogue, the NPC line will be played
or, if I move above code to OnConversationLine(), it will play NPC dialogue entry, but it will cause both "Hello" entry and NPC dialogue entry be played at same time
anyway I can resolve this
FYI, I'm trying to specific a dialogue entry to go to a specific ongoingLink from script (if it has more than one onging link), currently I use GoToState() because I don't know any other way, maybe you can provide me some other solution to achive this
tks