I'm trying to use text input in a quest script and I'm hitting a problem. Basically the script looks as follows:
ScriptName qesStartScript...Begin menuMode if textopen == -1 set textbutton to GetButtonPressed if textbutton >= 0 print "textbutton"+tostring textbutton set userText to GetInputText ... CloseTextInput set textopen to 0 else UpdateTextInput endif endifEndBegin GameMode ... Let textopen := -1 OpenTextInput "Give a name for this slot | Finished" 0 20 ...End
The input appears to work. I see a dialog appear and I can type in it. However, GetButtonState() always seems to return -1. Even if I close the dialog (using the 'Finished' button) the dialog seems to close but I never see the output of the 'print' in the console (tdt is enabled).
What am I doing wrong?
Thanks!