Asterix Rage
Warlord
- Joined
- Jun 6, 2010
- Messages
- 1,585
According many threads I read, this prevent Minor and Barbarian to build A "specific unit" :
I'm doing a mod where I introduce a new Unit for AI and Human players only. Not Minor and Barbarian. It works but Barbarians spread them despite the fact that I wrote this :
Where am I wrong ?
Maybe i should write :
(The chairiô Borguignon I made is supposed to be a "elite" version of the Cannon)
Code:
<Civilization_UnitClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_MINOR</CivilizationType>
<UnitClassType>UNITCLASS_SPECIFIC_UNIT</UnitClassType>
<UnitType/>
</Row>
<Row>
<CivilizationType>CIVILIZATION_BARBARIAN</CivilizationType>
<UnitClassType>UNITCLASS_SPECIFIC_UNIT</UnitClassType>
<UnitType/>
</Row>
</Civilization_UnitClassOverrides>
I'm doing a mod where I introduce a new Unit for AI and Human players only. Not Minor and Barbarian. It works but Barbarians spread them despite the fact that I wrote this :
Code:
<GameData>
<UnitClasses>
<Row>
<Type>UNITCLASS_CHAIRIO_BORGUIGNON</Type>
<Description>TXT_KEY_UNIT_CHAIRIO_BORGUIGNON</Description>
<DefaultUnit>UNIT_CHAIRIO_BORGUIGNON</DefaultUnit>
</Row>
</UnitClasses>
<Units>
<Row>
<Class>UNITCLASS_CHAIRIO_BORGUIGNON</Class>
<Type>UNIT_CHAIRIO_BORGUIGNON</Type>
<CombatClass>UNITCOMBAT_SIEGE</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<Combat>15</Combat>
<Range>2</Range>
...
...
...
</Row>
</Units>
<!-- MINOR and BARBARIAN NOT ALLOWED TO BUILD CHAIRIO_BORGUIGNON -->
<Civilization_UnitClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_MINOR</CivilizationType>
<UnitClassType>UNITCLASS_CHAIRIO_BORGUIGNON</UnitClassType>
<UnitType/>
</Row>
<Row>
<CivilizationType>CIVILIZATION_BARBARIAN</CivilizationType>
<UnitClassType>UNITCLASS_CHAIRIO_BORGUIGNON</UnitClassType>
<UnitType/>
</Row>
</Civilization_UnitClassOverrides>
</GameData>
Where am I wrong ?
Maybe i should write :
Code:
<UnitType>UNIT_CANNON</UnitType>
(The chairiô Borguignon I made is supposed to be a "elite" version of the Cannon)
Last edited: