Promotion XML Question

7ate9tin11s

Chieftain
Joined
Apr 8, 2010
Messages
34
Do PrereqPromotionsOnTile or PrereqPromotionsNotOnTile work? I am using them in automatic promotions and it seems they are ignored :wallbash:

As an example, I wanted units in the stack with a disease spreader to have a chance of catching a disease. However, every unit in the game gets the catch a disease randomly promotion, even if there is no disease spreader in the stack.

Promotion XML:
Spoiler :
Code:
		<PromotionInfo>		<!-- Disease Spreader Promotion -->
			<Type>PROMOTION_DISEASE_SPREADER</Type>
			<Description>Disease Spreader</Description>
			<Help>Units in the same stack have a chance of catching diseases that this unit carries. Including your own units!</Help>
			<iAsset>10</iAsset>
			<iPower>5</iPower>
			<Button>Art/Interface/Buttons/Promotions/Dragon.dds</Button>
			<iMinLevel>-1</iMinLevel>
		</PromotionInfo>
		<PromotionInfo>		<!-- Disease Spreading -->
			<Type>PROMOTION_DISEASE_SPREADING</Type>
			<Description>Disease Spreading</Description>
			<PrereqPromotionsOnTile>
				<PromotionType>PROMOTION_DISEASE_SPREADER</PromotionType>
			</PrereqPromotionsOnTile>
			<bEffectProm>0</bEffectProm>
			<bNoXP>1</bNoXP>
			<bAutoAcquire>1</bAutoAcquire>
			<UnitCombats>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_WORKER</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_ADEPT</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_ANIMAL</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_ARCHER</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_BEAST</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_DISCIPLE</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_NAVAL</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_RECON</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_SIEGE</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_COMMANDER</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
			</UnitCombats>
			<iPromotionDuration>1</iPromotionDuration>
			<iPromotionRandomApplyChance>9</iPromotionRandomApplyChance>
			<Button>Art/Interface/Buttons/Promotions/Mind1.dds</Button>
			<PromotionRandomApply>PROMOTION_DISEASED</PromotionRandomApply>
		</PromotionInfo>

Any help would be appriciated :D
 
Back
Top Bottom