Auto-translated
Everything can be done. :)
To do this, you will need to delve into the AI's characteristics. You can find them in the AI section of the DefaultStats.xdb file, which is located in the \GameMechanics\RPGStats directory (data.pak archive). Open the file in Notepad and find the Combat subsection, which specifies the ratio of forces between opposing sides during battles. Here, there is a parameter called EnemyDamageCoef – the damage coefficient inflicted by computer-controlled troops (in percent). Enter a value in the range of 110-120 (or even higher – it is initially set to 100). As a result, the computer's army will become stronger.
Assign a value of 50-60 to the EnemyTroopsHealthCoef attribute (the health coefficient of enemy troops), and 1.5 to the EnemyWarMachinesHealthCoef characteristic (the durability coefficient of the enemy's war machines).
Go to the Adventure section. It describes the computer's actions on the game map and is divided into three small blocks: DifficultyNormal (relates to the low difficulty level), DifficultyHard (medium difficulty), and DifficultyHeroic (high difficulty). If you are an experienced player, you are only interested in the last block.
The first parameter you need to edit is AttackHumanAggressivityCoef, which determines the aggressiveness of computer-controlled players in attack. Note that the value of this parameter is equal to one on all three difficulty levels. Increase the value to 1.2-1.5, and the computer will attack you at the first opportunity.
The next attribute is AttackComputerAggressivityCoef, which sets the aggressiveness of one race controlled by the computer towards another. If you want your computer opponents to fight each other, set the value to 1-1.5. But keep in mind that such a change does not always make the AI a more serious opponent. Most often, the opponents begin infighting at the beginning of the round and forget about you for a while. But then one of them wins, captures castles, and it becomes extremely difficult to defeat him. In our opinion, it is better to reduce the value of this characteristic to 0.1-0.2.
In all blocks, there is a setting called CowardiceVersusHuman. It determines the computer's cowardice in fighting you. Set the value to 0. There is no place for cowards in our mini-mod!
Let's move on. ArmyPowerCoefBonusPerHeroLevel is the army power coefficient of the computer, depending on its level. On all difficulty levels, its value is the same. In the DifficultyHard and DifficultyHeroic blocks, you should set the values for this attribute to 0.2 and 0.3, respectively. In this case, on medium and high difficulty, the dependence of the strength of the computer player on its level will significantly increase.
The AvengerVersusHumanCoef and AvengerVersusComputerCoef parameters set the computer's vengefulness towards you and towards the computer opponent, respectively. In the first case, the value of the parameter is the same for all difficulty levels – 1. In the DifficultyHard and DifficultyHeroic sections, it is recommended to set the values to 1.25 and 1.5. The computer will become very vindictive.
The HireHeroesPerTown and HireHeroesGlobalLimit settings are also of interest. The first sets the maximum number of heroes from one city that the computer can control simultaneously. The second is the maximum total number of heroes under the control of the AI. If you want the enemies to fill the entire map, set a larger value for the HireHeroesPerTown attribute. But keep in mind that in this case, you are unlikely to find truly strong opponents (all heroes will be very weak), and the game will slow down significantly.
As for the HireHeroesGlobalLimit parameter, it is better to reduce its value to 12-15. The fact is that the AI is not able to manage a large number of heroes properly. It raises many weak opponents.
By the way, if you are not a professional player, but are just starting to learn the world of HoMM 5, you can perform the opposite operations – the game will become much easier.
The article was taken from "Igrovania" (110). EBMP.