Announcement

Collapse
No announcement yet.

Goals.txt

Collapse
X
Collapse
  •  

  • Goals.txt

    \CTP2_DATA\DEFAULT\AIDATA\Goals.txt

    The Goals file defines the various goals that the AI can pursue. The various goals that are defined within this file can then be set from the Strategies file where they are given priority ratings and other attributes.

    The following flags define which units can execute a goal and what are valid targets. Multiple flags can be defined.

    The following priority bonus values are added to the base priority values from the strategy to determine if the goal should be executed. Some are absolute bonuses that applied when true while others are scaled. Scaled bonuses are given as a ratio from 0 to the value of the bonus depending on game state. For example: the target with highest threat rating would get the full ThreatBonus and all other targets would be given a percentage of the bonus based on the ratio of it’s threat rating to the highest threat rating.

    The following values are used by the diplomatic system. They allow a goal to be associated with a Threat. When a threat is given all goals that are associated with that threat will get a priority bonus making them more likely to be executed.

    Example:
    GOAL_ATTACK
    {
    RallyFirst

    SquadClass:CanAttack

    TargetType:AttackUnit
    TargetType:SpecialUnit
    TargetOwner:HotEnemy

    Execute ORDER_ATTACK

    ThreatBonus 100
    EnemyValueBonus -250
    AlliedValueBonus 1500
    PowerBonus 500
    DistanceToHomeBonus 0
    DistanceToEnemyBonus 0
    ChokePointBonus 50
    UnexploredBonus -999999
    ObsoleteArmyBonus 100
    TreaspassingArmyBonus 0

    ThreatenTypeestroyCity
    ThreatenBonus 5000

    ForceMatch:Offensive

    TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
    }
    Attached Files
      Posting comments is disabled.

    Article Tags

    Collapse

    Latest Articles

    Collapse

    • Strategies.txt
      by Martin Gühmann
      \CTP2_DATA\DEFAULT\AIDATA\Strategies.txt

      The Strategies.txt file defines the various strategic states for the AI. See the AI customization document for details on how the strategic states are used by the AI.
      ...
      December 4, 2010, 21:31
    • WonderBuildLists.txt
      by Martin Gühmann
      \CTP2_DATA\DEFAULT\AIDATA\WonderBuildLists.txt

      This file contains build lists of Wonders for the AI to build. The build list names are referenced in BuildListSequences.txt and reference Wonders from Wonders.txt.
      ...
      December 4, 2010, 21:14
    • UnitBuildLists.txt
      by Martin Gühmann
      \CTP2_DATA\DEFAULT\AIDATA\UnitBuildLists.txt

      This file contains build lists of Units for the AI to build. The build list names are special and are directly referenced by the AI code. The lists reference Units from Units.txt.
      ...
      December 4, 2010, 21:09
    • Personalities.txt
      by Martin Gühmann
      \CTP2_DATA\DEFAULT\AIDATA\Personalities.txt

      This file define the personality attributes for various personalities. The personality names are referenced from Strategies.txt.
      ...
      December 4, 2010, 20:51
    • ImprovementLists.txt
      by Martin Gühmann
      \CTP2_DATA\DEFAULT\AIDATA\ImprovementLists.txt

      This file contains build lists of Tile Improvements for the AI to build. The build list names are referenced in Strategies.txt and reference Tile Improvements from TileImp.txt.
      ...
      December 4, 2010, 20:42
    • Hscore.txt
      by Martin Gühmann
      \CTP2_DATA\DEFAULT\GAMEDATA\Hscore.txt

      This file contains the High Score information for games played. The shipped version of this file is blank. And no modifications of this file should be necessary.
      ...
      December 4, 2010, 20:37
    Working...
    X