Lua Game Events: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 15: Line 15:
*[[WarStateChanged]]
*[[WarStateChanged]]


===GameEvents===
 
(from patch 1.0.1.332)
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)]]
*[[GameEvents.PlayerAdoptPolicy(playerID, policyTypeID)]]
*[[GameEvents.PlayerAdoptPolicy(playerID, policyTypeID)]]
*[[GameEvents.PlayerAdoptPolicyBranch(playerID, policyBranchTypeID)]]
*[[GameEvents.PlayerAdoptPolicyBranch(playerID, policyBranchTypeID)]]
Line 53: Line 47:
*[[SerialEventExitCityScreen]]
*[[SerialEventExitCityScreen]]
*[[SpecificCityInfoDirty]] - fired when something in a particular city was changed.
*[[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==
==Unit==

Revision as of 09:04, 15 February 2012

Up: Lua and UI Reference

Lua Events List or the same in the official wiki

Player


GameEvents (from patch 1.0.1.332):

City


GameEvents (from patch 1.0.1.332):

Unit

CombatSim

Map objects

Improvements

Features

Hex

Game

Mods

Interface

Advisor

Dawn of Man

Diplomacy

Menus

Notifications

Game Systems

Animation

Audio

Camera

Multiplayer

Other (unsorted)