HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question about AI

01-30-2004, 06:05 PM#1
Mink
The AI systems are pretty new to me so it has got me a bit confused. I have a simple map that I need the computer to attack for. This works just fine. But what I would like to know is if there is a way to set the AI script to defend a specific building belonging to the human player without leaving the area. I have set the ai defensively (as far as I can tell, I am still learning ai stuff) and it will still leave the area I want it to protect to go kill the enemy and get itself slaughtered in the process. I can set this up through triggers, but it does not react as good as the ai for the attackers does. Most of the time, it just ends up with my computer units being totally worthless. Any way I can create or change an AI in the editor to do this? I don't have the programming experience to program it from scratch myself, or do it any other way then the ai editor.
01-30-2004, 07:09 PM#2
Tommi
Do you mean that your units follow enemy units out of the area, or do they just leave the area on their own?
01-30-2004, 07:16 PM#3
Mink
They actually will leave the area on their own. The enemy is spawned randomly in one of 4 corners. Then it travels to a certain point, groups itself, and then attacks. Once the enemy reaches the area where it groups the computer for the defending side sends units out to attack them. This is a strategic map though, and there are very few units to defend against a larger army. So when the computer sends them out of course they die.
01-31-2004, 09:39 AM#4
Tommi
Try reducing their acquisition range (Unit - Set Acquisition Range) and ordering them to retreat when they move out of the area.