I don't know how to describe this problem any other way than give you an example, so here goes.
I made a global variable called gvar_wine, which tracks the choices you make in a certain dialog. Suffice to say when you answer positively, its value becomes 1, if negatively it becomes 2.
After that I made a new global variable called gvar_mexican, which tracks whether or not you've encountered a person in the game, and starts the credit sequence when you enter a particular room when its value is 1.
Now, when I activate the gvar_wine dialog, and answer positively then leave the room, the credit sequence starts. Nowhere is gvar_mexican being called, but it still happens. But it does NOT happen if I answer negatively or dont start the dialog at all and leave the room.
And what's even more interesting is when I dont start the dialog at all, but meet the person, thus setting ONLY gvar_mexican to 1, and then start the dialog, the dialog has changed according to if gvar_WINE was also set to 1.
So could it be that the getglobalint somehow calls up the gvar number instead of its name? I dont know, it doesnt make sense, but thats the only thing I can think of to explain this.
I'm using AGS 3.02 SP1 btw.
I made a global variable called gvar_wine, which tracks the choices you make in a certain dialog. Suffice to say when you answer positively, its value becomes 1, if negatively it becomes 2.
After that I made a new global variable called gvar_mexican, which tracks whether or not you've encountered a person in the game, and starts the credit sequence when you enter a particular room when its value is 1.
Now, when I activate the gvar_wine dialog, and answer positively then leave the room, the credit sequence starts. Nowhere is gvar_mexican being called, but it still happens. But it does NOT happen if I answer negatively or dont start the dialog at all and leave the room.
And what's even more interesting is when I dont start the dialog at all, but meet the person, thus setting ONLY gvar_mexican to 1, and then start the dialog, the dialog has changed according to if gvar_WINE was also set to 1.
So could it be that the getglobalint somehow calls up the gvar number instead of its name? I dont know, it doesnt make sense, but thats the only thing I can think of to explain this.
I'm using AGS 3.02 SP1 btw.