Difference between revisions of "Ai.tbl"

From FreeSpace Wiki
Jump to: navigation, search
 
m (Formatting)
Line 30: Line 30:
  
  
===Example===
+
==Sample Entry==
 +
  #AI Classes
 
   $Name:        Captain
 
   $Name:        Captain
 
   $accuracy:    0.5      0.55    0.6      0.65    0.7
 
   $accuracy:    0.5      0.55    0.6      0.65    0.7
Line 36: Line 37:
 
   $courage:      10,      20,      30,      40,      50
 
   $courage:      10,      20,      30,      40,      50
 
   $patience:    10,      20,      30,      40,      50
 
   $patience:    10,      20,      30,      40,      50
 
+
  #End
  
 
[[Category:Tables]]
 
[[Category:Tables]]

Revision as of 16:28, 13 November 2005

  • 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 ship uses its weapons

Evasion

  • How good the ship is at evading

Courage

  • How likely the ship is to chance danger to accomplish goals

Patience

  • How willing the ship is to wait for an advantage before pursuing goals

Table Entry

$Name:

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

$accuracy:

  • Value from 0.0 to 1.0
  • Syntax: Value, Value, Value, Value, Value
    • Very Easy, Easy, Moderate, Hard, Very Hard difficulty levels respectively

$evasion:, $courage: and $patience:

  • Value from 0 to 100
  • Syntax: Value, Value, Value, Value, Value
    • Very Easy, Easy, Moderate, Hard, Very Hard 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