Bug with Skipping Player Response Subtitles
Posted: Fri Feb 12, 2016 6:59 pm
Before I describe the bug, I'll describe what I'm trying to achieve, perhaps there's a way around this:
Some of my conversations are my player simply talking to itself, or oftentimes I only want a single response from the player to the NPC, where it's shown as a subtitle, not as a response choice. Because of this, I have "Show PC Subtitles During Line" turned on.
That being said, I've been requested to make the conversation skip over showing the response subtitle when the player just selected it. In my DialogueUI, I keep track of response.destinationEntry.id before I mark it as the selected response, and if the subtitle has that same id, I immediately send the Continue() message to skip over it.
The bug is, that if you send the Continue() message during Show(), the System Controller doesn't respect the "Not Before Response Menu" setting.
My current workaround for this is to use a Coroutine to delay the Continue message by a single frame, which works, but feels incredibly hacky.
If there's a better way to get around this, please let me know!
Some of my conversations are my player simply talking to itself, or oftentimes I only want a single response from the player to the NPC, where it's shown as a subtitle, not as a response choice. Because of this, I have "Show PC Subtitles During Line" turned on.
That being said, I've been requested to make the conversation skip over showing the response subtitle when the player just selected it. In my DialogueUI, I keep track of response.destinationEntry.id before I mark it as the selected response, and if the subtitle has that same id, I immediately send the Continue() message to skip over it.
The bug is, that if you send the Continue() message during Show(), the System Controller doesn't respect the "Not Before Response Menu" setting.
My current workaround for this is to use a Coroutine to delay the Continue message by a single frame, which works, but feels incredibly hacky.
If there's a better way to get around this, please let me know!