Jheral
Prince
- Joined
- Apr 29, 2009
- Messages
- 502
So I'm working on a little project with Lua, and I have been failing to find the information I need through a more or less thorough search of this subforum and the wiki, and I was hoping someone here could help me out.
That would be all for now (although I'm sure to hit more walls while trying to make this work out
). I would very much appreciate it if someone could help me out on these issues.
- First off, I need a reliable way to check the tiles being worked by a city, as well as the ones that are available to it - checking the tiles for yields, resources, improvements and so on.
I have no idea how to do this as it stands - I couldn't find any information whatsoever.
- Secondly, I need a way to check whether a process is active in the city (i.e. one of the Wealth or Research style ones).
Once again, no real info that I could find.
- Next up, I need to be able to check the specialists present in the city - count how many there are of each type, and be able to know and call a function when that list changes.
Yet another place where I am clueless (a lot of those around here).
- Lastly, I need to call a custom function when a city is founded. This one I found something for, at least, but I don't know how to use it properly. I figure SerialEventCityCreated is the one I want, but how do I pass on a pointer to the founded city into my function?
That would be all for now (although I'm sure to hit more walls while trying to make this work out
