-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Dialogue options still continue processing even when user walks away during chat. #305
Comments
is this on my romeo and juliet branch? |
Yes, maybe I should've created a bug report on your specific fork instead, but I wasn't sure if it was caused by yours in particular. |
This should be fixed with the new action handling system, but feel free to re-open if it persists when the PR is ready to merge. |
I know why this happens, and IMO it's an issue still, depending on the perspective you look at it. Say you have this code: async function talkToNpc() {
await dialog([ ... ]);
openBankInterface();
} If you talk to the NPC, and walk away mid dialogue, the async function talkToNpc() {
const success = await dialog([ ... ]);
if (success) {
openBankInterface();
}
} But what if you have multiple dialogues in there (the case for some quests where there is a async function talkToNpc() {
const successOne = await dialog([ ... ]);
if (successOne) {
const successTwo = await dialog([ ... ]);
if (successTwo) {
// Do something important
}
}
} This can easily be fixed by throwing in |
Describe the bug
If you speak to another NPC and walk away mid-conversation, instead of closing all dialogue interfaces, the next available option dialogue displays, even if the user didn't traverse down that part of the dialogue tree.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All dialogues should close when walking away from a dialogue interaction with an NPC.
Screenshots
https://i.imgur.com/vPSgVop.mp4
The text was updated successfully, but these errors were encountered: