Missing scripts in Gamebook mode

Thierry
18 Apr 2013, 00:33
Hi everybody ! I've just tried gamebook mode in Quest 5.4, as it sounds really good now. But I noticed some useful scripts seem to miss comparing to text adventure mode. For exemple, "Wait for key press" doesn't appear in output scripts, although "WaitForKeyPress" function appears in the library elements. I know Alex said some scripts were not relevant anymore in gamebook mode, but this one could be useful as a narrative element, don't you think ?
So my question is : can I do something to make this script visible in the "add new script" panel ?

Thank you very much for your help !

Alex
18 Apr 2013, 14:12
I took "wait for key press" out for now, as the "Continue..." prompt currently appears where the command input box is, and that section is hidden in gamebook mode so the link doesn't display. I'll fix it in a later version (unless somebody else wants a go at it).

Thierry
18 Apr 2013, 14:27
OK, thank you very much for the answer Alex :wink:

Sora574
18 Apr 2013, 22:15
This isn't perfect, but it's good enough for a temporary fix, I think...
If you want a wait script for Gamebook right now, you could use this:
OutputTextNoBr ("<a id=\"endWaitLink\" onclick=\"endWait();\" class=\"cmdlink\" style=\"display:none\">Continue...</a>")
wait {
// What to do after key is pressed or link is clicked
}

Again, this isn't perfect, but it gets the job done. Just make sure you print the message every time you use the wait script (immediately before it!)

Basically, what this does is it forces the default 'Continue...' to go away and replaces it by printing a message outside of the command bar. (I figured this out by studying the Quest source code, which is way too advanced for me to make a permanent fix -- I don't even know where to start lol)

Thierry
18 Apr 2013, 23:07
OK, thank you very much Sora, I will try that :wink: