Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Dr Fred Rubacant Edison on Sun 22/11/2009 17:02:16

Title: What is the Differents from the two??
Post by: Dr Fred Rubacant Edison on Sun 22/11/2009 17:02:16
Looking in the AGS System limits. What is the Differents from interaction editor global variables  and script GlobalInts.


500  script GlobalInts
100  interaction editor global variables


I use Global Int like   Int PowerOn.  What one would this be or is it allso totally different?
Title: Re: What is the Differents from the two??
Post by: monkey0506 on Sun 22/11/2009 19:01:49
The most important thing to note about both of those limits is that for both of them, the item the limit is referencing has already been obsoleted/deprecated.

"interaction editor global variables" were variable states created using the "Interaction Editor" which was removed in AGS 3.0

"script GlobalInts" refers to the SetGlobalInt and GetGlobalInt functions which were deprecated in AGS 3.* (something, I don't remember the exact version)

The supported methods for global variables currently includes just these two options:

Title: Re: What is the Differents from the two??
Post by: Dr Fred Rubacant Edison on Sun 22/11/2009 19:54:47
Thank you for the post.

I'm sorry that I didn't mention I was using AGS 2.72

I allready have alot of import and export int variables.   just wondering can i have up to  500  script GlobalInts with this.

I like using 2.72  right then 3.0 version.  But I just need to make sure  about global variables and what I can do.

Just wondering is there a plugin or mod for 2.72  that will let you have more global int.
Title: Re: What is the Differents from the two??
Post by: monkey0506 on Sun 22/11/2009 20:08:42
If you're using import/export then the limits still don't apply to you. :=

The limits apply to the GetGlobalInt and SetGlobalInt functions which work like:

SetGlobalInt(5, 10); // set global int #5 to value 10

int i = GetGlobalInt(5); // sets i to value of global int #5, which is 10


However, it's these functions that have the limit you're referencing. Again, if you're using import/export you have nothing to worry about. ;)
Title: Re: What is the Differents from the two??
Post by: Dr Fred Rubacant Edison on Sun 22/11/2009 22:29:23
Thank you for the post.