Problem with OBSE and Text Input

Post » Sat Aug 13, 2011 4:10 am

Hi all,

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!
User avatar
Tom
 
Posts: 3463
Joined: Sun Aug 05, 2007 7:39 pm

Return to IV - Oblivion