Green Rollover Red Rollover Arrow Rollover Focused Userbar Register Button Rollover Red Button Rollover
Welcome Guest ( Log In / Register )

Explanation of Empire At War's AI "engine"

Avatar of Drieick

Drieick

Category: Coding
Level: Intermediate
Created: Monday February 25, 2008 - 3:03
Updated: Monday May 5, 2008 - 22:43
Views: 6349
Summary: Taken from the forums, a tutorial on EAW's AI

Rating

Staff says

5.0

Members say

-

Average

5.0/5.0

1 vote

Page 1 2 3 4 5 6
Making use of Galactic Hints
Hints are a grand feature for Galactic mode; they define an extra value for the specified planet. You can even add new hints, that work, to the already set of hints.

Hints are basically variables that can be used in expressions to add-on to the value of a function. They are defined in a file, which has to be linked to in <Markup_Filename>FactionName, GalacticHintsFile </Markup_Filename> tag.

To call a hint in an expression, the command is simply: Variable_Target.Hints.HintName.

Templates and PlayerType
Templates are basically just blue-prints; they hold the category information, which functions that'll be used for formulating the budget, and what not. Without this template, the AI is cut off completely from any and all Goal Functions, thus making it idle. Also defines which goals or plans to turn off or on.

PlayerType is the compiler; it gathers the templates, the difficulty adjustments, any freestore scripts, and the file names for the goal functions. The name for the player is also given here; the name is used in the <Basic_AI> and <AI_Player_Control> tags.

If you ask me, they should be put together instead of seperate.

Links / Downloads

 HitsAdded
NameSpace and TestFunction (Page 6)2607February 25, 2008 - 3:19
News article pertainting to tutorial3064February 25, 2008 - 3:07
The original thread2979February 25, 2008 - 3:06

Add comment

Please enter your message below. Max 10000 characters.