Lua Game Objects/Player: 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 6: | Line 6: | ||
*[[IsMinorCiv]] - returns true if this player is a city-state. | *[[IsMinorCiv]] - returns true if this player is a city-state. | ||
*[[SetHappiness|SetHappiness ( iHappiness )]] - supposed to set player's happiness, '''does not work''' | *[[SetHappiness|SetHappiness ( iHappiness )]] - supposed to set player's happiness, '''does not work''' | ||
Complete list in official wiki: http://wiki.2kgames.com/civ5/index.php/Lua_Game_Objects/Player | |||
Revision as of 12:59, 14 February 2012
Up: Lua Game Objects
Methods
- GetNumCities - returns number of cities
- IsMinorCiv - returns true if this player is a city-state.
- SetHappiness ( iHappiness ) - supposed to set player's happiness, does not work
Complete list in official wiki: http://wiki.2kgames.com/civ5/index.php/Lua_Game_Objects/Player
Related Events
- ActivePlayerTurnEnd
- ActivePlayerTurnStart - fired on the start of the human player's turn (not fired for AIs).
- EventPoliciesDirty
- GameplaySetActivePlayer
- SerialEventEraChanged
- SerialEventResearchDirty
- SerialEventScoreDirty
- TeamMet
- TechAcquired
- WarStateChanged