Hello ppl
I m trying to make my first mod so this is what I have done so far:
All ranged units IRL have ranged attack
Now the problem is when I try to make jungles impassable for tanks/sams, ...
I used FOLIAGE_IMPASSABLE but I wanted to make forest passable but with big movement cost. So this is what I did:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 10/12/2010 1:01:52 AM -->
<GameData>
<Unit_FreePromotions>
<!-- Makes select units unable to pass thru jungle -->
<Row>
<UnitType>UNIT_MODERN_ARMOR</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_TANK</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_GERMAN_PANZER</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ROCKET_ARTILLERY</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_MECHANIZED_INFANTRY</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_CATAPULT</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ANTI_AIRCRAFT_GUN</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_MOBILE_SAM</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_CANNON</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_TREBUCHET</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ROMAN_BALLISTA</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ARTILLERY</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_MODERN_ARMOR</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_TANK</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_GERMAN_PANZER</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ROCKET_ARTILLERY</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_MECHANIZED_INFANTRY</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ANTI_AIRCRAFT_GUN</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_MOBILE_SAM</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_TREBUCHET</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ROMAN_BALLISTA</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
</Unit_FreePromotions>
<UnitPromotions>
<Row>
<Type>PROMOTION_FORREST_STUCK</Type>
<Description>TXT_KEY_PROMOTION_FORREST_STUCK</Description>
<Help>TXT_KEY_PROMOTION_FORREST_STUCK</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<PortraitIndex>57</PortraitIndex>
<IconAtlas>ABILITY_ATLAS</IconAtlas>
<PediaType>PEDIA_ATTRIBUTES</PediaType>
<PediaEntry>TXT_KEY_PEDIA_PROMOTION_FORREST_STUCK</PediaEntry>
</Row>
</UnitPromotions>
<UnitPromotions_Features>
<Row>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
<FeatureType>FEATURE_FORREST</FeatureType>
<MovesChange>-3</MovesChange>
</Row>
<Update>
<Set Impassable="false"/>
<Where FeatureType="FEATURE_FORREST"/>
</Update>
</UnitPromotions_Features>
</GameData>
Note that Forrest_stuck is actually a new promotion which I m trying to implement but so far to no avail. It should make tanks and other vehicles to spend more movement points in order to move through forests. Furthermore, vehicles in-game treat jungle like passable.
Can anyone help?
I m trying to make my first mod so this is what I have done so far:
All ranged units IRL have ranged attack
Now the problem is when I try to make jungles impassable for tanks/sams, ...
I used FOLIAGE_IMPASSABLE but I wanted to make forest passable but with big movement cost. So this is what I did:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 10/12/2010 1:01:52 AM -->
<GameData>
<Unit_FreePromotions>
<!-- Makes select units unable to pass thru jungle -->
<Row>
<UnitType>UNIT_MODERN_ARMOR</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_TANK</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_GERMAN_PANZER</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ROCKET_ARTILLERY</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_MECHANIZED_INFANTRY</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_CATAPULT</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ANTI_AIRCRAFT_GUN</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_MOBILE_SAM</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_CANNON</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_TREBUCHET</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ROMAN_BALLISTA</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ARTILLERY</UnitType>
<PromotionType>PROMOTION_FOLIAGE_IMPASSABLE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_MODERN_ARMOR</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_TANK</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_GERMAN_PANZER</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ROCKET_ARTILLERY</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_MECHANIZED_INFANTRY</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ANTI_AIRCRAFT_GUN</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_MOBILE_SAM</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_TREBUCHET</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ROMAN_BALLISTA</UnitType>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
</Row>
</Unit_FreePromotions>
<UnitPromotions>
<Row>
<Type>PROMOTION_FORREST_STUCK</Type>
<Description>TXT_KEY_PROMOTION_FORREST_STUCK</Description>
<Help>TXT_KEY_PROMOTION_FORREST_STUCK</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<PortraitIndex>57</PortraitIndex>
<IconAtlas>ABILITY_ATLAS</IconAtlas>
<PediaType>PEDIA_ATTRIBUTES</PediaType>
<PediaEntry>TXT_KEY_PEDIA_PROMOTION_FORREST_STUCK</PediaEntry>
</Row>
</UnitPromotions>
<UnitPromotions_Features>
<Row>
<PromotionType>PROMOTION_FORREST_STUCK</PromotionType>
<FeatureType>FEATURE_FORREST</FeatureType>
<MovesChange>-3</MovesChange>
</Row>
<Update>
<Set Impassable="false"/>
<Where FeatureType="FEATURE_FORREST"/>
</Update>
</UnitPromotions_Features>
</GameData>
Note that Forrest_stuck is actually a new promotion which I m trying to implement but so far to no avail. It should make tanks and other vehicles to spend more movement points in order to move through forests. Furthermore, vehicles in-game treat jungle like passable.
Can anyone help?