1. Read the DZ's AI.ini guide.
2. Look through the original AI file to understand how it works.
3. Get my AI editor (V1, not the alpha V2). */me points at own sig* */me realizes that he has no sig* */me makes this post to get the sig at last*
Use it only to preview the AI, don't change anything yet.
4.* When you feel sure you know what you're doing, try modifying something (AI editor V1 has some bad habits, so you should edit the ai in notepad/editpad/wordpad and only preview it in V1.. sorry, I won't fix those bugs in V1 - already working on V2).
5. Stuck? Ask us.
*Another way would be to use FA2 to make AI coding in one map and then copy-paste it into ai(md).ini.