Skip to content

TrainingRestrictions

Examples

Example

<TrainingRestrictions>
  <TrainingRestrictions>
    <Category>
      Hero
    </Category>
  </TrainingRestrictions>
</TrainingRestrictions>

XML Elements

The following elements can be used within this component:

TrainingRestrictions

Category

Specifies the category of this unit, for satisfying special constraints. Choices include: Animal, Centurion, Gladiator, Hero, Mercenary, Minister, Juggernaut, ScoutShip, WarDog

Type: text

Path: TrainingRestrictions/Category

MatchLimit

Specifies how many times this entity can be trained during a match.

Type: positive integer (e.g. 1 or 5)

Path: TrainingRestrictions/MatchLimit

RELAX NG Grammar

<define name="component.TrainingRestrictions">
  <element name="TrainingRestrictions">
    <interleave>
      <element name="Category"/>
      <optional>
        <element name="MatchLimit">
          <data type="positiveInteger"/>
        </element>
      </optional>
    </interleave>
  </element>
</define>