For my game, I'm trying to build a little minigame where the player has to type a specific word within a timelimit.
The code is pretty much done, but there's one problem that I can't figure out for the life of me.
If the player fails to write the word in time, the script for failing runs, after which the input can still be successfully entered.
Stopping a timed-out input from getting any further is trivial, but it still swallows the input, which is pretty frustrating for the player.
Is there any way I can stop Quest from asking for that input?
If you're using get input, I don't think there's any reasonable way to do it.
The best I can think of is something like:
That sends the input 'dummy' as if the player typed it. You can then have your answer-handling function ignore that and continue with the game. (The JS instruction
sendCommand('dummy'); sends the fake command to end the get input; while
$('#txtCommand').val(''); clears whatever's in the input box).