You must be logged in to post messages.
Please login or register

Modding Discussions
Moderated by Alexastor, MosheLevi, Mister SCP

Hop to:    
Welcome! You are not logged in. Please Login or Register.2 replies
Age of Empires III Heaven » Forums » Modding Discussions » AI Scripting guide for Age of Empires III
Bottom
Topic Subject:AI Scripting guide for Age of Empires III
AlistairJah
Skirmisher
posted 08-28-18 01:12 PM EDT (US)         
Greetings folks!

I have made a guide for AI scripting, so that everyone can make their own AIs for scenarios and skirmish. Actually, sometimes a simple AI written completely from scratch is way more effective and more reliable than the existing Vanilla AI, or any of the AIs that are built from it. I hope my guide is complete enough to make all people, even non-modders, able to write a fully working AI script.

The guide is divided in three parts:
Part I: http://aoe3wol.com/forum/viewtopic.php?f=33&t=1605
* Prerequisites
* Workspace
* Useful/necessary files
* Basics of XS

Part II: http://aoe3wol.com/forum/viewtopic.php?f=33&t=1606
* Concept of Identifiers/ID numbers
* Queries
* Plans
* Making the explorer scout

Part III: http://aoe3wol.com/forum/viewtopic.php?f=33&t=1608
* Rules
* Town/Base
* Gatherer allocation
* A simple AI that gathers resources
* Plans

Those three parts are largely enough for a basic understanding of any AI script. With the acquired knowledge from this guide, you will be ready to make a fully working AI - I will make a forth part where I show an example of fully working AI with a scenario that I will create, and several tips on good scripting practices.

If you were looking for a guide, I hope this one can be helpful! Don't hesitate to ask if you have questions!
AuthorReplies:
scavenger89
Skirmisher
posted 09-18-18 04:05 AM EDT (US)     1 / 2       
Thanks AlistairJah!
I will give it a good read!

I want to create an AI that focusses on getting resources and building walls and army for defense.

I want it not to attack me while Im building my town and only prepare for when I go to siege it.

Thanks for the material
AlistairJah
Skirmisher
posted 09-18-18 12:57 PM EDT (US)     2 / 2       
You're welcome! It's good to see the first reply for this topic

Advanced wall building needs trigonometry so I guess I will eventually make a 5th part for this guide, which will be 100% about vectors. I will see it.

If you have questions or need help, just ask
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Empires III Heaven | HeavenGames