For those who are interested, here's my notes on the various AI libraries. I think making AI with the new module will basically involve copying parts of these files into the Custom Script of an AI Personality, and then modifying it to fit the map's needs. The "REPLACE" column shows which files will likely be copied and modified.
ARCHIVE: FILE: REPLACE: NOTES:
Core.SC2Mod\Base.SC2Data TriggerLibs\AI.galaxy No Defines a number of important flag constants, as well as AI function prototypes. Important reference file, especially because it contains useful comments.
TriggerLibs\BaseAI.galaxy Maybe Defines flags, difficulty levels, and startup routines for melee and campaign AIs. Also defines which units count as healers, oddly enough--this part may need replacement.
TriggerLibs\BuildAI.galaxy Yes Sets flags for the structures for each of the three races that tells the AI how to position and treat them. Vital for custom tech trees.
TriggerLibs\CampaignAI.galaxy No Blank, equivalent of MeleeAI.galaxy. Probably defined in particular maps?
TriggerLibs\Computer.galaxy No Includes the relevant trigger libraries for a computer-controlled player. Useful for determining load order of the scripts.
TriggerLibs\DebugAI.galaxy No Outputs trigger debug messages. Mainly for Blizzard's own use.
TriggerLibs\MeleeAI.galaxy Yes Defines state constants and functions for states and waves, and at the end includes other AI libraries.
TriggerLibs\MeleeHardAI.galaxy Yes Scouting, intelligence, and strategic functions, only used for Hard AIs.
TriggerLibs\MeleeNotHard.galaxy No Economic functions only used for non-Hard AIs.
TriggerLibs\RequirementsAI.galaxy Yes Defines constant variables for all of the pertinent game links that AI code refers to, including units, upgrades, abilities, etc. Vital data to change for custom races or tech trees.
TriggerLibs\SharedAI.galaxy No Four small functions used by all AIs, whether melee or campaign.
TriggerLibs\Tactical\TactCompAI.galaxy No "Intentionally empty. Will be overridden by campaign-specific file."
TriggerLibs\Tactical\TacticalAI.galaxy No Tactical AI data in the Galaxy Editor's Data module is apparently converted to triggers. This file is the equivalent of the default Tactical AI data. Whether or not it has anything more than what is found in the Editor, there's no point in using this file, because the Tactical AI editing capabilities of the Editor are good enough.
TriggerLibs\TactProt.galaxy No Tactical AI data for Protoss.
TriggerLibs\TactTerr.galaxy No Tactical AI data for Terran.
TriggerLibs\TactZerg.galaxy No Tactical AI data for Zerg.
Liberty.SC2Mod\Base.SC2Data TriggerLibs\Protoss\Protoss.galaxy Yes Basic AI data and functions for a Protoss AI, including which units are used to counter which.
TriggerLibs\Protoss\Protoss0.galaxy Yes For Very Easy AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Protoss\Protoss1.galaxy Yes For Easy AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Protoss\Protoss2.galaxy Yes For Normal AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Protoss\Protoss3.galaxy Yes For Hard AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Protoss\Protoss4.galaxy Yes For Very Hard AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Protoss\Protoss5.galaxy Yes For Insane AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Terran\Terran.galaxy Yes Basic AI data and functions for a Terran AI, including which units are used to counter which.
TriggerLibs\Terran\Terran0.galaxy Yes For Very Easy AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Terran\Terran1.galaxy Yes For Easy AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Terran\Terran2.galaxy Yes For Normal AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Terran\Terran3.galaxy Yes For Hard AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Terran\Terran4.galaxy Yes For Very Hard AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Terran\Terran5.galaxy Yes For Insane AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Zerg\Zerg.galaxy Yes Basic AI data and functions for a Zerg AI, including which units are used to counter which.
TriggerLibs\Zerg\Zerg0.galaxy Yes For Very Easy AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Zerg\Zerg1.galaxy Yes For Easy AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Zerg\Zerg2.galaxy Yes For Normal AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Zerg\Zerg3.galaxy Yes For Hard AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Zerg\Zerg4.galaxy Yes For Very Hard AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
TriggerLibs\Zerg\Zerg5.galaxy Yes For Insane AI, functions for carrying out the current AI state (Attack by land or air? Early or late game?).
Hey man thanks for posting this info. I'm a veteran BW mapper just barely getting into SC2 (dunno what took me so long!)
Just trying to clarify... Are you saying that ALL the files with a Yes need to be copied and pasted into a AI Personality script? I took a look at Zerg4.galaxy and it's already intimidating! :)
Trying to figure out if it's worth it to get into this for my first coop campaign map, or if I should just do manual attack wave triggers.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
For those who are interested, here's my notes on the various AI libraries. I think making AI with the new module will basically involve copying parts of these files into the Custom Script of an AI Personality, and then modifying it to fit the map's needs. The "REPLACE" column shows which files will likely be copied and modified.
@TrenchaunT: Go
Hey man thanks for posting this info. I'm a veteran BW mapper just barely getting into SC2 (dunno what took me so long!)
Just trying to clarify... Are you saying that ALL the files with a Yes need to be copied and pasted into a AI Personality script? I took a look at Zerg4.galaxy and it's already intimidating! :)
Trying to figure out if it's worth it to get into this for my first coop campaign map, or if I should just do manual attack wave triggers.