The 3rd Age

The Horse Lords

The Horse Lords

A mod intended to enhance The Rise of the Witch King and add a new campaign

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
Coding the AI Bases

There are some steps left which we have to do

Open skirmishaidata.ini (data\ini\default\skirmishaidata.ini)

The first thing you´ll find is the code that makes the AI use the AI Bases

Let´s add our AI Base for the new Rohan Faction
              
Code

AIBase RohanBase
    Side = Rohan
    Map = "ai base - rohan - base_01"
    GameMapToUseOn = "<ANY>"
End


Ok, let me explain the parts of the code
              
Code

    Side = Rohan

it only works for Rohan

              
Code

    Map = "ai base - rohan - base_01"

the name of our AI Base - never use capital letters, unless you Hex-edited your AI Base

              
Code

    GameMapToUseOn = "<ANY>"

Works on every map

AI Bases for special maps

Some maps have special AI Bases, they look like this

              
Code

AIBase AngmarBase_Grey_Havens
    Side = Angmar
    Map = "AI BASE - ANGMAR - Grey Havens"
    GameMapToUseOn = "map wor grey havens.map"
    PlayerPositions = 1
    AllowsArbirtaryRotation = No
End


              
Code

    GameMapToUseOn = "map wor grey havens.map"

AI Base is made only for Grey Havens map

              
Code

    PlayerPositions = 1

Only Player 1 may use it

              
Code

    AllowsArbirtaryRotation = No

The AI base may not be rotated

The porter

Without this code the porter won´t do anything

              
Code

AIDozerAssignment RohanDefaultDozer
    Side = Rohan
    Unit = RohanPorter
End

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."

 
11:21:39