View Full Version : is there a hook into when a city starves?


primordial stew
Sep 02, 2007, 09:04 PM
I have a slave specialist which eats 1 food, and I'd like to get rid of them if the city suffers starvation. There is "onCityGrowth", but the other way ;)

Fanatic Demon
Sep 05, 2007, 06:11 AM
I think to do that you need to modify the C++ source files

primordial stew
Sep 05, 2007, 11:03 PM
Ughh... Well then, for lack of a simple hook, I was thinking of just storing the size of all the cities in some data structure, and then comparing on the next turn to see which ones got smaller, and if so, kill off any slave specialists in those cities. I suppose that means it's time to learn how to use pickle, or SD's toolkit.. something like that :crazyeye: