AI scripting

From GenieWiki

Jump to: navigation, search

AI scripting is a form of AI design used in Age of Empires II using a its own unique scripting language. Whenever someone writes an AI script, that person is writing the rules for a computer player to follow. AI scripts are formed by:

  • Rules: what the AI must do. What the AI cannot do. Without rules, an AI script does not exist.
  • Facts: can be compared to conditions. What must happen (or must not happen) for the rule's actions to fire.
  • Actions: can be compared to effects. What happens when a fact is detected.
  • Parameters: what the AI works with. Units, buildings, technologies and resources are parameters.
  • Constants: mostly used for aesthetical purposes, constants can be used to redefine the meaning of a number or word within the script.

Some players criticize AI scripting, saying that regardless how hard an AI can be to defeat, it can never be as unpredictable as a human player.

This article is a stub. You can help GenieWiki by expanding it!
Personal tools