HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

AI spell targeting issues

07-18-2003, 05:03 AM#1
Telperion01
I've been having difficulty getting enemy units in my dungeon crawl to target heros appropriately with active spells. For example, I've noticed that on a warlock creep type I have, heros will only get targeted with firebolt, and if attacked they will frenzy the attacked unit. If an image of a hero attacks the warlock, it will instead be crippled...

All the other units have similar issues, and it has become a problem with the bosses: I changed them from standard units to heros, duplicating the fields and abilities, but they no longer cast active spells on players :bgrun: Other types of abilities like raise dead/mirror image will still function correctly, but the heros aren't attacked any more with death coil, chain lightning, custom abilities...what's the problem?
07-18-2003, 06:21 AM#2
Method
The problem is more than likely AI. I know with custom abilities, hero one's especially, I've had a tough time getting the computer to use them. The way I was able to solve this was to write my own AI useing the AI editor. I wrote a brief tutorial here on how to do this, I'll see if I can find it.
http://www.wc3campaigns.com/forums/s...threadid=22025
Edit:Found it.
Method
07-18-2003, 08:01 AM#3
Telperion01
The problem I had with it when I tried implimenting an AI is that the computer did entirely it's own thing when I issued it orders :bgrun: Maybe importing the custom units will give it the information it needs to know how to handle unit commands...will give it a shot.


Edit: Ignore all guard positions + deleting AI attack commands fixed the order problems. I'll test out the bosses tomorrow & see if they correctly use thier abilties (probably will, from what I've seen working with the AI editor now), thanks for the tip 8)
07-19-2003, 10:00 AM#4
Telperion01
Ehh darn the heros still weren't targeted...looking through the AI editor to see if something there determines it. "Target heros" field is checked, looking through what else I need to do...