Page 1 of 1
GetAttrib(id,attrib)
Posted: Sun Oct 17, 2010 2:25 pm
by lpgamble
In the GetAttrib function what is the label for UnitCost or is there some seperate GetUnitCost() function?
Posted: Sun Oct 17, 2010 7:18 pm
by Merr
hiya lpgamble,
All of the attributes are in the squads.csv file. In your case, you want "Cost" ...
So, it would read GetAttrib(id,"Cost")
Posted: Sun Oct 17, 2010 8:44 pm
by lpgamble
I tried that it wasn't returning a value, could be a typo. I suspect "Cost" is not correct, it would be nice if all the column header labels were in the GetAttrib
Posted: Sun Oct 17, 2010 9:14 pm
by pipfromslitherine
No - the cost is actually an embedded value. The next update includes a function for retrieving it.
Cheers
Pip
Posted: Sun Oct 17, 2010 9:20 pm
by Merr
pipfromslitherine wrote:No - the cost is actually an embedded value. The next update includes a function for retrieving it.
Cheers
Pip
Oh ... I didn't know that ... my next guess would have been trying the GetBaseAttrib function, but nevermind .
Posted: Sun Oct 17, 2010 9:26 pm
by lpgamble
That will be useful.
3 scenarios done so far with 14 units added!