Lua Game Objects/City: Difference between revisions
From Civilization Modding Wiki
Jump to navigationJump to search
Killmeplease (talk | contribs) No edit summary |
Killmeplease (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
==Related Events== | ==Related Events== | ||
*[[CityHandleCreated]] | |||
*[[CityRuinsCreated]] | |||
*[[InitCityRangeStrike]] | |||
*[[SerialEventCityCaptured]] - fired when city is captured '''or traded to an another civ'''. | *[[SerialEventCityCaptured]] - fired when city is captured '''or traded to an another civ'''. | ||
*[[SerialEventCityContinentChanged]] | |||
*[[SerialEventCityCreated]] - fired when city is created. | *[[SerialEventCityCreated]] - fired when city is created. | ||
*[[SerialEventCityCultureChanged]] | |||
*[[SerialEventCityDestroyed]] - fired when city is destroyed. | *[[SerialEventCityDestroyed]] - fired when city is destroyed. | ||
*[[SerialEventCityHexHighlightDirty]] | |||
*[[SerialEventCityInfoDirty]] | |||
*[[SerialEventCityPopulationChanged]] - fired when a population of a particular city was changed. | *[[SerialEventCityPopulationChanged]] - fired when a population of a particular city was changed. | ||
*[[SerialEventCityScreenDirty]] | |||
*[[SerialEventCitySetDamage]] | |||
*[[SerialEventEnterCityScreen]] | |||
*[[SerialEventExitCityScreen]] | |||
*[[SpecificCityInfoDirty]] - fired when something in a particular city was changed. | *[[SpecificCityInfoDirty]] - fired when something in a particular city was changed. |
Revision as of 11:34, 14 February 2012
Up: Lua Game Objects
Methods
- IsHasBuilding ( buildingID ) - returns true if a subject city has a building with a specified ID
Related Events
- CityHandleCreated
- CityRuinsCreated
- InitCityRangeStrike
- SerialEventCityCaptured - fired when city is captured or traded to an another civ.
- SerialEventCityContinentChanged
- SerialEventCityCreated - fired when city is created.
- SerialEventCityCultureChanged
- SerialEventCityDestroyed - fired when city is destroyed.
- SerialEventCityHexHighlightDirty
- SerialEventCityInfoDirty
- SerialEventCityPopulationChanged - fired when a population of a particular city was changed.
- SerialEventCityScreenDirty
- SerialEventCitySetDamage
- SerialEventEnterCityScreen
- SerialEventExitCityScreen
- SpecificCityInfoDirty - fired when something in a particular city was changed.