Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 5 - Modders Workshop > Thread: Heroes AI behaviour in defaultstats.xdb
Thread: Heroes AI behaviour in defaultstats.xdb
lokiseto
lokiseto


Hired Hero
posted October 18, 2020 12:55 PM
Edited by lokiseto at 12:59, 18 Oct 2020.

Heroes AI behaviour in defaultstats.xdb

Since the last upgrade, the AI behaviour during fights changed in our opinion but the problem of unguarded towns remains.

Here is a link to an old defaultstats.xdb with the relevant part of AI behaviour pasted down below.

[url=https://drive.google.com/file/d/12NWG9d0KgFo3XSgZa9KJ15JDGlfftfPr/view?usp=sharing]defaultstats[/url]

Here is a shortened version of it,
Quote:
<AI>
<Combat>
<DifficultyEasy>
<MaxSpellLevelToCast>5</MaxSpellLevelToCast>
<CenterAreaSpellsOnCreatureOnly>false</CenterAreaSpellsOnCreatureOnly>
<UseDefendShootersMoves>true</UseDefendShootersMoves>
<UseBlockEnemyMoves>true</UseBlockEnemyMoves>
<ConsiderOnlyShortestPathToEnemy>false</ConsiderOnlyShortestPathToEnemy>
</DifficultyEasy>
<DifficultyNormal>
<MaxSpellLevelToCast>5</MaxSpellLevelToCast>
<CenterAreaSpellsOnCreatureOnly>false</CenterAreaSpellsOnCreatureOnly>
<UseDefendShootersMoves>true</UseDefendShootersMoves>
<UseBlockEnemyMoves>true</UseBlockEnemyMoves>
<ConsiderOnlyShortestPathToEnemy>false</ConsiderOnlyShortestPathToEnemy>
</DifficultyNormal>
<DifficultyHard>
<MaxSpellLevelToCast>5</MaxSpellLevelToCast>
<CenterAreaSpellsOnCreatureOnly>false</CenterAreaSpellsOnCreatureOnly>
<UseDefendShootersMoves>true</UseDefendShootersMoves>
<UseBlockEnemyMoves>true</UseBlockEnemyMoves>
<ConsiderOnlyShortestPathToEnemy>false</ConsiderOnlyShortestPathToEnemy>
</DifficultyHard>
<DifficultyHeroic>
<MaxSpellLevelToCast>5</MaxSpellLevelToCast>
<CenterAreaSpellsOnCreatureOnly>false</CenterAreaSpellsOnCreatureOnly>
<UseDefendShootersMoves>true</UseDefendShootersMoves>
<UseBlockEnemyMoves>true</UseBlockEnemyMoves>
<ConsiderOnlyShortestPathToEnemy>false</ConsiderOnlyShortestPathToEnemy>
</DifficultyHeroic>
<KamikazeModeTreshold>0.2</KamikazeModeTreshold>
<PowerSavingTreshold>1.8</PowerSavingTreshold>
<MaxRuneMoneyEstimate>35000</MaxRuneMoneyEstimate>
<KamikazeMode>
<EnemyDamageCoef>1000</EnemyDamageCoef>
<MyDamageCoef>1000</MyDamageCoef>
<EnemyTroopsHealthCoef>400</EnemyTroopsHealthCoef>
<MyTroopsHealthCoef>100</MyTroopsHealthCoef>
<EnemyWarMachinesHealthCoef>1</EnemyWarMachinesHealthCoef>
<MyWarMachinesHealthCoef>1</MyWarMachinesHealthCoef>
<CombatValueCompareTreshold>0</CombatValueCompareTreshold>
</KamikazeMode>
<NormalMode>
<EnemyDamageCoef>1000</EnemyDamageCoef>
<MyDamageCoef>1000</MyDamageCoef>
<EnemyTroopsHealthCoef>400</EnemyTroopsHealthCoef>
<MyTroopsHealthCoef>100</MyTroopsHealthCoef>
<EnemyWarMachinesHealthCoef>1</EnemyWarMachinesHealthCoef>
<MyWarMachinesHealthCoef>1</MyWarMachinesHealthCoef>
<CombatValueCompareTreshold>0</CombatValueCompareTreshold>
</NormalMode>
<PowerSavingMode>
<EnemyDamageCoef>1000</EnemyDamageCoef>
<MyDamageCoef>500</MyDamageCoef>
<EnemyTroopsHealthCoef>100</EnemyTroopsHealthCoef>
<MyTroopsHealthCoef>200</MyTroopsHealthCoef>
<EnemyWarMachinesHealthCoef>1</EnemyWarMachinesHealthCoef>
<MyWarMachinesHealthCoef>1</MyWarMachinesHealthCoef>
<CombatValueCompareTreshold>0</CombatValueCompareTreshold>
</PowerSavingMode>
<Autoplacement>
<EnemyLargeCreaturesMinRelativePower>0.55</EnemyLargeCreaturesMinRelativePower>
<EnemyAreaAttackMinRelativePower>0.35</EnemyAreaAttackMinRelativePower>
<OurShootersMinRelativePower>0.2</OurShootersMinRelativePower>
<OurShootersMinRelativeAdvantage>1.3</OurShootersMinRelativeAdvantage>
</Autoplacement>
</Combat>
<Adventure>
<DifficultyHeroic>
<AttackHumanAggressivityCoef>1</AttackHumanAggressivityCoef>
<AttackComputerAggressivityCoef>0.25</AttackComputerAggressivityCoef>
<CowardiceVersusHuman>0.3</CowardiceVersusHuman>
<CowardiceVersusComputer>0</CowardiceVersusComputer>
<RolesSearchNearMaxCost>700</RolesSearchNearMaxCost>
<RolesSearchFarMaxCost>32000</RolesSearchFarMaxCost>
<ArmyPowerCoefBonusPerHeroLevel>0.1</ArmyPowerCoefBonusPerHeroLevel>
<ValueOfTown>640000</ValueOfTown>
<AvengerVersusHumanCoef>1</AvengerVersusHumanCoef>
<AvengerVersusComputerCoef>0</AvengerVersusComputerCoef>
<TownBuildPeriodInDays>1</TownBuildPeriodInDays>
<CheckTownsInDanger>1</CheckTownsInDanger>
<CheckHeroesDanger>1</CheckHeroesDanger>
<ConsiderGarrisoningHeroToImportantTown>1</ConsiderGarrisoningHeroToImportantTown>
<HireHeroesBase>1</HireHeroesBase>
<HireHeroesPerTown>4</HireHeroesPerTown>
<HireHeroesGlobalLimit>17</HireHeroesGlobalLimit>
<GrailSearchOpenPartsMinimum>3</GrailSearchOpenPartsMinimum>
<GrailSearchPercentMatchNeed>60</GrailSearchPercentMatchNeed>
<ThreatsMultiplierEnemys>1</ThreatsMultiplierEnemys>
<ThreatsMultiplierNeutral>2</ThreatsMultiplierNeutral>
<ThreatsMultiplierAllys>3</ThreatsMultiplierAllys>
<ThreatsMultiplierOurs>4</ThreatsMultiplierOurs>
<ThreatsDistanceInDays>4</ThreatsDistanceInDays>
<ThreatsAccComingLimit>15000</ThreatsAccComingLimit>
<ThreatsAccComingCalmingDivisor>1.125</ThreatsAccComingCalmingDivisor>
<ThreatsAccComingCoef>0.6</ThreatsAccComingCoef>
<ThreatsTownInDangerThreshold>500000</ThreatsTownInDangerThreshold>
<ThreatsTownProtectDistanceInDays>1</ThreatsTownProtectDistanceInDays>
<StrategicCaptureDistance>30</StrategicCaptureDistance>
<TownCreatureGrowthCoef>1</TownCreatureGrowthCoef>
</DifficultyHeroic>
<SearchOldTargetMultiplier>1.5</SearchOldTargetMultiplier>
<SearchBestPositionRandomFactor>25</SearchBestPositionRandomFactor>
<SearchNearbyDistance>21</SearchNearbyDistance>
<SearchAverageTerrainCost>100</SearchAverageTerrainCost>
<SearchStrategicDistance>4</SearchStrategicDistance>
<SearchPositiveAttractorValue>1000000</SearchPositiveAttractorValue>
<SearchNegativeAttractorValue>1000000</SearchNegativeAttractorValue>
<SearchDangerEnemyMobilityMultiplier>1</SearchDangerEnemyMobilityMultiplier>
<SearchDangerEnemyMobilityBonus>300</SearchDangerEnemyMobilityBonus>
<DimDoorStartCostLimit>3000</DimDoorStartCostLimit>
<RolesSpreadCommanderMultiplier>2.7</RolesSpreadCommanderMultiplier>
<RolesSpreadCollectorMultiplier>0.5</RolesSpreadCollectorMultiplier>
<RolesSpreadSupplierMultiplier>0.25</RolesSpreadSupplierMultiplier>
<RolesSpreadFreelancerMultiplier>1</RolesSpreadFreelancerMultiplier>
<RolesCollectorFreeScanMaxMoves>5</RolesCollectorFreeScanMaxMoves>
<RolesSupplierFreeScanMaxMoves>10</RolesSupplierFreeScanMaxMoves>
<SupplyDayIncomes>2</SupplyDayIncomes>
<WeakMoneyForDeniedBuildings>0.1</WeakMoneyForDeniedBuildings>
<CreatureCoefBonusPerInitiativeOver10>0.1</CreatureCoefBonusPerInitiativeOver10>
<CreatureOverHealthCoef>0.1</CreatureOverHealthCoef>
<CreatureOverDamageCoef>0.5</CreatureOverDamageCoef>
<CreatureOverAttributesCoef>1</CreatureOverAttributesCoef>
<CreatureMAECoef_DefenceCrush>1</CreatureMAECoef_DefenceCrush>
<CreatureMAECoef_SpellReduce>1</CreatureMAECoef_SpellReduce>
<CreatureMAECoef_Movement>1</CreatureMAECoef_Movement>
<CreatureOverInitiativeCoef>0.1</CreatureOverInitiativeCoef>
<CreatureGoodLuckCoef>0.0173</CreatureGoodLuckCoef>
<CreatureBadLuckCoef>0.0122</CreatureBadLuckCoef>
<CreatureGoodMoraleCoef>0.0173</CreatureGoodMoraleCoef>
<CreatureBadMoraleCoef>0.0833</CreatureBadMoraleCoef>
<ValueOfWarMachine>250</ValueOfWarMachine>
<TownCreaturesReserveCoef>0.1</TownCreaturesReserveCoef>
<ValueOfSpellPerLevel>500</ValueOfSpellPerLevel>
<ValueOfSkillPerMastery>1000</ValueOfSkillPerMastery>
<ValueOfPerkFeat>1000</ValueOfPerkFeat>
<ValueOfAttributeAttack>300</ValueOfAttributeAttack>
<ValueOfAttributeDefence>300</ValueOfAttributeDefence>
<ValueOfAttributeSpellPower>300</ValueOfAttributeSpellPower>
<ValueOfAttributeKnowledge>300</ValueOfAttributeKnowledge>
<ValueOfManaPoint>50</ValueOfManaPoint>
<ValueOfHundredMovePoints>10</ValueOfHundredMovePoints>
<ValueOfLuckBuff>100</ValueOfLuckBuff>
<ValueOfMoraleBuff>50</ValueOfMoraleBuff>
<ValueOfMinorArtifact>3000</ValueOfMinorArtifact>
<ValueOfMajorArtifact>9000</ValueOfMajorArtifact>
<ValueOfRelicArtifact>12000</ValueOfRelicArtifact>
<ValueOfHeroLevelPow2>1000</ValueOfHeroLevelPow2>
<MovePointsMaxAllTypesSumCoef>1</MovePointsMaxAllTypesSumCoef>
<ValueOfHero>250</ValueOfHero>
<IncomeMultiplier>50</IncomeMultiplier>
<ValueOfBorderGuardKey>9000</ValueOfBorderGuardKey>
<ValueOfGrailMin>100</ValueOfGrailMin>
<ValueOfGrailByObjective>10000</ValueOfGrailByObjective>
<ValueOfGrailForInstantVictory>100000</ValueOfGrailForInstantVictory>
<ValueOfSpellSummonCreatures>10000</ValueOfSpellSummonCreatures>
<SiegeShootersCoef>2</SiegeShootersCoef>
<SiegeTowerHealthCoef>2</SiegeTowerHealthCoef>
<SiegeTowerDamageCoef>2</SiegeTowerDamageCoef>
<CollectPathBonusesMaxCost>400</CollectPathBonusesMaxCost>
<CollectPathBonusesClipValue>100</CollectPathBonusesClipValue>
<SiegeFlyerCoef>2</SiegeFlyerCoef>
<Necromancy_PreferredCreaturesToRise>
<Item>CREATURE_LICH</Item>
<Item>CREATURE_SKELETON_ARCHER</Item>
<Item>CREATURE_SKELETON</Item>
<Item>CREATURE_MANES</Item>
<Item>CREATURE_VAMPIRE</Item>
<Item>CREATURE_WIGHT</Item>
<Item>CREATURE_BONE_DRAGON</Item>
</Necromancy_PreferredCreaturesToRise>
<Necromancy_EndOfWeekStartDay>4</Necromancy_EndOfWeekStartDay>
<ValueOfHitPointsPercentBattleBonus>100</ValueOfHitPointsPercentBattleBonus>
<ValueOfInitiativeBattleBonus>500</ValueOfInitiativeBattleBonus>
<ValueOfSpeedBattleBonus>500</ValueOfSpeedBattleBonus>
<ValueOfTalismanBase>10000</ValueOfTalismanBase>
<ValueOfTalismanPerLevel>5000</ValueOfTalismanPerLevel>
</Adventure>
</AI>



According to https://www.archangelcastle.com/acforum//viewtopic.php?f=51&t=5308 and its DeepL translation, I figured out these
[url=https://docs.google.com/spreadsheets/d/1z-regoJ7Cve8nnrRrcMX8AHg5HWwGGBhTuM__-5hw9A/edit?usp=sharing]properties[/url].

Some ideas I took of the post by   [url=http://heroescommunity.com/viewthread.php3?TID=18540]MaturanTheRed[/url]

Still if someone can shed some insight into these stats it'd be great.

Btw, I found an erroneous XML entry in the file @ line 1216:
<GatingConstantProb>0.1</CriticalGatingConstantProb>
Guess this has already been solved?

For quickly viewing I recommend https://www.tutorialspoint.com/online_xml_editor.htm

Best regards and happy coding


 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
magnomagus
magnomagus


Admirable
Legendary Hero
modding wizard
posted October 18, 2020 02:52 PM

Thank you for your research and finding the unrelated text bug.

Generally speaking a lot of values in defstats, AI related or not, are not used by the game at all. also because behavior is very random and maps are so different some people might change them and notice a change ingame while in fact nothing changed.

I'm not sure you tested the bold-text suggestions in Doku HoMM5.5 remod
but I will keep this under consideration for further testing later on.



____________
MMH5.5 Downloads | MMH5.5 Translations | MMH5.5 FAQ

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0505 seconds