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 6: | Line 6: | ||
*[[ActivePlayerTurnEnd]] | *[[ActivePlayerTurnEnd]] | ||
*[[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). | ||
*[[EventPoliciesDirty]] | |||
*[[GameplaySetActivePlayer]] | *[[GameplaySetActivePlayer]] | ||
*[[ | *[[SerialEventEraChanged]] | ||
*[[SerialEventResearchDirty]] | *[[SerialEventResearchDirty]] | ||
*[[SerialEventScoreDirty]] | *[[SerialEventScoreDirty]] | ||
Line 80: | Line 81: | ||
*[[EndCombatSim]] | *[[EndCombatSim]] | ||
==Improvements== | ==Map objects== | ||
*[[NaturalWonderRevealed]] | |||
===Improvements=== | |||
*[[SerialEventImprovementCreated]] | *[[SerialEventImprovementCreated]] | ||
*[[SerialEventImprovementDestroyed]] | *[[SerialEventImprovementDestroyed]] | ||
Line 87: | Line 90: | ||
*[[SerialEventRoadCreated]] | *[[SerialEventRoadCreated]] | ||
*[[SerialEventRoadDestroyed]] | *[[SerialEventRoadDestroyed]] | ||
===Features=== | |||
==Features== | |||
*[[SerialEventFeatureCreated]] | *[[SerialEventFeatureCreated]] | ||
*[[SerialEventFeatureDestroyed]] | *[[SerialEventFeatureDestroyed]] | ||
Line 120: | Line 122: | ||
==Game== | ==Game== | ||
*[[LoadScreenClose]] | |||
*[[PreGameDirty]] | *[[PreGameDirty]] | ||
*[[SerialEventEndTurnDirty]] | *[[SerialEventEndTurnDirty]] | ||
*[[SequenceGameInitComplete]] | *[[SequenceGameInitComplete]] | ||
*[[SerialEventGameDataDirty]] | *[[SerialEventGameDataDirty]] | ||
*[[SerialEventStartGame]] | *[[SerialEventStartGame]] | ||
===Mods=== | |||
*[[AfterModsActivate]] | |||
*[[AfterModsDeactivate]] | |||
*[[BeforeModsActivate]] | |||
*[[BeforeModsDeactivate]] | |||
*[[InstalledModsUpdated]] | |||
*[[ModDownloadComplete]] | |||
*[[ModDownloadStarted]] | |||
==Interface | ==Interface== | ||
*[[AddPopupTextEvent]] | *[[AddPopupTextEvent]] | ||
*[[FrontEndPopup]] | |||
*[[MinimapClickedEvent]] | |||
*[[OpenInfoCorner]] | |||
*[[SerialEventGameMessagePopup]] | |||
*[[SerialEventGameMessagePopupProcessed]] | |||
*[[SerialEventGameMessagePopupShown]] | |||
*[[SerialEventInfoPaneDirty]] | |||
*[[ToolTipEvent]] | |||
===Advisor=== | |||
*[[AdvisorDisplayHide]] | *[[AdvisorDisplayHide]] | ||
*[[AdvisorDisplayShow]] | *[[AdvisorDisplayShow]] | ||
===Dawn of Man=== | |||
*[[SerialEventDawnOfManHide]] | |||
*[[SerialEventDawnOfManShow]] | |||
===Diplomacy=== | |||
*[[ClearDiplomacyTradeTable]] | *[[ClearDiplomacyTradeTable]] | ||
*[[OpenPlayerDealScreenEvent]] | *[[OpenPlayerDealScreenEvent]] | ||
===Menus=== | |||
*[[EventOpenOptionsScreen]] | |||
*[[ExitToMainMenu]] | |||
*[[PlayerChoseToLoadGame]] | *[[PlayerChoseToLoadGame]] | ||
*[[PlayerChoseToLoadMap]] | *[[PlayerChoseToLoadMap]] | ||
===Notifications=== | |||
*[[NotificationActivated]] | |||
*[[NotificationAdded]] | |||
*[[NotificationRemoved]] | |||
== | |||
*[[ | |||
*[[ | |||
*[[ | |||
==Camera== | ==Game Systems== | ||
===Camera=== | |||
*[[CameraProjectionChanged]] | *[[CameraProjectionChanged]] | ||
*[[CameraStartPitchingDown]] | *[[CameraStartPitchingDown]] | ||
Line 179: | Line 194: | ||
*[[SerialEventCameraStopMovingLeft]] | *[[SerialEventCameraStopMovingLeft]] | ||
*[[SerialEventCameraStopMovingRight]] | *[[SerialEventCameraStopMovingRight]] | ||
===Audio=== | |||
==Audio== | |||
*[[AudioDebugChangeMusic]] | *[[AudioDebugChangeMusic]] | ||
*[[AudioPlay2DSound]] | *[[AudioPlay2DSound]] | ||
*[[AudioVolumeChanged]] | *[[AudioVolumeChanged]] | ||
===Animation=== | |||
*[[AnimationSamplingChanged]] | |||
*[[ParticleEffectReloadRequested]] | |||
*[[ParticleEffectStatsRequested]] | |||
*[[ParticleEffectStatsResponse]] | |||
*[[RemoveAllArrowsEvent]] | |||
*[[SerialEventTestAnimations]] | |||
*[[SpawnArrowEvent]] | |||
===Multiplayer=== | |||
*[[ConnectedToNetworkHost]] | |||
*[[RemotePlayerTurnEnd]] | |||
==Other (unsorted)== | ==Other (unsorted)== | ||
*[[AppInitComplete]] | *[[AppInitComplete]] | ||
*[[AILeaderMessage]] | *[[AILeaderMessage]] | ||
*[[BuildingLibrarySwap]] | *[[BuildingLibrarySwap]] | ||
*[[DisplayMovementIndicator]] | *[[DisplayMovementIndicator]] | ||
*[[DontRecordCommandStreams]] | *[[DontRecordCommandStreams]] | ||
*[[EndTurnTimerUpdate]] | *[[EndTurnTimerUpdate]] | ||
*[[GenericWorldAnchor]] | *[[GenericWorldAnchor]] | ||
*[[GraphicsOptionsChanged]] | *[[GraphicsOptionsChanged]] | ||
Line 205: | Line 224: | ||
*[[LanguageChanging]] | *[[LanguageChanging]] | ||
*[[LeavingLeaderViewMode]] | *[[LeavingLeaderViewMode]] | ||
*[[LocalMachineAppUpdate]] | *[[LocalMachineAppUpdate]] | ||
*[[MinimapTextureBroadcastEvent]] | *[[MinimapTextureBroadcastEvent]] | ||
*[[RecordCommandStreams]] | *[[RecordCommandStreams]] | ||
*[[RequestYieldDisplay]] | *[[RequestYieldDisplay]] | ||
*[[SearchForPediaEntry GoToPediaHomePage]] | *[[SearchForPediaEntry GoToPediaHomePage]] | ||
*[[SerialEventBuildingSizeChanged]] | *[[SerialEventBuildingSizeChanged]] | ||
Line 232: | Line 239: | ||
*[[SerialEventTerrainOverlayMod]] | *[[SerialEventTerrainOverlayMod]] | ||
*[[SerialEventTest]] | *[[SerialEventTest]] | ||
*[[SerialEventTurnTimerDirty]] | *[[SerialEventTurnTimerDirty]] | ||
*[[ShowAttackTargets]] | *[[ShowAttackTargets]] | ||
*[[ShowMovementRange]] | *[[ShowMovementRange]] | ||
*[[StateMachineDumpStates]] | *[[StateMachineDumpStates]] | ||
*[[StateMachineRequestStates]] | *[[StateMachineRequestStates]] |
Revision as of 12:45, 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).
- EventPoliciesDirty
- GameplaySetActivePlayer
- SerialEventEraChanged
- 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
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
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
Animation
- AnimationSamplingChanged
- ParticleEffectReloadRequested
- ParticleEffectStatsRequested
- ParticleEffectStatsResponse
- RemoveAllArrowsEvent
- SerialEventTestAnimations
- SpawnArrowEvent
Multiplayer
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