Lua Game Events: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
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]]
*[[RemotePlayerTurnEnd]]
*[[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]]
*[[SerialEventEraChanged]]
*[[SequenceGameInitComplete]]
*[[SequenceGameInitComplete]]
*[[SerialEventGameDataDirty]]
*[[SerialEventGameDataDirty]]
*[[SerialEventStartGame]]
*[[SerialEventStartGame]]
===Mods===
*[[AfterModsActivate]]
*[[AfterModsDeactivate]]
*[[BeforeModsActivate]]
*[[BeforeModsDeactivate]]
*[[InstalledModsUpdated]]
*[[ModDownloadComplete]]
*[[ModDownloadStarted]]


==Interface/Popups==
==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]]
*[[SerialEventDawnOfManHide]]
===Notifications===
*[[SerialEventDawnOfManShow]]
*[[NotificationActivated]]
*[[SerialEventGameMessagePopup]]
*[[NotificationAdded]]
*[[SerialEventGameMessagePopupProcessed]]
*[[NotificationRemoved]]
*[[SerialEventGameMessagePopupShown]]
*[[SerialEventInfoPaneDirty]]
*[[ToolTipEvent]]
 
==Mods==
*[[AfterModsActivate]]
*[[AfterModsDeactivate]]
*[[BeforeModsActivate]]
*[[BeforeModsDeactivate]]
*[[InstalledModsUpdated]]
*[[ModDownloadComplete]]
*[[ModDownloadStarted]]


==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]]
*[[AnimationSamplingChanged]]
*[[BuildingLibrarySwap]]
*[[BuildingLibrarySwap]]
*[[ConnectedToNetworkHost]]
*[[DisplayMovementIndicator]]
*[[DisplayMovementIndicator]]
*[[DontRecordCommandStreams]]
*[[DontRecordCommandStreams]]
*[[EndTurnTimerUpdate]]
*[[EndTurnTimerUpdate]]
*[[EventOpenOptionsScreen]]
*[[EventPoliciesDirty]]
*[[ExitToMainMenu]]
*[[FrontEndPopup]]
*[[GenericWorldAnchor]]
*[[GenericWorldAnchor]]
*[[GraphicsOptionsChanged]]
*[[GraphicsOptionsChanged]]
Line 205: Line 224:
*[[LanguageChanging]]
*[[LanguageChanging]]
*[[LeavingLeaderViewMode]]
*[[LeavingLeaderViewMode]]
*[[LoadScreenClose]]
*[[LocalMachineAppUpdate]]
*[[LocalMachineAppUpdate]]
*[[MinimapClickedEvent]]
*[[MinimapTextureBroadcastEvent]]
*[[MinimapTextureBroadcastEvent]]
*[[NaturalWonderRevealed]]
*[[NotificationActivated]]
*[[NotificationAdded]]
*[[NotificationRemoved]]
*[[OpenInfoCorner]]
*[[ParticleEffectReloadRequested]]
*[[ParticleEffectStatsRequested]]
*[[ParticleEffectStatsResponse]]
*[[RecordCommandStreams]]
*[[RecordCommandStreams]]
*[[RemoveAllArrowsEvent]]
*[[RequestYieldDisplay]]
*[[RequestYieldDisplay]]
*[[SearchForPediaEntry GoToPediaHomePage]]
*[[SearchForPediaEntry GoToPediaHomePage]]
*[[SerialEventBuildingSizeChanged]]
*[[SerialEventBuildingSizeChanged]]
Line 232: Line 239:
*[[SerialEventTerrainOverlayMod]]
*[[SerialEventTerrainOverlayMod]]
*[[SerialEventTest]]
*[[SerialEventTest]]
*[[SerialEventTestAnimations]]
*[[SerialEventTurnTimerDirty]]
*[[SerialEventTurnTimerDirty]]
*[[ShowAttackTargets]]
*[[ShowAttackTargets]]
*[[ShowMovementRange]]
*[[ShowMovementRange]]
*[[SpawnArrowEvent]]
*[[StateMachineDumpStates]]
*[[StateMachineDumpStates]]
*[[StateMachineRequestStates]]
*[[StateMachineRequestStates]]

Revision as of 12:45, 14 February 2012

Up: Lua and UI Reference

Lua Events List or the same in the official wiki

Player

City

Unit

CombatSim

Map objects

Improvements

Features

Hex

Game

Mods

Interface

Advisor

Dawn of Man

Diplomacy

Menus

Notifications

Game Systems

Camera

Audio

Animation

Multiplayer

Other (unsorted)