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 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]] | ||
*[[RemotePlayerTurnEnd]] | *[[RemotePlayerTurnEnd]] | ||
*[[SerialEventResearchDirty]] | |||
*[[SerialEventScoreDirty]] | |||
*[[TeamMet]] | |||
*[[TechAcquired]] | |||
*[[WarStateChanged]] | |||
==City== | ==City== | ||
Line 74: | Line 76: | ||
*[[UnitTypeChanged]] | *[[UnitTypeChanged]] | ||
*[[UnitVisibilityChanged]] | *[[UnitVisibilityChanged]] | ||
===CombatSim=== | |||
*[[RunCombatSim]] | |||
*[[EndCombatSim]] | |||
== | ==Improvements== | ||
*[[SerialEventImprovementCreated]] | *[[SerialEventImprovementCreated]] | ||
*[[SerialEventImprovementDestroyed]] | *[[SerialEventImprovementDestroyed]] | ||
*[[SerialEventImprovementIconCreated]] | *[[SerialEventImprovementIconCreated]] | ||
*[[SerialEventImprovementIconDestroyed]] | *[[SerialEventImprovementIconDestroyed]] | ||
*[[SerialEventRoadCreated]] | |||
*[[SerialEventRoadDestroyed]] | |||
== | ==Features== | ||
*[[SerialEventFeatureCreated]] | *[[SerialEventFeatureCreated]] | ||
*[[SerialEventFeatureDestroyed]] | *[[SerialEventFeatureDestroyed]] | ||
*[[SerialEventForestCreated]] | |||
*[[SerialEventForestRemoved]] | |||
*[[SerialEventJungleCreated]] | |||
*[[SerialEventJungleRemoved]] | |||
==Hex== | ==Hex== | ||
Line 109: | Line 120: | ||
==Game== | ==Game== | ||
*[[PreGameDirty]] | *[[PreGameDirty]] | ||
*[[SerialEventEndTurnDirty]] | |||
*[[SerialEventEraChanged]] | |||
*[[SequenceGameInitComplete]] | *[[SequenceGameInitComplete]] | ||
*[[SerialEventGameDataDirty]] | *[[SerialEventGameDataDirty]] | ||
*[[SerialEventStartGame]] | *[[SerialEventStartGame]] | ||
== | ==Interface/Popups== | ||
*[[AddPopupTextEvent]] | *[[AddPopupTextEvent]] | ||
*[[AdvisorDisplayHide]] | *[[AdvisorDisplayHide]] | ||
*[[AdvisorDisplayShow]] | *[[AdvisorDisplayShow]] | ||
*[[ClearDiplomacyTradeTable]] | |||
*[[OpenPlayerDealScreenEvent]] | |||
*[[PlayerChoseToLoadGame]] | |||
*[[PlayerChoseToLoadMap]] | |||
*[[SerialEventDawnOfManHide]] | |||
*[[SerialEventDawnOfManShow]] | |||
*[[SerialEventGameMessagePopup]] | |||
*[[SerialEventGameMessagePopupProcessed]] | |||
*[[SerialEventGameMessagePopupShown]] | |||
*[[SerialEventInfoPaneDirty]] | |||
*[[ToolTipEvent]] | |||
==Mods== | |||
*[[AfterModsActivate]] | *[[AfterModsActivate]] | ||
*[[AfterModsDeactivate]] | *[[AfterModsDeactivate]] | ||
*[[BeforeModsActivate]] | *[[BeforeModsActivate]] | ||
*[[BeforeModsDeactivate]] | *[[BeforeModsDeactivate]] | ||
*[[ | *[[InstalledModsUpdated]] | ||
*[[ModDownloadComplete]] | |||
*[[ModDownloadStarted]] | |||
==Camera== | |||
*[[CameraProjectionChanged]] | *[[CameraProjectionChanged]] | ||
*[[CameraStartPitchingDown]] | *[[CameraStartPitchingDown]] | ||
Line 146: | Line 163: | ||
*[[CameraStopRotatingCW]] | *[[CameraStopRotatingCW]] | ||
*[[CameraViewChanged]] | *[[CameraViewChanged]] | ||
*[[ | *[[DragCamera]] | ||
*[[ | *[[SerialEventCameraBack]] | ||
*[[ | *[[SerialEventCameraForward]] | ||
*[[ | *[[SerialEventCameraIn]] | ||
*[[ | *[[SerialEventCameraLeft]] | ||
*[[ | *[[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]] | ||
*[[EndTurnTimerUpdate]] | *[[EndTurnTimerUpdate]] | ||
*[[EventOpenOptionsScreen]] | *[[EventOpenOptionsScreen]] | ||
*[[EventPoliciesDirty]] | *[[EventPoliciesDirty]] | ||
*[[ExitToMainMenu]] | *[[ExitToMainMenu]] | ||
*[[FrontEndPopup]] | *[[FrontEndPopup]] | ||
*[[GenericWorldAnchor]] | *[[GenericWorldAnchor]] | ||
*[[GraphicsOptionsChanged]] | *[[GraphicsOptionsChanged]] | ||
*[[InterfaceModeChanged]] | *[[InterfaceModeChanged]] | ||
*[[KeyUpEvent]] | *[[KeyUpEvent]] | ||
Line 183: | Line 207: | ||
*[[LoadScreenClose]] | *[[LoadScreenClose]] | ||
*[[LocalMachineAppUpdate]] | *[[LocalMachineAppUpdate]] | ||
*[[MinimapClickedEvent]] | *[[MinimapClickedEvent]] | ||
*[[MinimapTextureBroadcastEvent]] | *[[MinimapTextureBroadcastEvent]] | ||
*[[NaturalWonderRevealed]] | *[[NaturalWonderRevealed]] | ||
*[[NotificationActivated]] | *[[NotificationActivated]] | ||
*[[NotificationAdded]] | *[[NotificationAdded]] | ||
*[[NotificationRemoved]] | *[[NotificationRemoved]] | ||
*[[OpenInfoCorner]] | *[[OpenInfoCorner]] | ||
*[[ParticleEffectReloadRequested]] | *[[ParticleEffectReloadRequested]] | ||
*[[ParticleEffectStatsRequested]] | *[[ParticleEffectStatsRequested]] | ||
*[[ParticleEffectStatsResponse]] | *[[ParticleEffectStatsResponse]] | ||
*[[RecordCommandStreams]] | *[[RecordCommandStreams]] | ||
*[[RemoveAllArrowsEvent]] | *[[RemoveAllArrowsEvent]] | ||
*[[RequestYieldDisplay]] | *[[RequestYieldDisplay]] | ||
*[[SearchForPediaEntry GoToPediaHomePage]] | *[[SearchForPediaEntry GoToPediaHomePage]] | ||
*[[SerialEventBuildingSizeChanged]] | *[[SerialEventBuildingSizeChanged]] | ||
*[[SerialEventLeaderToggleDebugCam]] | *[[SerialEventLeaderToggleDebugCam]] | ||
*[[SerialEventRawResourceCreated]] | *[[SerialEventRawResourceCreated]] | ||
*[[SerialEventRawResourceDestroyed]] | *[[SerialEventRawResourceDestroyed]] | ||
*[[SerialEventRawResourceIconCreated]] | *[[SerialEventRawResourceIconCreated]] | ||
*[[SerialEventRawResourceIconDestroyed]] | *[[SerialEventRawResourceIconDestroyed]] | ||
*[[SerialEventScreenShot]] | *[[SerialEventScreenShot]] | ||
*[[SerialEventTerrainDecalCreated]] | *[[SerialEventTerrainDecalCreated]] | ||
*[[SerialEventTerrainOverlayMod]] | *[[SerialEventTerrainOverlayMod]] | ||
Line 292: | Line 234: | ||
*[[SerialEventTestAnimations]] | *[[SerialEventTestAnimations]] | ||
*[[SerialEventTurnTimerDirty]] | *[[SerialEventTurnTimerDirty]] | ||
*[[ShowAttackTargets]] | *[[ShowAttackTargets]] | ||
*[[ShowMovementRange]] | *[[ShowMovementRange]] | ||
*[[SpawnArrowEvent]] | *[[SpawnArrowEvent]] | ||
*[[StateMachineDumpStates]] | *[[StateMachineDumpStates]] | ||
*[[StateMachineRequestStates]] | *[[StateMachineRequestStates]] | ||
Line 312: | Line 242: | ||
*[[SystemUpdateUI]] | *[[SystemUpdateUI]] | ||
*[[TaskListUpdate]] | *[[TaskListUpdate]] | ||
*[[UIPathFinderUpdate]] | *[[UIPathFinderUpdate]] | ||
*[[UserRequestClose]] | *[[UserRequestClose]] | ||
*[[VisibilityUpdated]] | *[[VisibilityUpdated]] | ||
*[[WonderStateChanged]] | *[[WonderStateChanged]] | ||
*[[WonderTogglePlacement]] | *[[WonderTogglePlacement]] | ||
*[[WonderTypeChanged]] | *[[WonderTypeChanged]] | ||
*[[WorldMouseOver]] | *[[WorldMouseOver]] |
Revision as of 12:24, 14 February 2012
Lua Events List or the same in the official wiki
Player
- ActivePlayerTurnEnd
- ActivePlayerTurnStart - fired on the start of the human player's turn (not fired for AIs).
- GameplaySetActivePlayer
- RemotePlayerTurnEnd
- SerialEventResearchDirty
- SerialEventScoreDirty
- TeamMet
- TechAcquired
- WarStateChanged
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.
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
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
- PreGameDirty
- SerialEventEndTurnDirty
- SerialEventEraChanged
- SequenceGameInitComplete
- SerialEventGameDataDirty
- SerialEventStartGame
Interface/Popups
- AddPopupTextEvent
- AdvisorDisplayHide
- AdvisorDisplayShow
- ClearDiplomacyTradeTable
- OpenPlayerDealScreenEvent
- PlayerChoseToLoadGame
- PlayerChoseToLoadMap
- SerialEventDawnOfManHide
- SerialEventDawnOfManShow
- SerialEventGameMessagePopup
- SerialEventGameMessagePopupProcessed
- SerialEventGameMessagePopupShown
- SerialEventInfoPaneDirty
- ToolTipEvent
Mods
- AfterModsActivate
- AfterModsDeactivate
- BeforeModsActivate
- BeforeModsDeactivate
- InstalledModsUpdated
- ModDownloadComplete
- ModDownloadStarted
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
Audio
Other (unsorted)
- AppInitComplete
- AILeaderMessage
- AnimationSamplingChanged
- BuildingLibrarySwap
- ConnectedToNetworkHost
- DisplayMovementIndicator
- DontRecordCommandStreams
- EndTurnTimerUpdate
- EventOpenOptionsScreen
- EventPoliciesDirty
- ExitToMainMenu
- FrontEndPopup
- GenericWorldAnchor
- GraphicsOptionsChanged
- InterfaceModeChanged
- KeyUpEvent
- LandmarkLibrarySwap
- LanguageChanging
- LeavingLeaderViewMode
- LoadScreenClose
- LocalMachineAppUpdate
- MinimapClickedEvent
- MinimapTextureBroadcastEvent
- NaturalWonderRevealed
- NotificationActivated
- NotificationAdded
- NotificationRemoved
- OpenInfoCorner
- ParticleEffectReloadRequested
- ParticleEffectStatsRequested
- ParticleEffectStatsResponse
- RecordCommandStreams
- RemoveAllArrowsEvent
- RequestYieldDisplay
- SearchForPediaEntry GoToPediaHomePage
- SerialEventBuildingSizeChanged
- SerialEventLeaderToggleDebugCam
- SerialEventRawResourceCreated
- SerialEventRawResourceDestroyed
- SerialEventRawResourceIconCreated
- SerialEventRawResourceIconDestroyed
- SerialEventScreenShot
- SerialEventTerrainDecalCreated
- SerialEventTerrainOverlayMod
- SerialEventTest
- SerialEventTestAnimations
- SerialEventTurnTimerDirty
- ShowAttackTargets
- ShowMovementRange
- SpawnArrowEvent
- StateMachineDumpStates
- StateMachineRequestStates
- StrategicViewStateChanged
- SystemUpdateUI
- TaskListUpdate
- UIPathFinderUpdate
- UserRequestClose
- VisibilityUpdated
- WonderStateChanged
- WonderTogglePlacement
- WonderTypeChanged
- WorldMouseOver