Window problem it's doing my head in!

Amelia1066
10 Jun 2012, 13:50
Hi,

I am having a problem with a french window. I have created a tech lab game so I didn't need to attach my actual game, and the problem happens with it as well, so I am consistant with my error!

The window is closed, and therefore locks the "in" direction. If you "open window" the game replies with "you open the window" and it unlocks the way "in". If you then type "close window" it replies with "it's already closed".

I created another window for the next room, and it works just fine. I have no idea why this isn't working and it's really annoying me now. Can anyone help?

Pertex
10 Jun 2012, 14:07
If you use "script to run when opening object" you override the internal Questfunction so you must open the container. Add following after your unlockcommand in the gui:
Set variable [fwindow.isopen] = expression [true]

Amelia1066
10 Jun 2012, 15:11
Thank you for your help, and so quickly too. :)

I couldn't get the set variable to work, but your explanation as to why the error was happening really helped and instead I just selected open object from the script menu and selected the fwindow.

Thanks again.