SLIC-Reference : Functions : Cities : Information
CTP2 Bureau
The Modding
Knowledgebase
WePlayCiv: CtP2 Downloads
WePlayCiv: Call To Power forum
Apolyton Call To Power forums
Civilization Fanatics: Call To Power

SLIC-Reference : Functions : Cities : Information

Entries:

- CTP1 - messages only
- CTP2 - can be triggered (events)
- CTP2 Apolyton Edition  
  - tested
- broken, obsolete - working

CityCollectingGood (city, good) int   Returns the amount of a particular good being collected in the city
CityFoodDelta (city) int   Returns the city's net food
CityHasBuilding (city, building) int       Returns true if the city has a building of the given type
CityIsNamed (city, string) int   Returns true if the city is named string
CityIsValid (cityvar) int       Returns true if the city is valid
CityNameCompare (city, string_id) int   Returns true if the city's name equals the string identified by string_id (e.g. BARBARIAN_CITY_1)
CityStarvationTurns (city) int   If the city is starving, returns the int number of turns before a city begins to lose population
FindCoastalCity (player, cityvar) int   Find a city next to the ocean and put it in cityvar
GetCityByIndex (player-int, index-int, cityvar) int       Returns true if the indexed city of the given player exists and stores it into cityvar
GetCityByLocation (location, cityvar) int   Returns true if there is a city at the given location and stores it in cityvar
GetStoredProduction (city) int       Returns how much production a city has stored towards building something.
GoodCount (city, type) int   Returns the number of goods of a particular type in the city's radius
GoodCountTotal (city) int   Returns the number of goods of all types in the city's radius
GoodVisibutik (city, type) int     Doesn't work
IsBuildingInBuildList (city, buildingtype) int       Returns true if the city's build queue contains that type of building
IsCitySelected int   Returns true if the player has a city selected
IsEndgameInBuildList (city, endgame) int   Returns true if the city's build queue contains that type of end game object
IsSpaceCity (city) int     Retruns true if the city is in space
IsUnderseaCity (city) int   Returns true if the city is in the ocean
IsUnitAtHead (city) int       Returns -1 if the city is not currently building a unit, otherwise returns the database index of the unit being built
IsUnitInBuildList (city, unittype) int       Returns true if the city's build queue contains that kind of unit
IsWonderInBuildList (city, wonder) int       Returns true if the city's build queue contains that type of wonder

Latest update: 24.11.2010  ( - recently updated)
  Administration
This site is currently maintained by: BureauBert (Webmaster)  Maquiladora (Manager)  Legal Notice: Legal Notice Statistics: 71623 unique users since 02.05.2004 (» Site Statistics) Hosted by: WebhostOne
Share this page:  VK Facebook Twitter LiveJournal OK MR Google+ LinkedIn tumblr Pinterest Blogger Digg Evernote