does this look okay?

* I want it to be cutting defense but don't know how and I don't understand attritube dodge 2 code park either or what to do with perktreeposx or y *
<Container>
 <AbilityBonus InternalName="DiamondSkinAbility">
        <AbilityBonusType>Unit_Design</AbilityBonusType>
        <AbilityBonusOption InternalName="DiamondSkin">
            <DisplayName>Diamond Skin</DisplayName>
            <Description>+1 Defense per Level</Description>
            <Icon>Ability_Attunement_Icon.png</Icon>
            <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>AdjustUnitStat</Attribute>
                <StrVal>UnitStat_Defense_Pierce</StrVal>
                <Value>1</Value>
                <PerLevel>1</PerLevel>
                <Provides>+1 Defense per Level</Provides>
            </GameModifier>
            <AdditionalTrainingTurns>12</AdditionalTrainingTurns>
            <Type>Defensive</Type>
            <AIData AIPersonality="AI_General">
                <AIPriority>5</AIPriority>
            </AIData>
        </AbilityBonusOption>
    </AbilityBonus>
 <AbilityBonus InternalName="DiamondSkinAbility_Level">
        <AbilityBonusType>Unit_Level</AbilityBonusType>
        <AbilityBonusOption InternalName="DiamondSkin_Level">
            <DisplayName>Diamond Skin</DisplayName>
            <Description>+1 Defense per Level</Description>
            <Icon>Ability_Attunement_Icon.png</Icon>
            <PerkTreePosX>2</PerkTreePosX>
            <PerkTreePosY>3</PerkTreePosY>
            <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>AdjustUnitStat</Attribute>
                <StrVal>UnitStat_Defense_Pierce</StrVal>
                <Value>1</Value>
                <PerLevel>1</PerLevel>
                <Provides>+1 Defense per Level</Provides>
            </GameModifier>
            <Type>Defensive</Type>
            <Prereq>
                <Type>AbilityBonusOption</Type>
                <Target>Unit</Target>
                <Attribute>Dodge2</Attribute>
            </Prereq>
            <AIData AIPersonality="AI_General">
                <AIPriority>5</AIPriority>
            </AIData>
        </AbilityBonusOption>
    </AbilityBonus>
</Container>

15,424 views 4 replies
Reply #1 Top

Can you give a little more context on what you want?

Reply #2 Top

<PerkTreePosX>2</PerkTreePosX>
<PerkTreePosY>3</PerkTreePosY> " I don't know what this does for the trait? "

 

<StrVal>UnitStat_Defense_Pierce</StrVal> " Is pierce the only defense? or can i make it cutting? "


<Prereq>
<Type>AbilityBonusOption</Type>    
<Target>Unit</Target>
<Attribute>Dodge2</Attribute>            " Attribute Dodge2 not sure what this is or where i can find a list of attributes. "

" I'm planning on making a few extra unit traits to the game, but only a few. "


Reply #3 Top

Quoting amanadark, reply 2

<PerkTreePosX>2</PerkTreePosX>
<PerkTreePosY>3</PerkTreePosY> " I don't know what this does for the trait? "

When an <abilitybonus> has the tag <AbilityBonusType>Unit_Level</AbilityBonusType>, that means it is an ability to be included in a champion path trait tree. The X and y position are a zero-indexed (starts at 0) coordinate location on the tree.

 

Quoting amanadark, reply 2

<StrVal>UnitStat_Defense_Pierce</StrVal> " Is pierce the only defense? or can i make it cutting? "

For LH, physical damage is Defense_pierce and Attack_pierce. Don't try to mess with that until you have more modding experience. It's a carry-over from Fallen Enchantress and you'd have to adjust all the weapons and armor back to the way it was (or copy old files from FE and modify them).


Quoting amanadark, reply 2

<Prereq>
<Type>AbilityBonusOption</Type>    
<Target>Unit</Target>
<Attribute>Dodge2</Attribute>           " Attribute Dodge2 not sure what this is or where i can find a list of attributes. "

Dodge2 is inside a <PreReq> parent tag, meaning you need the Dodge2 ability from the tree before this ability (in which this is wrapped) can be selected. This tag is along with x,y coordinates are primarily how the ability tree is built (the pre-req tags incites the lines between abilities to appear).