HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ingame struct w/ random sized variables

08-08-2008, 03:57 PM#1
Zandose
Hi. Is there a way to create a struct ingame which has a extended array (anywhere from 9216 to 196608) for the variables?

Example:
-Game starts.
Collapse JASS:
function CreateArray takes nothing returns nothing
    local test t
    local integer ArraySize = GetRandomInt(9216, 196608)
    set t = test.create()
endfunction

struct test
    integer a[ArraySize]
    integer b[ArraySize]
endstruct
08-08-2008, 04:50 PM#2
Anitarf
No.
Why?
08-08-2008, 04:50 PM#3
Captain Griffen
What do you want to do? I can pretty much guarentee you there is a better way.
08-08-2008, 06:43 PM#4
Zandose
Basically I'm storing the x and y point for trackables. 16384 Per player (196608 for 12 players). I just didn't want to end up crating unneeded variables (waste of space).
08-08-2008, 06:57 PM#5
Pyrogasm
Create them anyway.