Sequencer firing too late
Posted: Mon Jan 27, 2025 7:01 am
Hello,
I have an issue with the order at which the sequencer commands fire. Take a look at this example where I marked the order, which is incorrect.
As you can see, after the NPC reveals their name (which is just a simplified scenario I'm testing with), I would expect the player to get the option to respond using the newly learned name. However, the condition for these two options are checked BEFORE the RevealMyName sequence fires on the NPC so the condition evaluation returns false. When I respond with the bottom option and check the condition again, now finally the correct answer is available.
I'm confused why it's so out of order. I'm also struggling with a very similar issue that doesn't return the actor associated with the dialogue node it's called from in some (most) occasions. So far I failed to find a universal way to get the current actor from within the dialogue text or sequence that never fails. That's also why I have explicit functions to get Actor name and Conversant name instead of just having something like Name which would return the current character's name. But I'm not sure these issues are related to the subject of this thread so I might create a separate thread for them unless you confirm that these issues are related and I can elaborate here.
I have an issue with the order at which the sequencer commands fire. Take a look at this example where I marked the order, which is incorrect.
As you can see, after the NPC reveals their name (which is just a simplified scenario I'm testing with), I would expect the player to get the option to respond using the newly learned name. However, the condition for these two options are checked BEFORE the RevealMyName sequence fires on the NPC so the condition evaluation returns false. When I respond with the bottom option and check the condition again, now finally the correct answer is available.
I'm confused why it's so out of order. I'm also struggling with a very similar issue that
Code: Select all
DialogueManager.currentConversationState.subtitle.speakerInfo