Problem with Ask script
xordevoreaux
31 Mar 2013, 14:46I was using the Ask function all this time until I downloaded 5.4 and was informed via an error message that the ask function was deprecated, use the Ask script instead.
So, I did, and got this:
Error running script: Too few parameters passed to ShowMenu function - only 3 passed, but 4 expected
So I closed my game and created a test file and just added a room with something in it and then created the start script using the Ask script, but I still get the above error.
I just use the interface, I don't code, so I'm not sure what I would be doing wrong.
I click Ask a question, the fields show up, I type in the question, and then put a print script in for the result. It is bombing both with and without a script associated to it.
Thanks in advance for any help.
So, I did, and got this:
Error running script: Too few parameters passed to ShowMenu function - only 3 passed, but 4 expected
So I closed my game and created a test file and just added a room with something in it and then created the start script using the Ask script, but I still get the above error.
I just use the interface, I don't code, so I'm not sure what I would be doing wrong.
I click Ask a question, the fields show up, I type in the question, and then put a print script in for the result. It is bombing both with and without a script associated to it.
Thanks in advance for any help.

jaynabonne
31 Mar 2013, 15:28According to this:
http://quest5.net/wiki/Ask
The "Ask" script command is no longer suppored in Quest 5.4. You should use "ask" instead.
Unfortunately, there seems to be a bug in Quest 5.4, but I'm not sure which it is. When you add an "Ask a question" script, it uses the "Ask" form. Given that Ask is still supported in the scripts and that the GUI still uses it, it's possible the docs are wrong, and Ask is still supported. In that case, it's a bug in the Ask script itself, where it hasn't been updated with the new additional parameter to ShowMenu (since that's what it uses internally).
The bottom line: you're not going mad. It's a bug. If you feel comfortable editing scripts in code view, you can simply go in and replace "Ask" with "ask", and it will work.
I think someone needs to clarify which form of ask/Ask is supposed to be used.
http://quest5.net/wiki/Ask
The "Ask" script command is no longer suppored in Quest 5.4. You should use "ask" instead.
Unfortunately, there seems to be a bug in Quest 5.4, but I'm not sure which it is. When you add an "Ask a question" script, it uses the "Ask" form. Given that Ask is still supported in the scripts and that the GUI still uses it, it's possible the docs are wrong, and Ask is still supported. In that case, it's a bug in the Ask script itself, where it hasn't been updated with the new additional parameter to ShowMenu (since that's what it uses internally).
The bottom line: you're not going mad. It's a bug. If you feel comfortable editing scripts in code view, you can simply go in and replace "Ask" with "ask", and it will work.
I think someone needs to clarify which form of ask/Ask is supposed to be used.