I've searched for that but did not find something useful. What is the checkbox "defines default value" at variables for? And is there an advantage of using that?
In addition, when making it an array, the first value sets the index size... and the other things in which you can enter numbers?
Do they allow stuff like
Var[1][2][5] or similar?
As for the first part, i believe defining the variable allows you to set the variables condition zero state. For example, players life variable. Set it default to 20, and then minus damage done from there. This is kinda roundabout, seeing as you can just add the players starting life.
as to your second question, i have no idea what your asking.
To better describe arrays, if you have an array, lets say its [8][8] imagine a checker board. This right here gives you 64 independant blocks to save data. Now if you have [3][8][8] then you have 3 checkerboards, or 194 seperate blocks to store information.
Ya, I know how arrys are normally working :)
Thanks a lot for these fast replies, though I yet did not entirely understood the defines default value... can give a better explained example please? :S
Like, we have 3 Unit Tpe Variables, one got Define Default Value and is 'Hellion', the others become Hellion as well while their value is not modified and that D.D.V is unchecked?
I've searched for that but did not find something useful. What is the checkbox "defines default value" at variables for? And is there an advantage of using that?
In addition, when making it an array, the first value sets the index size... and the other things in which you can enter numbers? Do they allow stuff like Var[1][2][5] or similar?
@DarkDevourer: Go
As for the first part, i believe defining the variable allows you to set the variables condition zero state. For example, players life variable. Set it default to 20, and then minus damage done from there. This is kinda roundabout, seeing as you can just add the players starting life.
as to your second question, i have no idea what your asking.
@DarkDevourer: Go
Defines default value: If checked, this variable defines the default value of any variables of the same type.
The arrays: Yes, the other numbers are to make multidimensional arrays, like Var[1][4][5]
@s3rius: Go
To better describe arrays, if you have an array, lets say its [8][8] imagine a checker board. This right here gives you 64 independant blocks to save data. Now if you have [3][8][8] then you have 3 checkerboards, or 194 seperate blocks to store information.
Ya, I know how arrys are normally working :) Thanks a lot for these fast replies, though I yet did not entirely understood the defines default value... can give a better explained example please? :S
Like, we have 3 Unit Tpe Variables, one got Define Default Value and is 'Hellion', the others become Hellion as well while their value is not modified and that D.D.V is unchecked?
Yes, that's what the default value is for.