Vault Intendant

Hi,

 

I'm creating a very weak summonable champion which will have the purpose of holding your spare items. Right now this is rather crude, this is a modified Janusk. There are 2 problems though. First one, I can't lower the cost under 30 mana, second one, even if tagged as champion, he can't exchange or buy items. Perhaps I removed some important infos I thought they were not needed (like the blood?)

Spell:

 

    <SpellDef InternalName="SummonIntendant">
        <DisplayName>Call Vault Intendant</DisplayName>
        <Description>Call the Kingdom (or Empire) Vault Intendant, which is able to hold for you all your spare items.</Description>
        <Image>M_WargFamiliar_Card.png</Image>
        <IconFG>T_SummonFamiliar_Icon.png</IconFG>
        <IconColor>222,32,224</IconColor>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <AutoUnlock>1</AutoUnlock>        
        <Range>0</Range>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>-20</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>Kingdom_Intendant</UnitClass>
            <Duration>-1</Duration>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonFamiliar_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonEarthElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>

 

Champion:

    <UnitType InternalName="Kingdom_Intendant">
        <DisplayName>Champion</DisplayName>
        <UnitDisplayName>Vault Intendant</UnitDisplayName>
        <Class>Adventurer</Class>
        <Allegiance>Kingdom</Allegiance>
        <CreatureType>Champion</CreatureType>
        <RaceType>Race_Type_Altarians</RaceType>
        <Unique>1</Unique>
        <CanBeDesigned>0</CanBeDesigned>
        <Gender>Male</Gender>
        <WageOverride>0</WageOverride>
        <IsNPC>1</IsNPC>
        <IsChampion>1</IsChampion>
        <IsSovereign>0</IsSovereign>
        <LevelMilestone InternalName="L1">
            <Level>1</Level>
            <UnitStat_Accuracy>10</UnitStat_Accuracy>
            <UnitStat_CombatSpeed>10</UnitStat_CombatSpeed>
            <UnitStat_ChanceToCrit>0</UnitStat_ChanceToCrit>
            <UnitStat_HitPoints>5</UnitStat_HitPoints>
        </LevelMilestone>
        <Equipment>Peasant_Pants_ID1</Equipment>
        <Equipment>K_Male_Head_03</Equipment>
        <Equipment>Wizard_Beard</Equipment>
        <Equipment>Noble_Cloak_ID2</Equipment>
        <Equipment>Sovereign_Short_Hair_04</Equipment>        
        <Quote>I'll keep watch on your war chest.</Quote>
        <NPCRecruitmentText>I'll keep watch on your war chest, go safely.</NPCRecruitmentText>
        <Backstory>I'll keep watch on your war chest, go safely.</Backstory>
        <AnimationPack>MaleSovereignAnimationPack</AnimationPack>
        <BattleAnimationBehavior>Melee</BattleAnimationBehavior>
        <ClothMapScale>1.6</ClothMapScale>
        <ClothPoseIndex>15</ClothPoseIndex>
        <Color_Clothing1>120,25,20,255</Color_Clothing1>
        <Color_Clothing2>78,60,55,255</Color_Clothing2>
        <Color_Hair>102,44,24,255</Color_Hair>
        <Color_Metal>145,145,145,255</Color_Metal>
        <Color_Skin>229,165,99,255</Color_Skin>
        <CutSceneDataPack>DefaultUnitCutscenePack</CutSceneDataPack>
        <EyeTexture>gfx\eyes\blinks\eyeblink_m2_grayblue.png</EyeTexture>
        <InfoCardBackground>BG_KingdomRugged</InfoCardBackground>
        <ModelPath>Gfx\HKB\Units\K_Male_Mesh_01.hkb</ModelPath>
        <ModelScale>1</ModelScale>
        <MovingSFX>TEMP_KnightMarching1</MovingSFX>
        <OnHitParticleName>Bloody_OnHit</OnHitParticleName>
        <SkeletonPath>Gfx\HKB\Units\K_Male_Skeleton_01.hkb</SkeletonPath>
        <SoundPack>SoundPack_Generic_Male</SoundPack>
        <TacticalModelScale>1.5</TacticalModelScale>
        <Texture_Eyes>gfx\eyes\blinks\eyeblink_m2_grayblue.png</Texture_Eyes>
        <Texture_Skin>K_Male_beard_Texture_01.png</Texture_Skin>
        <UnitModelType>KingdomMale</UnitModelType>
    </UnitType>   

2,806 views 2 replies
Reply #1 Top

Use this to summon champs

      <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>UnitJoinArmy</Attribute>
                <StrVal>Championinternalname</StrVal>
                <UnitClass>Champion</UnitClass>
    </GameModifier>

for the mana cost, make sure you have no backup files of the XML or anything like that. It should not be a problem to put it below 20 mana.

Reply #2 Top

Thank you much.

 

edit: all fixed, except I can summon him several time at once. Why he is not unique?

I added cooldown 25 to mitigate that, stil...