AI scripts direct how computer players attack human players.


AI scripts in StarCraft come in three varieties:

Melee, which assumes the computer will start with a town center and four workers. This script has a few preset strategies it will try to use, based on whether he's connected to his opponent by ground, the opponent's race, and just random chance.

Insane, which makes no assumptions about what the computer will start with. This script is aggressive. It will always use its scripted rushes, regardless of what the player does.

Campaign, which assumes the computer will start with a base and is relatively passive. It will generally not expand or build new structures, preferring only to rebuild. It will attack with periodic scripted forces within minutes, regardless of what the player does. The campaign AI is designed to lose while giving the player some fun.[1]

The campaign comes with three levels of difficulty.[2]

Some custom campaign scripts will follow different rules, such as expanding.[3]


StarEdit gives access to more AI scripts, such as Send All Units on Random Suicide Missions, Send All Units on Strategic Suicide Missions, and Set Player to Rescue Passive, as well as giving units specific orders (e.g. enter the nearest bunker).[2]

StarCraft IIEdit

Seven levels of AI script difficulty have been crafted for StarCraft II—very easy, easy, medium, hard, harder, very hard and elite.

The elite AI mode is the only one which "cheats".[4]

An elite AI's workers will gain 40% more income than normal workers. For example, normal workers will gather 5 mineral in each trip. An elite AI worker will receive 7 minerals for each trip rather than 5. This is also true with the MULE and with vespene gas. With this increased income an elite AI will be able to stay in one base play for an extensive amount of time. Also with this bonus it is said to be impossible to out-macro elite AI's. Most players rely on "cheese" to win a game against a Very Hard or elite AI.


  1. Blizzard Entertainment. Frequently Asked Questions: AI Scripts. StarCraft Compendium. Accessed 2009-11-04.
  2. 2.0 2.1 StarEdit
  3. Blizzard Entertainment. StarCraft: Brood War. Vivendi Games. Mission: Fury of the Swarm (in English). 1998.
  4. Deep.Thought. 2009-08-18. StarCraft II Single Player Fact Sheet. StarCraft Wire. Accessed 2009-09-07.
Community content is available under CC-BY-SA unless otherwise noted.