Lua Game Events: 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 2: | Line 2: | ||
[http://forums.civfanatics.com/showthread.php?t=385612 Lua Events List] or the same [http://wiki.2kgames.com/civ5/index.php/Lua_Game_Events in the official wiki] | [http://forums.civfanatics.com/showthread.php?t=385612 Lua Events List] or the same [http://wiki.2kgames.com/civ5/index.php/Lua_Game_Events in the official wiki] | ||
==Team== | |||
*[[GameEvents.TeamSetHasTech(teamID, techID)]] | |||
==Player== | ==Player== |
Revision as of 09:18, 16 February 2012
Lua Events List or the same in the official wiki
Team
Player
- ActivePlayerTurnEnd
- ActivePlayerTurnStart - fired on the start of the human player's turn (not fired for AIs).
- EventPoliciesDirty
- GameplaySetActivePlayer
- SerialEventEraChanged
- SerialEventResearchDirty
- SerialEventScoreDirty
- TeamMet
- TechAcquired
- WarStateChanged
GameEvents (from patch 1.0.1.332):
- GameEvents.PlayerAdoptPolicy(playerID, policyTypeID)
- GameEvents.PlayerAdoptPolicyBranch(playerID, policyBranchTypeID)
- GameEvents.PlayerCanAdoptPolicy(playerID, policyTypeID)
- GameEvents.PlayerCanAdoptPolicyBranch(playerID, policyBranchTypeID)
- GameEvents.PlayerCanConstruct(playerID, buildingTypeID)
- GameEvents.PlayerCanCreate(playerID, projectTypeID)
- GameEvents.PlayerCanEverReseearch(playerID, techtypeID)
- GameEvents.PlayerCanMaintain(playerID, processTypeID)
- GameEvents.PlayerCanPrepare(playerID, specialistTypeID)
- GameEvents.PlayerCanResearch(playerID, techTypeID)
- GameEvents.PlayerCanTrain(playerID, unitTypeID)
- GameEvents.TeamSetHasTech(teamID, techID)
City
- 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.
GameEvents (from patch 1.0.1.332):
- GameEvents.CityCanBuyAnyPlot(ownerID, cityID)
- GameEvents.CityCanBuyPlot(ownerID, cityID, plotX, plotY)
- GameEvents.CityCanCreate(ownerID, cityID, projectTypeID)
- GameEvents.CityCanMaintain(ownerID, cityID, processTypeID)
- GameEvents.CityCanPrepare(ownerID, cityID, specialistTypeID)
- GameEvents.CityCanTrain(ownerID, cityID, unitTypeID)
Unit
- AddUnitMoveHexRangeHex
- ClearUnitMoveHexRange
- EndUnitMoveHexRange
- GlobalUnitScale
- LocalMachineUnitPositionChanged
- SerialEventUnitCreated
- SerialEventUnitDestroyed
- SerialEventUnitFacingChanged
- SerialEventUnitFlagSelected
- SerialEventUnitInfoDirty
- SerialEventUnitMove
- SerialEventUnitMoveToHexes
- SerialEventUnitSetDamage
- SerialEventUnitTeleportedToHex
- StartUnitMoveHexRange
- ToggleDisplayUnits
- UnitActionChanged
- UnitDataEdited
- UnitDataRequested
- UnitDebugFSM
- UnitEmbark
- UnitFlagUpdated
- UnitGarrison
- UnitHandleCreated
- UnitHexHighlight
- UnitHexHighlight
- UnitLibrarySwap
- UnitMarkThreatening
- UnitMemberCombatStateChanged
- UnitMemberCombatTargetChanged
- UnitMemberOverlayAdd
- UnitMemberOverlayMessage
- UnitMemberOverlayRemove
- UnitMemberOverlayShowHide
- UnitMemberOverlayTargetColor
- UnitMemberPositionChanged
- UnitMoveQueueChanged
- UnitSelectionChanged
- UnitSelectionCleared
- UnitShouldDimFlag
- UnitStateChangeDetected
- UnitTypeChanged
- UnitVisibilityChanged
CombatSim
Map objects
Improvements
- SerialEventImprovementCreated
- SerialEventImprovementDestroyed
- SerialEventImprovementIconCreated
- SerialEventImprovementIconDestroyed
- SerialEventRoadCreated
- SerialEventRoadDestroyed
Features
- SerialEventFeatureCreated
- SerialEventFeatureDestroyed
- SerialEventForestCreated
- SerialEventForestRemoved
- SerialEventJungleCreated
- SerialEventJungleRemoved
Hex
- AddUnitMoveHexRangeHex
- ClearHexHighlights
- ClearHexHighlightStyle
- ClearUnitMoveHexRange
- EndUnitMoveHexRange
- HexFOWStateChanged
- HexYieldMightHaveChanged
- SerialEventCityHexHighlightDirty
- SerialEventHexCultureChanged
- SerialEventHexDeSelected
- SerialEventHexGridOff
- SerialEventHexGridOn
- SerialEventHexHighlight
- SerialEventHexSelected
- SerialEventMouseOverHex
- SerialEventUnitMoveToHexes
- SerialEventUnitTeleportedToHex
- ShowHexYield
- StartUnitMoveHexRange
- UnitHexHighlight
- UnitHexHighlight
Game
- LoadScreenClose
- PreGameDirty
- SerialEventEndTurnDirty
- SequenceGameInitComplete
- SerialEventGameDataDirty
- SerialEventStartGame
Mods
- AfterModsActivate
- AfterModsDeactivate
- BeforeModsActivate
- BeforeModsDeactivate
- InstalledModsUpdated
- ModDownloadComplete
- ModDownloadStarted
Interface
- AddPopupTextEvent
- FrontEndPopup
- MinimapClickedEvent
- OpenInfoCorner
- SerialEventGameMessagePopup
- SerialEventGameMessagePopupProcessed
- SerialEventGameMessagePopupShown
- SerialEventInfoPaneDirty
- ToolTipEvent
Advisor
Dawn of Man
Diplomacy
Menus
Notifications
Game Systems
Animation
- AnimationSamplingChanged
- ParticleEffectReloadRequested
- ParticleEffectStatsRequested
- ParticleEffectStatsResponse
- RemoveAllArrowsEvent
- SerialEventTestAnimations
- SpawnArrowEvent
Audio
Camera
- CameraProjectionChanged
- CameraStartPitchingDown
- CameraStartPitchingUp
- CameraStartRotatingCCW
- CameraStartRotatingCW
- CameraStopPitchingDown
- CameraStopPitchingUp
- CameraStopRotatingCCW
- CameraStopRotatingCW
- CameraViewChanged
- DragCamera
- SerialEventCameraBack
- SerialEventCameraForward
- SerialEventCameraIn
- SerialEventCameraLeft
- SerialEventCameraOut
- SerialEventCameraRight
- SerialEventCameraSetCenterAndZoom
- SerialEventCameraStartMovingBack
- SerialEventCameraStartMovingForward
- SerialEventCameraStartMovingLeft
- SerialEventCameraStartMovingRight
- SerialEventCameraStopMovingBack
- SerialEventCameraStopMovingForward
- SerialEventCameraStopMovingLeft
- SerialEventCameraStopMovingRight
Multiplayer
- ConnectedToNetworkHost
- MultiplayerConnectionComplete
- MultiplayerConnectionFailed
- MultiplayerGameAbandoned
- MultiplayerGameLaunched
- MultiplayerGameListClear
- MultiplayerGameListComplete
- MultiplayerGameListUpdated
- MultiplayerGamePlayerDisconnected
- MultiplayerGamePlayerUpdated
- MultiplayerJoinRoomAttempt
- MultiplayerJoinRoomComplete
- MultiplayerJoinRoomFailed
- MultiplayerProfileDisconnected
- MultiplayerProfileFailed
- RemotePlayerTurnEnd
Other (unsorted)
- AppInitComplete
- AILeaderMessage
- BuildingLibrarySwap
- DisplayMovementIndicator
- DontRecordCommandStreams
- EndTurnTimerUpdate
- GenericWorldAnchor
- GraphicsOptionsChanged
- InterfaceModeChanged
- KeyUpEvent
- LandmarkLibrarySwap
- LanguageChanging
- LeavingLeaderViewMode
- LocalMachineAppUpdate
- MinimapTextureBroadcastEvent
- RecordCommandStreams
- RequestYieldDisplay
- SearchForPediaEntry GoToPediaHomePage
- SerialEventBuildingSizeChanged
- SerialEventLeaderToggleDebugCam
- SerialEventRawResourceCreated
- SerialEventRawResourceDestroyed
- SerialEventRawResourceIconCreated
- SerialEventRawResourceIconDestroyed
- SerialEventScreenShot
- SerialEventTerrainDecalCreated
- SerialEventTerrainOverlayMod
- SerialEventTest
- SerialEventTurnTimerDirty
- ShowAttackTargets
- ShowMovementRange
- StateMachineDumpStates
- StateMachineRequestStates
- StrategicViewStateChanged
- SystemUpdateUI
- TaskListUpdate
- UIPathFinderUpdate
- UserRequestClose
- VisibilityUpdated
- WonderStateChanged
- WonderTogglePlacement
- WonderTypeChanged
- WorldMouseOver