Buildings

The buildings container object is a list of individual battle_building objects. A list of all buildings on the battlefield can be retrieved by calling battle:buildings, for example.

Loaded in Campaign Loaded in Campaign
Loaded in Battle Loaded in Battle
Loaded in Frontend Loaded in Frontend
Back to top

Functionality

battle_buildings:count()

Returns the number of buildings in the list.

Returns:

  1. number count

battle_buildings:item(number index)

Returns a building from the list by its numeric index.

Parameters:

1

number

index

Returns:

  1. battle_building building
Last updated 8/23/2024 4:55:16 PM