In one conversation, how can I call a ConversationEnd event after a specific line in a conversation? In my attached image I circled the lines in which I'd like to call a separate event after the conversation ends on one of those lines.
There's most likely a way to do it that doesn't involve a ConversationEnd event? The event would have to be called after those specific lines, not when the dialogue starts on that line.
Call different ConversationEnd events after specific lines in one Conversation
Call different ConversationEnd events after specific lines in one Conversation
- Attachments
-
- Capture.PNG (42.43 KiB) Viewed 326 times
Re: Call different ConversationEnd events after specific lines in one Conversation
Hi,
You could add an extra node to each conversation branch:
Leave the Dialogue Text blank. Use the Continue() sequencer command to immediately end the node. And use other sequencer commands or scene events to do stuff. If you use sequencer commands, put "required" in front of them to make sure they run before the Continue() command ends the conversation. You can also use the SetDialoguePanel(false) sequencer command to hide the UI.
The catch with the suggestion above is that the conversation is technically active until these end nodes finish. Another alternative is to add Dialogue System Triggers set to OnConversationEnd to one of the conversation participants (e.g., the NPC). In each ending node, set a DS variable variable. Then set the Dialogue System Triggers' Conditions to check variable values:
You could add an extra node to each conversation branch:
Leave the Dialogue Text blank. Use the Continue() sequencer command to immediately end the node. And use other sequencer commands or scene events to do stuff. If you use sequencer commands, put "required" in front of them to make sure they run before the Continue() command ends the conversation. You can also use the SetDialoguePanel(false) sequencer command to hide the UI.
The catch with the suggestion above is that the conversation is technically active until these end nodes finish. Another alternative is to add Dialogue System Triggers set to OnConversationEnd to one of the conversation participants (e.g., the NPC). In each ending node, set a DS variable variable. Then set the Dialogue System Triggers' Conditions to check variable values:
Re: Call different ConversationEnd events after specific lines in one Conversation
Thanks for the quick response! I'll try this out ASAP