Closed benwest closed 2 months ago
Hey, sorry for taking so long to respond.
I've been working on a big holy grail rework of the lookahead feature that allows CommandResults to properly receive the isDialogueEnd flag but that doesn't prematurely handle commands or set variables.
It wound up being a lot more complicated than I expected! But, it would be great if you could try out the latest version and let me know if there are still kinks left to iron out.
closing, assumed to be fixed
First, fantastic library, it's working great in our game and a lot of fun! But...
Issue
When a command is followed by an if statement, the lookahead in advance evaluates the if statement first and the command second. So if the command should have affected the result of the if statement, it's too late.
Reproduction
https://codesandbox.io/s/gallant-currying-bi8e7b?file=/src/index.js
Script:
Output:
Expected output: