StarCraft II CC FAQ - Your questions
Moderator: Milldawg
- IskatuMesk
- Xel'naga World Shaper
- Posts: 8332
- Joined: Sat Feb 07, 2009 1:40 pm
- Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞా
- Contact:
Re: StarCraft II CC FAQ - Your questions
Hicks told me that dirty mappers were dirtying up a clean modding thread with their dirty little hands. I cannot abide by this defilement.
Gameproc
Though we stand alone, stand we shall.
Though we stand alone, stand we shall.
- AA7Dragoon
- Protoss Khalai Missionary
- Posts: 1039
- Joined: Mon May 21, 2007 10:09 am
- Location: Washington, USA
Re: StarCraft II CC FAQ - Your questions
Indeed. Your presence was required.
I have seen the Desler. I have tasted of his milk and honey.
- Maglok
- Xel'naga World Shaper
- Posts: 1312
- Joined: Sun May 20, 2007 12:48 pm
- Location: The Netherlands
Re: StarCraft II CC FAQ - Your questions
That sure didnt take long. 

- Ricky_Honejasi
- Xel'naga Solar Moderator
- Posts: 2011
- Joined: Wed Aug 16, 2006 3:50 pm
Re: StarCraft II CC FAQ - Your questions
Compared to other questions, it's far from being a critical one since odds are it will at least 8192.Ok- But, is this a valuable question or just an informative question? I'm not sure what arrays are used for (never understood variables too well).Q: What will be the maximum variable array size?
Note : in war3, it is 8192 or so.
However, I think about a more important question related to them should be the following :
Q : Will SC2 support 2 or 3 dimension arrays? (Note : War3 only supports 1 dimension array.)
The rest of this post is explanation about arrays, feel free to skip the rest of this post if you don't want to read it.
By the way, arrays are mostly useful to the more "programmer" of triggerer persons.
Non-Array explanation
An integer variable (integer = number without decimals) can only hold one number. Let's say 15.
So inside the variable in more graphical form, it would be like that :
[ 15 ]
In terms of variable reference, it is like that : Variable is equal to 15.
Array explanation (1 dimension)
However if you want an ARRAY integer variable of a size of 3. It means it could contain 3 numbers.
Then, let's say it contains the number 14, 56 and 33.
So inside the array variable in more graphical form, it would be like that :
Code: Select all
X0 X1 X2
[ 14 ] [ 56 ] [ 33 ]
... if I want to know the number at the position X of 0, it would be the number 14. Variable[0] is equal to 14.
... if I want to know the number at the position X of 2, it would be the number 33. Variable[2] is equal to 33.
Note that all arrays start with 0 instead of 1 as their first value's reference.
In Warcraft 3, they allow only one dimensional arrays up to a size of 8192 (8192 numbers or whatever else of the same base thing).
Array explanation (2 dimensions)
An array can have more than one dimension. For example, it can be 2 dimensions, one of a size of 5 and one of a size of 3. In total, they can hold 15 numbers if we combine all the available space.
Let's say we try to pack the simple numbers 14 to 28 inside into all available spaces and it will look like that :
Code: Select all
X0 X1 X2 X3 X4
Y0 [ 14 ] [ 15 ] [ 16 ] [ 17 ] [ 18 ]
Y1 [ 19 ] [ 20 ] [ 21 ] [ 22 ] [ 23 ]
Y2 [ 24 ] [ 25 ] [ 26 ] [ 27 ] [ 28 ]
... number at position X,Y of 3, 1, it would be the number 22. Variable[3][1] is equal to 22.
... number at position X,Y of 4, 0, it would be the number 18. Variable[4][0] is equal to 18.
... number at position X,Y of 2, 2, it would be the number 26. Variable[2][2] is equal to 26.
Array explanation (more than 2 dimensions)
Logically, you can have an array with an infinite number of dimensions. However, only up to 3 dimensions tend to be practical for most people to make an X,Y,Z-like system. Basically the extra dimensions only follow the same base logic from the 1 to 2 dimension switch in terms of variable reference.
Last edited by Ricky_Honejasi on Tue Jul 29, 2008 5:35 am, edited 1 time in total.
-
- Zerg Hydralisk Nail Stylist
- Posts: 597
- Joined: Tue Sep 19, 2006 7:37 pm
Re: StarCraft II CC FAQ - Your questions
How will the game handle large amounts of unit orders?
Will there be a wait function that doesn't have to be eyeballed past 3 seconds or so?
Will triggers inherently leak as much memory as in WC3, or better yet, will there be a more intuitive way to prevent memory leaks?
Will mappers/modders be able to create new unit classifications?
Will standalone mods be able to benefit from trigger-enhanced effects, or is that irrelevant with the advent of the new data editor?
Will there be a wait function that doesn't have to be eyeballed past 3 seconds or so?
Will triggers inherently leak as much memory as in WC3, or better yet, will there be a more intuitive way to prevent memory leaks?
Will mappers/modders be able to create new unit classifications?
Will standalone mods be able to benefit from trigger-enhanced effects, or is that irrelevant with the advent of the new data editor?
Last edited by tipereth on Tue Jul 29, 2008 12:52 pm, edited 1 time in total.
- Lavarinth
- Xel'naga Administrator
- Posts: 6539
- Joined: Wed Aug 16, 2006 5:21 pm
- Location: His Ashworld Planet
Re: StarCraft II CC FAQ - Your questions
This thread has been purposely bumped from the second page.
- - Lavarinth
Campaign Creations Administrator
Campaign Creations Administrator