Difference between revisions of "Ai.tbl"

From FreeSpace Wiki
Jump to: navigation, search
m (updated the version info)
m (update)
Line 1: Line 1:
Revision information.. <!-- Please update this information when page is updated -->
+
{{TableVersion|4557|4499}}
::'''3.6.x branch:''' 1.72.2.26
 
::'''3.7 branch:''' 1.109
 
  
 
*The AI.tbl file defines the AI classed used in the game. This table is used to define each AI class with four abilities for each of the five difficulty levels.
 
*The AI.tbl file defines the AI classed used in the game. This table is used to define each AI class with four abilities for each of the five difficulty levels.

Revision as of 08:53, 30 March 2008

Revision information.....

FSO Revision: 4557
Note: Please update the version when the page is updated. If your edit had nothing to do with new code entries then please do not edit the version


  • The AI.tbl file defines the AI classed used in the game. This table is used to define each AI class with four abilities for each of the five difficulty levels.

Ability

  • Higher number means better ability

Accuracy

  • How accurately the ship fires its weapons. Value is used to scale the error in the AI aim. With repeated shots, AI aim will improve. Note that the AI is always 100% accurate when aiming for subsystems, according to Retail code.

Evasion

  • How good the ship is at evading. Value defines the frequency of AI course changes while it is evading.

Courage

  • How likely the ship is to chance danger to accomplish goals. Basically the lower the value sooner the AI will start evading when attacked and its less likely to target turrets.

Patience

  • How willing the ship is to wait for an advantage before pursuing goals. Never actually implemented - It does absolutely nothing.

Table Entry

$Name:

  • Defines a name for the AI class that can be used with ships.tbl and also with FRED
  • Syntax: String, name of the AI class

$accuracy:

  • Value from 0.0 to 1.0
  • Syntax: Float list, five comma separated floats, one for each difficulty, very easy, easy, moderate, hard, insane difficulty levels respectively

$evasion:, $courage: and $patience:

  • Value from 0 to 100
  • Syntax: Float list, five comma separated floats, one for each difficulty, very easy, easy, moderate, hard, insane difficulty levels respectively


Sample Entry

  #AI Classes
  $Name:         Captain
  $accuracy:     0.5      0.55     0.6      0.65     0.7
  $evasion:      10,      20,      30,      40,      50
  $courage:      10,      20,      30,      40,      50
  $patience:     10,      20,      30,      40,      50
  #End