HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can I make a Square Array?

07-30-2005, 01:56 AM#1
Kalvorod
You know, an 2 arrays in one. It would look like this: Array[A][ B]

I need this... It would make my life a lot easier than using a bunch of normal arrays (like 10 of these Array[A], instead of 1 Array[A][ B])
07-30-2005, 10:31 AM#2
Anitarf
You can simulate a 2D (or more) array with a single value. It would be something like Array[( ( B x maxA ) + A )]. This can give you a large array quickly, especialy if you don't have well defined limits how far A and B can go. The maximum size of an array is something above 8000. For anything more, you need to use game-cache.
07-31-2005, 01:47 AM#3
Kalvorod
Ok, thanks. I had already done this actually and it works just fine, albeit it took a little bit to get out all the kinks.