Is there a breakdown for creating items

What I am looking for is a breakdown for the settings. The minimums and maximums and what they mean. To show what I mean I'm going to put a copy of Athican Leather Armor with some questions in there.

    <GameItemType InternalName="LeatherArmor_Altar">
        <DisplayName>Athican Leather Armor</DisplayName>
        <Description>A cuirass made from molded leather. It will provide the wearer with minor protection from all types of damage.</Description>
        <CanBeEquipped>1</CanBeEquipped>   I believe this is a boolean 0 or 1 value
        <ShopValue>-1</ShopValue>     This makes no sense to me as I am not paid to take them.
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>  The descriptions says ALL types of damage but only pierce is listed, did the description lie, or does pierce include slash and blunt protection?
            <Value>7</Value> So 1 would be a minimum here but what about a max, is there a point where any higher looses meaning?
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistFire</StrVal> Is there a list of all the different resist types?
            <Value>25</Value>  Again 1 would be the minimum, would 100 mean you are completely protected from fire?
            <Provides>+25% Fire Resistance</Provides>
        </GameModifier>
        <IsAvailableForSovereignCustomization>0</IsAvailableForSovereignCustomization>
        <IsAvailableForUnitDesign>0</IsAvailableForUnitDesign>
        <RarityDisplay>Common</RarityDisplay> Is there something more that needs to be in this section for it to be looted in random treasures.
        <Prereq>
            <Type>AbilityBonusOption</Type> Is there a list of possible Prereqs?
            <Attribute>Wanderlust</Attribute> Is there a list of what race has what abilities? Is it possible to limit to Kingdom or Empire?
            <Target>Player</Target>
        </Prereq>
        <Prereq>
            <Type>Tech</Type>
            <Attribute>Leatherworking</Attribute>
        </Prereq>
            <AIData AIPersonality="AI_General">  Are there different AI settings that determine if an AI will or won't use an item?
            </AIData>
        <ArtDef>Art_LeatherBreastpiece_Altar</ArtDef>
    </GameItemType>

I'm know this doesn't cover all the different options, but I believe this gives an idea of what I'm looking to learn. If there is a reference out there that explains this please point me to it.

31,460 views 2 replies
Reply #1 Top

These race abilities I have found, I've only looked for kingdom:

Altar - Wanderlust

Capitar - Legacy of Serrane

Gilden - Master Smiths

Pariden - Enchanters

Tarth - Rebels

 

Reply #2 Top

May be too late, but I can't sleep so here we go.

  • <CanBeEquipped> is as you stated
  • <ShopValue>-1</ShopValue> is probably read by the game as "cannot be sold" or something like that rather than literal negative value. If it can be sold (I don't remember) then it probably is just deleting it and giving you nothing back.
  • <StrVal>UnitStat_Defense_Pierce</StrVal>: for all values here you want to look for <UnitStatType> which are in the CoreUnitStats.xml (that's probably the spelling, but I don't have it in front of me). I believe that resists are percentages, so yes that'd be immune at 100 value.
  • <RarityDisplay>Common</RarityDisplay> this actually just controls the tooltip box color when you hover over the item in an inventory. For what you ask about you want to look for <Likelihood> tags as that controls how often things come up in random loot AFAIK. For an item like this that doesn't have that tag, that's probably because it comes from a tech or other player level unlock (check lower for <Prereq> tags) or directly from a quest reward.
  • Is there a list of possible Prereqs? Not a comprehensive list AFAIK, but we have examples for: AbilityBonusOption (requires that ability in order to be equipped or used), RestrictAbiliyBonusOption (prevents equipment or usage if the unit or faction has that ability), minimum level (check an item that had a level requirement for how to do that), tech, and UnitStat requirements (See the PathofMage or PathofDefender required items for examples). There's also...
  • You can see the abilities of each faction in the RaceConfig.xml file (I think that's the one) in the <SelectedAbilityBonusOption> tags for each. You can then check the CoreAbilities.xml for those ability names to see what they do. And yes you can restrict by faction. Check the Life1 or Death1 abilities for an example of this.
  • <AIData AIPersonality="AI_General"> This determines the AI profile that will prioritize this item. There's a lot of AI xml files near the top of the ../data/English directory, and I don't know where that profile is stored or how it's used.

There's not a definitive reference that I'm aware of, most of what I know I've gleened from the existing files as well as other mods. I'm toying with the idea of writing a guide on Steam for exactly this reason. One post you should definitely reference here though is this one: https://forums.elementalgame.com/434780/page/1

It'll save you a ton of hassles when trying to achieve specific things that certain objects don't support being modded.