HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Array Confusion

09-11-2005, 09:57 AM#1
Doomsberg
This was just a thought that occured to me recently...do arrays in the WE start at 0 or 1. And if it starts at 0 does that mean if an array size is 10 the biggest section i can reference is 9?

Thanks in advance
09-11-2005, 10:15 AM#2
Anitarf
They start at 0 and you can reference as much as you want no matter what you set the max size to be, because the engine adapts the size to what you ask of it, until you hit the absolute max size which is around 8000.
09-11-2005, 10:18 AM#3
Tim.
Also player numbers in GUI start from 1 whereas in JASS they start from 0. That tends to be important when using arrays.
09-12-2005, 08:00 AM#4
Doomsberg
thanks for the info. Since my maps a single player i don't really involve player numbers much. Its mainly when referencing which member of the party does a certain action.

I would give rep but i don't think we can yet.