If you initialized Variable to be length 11 in the editor, yes. Just setup your Variable to have a length of the longest possible array you will need :)
Alright, and think really hard about this one; if you use a value stored in a variable, and you later change the variable, does it change everything where you used the previous value of the variable?
That's right, it doesn't, because it's not dynamic under any circumstance. If you type in
Is it possible to increase variable arrays in-game (aka real time)?
Edit: NVM, just thought of VARray[X]. Would increasing X update the max array?
@obliviron: Go
afaik there's no dynamic array tools in galaxy ... you can't even check the size of an existing array
Ok, but say:
X = 5
Variable[x] = Variable[5]
Then 5 minutes into the game, I would change X = 10.
Would it be possible to call Variable[10]?
@obliviron: Go
If you initialized Variable to be length 11 in the editor, yes. Just setup your Variable to have a length of the longest possible array you will need :)
@obliviron: Go
Alright, and think really hard about this one; if you use a value stored in a variable, and you later change the variable, does it change everything where you used the previous value of the variable?
That's right, it doesn't, because it's not dynamic under any circumstance. If you type in
X = 5
Variable = new Variable[X]
it'll be the exact equivalent of using
Variable = new Variable[5]
This is not dynamic, ever.
You can try using data tables for this instead. You can store values as lets say, Variable.+(text(X)) and them recall them using same string.