Useful information for a newbieA non-array variable can store only 1 information - a unit is stored in unit variable; a location in point variable.
Ex.
You have a unit variable called unit_var and 2 units - UnitA and UnitB
You set unit_var = UnitA --- now that variable stores UnitA
If some time later you were to do this:
set unit_var = UnitB --- that variable will not store both UnitA and UnitB, it will now store only UnitB, because it doesn't have......................................
array is hard to explain, but i'll try to make you understand
array providing us another room for storing a variable without creating a new one.
for example, you want to make 2 unit variable, the frist variable contain casting unit and the second trigger contain target unit of ability being cast..........................
So an array make us easier to use a multiple variable, you can use up to 1000 array in one variable.... Got it?
I guess the next time I try to explain anything, I'll have to use kitties and dogs instead of UnitA and UnitBThis is complex Dx
I guess the next time I try to explain anything, I'll have to use kitties and dogs instead of UnitA and UnitB