HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Comp focusses attack on one player only

12-09-2002, 11:39 AM#1
Guest
let me describe the situation more carefully:
- There are 4 comp players that have no buildings, they get a specified number of units every few minutes.
- There are no specified AI scripts running.
- It is a custom trigger map.
- human controlled players (up to 8 players) all have one hero at their disposal (all the heroes have their unit priority set to 7)

What is the problem?

The computer attacks (all the comp units hav a target acquisition range of 20.000,00), but focusses on one player only (whilst there can be up to 8 players in the game).

Is there away to solve this problem by introducing a customized .ai script or should I follow a different path (e.g., creating a trigger that runs every few seconds and gives all units new orders)?

I'd like the computer controlled units to attack more human controlled units and not focus their attacks on one player that is running away whilst the other units are firing at the computer controlled units.

Hopefully I was clear enough :)
12-09-2002, 02:14 PM#2
Guest
Hmm... Well, a custom AI script might be able to solve this for you, but probably an easier method would be to manually order the attacks with triggers, at least in this particular case. I'm not sure why the target acquisition range is 20k, but you might try turning the range down and then manually ordering the attacks on random players...
12-09-2002, 06:02 PM#3
Guest
I understand your reply, but the thing is that they will not hunt and seek out the players from a longer distance, that's why I had to set the acquisition range to such a long distance.

I guess that it is part of the problem, they attack the first unit they acquire.

Indeed if I have a trigger run every few seconds I may be able to reset the target they will acquire, but I hate introducing triggers that run every few seocnds, they can make a game real slow.

Thx, for the suggestion, but I want to learn this AI thing a bit more, i.e. what can and can't be done with AI (especcialy in regard to my problem).