Please help if you can

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
  1. <AbilityBonus InternalName="ShaikanDragonTechAbility">
  2. <AbilityBonusType>Player</AbilityBonusType>
  3. <AbilityBonusOption InternalName="ShaikanDragonTechAbility">
  4. <DisplayName>Shaikan Dragon's Tongue</DisplayName>
  5. <Description>Faction starts with the ability to speck to and train dragons</Description>
  6. <Icon>Shaikan_Dragon_Speak.png</Icon>
  7. <GameModifier>
  8. <ModType>Player</ModType>
  9. <Attribute>UnlockTech</Attribute>
  10. <StrVal>Dance_with_Dragons</StrVal>
  11. <Provides>The Shaiken's blood allows them to communicate with and breed generic dragons for their armies.</Provides>
  12. </GameModifier>
  13. <GameModifier>
  14. <Provides>This faction can train domesticed dragons in their cities</Provides>
  15. </GameModifier>
  16. <Cost>1</Cost>
  17. <HideWhenUpgraded>0</HideWhenUpgraded>
  18. <Type>Army</Type>
  19. <AIData AIPersonality="AI_General">
  20. <AIPriority>5</AIPriority>
  21. </AIData>
  22. </AbilityBonusOption>
  23. </AbilityBonus>

and here's the unit

Code: xml
  1. <UnitType InternalName="ShaikanDragon">
  2. <DisplayName>Shaikan Dragon</DisplayName>
  3. <CreatureType>Dragon</CreatureType>
  4. <CanBeDesigned>1</CanBeDesigned>
  5. <AdditionalTrainingTurns>100</AdditionalTrainingTurns>
  6. <HasWages>0</HasWages>
  7. <IsSovereign>0</IsSovereign>
  8. <IsUniqueButBuildable>1</IsUniqueButBuildable>
  9. <AllowGrouping>0</AllowGrouping>
  10. <LevelMilestone InternalName="L1">
  11. <Level>1</Level>
  12. <UnitStat_Accuracy>75</UnitStat_Accuracy>
  13. <UnitStat_Attack_Pierce>15</UnitStat_Attack_Pierce>
  14. <UnitStat_ChanceToCrit>3</UnitStat_ChanceToCrit>
  15. <UnitStat_CombatSpeed>10</UnitStat_CombatSpeed>
  16. <UnitStat_Defense_Blunt>12</UnitStat_Defense_Blunt>
  17. <UnitStat_Defense_Cutting>12</UnitStat_Defense_Cutting>
  18. <UnitStat_Defense_Pierce>12</UnitStat_Defense_Pierce>
  19. <UnitStat_HitPoints>100</UnitStat_HitPoints>
  20. <UnitStat_Moves>4</UnitStat_Moves>
  21. <UnitStat_WeightCapacity>100</UnitStat_WeightCapacity>
  22. </LevelMilestone>
  23. <SelectedAbilityBonusOption>Monsterous</SelectedAbilityBonusOption>
  24. <SelectedAbilityBonusOption>ImmuneToFire</SelectedAbilityBonusOption>
  25. <SelectedAbilityBonusOption>Sweep</SelectedAbilityBonusOption>
  26. <SelectedAbilityBonusOption>FireBreath</SelectedAbilityBonusOption>
  27. <SelectedAbilityBonusOption>Bash</SelectedAbilityBonusOption>
  28. <SelectedAbilityBonusOption>VulnerableToCold</SelectedAbilityBonusOption>
  29. <Prereq>
  30. <Type>AbilityBonusOption</Type>
  31. <Attribute>ShaikanDragonTechAbility</Attribute>
  32. <Target>Player</Target>
  33. </Prereq>
  34. <ProductionRequirement>
  35. <Type>Resource</Type>
  36. <Attribute>Mana</Attribute>
  37. <Value>20</Value>
  38. </ProductionRequirement>
  39. <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>
  40. <Medallions InternalName="">
  41. <All>Shaikon_Dragon2.png</All>
  42. </Medallions>
  43. <AlwaysInTileCenter>1</AlwaysInTileCenter>
  44. <AnimationPack>DragonAnimationPack</AnimationPack>
  45. <BattleAnimationBehavior>Stationary</BattleAnimationBehavior>
  46. <ClothMapScale>0.415</ClothMapScale>
  47. <Color_Skin>121,76,57,255</Color_Skin>
  48. <CutSceneDataPack>DragonUnitCutscenePack</CutSceneDataPack>
  49. <EyeTexture>gfx/eyes/male_brown_eye.png</EyeTexture>
  50. <InfoCardBackground>BG13_Volcanic</InfoCardBackground>
  51. <MaxScaleMainMap>0.40</MaxScaleMainMap>
  52. <MaxScaleTacticalMap>.60</MaxScaleTacticalMap>
  53. <ModelPath>gfx/hkb/Dragons/D_Dragon_Mesh_01.hkb</ModelPath>
  54. <ModelScale>0.9</ModelScale>
  55. <SkeletonPath>gfx/hkb/Dragons/D_Dragon_Skeleton_01.hkb</SkeletonPath>
  56. <SoundPack>SoundPack_Dragon1</SoundPack>
  57. <Texture_Skin>gfx/hkb/Dragons/D_Dragon_Texture_03.dds</Texture_Skin>
  58. </UnitType>

4,671 views 5 replies
Reply #1 Top

First problem I see is you have too many traits. Any trained unit can only have the maximum, which is default 4.

Reply #2 Top

Quoting Heavenfall, reply 1
First problem I see is you have too many traits. Any trained unit can only have the maximum, which is default 4.
End of Heavenfall's quote

 

I removed two of the dragon's traits and working now, thanks for the help.

Reply #3 Top

could you combine fire resistance, cold vulnerability, and monstrous into one trait?

Reply #4 Top

Quoting UmbralAngel, reply 3
could you combine fire resistance, cold vulnerability, and monstrous into one trait?
End of UmbralAngel's quote

 

Absolutely. You just create a new trait and copy/paste the gamemodifiers from the traits in question.