The 3rd Age

The Peloponnesian Wars

The Peloponnesian Wars

The Peloponnesian Wars (or TPW) aims to bring BFME2 into Greece, 5th Century BCE.

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

How to set up AI for a new Faction

No Avatar

Elrond99

Category: Code
Level: Intermediate
Created: Sunday August 31, 2008 - 7:08
Updated: Monday September 1, 2008 - 12:32
Views: 9825
Summary: Tutorial that takes you through all necessary steps to create a new BFME2/ROTWK AI

Rating

Staff says

3.7

Members say

4.2

Average

4.0/5.0

8 votes

Page 1 2 3 4 5
I´ll just explain the things I´ve changed

Ressource producing building
              
Code

AIEconomyAssigment RohanFarm
TemplateName = RohanFarmNew
End


              
Code

AIEconomyAssigment RohanFarm


You can put any name in here, but it has to be unique, something like the following one would also be correct, but it´s better to use a name that makes sense

              
Code

AIEconomyAssigment lolroflxD


              
Code

TemplateName = RohanFarmNew


You have to fill in the ObjectName of your Farm here


WallHub, exactly the same as the Farm
              
Code

AIWallNodeAssignment RohanWallHub
TemplateName = RohanWallHubSmall
End


Units

              
Code

ArmyMemberDefinition RohanPeasantNewHorde_Member
Unit = RohanPeasantNewHorde ;infantry
PercentageOfArmyPhase1 = 40.0
PercentageOfArmyPhase2 = 40.0
PercentageOfArmyPhase3 = 30.0
End


              
Code

ArmyMemberDefinition RohanPeasantNewHorde_Member


Same as above, you can put any name in here, it only has to be unique, but it´s better to use a name that makes sense

              
Code

Unit = RohanPeasantNewHorde ;infantry


You have to fill in the ObjectName of your Horde here

              
Code

PercentageOfArmyPhase1 = 40.0
PercentageOfArmyPhase2 = 40.0
PercentageOfArmyPhase3 = 30.0


The higher the value is, the more Units of this kind will be built by the AI, there are three different values for early game, mid game and late game


Heroes

              
Code

HeroBuildOrder = ElvenGaladriel_RingHero RohanMerry RohanEowyn RohanEomer RohanTheoden


Any Hero the AI should use has to be added here, the AI will try to Build Galadriel first, then Merry, then Eowyn, then Eomer and at last Theoden, if you want Theoden to be the first use this code

              
Code

HeroBuildOrder = ElvenGaladriel_RingHero RohanTheoden RohanMerry RohanEowyn RohanEomer


Note: The Ringhero always has to be the first Hero


Offensive Buildings

Add here any buildings like Statues, Towers, Wells and so on
              
Code

OffensiveBuildings = RohanBattleTowerNew GondorWell




Thank you for reading so far, I hope I was able to help you creating your own AI with this tutorial

Have fun playing against your own AI

Elrond99

PS: If you are interested in more advanced AI Modding, read Sûlherokhh´s Tutorial

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
21:08:52