Modbuddy: I don't know how it works

Civnu

Chieftain
Joined
Mar 25, 2012
Messages
17
Hi,

I were trying to make a mod with a new unit, but i just can't!!!
Can anyone please tell me how to do it?
(I tryed to make the privateer and the treasure from the "Conquest of the new world" scenario).

Hope you will/can help me!!!:)
 
Go read Kael's beginner modder guide. It'll explain the basics of the whole thing.

Adding a truly new unit takes a bit more work, because creating a custom unit graphic is NOT simple. But if you're okay with reusing an existing unit's graphics, then it's very trivial. My own mods have added hundreds of new unit types, for instance.
 
Kael does not show how to add a naval unit. Do you know that maybe???
This is what i have did until now.

<
GameData>
<
Units>
<
Row>
<
Class>UNITCLASS_FRIGATE</Class>
<
Type>UNIT_PRIVATEER</Type>
<
PrereqTech>TECH_NAVIGATION</PrereqTech>
<
Combat>30</Combat>
<
RangedCombat>15</RangedCombat>
<
Cost>150</Cost>
<
Moves>7</Moves>
<
HurryCostModifier>30</HurryCostModifier>
<
Range>2</Range>
<
CombatClass>UNITCOMBAT_NAVAL</CombatClass>
<
Domain>DOMAIN_SEA</Domain>
<
DefaultUnitAI>UNITAI_EXPLORE_SEA</DefaultUnitAI>
<
Description>TXT_KEY_UNIT_FRIGATE</Description>
<
Civilopedia>TXT_KEY_CIV5_UNITS_RENAISSANCE_FRIGATE_TEXT</Civilopedia>
<
Strategy>TXT_KEY_UNIT_FRIGATE_STRATEGY</Strategy>
<
Help>TXT_KEY_UNIT_HELP_PRIVATEER</Help>
<
MilitarySupport>true</MilitarySupport>
<
MilitaryProduction>true</MilitaryProduction>
<
Pillage>true</Pillage>
<
Mechanized>true</Mechanized>
<
InvisibleToAI>true</InvisibleToAI>
<
ObsoleteTech>TECH_ELECTRICITY</ObsoleteTech>
<
AdvancedStartCost>50</AdvancedStartCost>
<
MinAreaSize>20</MinAreaSize>
<
XPValueAttack>3</XPValueAttack>
<
XPValueDefense>3</XPValueDefense>
<
UnitArtInfo>ART_DEF_UNIT_FRIGATE</UnitArtInfo>
<
UnitFlagIconOffset>51</UnitFlagIconOffset>
<
IconAtlas>UNIT_ATLAS_2</IconAtlas>
<
PortraitIndex>8</PortraitIndex>
<
MoveRate>WOODEN_BOAT</MoveRate>
</
Row>
</
Units> -<Unit_FreePromotions>
<
Row>
<
UnitType>UNIT_PRIVATEER</UnitType>
<
PromotionType>PROMOTION_NAVAL_PENALTY</PromotionType>
</
Row> -<Row>
<
UnitType>UNIT_PRIVATEER</UnitType>
<
PromotionType>PROMOTION_CARGO_1</PromotionType>
</
Row>
</
Unit_FreePromotions> -<Unit_AITypes>
-
<Row>
<
UnitType>UNIT_PRIVATEER</UnitType>
<
UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</
Row> -<Row>
<
UnitType>UNIT_PRIVATEER</UnitType>
<
UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</
Row> -<Row>
<
UnitType>UNIT_PRIVATEER</UnitType>
<
UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</
Row> -<Row>
<
UnitType>UNIT_PRIVATEER</UnitType>
<
UnitAIType>UNITAI_EXPLORE_SEA</UnitAIType>
</
Row>
</
Unit_AITypes> -<Unit_ClassUpgrades>
<
Row>
<
UnitType>UNIT_PRIVATEER</UnitType>
<
UnitClassType>UNITCLASS_DESTROYER</UnitClassType>
</
Row>
</
Unit_ClassUpgrades> -<Unit_Flavors>
<
Row>
<
UnitType>UNIT_PRIVATEER</UnitType>
<
FlavorType>FLAVOR_NAVAL</FlavorType>
<
Flavor>7</Flavor>
</
Row> -<Row>
<
UnitType>UNIT_Privateer</UnitType>
<
FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<
Flavor>7</Flavor>
</
Row>
</
Unit_Flavors>
 
Top Bottom