trouble with CyCity functions

Lutefisk Mafia

Inscrutable Enforcer
Joined
Jun 15, 2007
Messages
544
Location
Minnesota
I am trying to write code that will strip buildings and culture from a given city.

I can use the initCity command to create a new city, but all of my attempts to call the CyCity setCulture function and other similar functions does not work.

Once a specific city is established, how do you get the proper city ID number to use in the CyCity functions?

And once you have the ID number, what is the proper format to use the CyCity functions?

Thanks!
 
What I normally see Kael doing in his code is if you just want to make a city:

Player.initcity(...)

But if you want to do something to it afterward:

pCity = player.initcity(...)


Then you maintain a nice pointer to it right at the moment of creation.
 
Top Bottom