How to add custom champions to random map?

Is there any way to add your own custom champions to be seeded on the random map generator to be found or recruited?

I have been searching the forums and have not heard anyone speak of this.

A how-to would be appreciated if someone has the time to explain, if it is possible.


 

13,065 views 10 replies
Reply #1 Top

These are the values that should be in your unittype to make sure the champion gets spawned.

    <Allegiance>Kingdom</Allegiance>
    <Unique>1</Unique>
    <IsNPC>1</IsNPC>
    <NPCSpawnLikelihood>200</NPCSpawnLikelihood>
    <IsChampion>1</IsChampion>
    <SpawnRating>1</SpawnRating>

Allegiance - Kingdom or Empire

Unique - can it spawn once or more than once?

Likelihood - the weight (chance) for this unit to appear instead of others.

IsChampion - puts it in the champion's list to be seeded

Spawnrating - goes from 1 to 5, 1 being champions you can find just next to your starting position, 5 being strongest. Spawnrating also sets what level they are (1, 3, 5, 7, 9 respectively). For that reason it's a good idea to base your champion off the ones found in CoreUnits.xml so that they are properly balanced with traits and equipment.

 

The core game has 10 champions for each allegiance for each spawnrating, so keep that in mind as you assign likelihood.

Reply #2 Top


So.. I take it the game itself determines traits and level as opposed to putting it in the file?

 

I was thinking some interesting builds for my little sandbox for levels 1, 3, 5, and 9.

Reply #3 Top

BTW, basically what I want is my own personal "Champion Pack" based off some of the more memorable characters in various DnD games I have played over the decades. It would be cool to see some of these old faces turn up in game. Other games in this genre like AoW have mods like this that add more variety and replay because you get many more varied champions (heroes).

Nothing too overpowerd, but the ability to determine level and eqiptment (if any) would be nice.

Reply #4 Top

You can determine traits and equipment for those champions.

    <UnitType InternalName="Champion_Donya">
        <DisplayName>Champion</DisplayName>
        <UnitDisplayName>Donya</UnitDisplayName>
        <Class>Adventurer</Class>
        <Allegiance>Empire</Allegiance>
        <CreatureType>Champion</CreatureType>
        <RaceType>Race_Type_Krax</RaceType>
        <Unique>1</Unique>
        <CanBeDesigned>0</CanBeDesigned>
        <Gender>Female</Gender>
        <WageOverride>1</WageOverride>
        <IsNPC>1</IsNPC>
        <IsChampion>1</IsChampion>
        <IsSovereign>0</IsSovereign>
        <SpawnRating>1</SpawnRating>
        <NPCSpawnLikelihood>100</NPCSpawnLikelihood>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Unrest</Attribute>
            <Value>-5</Value>
            <Provides>-5% Unrest in the city this unit is in</Provides>
        </GameModifier>
        <LevelMilestone InternalName="L1">
            <Level>1</Level>
            <UnitStat_Accuracy>75</UnitStat_Accuracy>
            <UnitStat_CombatSpeed>22</UnitStat_CombatSpeed>
            <UnitStat_ChanceToCrit>1</UnitStat_ChanceToCrit>
            <UnitStat_HitPoints>15</UnitStat_HitPoints>
        </LevelMilestone>
        <SelectedAbilityBonusOption>Blood_Krax</SelectedAbilityBonusOption>
        <SelectedAbilityBonusOption>Death1</SelectedAbilityBonusOption>
        <SelectedAbilityBonusOption>VitalStrike1</SelectedAbilityBonusOption>
        <AutoCreateEquipment>Dagger</AutoCreateEquipment>
        <Equipment>K_Female_Head_03</Equipment>
        <Equipment>TightBoots_Dark</Equipment>
        <Equipment>Kraxis_Dress2_Light_Flipped</Equipment>
        <Equipment>Spouse_FemaleBasicHair</Equipment>
        <Treasure>
            <Liklihood>100</Liklihood>
            <GameModifier>
                <ModType>Resource</ModType>
                <Attribute>Gold</Attribute>
                <Value>10</Value>
            </GameModifier>
        </Treasure>
        <Quote>The world is a grave and we are its victims.</Quote>
        <NPCRecruitmentText>I do not deny it, friend. I am in need of money. %d gildar buys you my service, and my thanks, and my loyalty.</NPCRecruitmentText>
        <Backstory>I do not seek sympathy; I seek gildar. I seek food. I seek purpose in my life once more; I seek to be of service. But since you ask... I will tell you my tale. It is a familiar enough story, I suppose. My husband... he was a good man, but weak. He drank, he gambled, he lost our money... a merchant came to our house, we could not pay, and so this merchant asked our daughter in exchange for forgiveness of our debt. I killed him, and then... I had to leave, of course. But before I did... I killed my husband as well, because he would have done the same thing again. </Backstory>
        <AnimationPack>FemaleSovereignAnimationPack</AnimationPack>
        <BattleAnimationBehavior>Melee</BattleAnimationBehavior>
        <ClothMapScale>1.6</ClothMapScale>
        <ClothPoseIndex>0</ClothPoseIndex>
        <Color_Clothing1>150,100,50,255</Color_Clothing1>
        <Color_Clothing2>40,35,30,255</Color_Clothing2>
        <Color_Hair>47,37,52,255</Color_Hair>
        <Color_Metal>100,100,110,255</Color_Metal>
        <Color_Skin>208,163,128,255</Color_Skin>
        <CutSceneDataPack>DefaultUnitCutscenePack</CutSceneDataPack>
        <EyeTexture>gfx\eyes\blinks\eyeblink_f3_grn.png</EyeTexture>
        <InfoCardBackground>BG_EmpireHills</InfoCardBackground>
        <ModelPath>Gfx\HKB\Units\K_Female_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_Female</SoundPack>
        <TacticalModelScale>1.5</TacticalModelScale>
        <Texture_Eyes>gfx\eyes\blinks\eyeblink_f3_grn.png</Texture_Eyes>
        <Texture_Skin>K_Female_Fallen_Texture_01.png</Texture_Skin>
        <UnitModelType>EmpireFemale</UnitModelType>
    </UnitType>

+1 Loading…
Reply #5 Top


Oh.. thanks. I think I am going to have a blast with that tonight.

Reply #6 Top

hmmm... someone should create a champion creation wizard, or at least something so that you can see what your champion will look like before you boot up the game.

Reply #7 Top

I use the sovereign creation tool for that.

Reply #8 Top

For spawn likelihood, does a bigger number make the champion more likely to appear, or does a smaller one? More to the point what would I need to set it to for the champion to appear all the time?

Reply #9 Top

Larger = more likely. Although you'd need to remove other champions to have a 100% chance of getting a particular champion, if you set it to some 999 999 999 you'll most likely get it in every game.

Reply #10 Top

This should be included within workshop, it should as easy as it is to create a sovereign.