How can I create a input window?

Suwonian
Is there anyway to create an input box window? For example, when I click on "use" for a security key pad, I'd like a small window to appear where the user can input the code. I'd like to do it this way so that the use can't click on anything else while the program (i.e. getInput) is waiting for the input.

The Pixie
Try the script command "get input". Notr sure if it is exactly what you want, but I do not think there is anything else.

http://quest5.net/wiki/Get_input

sgreig
There's no function in Quest that will create a pop-up window for player input. That being said however, it might be possible to add something like this yourself with JavaScript or something, but I can't say that for sure.

The Pixie
Is there are documentation anywhere about using JavaScript with Quest? Anything at all, even just example code, would be useful.

Pertex
Yes, here: http://quest5.net/wiki/Using_Javascript

Ahh, I understand. You want to do something like this: :D


Strange, I just noticed that this is not working with Q5.3. It ignores the JS command prompt

The Pixie
Thanks for that, the simple program makes it much easier to understand.

So much so that I have written a Wiki page, which I think will be easdier to understand that the older one:
http://quest5.net/wiki/Javascript

Suwonian
Pertex, thank you for taking the time to help me. The prompt box looks great. Pixie, thank you for the new Wiki page.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums