Alright I am looking at modifying some base game values and statistics and I am trying to make sure I am starting off right. Just looking for someone to check out my code to see if it appears to look right. I am using some legacy commands that are left over from E:WoM that have not been removed from the system.
Code: xml
- <UnitStatType InternalName="UnitStat_Intelligence_Mod">
- <DisplayName>Intelligence</DisplayName>
- <DisplayNameShort>INT</DisplayNameShort>
- <Description>Increases the experience a unit earns, its ability to resist spells and lowers the chance its spells will be resisted.</Description>
- <Icon>Stat_Intelligence_Icon.png</Icon>
- <Hidden>0</Hidden>
- <BaseSovereignAttribute>1</BaseSovereignAttribute>
- <DefaultValue>10.0</DefaultValue>
- <UnitStatGrouping>AbilityStat</UnitStatGrouping>
- <UnitStatGrouping>UnitDetailsAttribute</UnitStatGrouping>
- </UnitStatType>
To be used with the following,
Code: xml
- <AbilityBonus InternalName="StatsAbility">
- <AbilityBonusOption InternalName="Stats">
- <DisplayName>Stats</DisplayName>
- <Icon>Ability_Spirit_Icon</Icon>
- <GameModifier>
- <ModType>Unit</ModType>
- <Attribute>AdjustUnitStat</Attribute>
- <StrVal>UnitStat_SpellDamage</StrVal>
- <Duration>-1</Duration>
- <Calculate InternalName="IntToBeUsed" ValueOwner="CastingUnit">
- <Expression><![CDATA[[UnitStat_Intelligence]-10]]></Expression>
- </Calculate>
- <Calculate InternalName="IntBonus">
- <Expression><![CDATA[[IntToBeUsed]/2]]></Expression>
- </Calculate>
- <Calculate InternalName="Value">
- <Expression><![CDATA[[IntBonus]]]></Expression>
- </Calculate>
- </GameModifier>
- <HideWhenUpgraded>0</HideWhenUpgraded>
- <Type>Aggressive</Type>
- <AIData AIPersonality="AI_General">
- <AIPriority>5</AIPriority>
- </AIData>
- </AbilityBonusOption>
- </AbilityBonus>
The idea is to add this ability to each race and possibly some monster units. IT will entail a new base stat system not using the current stat modifiers that Stardock has set within the Elemental Defs. This is for a mod eventually but this is not simple project this is basically rebuilding some of the game mechanics from the ground up in a slightly different fashion. I will attempt to keep the main gameplay in tact but I am going a different way. Anywho can someone look this over before I dive to deep only to find that this doesn't work.