Skip to content

Builder

Examples

Example

<Builder>
  <Rate>
    1.0
  </Rate>
  <Entities datatype="tokens">
    structures/{civ}/barracks
    structures/{native}/civil_centre
    structures/pers/apadana
  </Entities>
</Builder>

XML Elements

The following elements can be used within this component:

Builder

Rate

Construction speed multiplier (1.0 is normal speed, higher values are faster).

Type: positive decimal

Path: Builder/Rate

Entities

Space-separated list of entity template names that this unit can build. The special string "{civ}" will be automatically replaced by the civ code of the unit's owner, while the string "{native}" will be automatically replaced by the unit's civ code. This element can also be empty, in which case no new foundations may be placed by the unit, but they can still repair existing buildings.

Type: text

Path: Builder/Entities

RELAX NG Grammar

<define name="component.Builder">
  <element name="Builder">
    <interleave>
      <element name="Rate">
        <ref name="positiveDecimal"/>
      </element>
      <element name="Entities">
        <attribute name="datatype">
          <value>
          </value>
        </attribute>
        <text/>
      </element>
    </interleave>
  </element>
</define>