Okey, I've been busy trying make a an ability similar to the "Cult of a Hundred Eyes" abaility except this ability instead of training spiders allows the use to train a special type of domesticated dragon I created for custom faction. The dragon is weaker than the standard storm dragon, but quicker to train. I've been trying to get it to wear my custom faction ability allows the creature to trained in my cities, but for whatever it's not working. I set up the dragon in a way similar to the bound spider with a production cost and a the ability as prereq for the unit, yet at doesn't appear as a starting unit. If someone could help me figure out what I'm doing wrong I'd be most grateful.
Here's the ability
Code: xml
- <AbilityBonus InternalName="ShaikanDragonTechAbility">
- <AbilityBonusType>Player</AbilityBonusType>
- <AbilityBonusOption InternalName="ShaikanDragonTechAbility">
- <DisplayName>Shaikan Dragon's Tongue</DisplayName>
- <Description>Faction starts with the ability to speck to and train dragons</Description>
- <Icon>Shaikan_Dragon_Speak.png</Icon>
- <GameModifier>
- <ModType>Player</ModType>
- <Attribute>UnlockTech</Attribute>
- <StrVal>Dance_with_Dragons</StrVal>
- <Provides>The Shaiken's blood allows them to communicate with and breed generic dragons for their armies.</Provides>
- </GameModifier>
- <GameModifier>
- <Provides>This faction can train domesticed dragons in their cities</Provides>
- </GameModifier>
- <Cost>1</Cost>
- <HideWhenUpgraded>0</HideWhenUpgraded>
- <Type>Army</Type>
- <AIData AIPersonality="AI_General">
- <AIPriority>5</AIPriority>
- </AIData>
- </AbilityBonusOption>
- </AbilityBonus>
and here's the unit
Code: xml
- <UnitType InternalName="ShaikanDragon">
- <DisplayName>Shaikan Dragon</DisplayName>
- <CreatureType>Dragon</CreatureType>
- <CanBeDesigned>1</CanBeDesigned>
- <AdditionalTrainingTurns>100</AdditionalTrainingTurns>
- <HasWages>0</HasWages>
- <IsSovereign>0</IsSovereign>
- <IsUniqueButBuildable>1</IsUniqueButBuildable>
- <AllowGrouping>0</AllowGrouping>
- <LevelMilestone InternalName="L1">
- <Level>1</Level>
- <UnitStat_Accuracy>75</UnitStat_Accuracy>
- <UnitStat_Attack_Pierce>15</UnitStat_Attack_Pierce>
- <UnitStat_ChanceToCrit>3</UnitStat_ChanceToCrit>
- <UnitStat_CombatSpeed>10</UnitStat_CombatSpeed>
- <UnitStat_Defense_Blunt>12</UnitStat_Defense_Blunt>
- <UnitStat_Defense_Cutting>12</UnitStat_Defense_Cutting>
- <UnitStat_Defense_Pierce>12</UnitStat_Defense_Pierce>
- <UnitStat_HitPoints>100</UnitStat_HitPoints>
- <UnitStat_Moves>4</UnitStat_Moves>
- <UnitStat_WeightCapacity>100</UnitStat_WeightCapacity>
- </LevelMilestone>
- <SelectedAbilityBonusOption>Monsterous</SelectedAbilityBonusOption>
- <SelectedAbilityBonusOption>ImmuneToFire</SelectedAbilityBonusOption>
- <SelectedAbilityBonusOption>Sweep</SelectedAbilityBonusOption>
- <SelectedAbilityBonusOption>FireBreath</SelectedAbilityBonusOption>
- <SelectedAbilityBonusOption>Bash</SelectedAbilityBonusOption>
- <SelectedAbilityBonusOption>VulnerableToCold</SelectedAbilityBonusOption>
- <Prereq>
- <Type>AbilityBonusOption</Type>
- <Attribute>ShaikanDragonTechAbility</Attribute>
- <Target>Player</Target>
- </Prereq>
- <ProductionRequirement>
- <Type>Resource</Type>
- <Attribute>Mana</Attribute>
- <Value>20</Value>
- </ProductionRequirement>
- <Backstory>The Shaikan have living with Dragons for centuries and have developed means of breeding for domestic and military use. This dragon, while weaker than it's more wild brethren is valuable part of the Shaikan military.</Backstory>
- <Medallions InternalName="">
- <All>Shaikon_Dragon2.png</All>
- </Medallions>
- <AlwaysInTileCenter>1</AlwaysInTileCenter>
- <AnimationPack>DragonAnimationPack</AnimationPack>
- <BattleAnimationBehavior>Stationary</BattleAnimationBehavior>
- <ClothMapScale>0.415</ClothMapScale>
- <Color_Skin>121,76,57,255</Color_Skin>
- <CutSceneDataPack>DragonUnitCutscenePack</CutSceneDataPack>
- <EyeTexture>gfx/eyes/male_brown_eye.png</EyeTexture>
- <InfoCardBackground>BG13_Volcanic</InfoCardBackground>
- <MaxScaleMainMap>0.40</MaxScaleMainMap>
- <MaxScaleTacticalMap>.60</MaxScaleTacticalMap>
- <ModelPath>gfx/hkb/Dragons/D_Dragon_Mesh_01.hkb</ModelPath>
- <ModelScale>0.9</ModelScale>
- <SkeletonPath>gfx/hkb/Dragons/D_Dragon_Skeleton_01.hkb</SkeletonPath>
- <SoundPack>SoundPack_Dragon1</SoundPack>
- <Texture_Skin>gfx/hkb/Dragons/D_Dragon_Texture_03.dds</Texture_Skin>
- </UnitType>