I have a problem with the notepad system, once again. Everything else works, but...
I have three separate windows - Locations, Events and Characters. Now, when I talk to a person, and choose [Consult Notepad], the Characters-window appears by default. In each window are buttons that open the other windows. Now, if I don't want to ask about anything in the Characters window, I should be able to choose either the Events or locations window - and this works - but because the code looks like this
if(Selected==4)
{
Loop=false;
Game.Interactive = true;
WinCharacters.GoExclusive();
Game.Interactive=false;
if(question=="1")
{
WinCharacters.CrossOutNote(1);//removes the first note
actor.Talk("Ask about the first note");
}
if(question=="2")
{
WinCharacters.CrossOutNote(2);
actor.Talk("ask about the second note");
}
if(question=="3")
{
WinCharacters.CrossOutNote(3);
actor.Talk("ask bout the third note");
}
if(question=="4")
{
WinCharacters.CrossOutNote(4);
actor.Talk("fourth note");
}
OldGuyDialogue();//after asking, go back to dialogue
...the Locations/Events window opens AND the OldGuyDialogue() script is executed, thus displaying the dialogue choices and making the screen a mess.
I tried a different method: I created one window called Notepad, and made Characters/Loacations/Events sort of sub-windows (if real subwindows can be created, I don't know how). Within the Notepad-window I could have switched between the different sub-windows - but this didn't work, as the only way to open a window is the GoExclusive, and when another window is opened on top of the Notepad window, it makes the controls in Notepad-window unaccessible.
In my mind a few ideas are forming, but... do you have any ideas?