LUA - How to get turns left on all Wonders?

sunblazer

Chieftain
Joined
Oct 29, 2010
Messages
15
Hi,

I was looking around in the wiki for a LUA function to give me the current production of a city & the number of turns remaining; could someone point me in the right direction?


The long version:
I'm writing a mod to show if other Civs are building a wonder and then give a vague description if the wonder will be built 'any day now', 'soon', 'eventually' or 'Blizzard soon(TM)'

I script in all sorts of languages for a living so picking up the rest (like updating the notification log) doesn't phase me. I'm used to looking things up and this is a set of functions I can't find.

Cheers
 
Check CityView.lua, DoUpdateProductionInfo. It's using a bunch of functions like this. You probably want GetProductionTurnsLeft().
 
Back
Top Bottom