AMAI vs AI EDITION

From AMAI V2.50 it is now possible to play against standard blizzard created ai's at the same time while playing against AMAI. This was once possible to do in older builds but became a much more complicated procedure till down right impossible.

This has been reversed and now all standard blizzard ai's and campaign ai's and custom standard/campaign ai's will all work with no changes required at all. This allows possibilities of having amai play against a standard computer and improves possibilites of play for campaigns. You may also find it easier to write standard ai's as all the units can be set up in the AMAI editor, compile to get a common.ai file and now just write your racial script without long hassle of modifying the common.ai file manually.

To start playing AMAI just double click the executable. Afterwards start up a single or LAN match like normal with some ai opponents.
Congrats you can now play the map against and/or with computers to make use of AMAI.
This special version specifically will make half the computers to be AMAI and the other half to be the original ai made by blizzard entertainment.

Developer edition instructions

AMAI 2.50 developer edition has a Compile AMAI vs AI button that will use your the data from the TFT version to make the scripts and then creates the executable at the 'Scripts/AMAI_vs_AI/' directory. (NOTE: You cannot use the player edition to install this version on particlar maps)

This folder contains a specially created blizzard.j and racial scripts with the number 2 in there name e.g. human2.ai. These scripts are the original blizzard ai's already set up to be compatible with AMAI and are required files when using this compile.

Replacing the "race"2.ai file codes with your own ai made in either editor or just written for the original ai can be put here instead and that ai will be compiled in the amai vs ai edition.

Instructions to convert your other original ai scripts to be compatible with AMAI ( This section requires knowledge in extracting from an mpq)

As an example we will use the standard blizzard human.ai script to show how to make any script compatible.

1) First extract the standard melee ai script (e.g. human.ai ) from the war3x.mpq. This will be the one we wish to include with amai.

2)Next you have two options. You can either place your amai file in your amai's Script/AMAI_vsAI/ folder and replace human2.ai file with yours. Make sure you rename your script to human2.ai. Then open the developer edition and click compile AMAI vs Ai. This allows you to test all your own original scripts against AMAI. Great for ai tournaments me thinks.

3) Second option is to add the file directly to the created amai executable using winmpq or something similar. You can then play using the exe and the race you added will be the standard ai. The AMAI files must all be created from the compile button. You cannot use optimize/compile as then the standard files appear unreadable.

4) And thats it easy isn't it. You can now experiment with this feature as you will. Either by making a war3 scenario that has different ai scripts some ai and some amai. You could provide players a choice of which ai player could choose. The options are limitless. Mod designers may find this feature useful as campaigns can use standard ai made in blizzards ai editor while melee maps can use the normal amai without any conflicts.

NOTE: If you do not call the 'PickMeleeHero' or 'Campaign ai' function in your custom ai first you will have to include the function 'call InitAiUnits()' at beginning of your main section otherwise your ai will not work. Ai's made in blizzards ai editor or standard blizzard ai's do not need to have the function added.