Dragon Champion Help!

Hey all. 

I'm trying and going insane trying to make a Champion dragon. 

 

This is what I have so far. 

<UnitType InternalName="Dragon_draco">
<CreatureType>Champion</CreatureType>
<GameModifier>
<ModType>Resource</ModType>
<Attribute>Unrest</Attribute>
<Value>-5</Value>
<Provides>-5% Unrest in the city this unit is in</Provides>
</GameModifier>
<ClothMapScale>.8</ClothMapScale>
<!-- Champion_Draco-->
<DisplayName>Champion</DisplayName>
<Backstory>Draco is a Dragon.</Backstory>
<HasEssence>true</HasEssence>
<ModelPath>gfx/hkb/Dragons/D_Dragon_Mesh_01.hkb</ModelPath>
<SkeletonPath>gfx/hkb/Dragons/D_Dragon_Skeleton_01.hkb</SkeletonPath>
<EyeTexture>gfx/eyes/male_brown_eye.png</EyeTexture>
<AnimationPack>DragonAnimationPack</AnimationPack>
<ShowAsSingleUnit>false</ShowAsSingleUnit>
<CutSceneDataPack>DragonUnitCutscenePack</CutSceneDataPack>
<ModelScale>.8</ModelScale>
<TacticalModelScale>1.2000</TacticalModelScale>
<EquipmentScale>1.0000</EquipmentScale>
<ClothMapScale>.8000</ClothMapScale>
<BattleAnimationBehavior>Stationary</BattleAnimationBehavior>
<MovementType>land</MovementType>
<BobbingFrequency>0.0000</BobbingFrequency>
<ClothPoseIndex>1</ClothPoseIndex>
<InfoCardBackground>BG4_Dark</InfoCardBackground>
<InfoCardBackgroundFlipped>1</InfoCardBackgroundFlipped>
<CanBeDesigned>0</CanBeDesigned>
<!-- -->
<Allegiance>Empire</Allegiance>
<Unique>1</Unique>
<IsNPC>1</IsNPC>
<NPCSpawnLikelihood>100</NPCSpawnLikelihood>
<IsChampion>1</IsChampion>
<Gender>Male</Gender>
<SpawnRating>1</SpawnRating>

<Quote>Draco, I am</Quote>
<NPCRecruitmentText>%d and I will join your hunt!</NPCRecruitmentText>
<SelectedAbilityBonusOption>Monsterous</SelectedAbilityBonusOption>
<SelectedAbilityBonusOption>ImmuneToFire</SelectedAbilityBonusOption>
<SelectedAbilityBonusOption>Sweep</SelectedAbilityBonusOption>
<SelectedAbilityBonusOption>FireBreath</SelectedAbilityBonusOption>
<SelectedAbilityBonusOption>IceBreath</SelectedAbilityBonusOption>
<SelectedAbilityBonusOption>Bash</SelectedAbilityBonusOption>
<SelectedAbilityBonusOption>Maul</SelectedAbilityBonusOption>
<SelectedAbilityBonusOption>SovereignBondAbility_Unit</SelectedAbilityBonusOption>
<SelectedAbilityBonusOption>Trigger_Fear</SelectedAbilityBonusOption>
<SelectedAbilityBonusOption>SpellResistance_Level</SelectedAbilityBonusOption>
<SelectedAbilityBonusOption>SpellResistance2_Level</SelectedAbilityBonusOption>
<!-- -->
<Medallions InternalName="">
<All>Dragon2.png</All>
</Medallions>
<WageOverride>0</WageOverride>
<LevelMilestone InternalName="L1">
<Level>1</Level>
<UnitStat_Accuracy>75</UnitStat_Accuracy>
<UnitStat_Attack_Pierce>5</UnitStat_Attack_Pierce>
<UnitStat_ChanceToCrit>1</UnitStat_ChanceToCrit>
<UnitStat_CombatSpeed>20</UnitStat_CombatSpeed>
<UnitStat_Defense_Pierce>2</UnitStat_Defense_Pierce>
<UnitStat_HitPoints>20</UnitStat_HitPoints>
<UnitStat_Moves>5</UnitStat_Moves>
</LevelMilestone>
<AutoCreateEquipment>Dagger</AutoCreateEquipment>
<Color_Skin>61,82,159,255</Color_Skin>
<Color_Hair>147,102,67,255</Color_Hair>
<Color_Clothing1>120,25,20,255</Color_Clothing1>
<Color_Clothing2>78,60,55,255</Color_Clothing2>
<Color_Metal>255,255,255,255</Color_Metal>
<Texture_Skin>gfx/hkb/Dragons/D_Dragon_Texture_01.dds</Texture_Skin>
<EyeTexture>gfx/eyes/male_brown_eye.png</EyeTexture>
<UnitModelType>Goblin</UnitModelType>
<NPCFreeRecruit>0</NPCFreeRecruit>
<RaceType>Race_Type_Drota</RaceType>
<OnHitParticleName>Bloody_OnHit</OnHitParticleName>
</UnitType>

 

What am I missing?

 

Note: I can get him into the game but he doesn't come up as a Champion with this:

<AbilityBonuses>
<AbilityBonus InternalName="Champion_History">
<AbilityBonusOption InternalName="Dragonfriend">
<DisplayName>Dragon's Friend</DisplayName>
<Description>Player starts a baby dragon</Description>
<Icon>Ability_Thief_Icon.png</Icon>
<GameModifier>
<ModType>Map</ModType>
<Attribute>SummonUnit</Attribute>
<StrVal>Quincey</StrVal>
<Value>1</Value>
<Provides>+1 starting Dragon</Provides>
<UnitClass>Dragon_draco</UnitClass>
</GameModifier>
<Cost>4</Cost>
<Type>Aggressive</Type>
<AIData AIPersonality="AI_General">
<AIPriority>5</AIPriority>
</AIData>
</AbilityBonusOption>
</AbilityBonus>
</AbilityBonuses>

 

Thanks in advance

 

5,845 views 5 replies
Reply #1 Top

How are you spawning him?

EDit: Ah, it was in the second part.

 

Okay, so you cannot spawn a champion using that type of modifier. What you need to do is create an alternative way to spawn this champion when the game has started. The most AI-functional way, and the easiest way to implement, is to create a strategic spell that summons him. You (or the AI) would then cast the spell the instant the game starts.

This is an example of a modifier that creates a champion unittype from inside a spelldef:

  <GameModifier InternalName="Reward2">
    <ModType>Unit</ModType>
    <Attribute>UnitJoinArmy</Attribute>
    <StrVal>internalnameofyourunittypehere</StrVal>
    <UnitClass>Champion</UnitClass>
  </GameModifier>

 

Reply #2 Top

Thank you. 

 

I summon him so easily now. 

 

Though, how do I make the ai use the spell? and not make an army of them?

 

Thanks again

Reply #3 Top

If you can, make a mod out of him ;)

 

How about a sovereign option?

Reply #4 Top

Quoting DFSMseeker, reply 2

Thank you. 

 

I summon him so easily now. 

 

Though, how do I make the ai use the spell? and not make an army of them?

 

Thanks again
End of DFSMseeker's quote

I would suggest that you give the spell

<Cooldown>-1</Cooldown>

meaning infinite cooldown, and

<CasterMustBeSov>1</CasterMustBeSov>

so that only the sovereign can cast it.

 

To make the AI cast it, it should be enough that you give it

       <AIData AIPersonality="AI_General">
            <AIPriority>700000</AIPriority>
        </AIData>

Reply #5 Top

Quoting Heavenfall, reply 4


I would suggest that you give the spell

<Cooldown>-1</Cooldown>

meaning infinite cooldown, and

<CasterMustBeSov>1</CasterMustBeSov>

so that only the sovereign can cast it.

 

To make the AI cast it, it should be enough that you give it

       <AIData AIPersonality="AI_General">
            <AIPriority>700000</AIPriority>
        </AIData>
End of Heavenfall's quote

 

Thanks again. 

Quoting jutetrea, reply 3

If you can, make a mod out of him

 

How about a sovereign option?
End of jutetrea's quote

 

I'm looking into this right now. I think all I have to do is make a dragon race type, with the dragon models, and images.