Home › Operations and commands

Available out of the box. Usable from Lua in the unmodified game.

Operations and commands

Everything the game can be asked to do to a player, unit or city is identified by a hash (see the identifier hash). Player operations are cases of one large function; the others are handler classes. Each page lists the handler, the parameters it reads and its addresses.

Kind Count Lua table
Player operations 39 PlayerOperations
City commands 8 CityCommandTypes
City operations 1 CityOperationTypes
Unit commands 40 UnitCommandTypes
Unit operations 66 UnitOperationTypes

Parameters are described once, on the parameter reference page.