Buildings

The buildings container object is a list of individual building objects. It can be retrieved by calling battle:buildings.

***** WARNING: at time of writing this list object is broken and, if used, will cause crashes. *****

Loaded in Battle loaded in battle
Back to top

Functionality

buildings:count()

Returns the number of buildings in the list.

Returns:

  1. number count

defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 1660

buildings:item(number index)

Returns a building from the list by its numeric index.

Parameters:

1

number

index

Returns:

  1. building building

defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 1674

buildings:garrisonable_count()

Returns the number of buildings in the list that are garrisonable.

Returns:

  1. number count

defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 1693

buildings:garrisonable_item(number index)

Returns a garrisonable building from the list by its numeric index. This numeric index is based on the position of the building in the garrisonable list, not the list of all buildings.

Parameters:

1

number

index

Returns:

  1. building building

defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 1707

Last updated 25/08/2021 12:07:50