RogerBacon
King
- Joined
- Nov 16, 2003
- Messages
- 649
I have a promotion that takes another as a prerequisite but it shows up as available for selection even without the prerequisites. In this case the FEAR promotion shows up as selectable even if the unit has no other promotions. I've tried every combination of <PromotionPrereq>, <PromotionPrereqOr1>, and <PromotionPrereqOr2> but it always shows up no matter what.
This file and all the otehr files for the mod are in civ4\Beyond the Sword\Mods\Shogun\assets\Modules\Shogun. My promotions file is named Shogun_CIV4PromotionInfos.xml and it uses the XML schema Shogun_CIV4UnitSchema.xml. I've added in my new promotion and Combat1-6 because before I added Combat1-6 they did not show up as available. Any help would be appreciated. It's been 3 years since I did Civ modding and I didn't think it would be this difficult getting back into it. XML is supposed to be the easy part.
This file and all the otehr files for the mod are in civ4\Beyond the Sword\Mods\Shogun\assets\Modules\Shogun. My promotions file is named Shogun_CIV4PromotionInfos.xml and it uses the XML schema Shogun_CIV4UnitSchema.xml. I've added in my new promotion and Combat1-6 because before I added Combat1-6 they did not show up as available. Any help would be appreciated. It's been 3 years since I did Civ modding and I didn't think it would be this difficult getting back into it. XML is supposed to be the easy part.

Code:
<PromotionInfo>
<Type>PROMOTION_FEAR</Type>
<Description>TXT_KEY_PROMOTION_FEAR</Description>
<Sound>AS2D_IF_LEVELUP</Sound>
<LayerAnimationPath>NONE</LayerAnimationPath>
<PromotionPrereq>PROMOTION_BUSHIDO3</PromotionPrereq>
<PromotionPrereqOr1>PROMOTION_BUSHIDO3</PromotionPrereqOr1>
<PromotionPrereqOr2>PROMOTION_BUSHIDO3</PromotionPrereqOr2>
<TechPrereq>NONE</TechPrereq>
<StateReligionPrereq>NONE</StateReligionPrereq>
<bLeader>0</bLeader>
<bBlitz>0</bBlitz>
<bAmphib>0</bAmphib>
<bRiver>0</bRiver>
<bEnemyRoute>1</bEnemyRoute>
<bAlwaysHeal>0</bAlwaysHeal>
<bHillsDoubleMove>0</bHillsDoubleMove>
<bImmuneToFirstStrikes>0</bImmuneToFirstStrikes>
<iVisibilityChange>0</iVisibilityChange>
<iMovesChange>0</iMovesChange>
<iMoveDiscountChange>0</iMoveDiscountChange>
<iAirRangeChange>0</iAirRangeChange>
<iInterceptChange>0</iInterceptChange>
<iEvasionChange>0</iEvasionChange>
<iWithdrawalChange>0</iWithdrawalChange>
<iCargoChange>0</iCargoChange>
<iCollateralDamageChange>0</iCollateralDamageChange>
<iBombardRateChange>0</iBombardRateChange>
<iFirstStrikesChange>0</iFirstStrikesChange>
<iChanceFirstStrikesChange>0</iChanceFirstStrikesChange>
<iEnemyHealChange>0</iEnemyHealChange>
<iNeutralHealChange>0</iNeutralHealChange>
<iFriendlyHealChange>0</iFriendlyHealChange>
<iSameTileHealChange>0</iSameTileHealChange>
<iAdjacentTileHealChange>0</iAdjacentTileHealChange>
<iCombatPercent>0</iCombatPercent>
<iCityAttack>0</iCityAttack>
<iCityDefense>0</iCityDefense>
<iHillsAttack>0</iHillsAttack>
<iHillsDefense>0</iHillsDefense>
<iKamikazePercent>0</iKamikazePercent>
<iRevoltProtection>0</iRevoltProtection>
<iCollateralDamageProtection>0</iCollateralDamageProtection>
<iPillageChange>0</iPillageChange>
<iUpgradeDiscount>0</iUpgradeDiscount>
<iExperiencePercent>0</iExperiencePercent>
<TerrainAttacks/>
<TerrainDefenses/>
<FeatureAttacks/>
<FeatureDefenses/>
<UnitCombatMods/>
<DomainMods/>
<TerrainDoubleMoves/>
<FeatureDoubleMoves/>
<UnitCombats>
<UnitCombat>
<UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
<bUnitCombat>1</bUnitCombat>
</UnitCombat>
<UnitCombat>
<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
<bUnitCombat>1</bUnitCombat>
</UnitCombat>
<UnitCombat>
<UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
<bUnitCombat>1</bUnitCombat>
</UnitCombat>
<UnitCombat>
<UnitCombatType>UNITCOMBAT_ARMOR</UnitCombatType>
<bUnitCombat>1</bUnitCombat>
</UnitCombat>
</UnitCombats>
<HotKey/>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<Button>Modules/Shogun/Fear.dds</Button>
</PromotionInfo>