Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Minimi on Thu 20/11/2003 22:14:55

Title: Setglobalint within dialog
Post by: Minimi on Thu 20/11/2003 22:14:55
I want to add a value of 1 to a certain global value within dialog and outside does this work?

within dialog :

set-globalint 1 +1

outside dialog :

setglobalint (1, +=1);


I just need to check, so can you tell me if this will work?
Title: Re:Setglobalint within dialog
Post by: Proskrito on Thu 20/11/2003 22:21:56
Why dont you just try it before posting? : P
And im not so sure, but i think that wont work, just use a run-script with dialog_request and SetGlobalInt(1,GetGlobalInt(1)+1)