- Joined
- Sep 14, 2009
- Messages
- 284
Im trying to access different fields of units in the Object Editor using Lua. But I'm having problems finding the currect raw values.
For example 'ulum' is supposed to be the value of lumber cost for a unit, but when using the following function:
it does not work. The function is correct, since it works for 'ustc', which is the raw value for Strength:
However, the value for Strength in the Object Editor is 'ustr', which does not work in the above function. My guess is that the lumber cost (along with a bunch of other fields) have different raw values than appears in the Object Editor. Does anyone know where to find these?
And no, they are not in common.j, just a very few of them are.
For example 'ulum' is supposed to be the value of lumber cost for a unit, but when using the following function:
Code:
print(BlzGetUnitIntegerField(udg_StatInfoUnit, ConvertUnitIntegerField(FourCC("ulum"))))
it does not work. The function is correct, since it works for 'ustc', which is the raw value for Strength:
Code:
constant unitintegerfield UNIT_IF_STRENGTH = ConvertUnitIntegerField('ustc')
However, the value for Strength in the Object Editor is 'ustr', which does not work in the above function. My guess is that the lumber cost (along with a bunch of other fields) have different raw values than appears in the Object Editor. Does anyone know where to find these?
And no, they are not in common.j, just a very few of them are.