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 |
-
buildings:count()
-
Returns the number of buildings in the list.
Returns:
countnumber
defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 1660
-
buildings:item(
indexnumber
)
-
Returns a building from the list by its numeric index.
Parameters:
1
index
Returns:
buildingbuilding
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:
countnumber
defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 1693
-
buildings:garrisonable_item(
indexnumber
)
-
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
index
Returns:
buildingbuilding
defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 1707