Thalassicus
Bytes and Nibblers
I'm experimenting with MultiUnitFormations.xml. For my first test I'd like to make the AI always escort its settlers with a military unit. I found these entries:
I'm guessing that setting RequiredSlot=true for the second entry will ensure an escort is present. It's difficult to test things in this file, however. Has anyone else tried changing AI formations?
PHP:
<Row>
<MultiUnitFormationType>MUFORMATION_SETTLER_ESCORT</MultiUnitFormationType>
<PrimaryUnitType>UNITAI_SETTLE</PrimaryUnitType>
<SecondaryUnitType>UNITAI_SETTLE</SecondaryUnitType>
<MultiUnitPositionType>MUPOSITION_CIVILIAN_SUPPORT</MultiUnitPositionType>
<RequiredSlot>true</RequiredSlot>
</Row>
<Row>
<MultiUnitFormationType>MUFORMATION_SETTLER_ESCORT</MultiUnitFormationType>
<PrimaryUnitType>UNITAI_DEFENSE</PrimaryUnitType>
<SecondaryUnitType>UNITAI_COUNTER</SecondaryUnitType>
<MultiUnitPositionType>MUPOSITION_FRONT_LINE</MultiUnitPositionType>
</Row>