This tab is probably the easiest as far as the actual AI Editor goes. It will now be stored in the AI so that you can use it in the coming menus. When you go to import it into the AI, click on the Import button, find the file that you just saved, and import it. Do this by selecting the unit in the Object Editor, then going to File -> Export All Object Data. When you create a custom unit that you want to use in the AI, export its data. Because the AI Editor is not tied in any way with the current map open in the editor, it is necessary to import any custom units you will need to create your AI. Lastly, there is an option for importing custom units.
#STARCRAFT 2 EDITOR CUSTOM SCRIPT HOW TO#
I will give an example of how to do that later on. You can then set up a number of comparisons that the AI will check wherever you wish to use that condition. Click on the Configure Condition button to specify what the condition will do. To create a new condition, click the Add Condtion button at the bottom. These conditions can be used with many different operations of the AI Editor, including building and attacking. There is also a large window for conditions to be used with construction and attack. There are also several options for general operations of the AI that come with their own tooltip and are fairly self-explanatory, so I won't go into detail there. This is where you will declare what race your AI will be, Human, Orc, Undead, Night Elf, or Custom. The General Tab contains things that are, well, general. Or, in other words, how do I create a custom AI? Well, first, we'll take a look at the different tabs in the AI Editor and their different functions, then you should be able to create your own AI. The AI Editor eliminates the need for a huge collection of triggers that would be needed to drive a custom race that the computer knows nothing about. The primary use of the AI Editor is to create a custom race that a computer player will be able to control. You can import any number of structures and units for use in the AI Editor. Simply put, the AI Editor is a tool that allows the mapper to create a custom AI script that can be implemented with any combination of structures and units. So, I've created an introductory course on the workings of the AI Editor.ΔΆ. I've noticed that there is next to nothing about the AI Editor in all of this forum.