Lua Game Events: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 7: Line 7:
*[[ActivePlayerTurnStart]] - fired on the start of the human player's turn (not fired for AIs).
*[[ActivePlayerTurnStart]] - fired on the start of the human player's turn (not fired for AIs).
*[[GameplaySetActivePlayer]]
*[[GameplaySetActivePlayer]]
*[[OpenPlayerDealScreenEvent]]
*[[PlayerChoseToLoadGame]]
*[[PlayerChoseToLoadMap]]
*[[RemotePlayerTurnEnd]]
*[[RemotePlayerTurnEnd]]
*[[SerialEventResearchDirty]]
*[[SerialEventScoreDirty]]
*[[TeamMet]]
*[[TechAcquired]]
*[[WarStateChanged]]


==City==
==City==
Line 74: Line 76:
*[[UnitTypeChanged]]
*[[UnitTypeChanged]]
*[[UnitVisibilityChanged]]
*[[UnitVisibilityChanged]]
===CombatSim===
*[[RunCombatSim]]
*[[EndCombatSim]]


==Improvement==
==Improvements==
*[[SerialEventImprovementCreated]]
*[[SerialEventImprovementCreated]]
*[[SerialEventImprovementDestroyed]]
*[[SerialEventImprovementDestroyed]]
*[[SerialEventImprovementIconCreated]]
*[[SerialEventImprovementIconCreated]]
*[[SerialEventImprovementIconDestroyed]]
*[[SerialEventImprovementIconDestroyed]]
*[[SerialEventRoadCreated]]
*[[SerialEventRoadDestroyed]]


==Feature==
==Features==
*[[SerialEventFeatureCreated]]
*[[SerialEventFeatureCreated]]
*[[SerialEventFeatureDestroyed]]
*[[SerialEventFeatureDestroyed]]
*[[SerialEventForestCreated]]
*[[SerialEventForestRemoved]]
*[[SerialEventJungleCreated]]
*[[SerialEventJungleRemoved]]


==Hex==
==Hex==
Line 109: Line 120:


==Game==
==Game==
*[[PlayerChoseToLoadGame]]
*[[PreGameDirty]]
*[[PreGameDirty]]
*[[SerialEventEndTurnDirty]]
*[[SerialEventEraChanged]]
*[[SequenceGameInitComplete]]
*[[SequenceGameInitComplete]]
*[[SerialEventGameDataDirty]]
*[[SerialEventGameDataDirty]]
*[[SerialEventGameMessagePopup]]
*[[SerialEventGameMessagePopupProcessed]]
*[[SerialEventGameMessagePopupShown]]
*[[SerialEventStartGame]]
*[[SerialEventStartGame]]


==All Events==
==Interface/Popups==
*[[AppInitComplete]]
*[[ActivePlayerTurnEnd]]
*[[ActivePlayerTurnStart]]
*[[AddPopupTextEvent]]
*[[AddPopupTextEvent]]
*[[AddUnitMoveHexRangeHex]]
*[[AdvisorDisplayHide]]
*[[AdvisorDisplayHide]]
*[[AdvisorDisplayShow]]
*[[AdvisorDisplayShow]]
*[[ClearDiplomacyTradeTable]]
*[[OpenPlayerDealScreenEvent]]
*[[PlayerChoseToLoadGame]]
*[[PlayerChoseToLoadMap]]
*[[SerialEventDawnOfManHide]]
*[[SerialEventDawnOfManShow]]
*[[SerialEventGameMessagePopup]]
*[[SerialEventGameMessagePopupProcessed]]
*[[SerialEventGameMessagePopupShown]]
*[[SerialEventInfoPaneDirty]]
*[[ToolTipEvent]]
==Mods==
*[[AfterModsActivate]]
*[[AfterModsActivate]]
*[[AfterModsDeactivate]]
*[[AfterModsDeactivate]]
*[[AILeaderMessage]]
*[[AnimationSamplingChanged]]
*[[AudioDebugChangeMusic]]
*[[AudioPlay2DSound]]
*[[AudioVolumeChanged]]
*[[BeforeModsActivate]]
*[[BeforeModsActivate]]
*[[BeforeModsDeactivate]]
*[[BeforeModsDeactivate]]
*[[BuildingLibrarySwap]]
*[[InstalledModsUpdated]]
*[[ModDownloadComplete]]
*[[ModDownloadStarted]]
 
==Camera==
*[[CameraProjectionChanged]]
*[[CameraProjectionChanged]]
*[[CameraStartPitchingDown]]
*[[CameraStartPitchingDown]]
Line 146: Line 163:
*[[CameraStopRotatingCW]]
*[[CameraStopRotatingCW]]
*[[CameraViewChanged]]
*[[CameraViewChanged]]
*[[CityHandleCreated]]
*[[DragCamera]]
*[[CityRuinsCreated]]
*[[SerialEventCameraBack]]
*[[ClearDiplomacyTradeTable]]
*[[SerialEventCameraForward]]
*[[ClearHexHighlights]]
*[[SerialEventCameraIn]]
*[[ClearHexHighlightStyle]]
*[[SerialEventCameraLeft]]
*[[ClearUnitMoveHexRange]]
*[[SerialEventCameraOut]]
*[[SerialEventCameraRight]]
*[[SerialEventCameraSetCenterAndZoom]]
*[[SerialEventCameraStartMovingBack]]
*[[SerialEventCameraStartMovingForward]]
*[[SerialEventCameraStartMovingLeft]]
*[[SerialEventCameraStartMovingRight]]
*[[SerialEventCameraStopMovingBack]]
*[[SerialEventCameraStopMovingForward]]
*[[SerialEventCameraStopMovingLeft]]
*[[SerialEventCameraStopMovingRight]]
 
==Audio==
*[[AudioDebugChangeMusic]]
*[[AudioPlay2DSound]]
*[[AudioVolumeChanged]]
 
==Other (unsorted)==
*[[AppInitComplete]]
*[[AILeaderMessage]]
*[[AnimationSamplingChanged]]
*[[BuildingLibrarySwap]]
*[[ConnectedToNetworkHost]]
*[[ConnectedToNetworkHost]]
*[[DisplayMovementIndicator]]
*[[DisplayMovementIndicator]]
*[[DontRecordCommandStreams]]
*[[DontRecordCommandStreams]]
*[[DragCamera]]
*[[EndCombatSim]]
*[[EndGameShow]]
*[[EndTurnTimerUpdate]]
*[[EndTurnTimerUpdate]]
*[[EndUnitMoveHexRange]]
*[[EventOpenOptionsScreen]]
*[[EventOpenOptionsScreen]]
*[[EventPoliciesDirty]]
*[[EventPoliciesDirty]]
*[[ExitToMainMenu]]
*[[ExitToMainMenu]]
*[[FrontEndPopup]]
*[[FrontEndPopup]]
*[[GameMessageChat]]
*[[GameOptionsChanged]]
*[[GameplayAlertMessage]]
*[[GameplayFX]]
*[[GameplaySetActivePlayer]]
*[[GenericWorldAnchor]]
*[[GenericWorldAnchor]]
*[[GlobalUnitScale]]
*[[GraphicsOptionsChanged]]
*[[GraphicsOptionsChanged]]
*[[HexFOWStateChanged]]
*[[HexYieldMightHaveChanged]]
*[[InitCityRangeStrike]]
*[[InstalledModsUpdated]]
*[[InterfaceModeChanged]]
*[[InterfaceModeChanged]]
*[[KeyUpEvent]]
*[[KeyUpEvent]]
Line 183: Line 207:
*[[LoadScreenClose]]
*[[LoadScreenClose]]
*[[LocalMachineAppUpdate]]
*[[LocalMachineAppUpdate]]
*[[LocalMachineUnitPositionChanged]]
*[[MinimapClickedEvent]]
*[[MinimapClickedEvent]]
*[[MinimapTextureBroadcastEvent]]
*[[MinimapTextureBroadcastEvent]]
*[[ModDownloadComplete]]
*[[ModDownloadStarted]]
*[[MultiplayerConnectionComplete]]
*[[MultiplayerConnectionFailed]]
*[[MultiplayerGameAbandoned]]
*[[MultiplayerGameLaunched]]
*[[MultiplayerGameListClear]]
*[[MultiplayerGameListComplete]]
*[[MultiplayerGameListUpdated]]
*[[MultiplayerGamePlayerDisconnected]]
*[[MultiplayerGamePlayerUpdated]]
*[[MultiplayerJoinRoomAttempt]]
*[[MultiplayerJoinRoomComplete]]
*[[MultiplayerJoinRoomFailed]]
*[[MultiplayerProfileDisconnected]]
*[[MultiplayerProfileFailed]]
*[[NaturalWonderRevealed]]
*[[NaturalWonderRevealed]]
*[[NotificationActivated]]
*[[NotificationActivated]]
*[[NotificationAdded]]
*[[NotificationAdded]]
*[[NotificationRemoved]]
*[[NotificationRemoved]]
*[[NotifyAILeaderInGame]]
*[[OpenInfoCorner]]
*[[OpenInfoCorner]]
*[[OpenPlayerDealScreenEvent]]
*[[ParticleEffectReloadRequested]]
*[[ParticleEffectReloadRequested]]
*[[ParticleEffectStatsRequested]]
*[[ParticleEffectStatsRequested]]
*[[ParticleEffectStatsResponse]]
*[[ParticleEffectStatsResponse]]
*[[PlayerChoseToLoadGame]]
*[[PlayerChoseToLoadMap]]
*[[PreGameDirty]]
*[[RecordCommandStreams]]
*[[RecordCommandStreams]]
*[[RemotePlayerTurnEnd]]
*[[RemoveAllArrowsEvent]]
*[[RemoveAllArrowsEvent]]
*[[RequestYieldDisplay]]
*[[RequestYieldDisplay]]
*[[RunCombatSim]]
 
*[[SearchForPediaEntry GoToPediaHomePage]]
*[[SearchForPediaEntry GoToPediaHomePage]]
*[[SequenceGameInitComplete]]
*[[SerialEventBuildingSizeChanged]]
*[[SerialEventBuildingSizeChanged]]
*[[SerialEventCameraBack]]
*[[SerialEventCameraForward]]
*[[SerialEventCameraIn]]
*[[SerialEventCameraLeft]]
*[[SerialEventCameraOut]]
*[[SerialEventCameraRight]]
*[[SerialEventCameraSetCenterAndZoom]]
*[[SerialEventCameraStartMovingBack]]
*[[SerialEventCameraStartMovingForward]]
*[[SerialEventCameraStartMovingLeft]]
*[[SerialEventCameraStartMovingRight]]
*[[SerialEventCameraStopMovingBack]]
*[[SerialEventCameraStopMovingForward]]
*[[SerialEventCameraStopMovingLeft]]
*[[SerialEventCameraStopMovingRight]]
*[[SerialEventCityCaptured]]
*[[SerialEventCityContinentChanged]]
*[[SerialEventCityCreated]]
*[[SerialEventCityCultureChanged]]
*[[SerialEventCityDestroyed]]
*[[SerialEventCityHexHighlightDirty]]
*[[SerialEventCityInfoDirty]]
*[[SerialEventCityPopulationChanged]]
*[[SerialEventCityScreenDirty]]
*[[SerialEventCitySetDamage]]
*[[SerialEventDawnOfManHide]]
*[[SerialEventDawnOfManShow]]
*[[SerialEventEndTurnDirty]]
*[[SerialEventEnterCityScreen]]
*[[SerialEventEraChanged]]
*[[SerialEventExitCityScreen]]
*[[SerialEventFeatureCreated]]
*[[SerialEventFeatureDestroyed]]
*[[SerialEventForestCreated]]
*[[SerialEventForestRemoved]]
*[[SerialEventGameDataDirty]]
*[[SerialEventGameMessagePopup]]
*[[SerialEventGameMessagePopupProcessed]]
*[[SerialEventGameMessagePopupShown]]
*[[SerialEventHexCultureChanged]]
*[[SerialEventHexDeSelected]]
*[[SerialEventHexGridOff]]
*[[SerialEventHexGridOn]]
*[[SerialEventHexHighlight]]
*[[SerialEventHexSelected]]
*[[SerialEventImprovementCreated]]
*[[SerialEventImprovementDestroyed]]
*[[SerialEventImprovementIconCreated]]
*[[SerialEventImprovementIconDestroyed]]
*[[SerialEventInfoPaneDirty]]
*[[SerialEventJungleCreated]]
*[[SerialEventJungleRemoved]]
*[[SerialEventLeaderToggleDebugCam]]
*[[SerialEventLeaderToggleDebugCam]]
*[[SerialEventMouseOverHex]]
*[[SerialEventRawResourceCreated]]
*[[SerialEventRawResourceCreated]]
*[[SerialEventRawResourceDestroyed]]
*[[SerialEventRawResourceDestroyed]]
*[[SerialEventRawResourceIconCreated]]
*[[SerialEventRawResourceIconCreated]]
*[[SerialEventRawResourceIconDestroyed]]
*[[SerialEventRawResourceIconDestroyed]]
*[[SerialEventResearchDirty]]
*[[SerialEventRoadCreated]]
*[[SerialEventRoadDestroyed]]
*[[SerialEventScoreDirty]]
*[[SerialEventScreenShot]]
*[[SerialEventScreenShot]]
*[[SerialEventStartGame]]
*[[SerialEventTerrainDecalCreated]]
*[[SerialEventTerrainDecalCreated]]
*[[SerialEventTerrainOverlayMod]]
*[[SerialEventTerrainOverlayMod]]
Line 292: Line 234:
*[[SerialEventTestAnimations]]
*[[SerialEventTestAnimations]]
*[[SerialEventTurnTimerDirty]]
*[[SerialEventTurnTimerDirty]]
*[[SerialEventUnitCreated]]
*[[SerialEventUnitDestroyed]]
*[[SerialEventUnitFacingChanged]]
*[[SerialEventUnitFlagSelected]]
*[[SerialEventUnitInfoDirty]]
*[[SerialEventUnitMove]]
*[[SerialEventUnitMoveToHexes]]
*[[SerialEventUnitSetDamage]]
*[[SerialEventUnitTeleportedToHex]]
*[[ShowAttackTargets]]
*[[ShowAttackTargets]]
*[[ShowHexYield]]
*[[ShowMovementRange]]
*[[ShowMovementRange]]
*[[SpawnArrowEvent]]
*[[SpawnArrowEvent]]
*[[SpecificCityInfoDirty]]
*[[StartUnitMoveHexRange]]
*[[StateMachineDumpStates]]
*[[StateMachineDumpStates]]
*[[StateMachineRequestStates]]
*[[StateMachineRequestStates]]
Line 312: Line 242:
*[[SystemUpdateUI]]
*[[SystemUpdateUI]]
*[[TaskListUpdate]]
*[[TaskListUpdate]]
*[[TeamMet]]
*[[TechAcquired]]
*[[ToggleDisplayUnits]]
*[[ToolTipEvent]]
*[[UIPathFinderUpdate]]
*[[UIPathFinderUpdate]]
*[[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]]
*[[UserRequestClose]]
*[[UserRequestClose]]
*[[VisibilityUpdated]]
*[[VisibilityUpdated]]
*[[WarStateChanged]]
*[[WonderStateChanged]]
*[[WonderStateChanged]]
*[[WonderTogglePlacement]]
*[[WonderTogglePlacement]]
*[[WonderTypeChanged]]
*[[WonderTypeChanged]]
*[[WorldMouseOver]]
*[[WorldMouseOver]]

Revision as of 12:24, 14 February 2012

Up: Lua and UI Reference

Lua Events List or the same in the official wiki

Player

City

Unit

CombatSim

Improvements

Features

Hex

Game

Interface/Popups

Mods

Camera

Audio

Other (unsorted)