- Joined
- Aug 8, 2010
- Messages
- 1,022
Hello, mates! I wanna ask, how do i index an array variable? I'll give an example :
If i have Effect1, Effect2 and Effect3, put them in an indexing variable :
Effect1[Array] = Effect1
Effect2[Array] = Effect2
Effect3[Array] = Effect3
i can manipulate them by simply using EffectX[Array]. But how do i do the same if the non-indexed EffectX variables are converted into one with array? Example :
If i have Effects[1 or 2 or 3] (i'll refer to this variable as Effects[X]) instead of Effect1, Effect2 and Effect3, how do i index Effects[X]? Does it have to be something like this :
For loop (Integer A) from 1 to 3 do :
Effects[[IntegerA [Array]] = Effect_IntegerA (i can do this because i load the values from a hashtable, i load a string, thus i can use concatenate strings : Effect + String(IntegerA) )
I tried this (which is the same as the thing above) :
Thanks in advance!!!
Help is appreciated with +rep !
If i have Effect1, Effect2 and Effect3, put them in an indexing variable :
Effect1[Array] = Effect1
Effect2[Array] = Effect2
Effect3[Array] = Effect3
i can manipulate them by simply using EffectX[Array]. But how do i do the same if the non-indexed EffectX variables are converted into one with array? Example :
If i have Effects[1 or 2 or 3] (i'll refer to this variable as Effects[X]) instead of Effect1, Effect2 and Effect3, how do i index Effects[X]? Does it have to be something like this :
For loop (Integer A) from 1 to 3 do :
Effects[[IntegerA [Array]] = Effect_IntegerA (i can do this because i load the values from a hashtable, i load a string, thus i can use concatenate strings : Effect + String(IntegerA) )
I tried this (which is the same as the thing above) :
-
Set CSEArray[CArray] = (Integer A)
-
Set CSpecialEffects[CSEArray[CArray]] = Load bla bla bla EffectIntegerA

Thanks in advance!!!

Help is appreciated with +rep !