Kailric
Jack of All Trades
How does the SDK handle global and local variables... thats something I am gonna look into and figure out.. cause I know from past experience global and local variables allow you to do awesome things. Like can local variables be attached to Units, Buildings, etc, in the Code itself. That is, without having to add a new tag in XML.
Like for instance...
pAttacker = this
pAttacker set local variable "nameofvarable" to value "value"
Same for global variables.
Like for example, if you want to track the cities a unit enters and record what the culture value was of each city. You would add a local variable array to the unit, each time it entered a city it would add that city to the array, then add the cities culture. Then later on you could call up the unit if you had it assigned to a global varable, check its array, and do what ever.
I am not trying to do that example but was just wondering if such above is possible with the SDK?
Like for instance...
pAttacker = this
pAttacker set local variable "nameofvarable" to value "value"
Same for global variables.
Like for example, if you want to track the cities a unit enters and record what the culture value was of each city. You would add a local variable array to the unit, each time it entered a city it would add that city to the array, then add the cities culture. Then later on you could call up the unit if you had it assigned to a global varable, check its array, and do what ever.
I am not trying to do that example but was just wondering if such above is possible with the SDK?