Page 1 of 1

How to find structure cost before built?

Posted: 22 Oct 2012, 18:42
by aubergine
Is there any way to find the cost of a structure before I build it?

I know in WZ 3.2 I can query existing structure of same type to see how much it cost, but is there a way to find out before any structures of that type are built?

I imagine I'll have to initially hard-code a list of structure costs in to my AI to start with prior to any new functions in future JS API. Which .txt or .ini is structure cost defined in?

Re: How to find structure cost before built?

Posted: 26 Oct 2012, 09:54
by Andrie
aubergine wrote:Is there any way to find the cost of a structure before I build it?
Do you mean power??

Re: How to find structure cost before built?

Posted: 26 Oct 2012, 13:22
by aubergine
Yes, how much power does it cost to build a specific structure (or droid for that matter). I assume there's a stats file that defines it somewhere. I know costs are stated in the Guide, but they are outdated (eg. oil derricks is still stated as costing $0 in the Guide).