I'll try to explain the stuff of skirmishaidata.ini which I understood so far...
BrutalDifficultyCheats TheBrutalDifficultyCheats BuildCostReduction = 15% BuildTimeReduction = 15% End
Those are the "cheats" of the brutal AI. Pretty much self explaining...
ArmyDefinition MenOfTheWestArmy
The next block is the one which holds the information for the skirmish AI of the MotW faction. As the other ones are quite similar, I will use this one as an example.
MustUseCommandPointPercentage_Phase1 = 80%;// The AI UnitBuilder tries to keep the army at at least this size MustUseCommandPointPercentage_Phase2 = 90% MustUseCommandPointPercentage_Phase3 = 100%
Note that this is already the modded version. The AI divides the game into three phases (rush, mid game, late game, see below). These values tell it how many command points its army shall use.
EconomyBuilderMinFarmsOwned = 6
This tells the AI to build a total of 6 farms at a time. One might want to increase this number...
PercentToSave_Rush = 0.5% PercentToSave_MidGame = 0.01%; Why should the AI save anything? PercentToSave_EndGame = 0.01%
This, too, is the modded version. The original AI is told to save much more of its money, one of the reasons for doing so I can imagine is to be able to quickly build lots of units when under attack... as soon as the AI has to defend its own base, it's most likely already lost. The other reason might be to be able to build heroes, but I had some games with this set to something like 5% and it just saved insane amounts of money and not build heroes earlier than normal... and then I played with the above settings once and each of the five AI opponents had his first hero before the 5-minutes mark...
PhaseDuration_Rush = 240.0;//amount of time in seconds from the beginning of a match, 4 minutes is too long PhaseDuration_MidGame = 300.0;//amount of time in seconds from end of Rush Phase
Here you got the length of the rush- and midgame-phase defined.
ChanceForUnitsToUpgrade=
One might put that up to increase the chance for units being upgraded by the AI (more about the AI and upgrades in part 2 of this tutorial)
;// ;// ARMY UNIT DEFINITIONS ;//
The following part of the ini gives the AI instruction on what units it shall build in which phase of the game. For example
ArmyMemberDefinition GondorFighterHorde_Member Unit = GondorFighterHorde;infantry PercentageOfArmyPhase1 = 80.0 PercentageOfArmyPhase2 = 20.0 PercentageOfArmyPhase3 = 20.0 End
This would tell it that in the rush-phase, the army should be made up of 80% normal soldiers, while in mid- and late-game only 20% of the army would be soldiers.
You can easily add new units here by just making a new block just like the one above and give it a different name ("ArmyMemberDefinition XY_member") and replace the unit with your new one.
Edited by ched, 01 May 2006 - 02:24 PM.