Welcome. You are about to join the thousands of people throughout the years who have experienced the joy of AI scripting. Those of you still out there who are unlucky enough to have not discovered this world, now is the time! The satisfaction of writing your own AI is far greater than designing your own scenarios. Now, let us jump in and I will show you all you need to get started with your first AI!
We all play those campaigns (here by referred to as CPXS or CPNS) where you type a password to open a gate or you type '1' to say yes to that chubby blacksmith to buy a sword. You wonder how they did it, right? (Not the smith... the designer.) Well, your awe is over! In this AI guide you will find multiple ways to pull off this seemingly impossible feat!
In a guide I wrote a while ago, I touched on a wonderful addition to any campaign called level dynamics. In this guide, I plan to go further in-depth in the intricacies of that addition.
What is this trick good for? Well let's say you have an RPG where you want the player to be able to reply to questions. This trick is exactly how you can do that.<br /><br /> For example the player goes to a blacksmith and he says "Would you like to buy a chain mail? (1=Yes) (2=No)"
This article has been written specifically on town size attack (TSA), and for people who have already have some knowledge of AI scripting. As far as I know, there are not any basic standard-game scripting tutorials, however I encourage you to look at <a href="http://tsuniversity.com/articleloader.php?133"><b>Berserker Jerker's The AI Tutorial for Scenario Designers</b></a>, from <a href="http://www.tsuniversity.com/">the Tsuniversity</a> and the <a href="https://aok.heavengames.com/blacksmith/showfile.php?fileid=11772"><b>AI Documentation</b></a>, found on your Age of Empires II: The Conqueror's Expansion CD (CD Drive:\DOCS\CPSB.DOC).
If you are here you probably want to know how to convert a campaign from either vanilla AoK or The Conquerors. The method is fairly straight forward.
This guide on how to build walls with AIs is intended for those that know the basic structure of AI scripting but still have yet to learn how to use the whole range of facts, actions, and strategic numbers. An expert or beginner scripter will still learn from this article, though.
A small but nice feature of AoK is a random selection names for AI players. While other games might always have the Japanese AI be Tokugawa, AoK can have Hojou Soun, Saito Dousan, Oda Nobunaga, Gamou Ujisato, Date Masamune, Mouri Motonari, Uesugi Kenshin, Takeda Shingen, Sanada Yukimura, Tokugawa Ieyasu, Nitta Yoshisada, Tairano Kiyomori, Ashikaga Takauji, Imagawa Yoshimoto, Kusunoki Masashige, Hosokawa Katsumoto, Minamotono Yoritomo, Fujiwarano Michinaga, or Minamotono Yoshitsune.