HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple AI Auto-cast Question

08-07-2004, 02:00 AM#1
RaeVanMorlock
I have an enemy unit set to attack-move from point A to point B. The enemy unit has an auto-cast spell (based on Slow) set to auto-cast, but doesn't use it on my units as it passes by.

I also tried placing the unit near my units with no orders given, and it still failed to use the spell.

The only big difference is that the spell is now set to target buildings instead of units.

Do I need to make triggers to order the unit to cast the spell or is there some other way to make this work like it would in any normal melee game?
08-07-2004, 02:30 AM#2
Heptameron
Auto-cast spells are only used if a unit attacks you in the first place, I believe.
08-07-2004, 02:49 AM#3
RaeVanMorlock
Quote:
Originally Posted by Heptameron
Auto-cast spells are only used if a unit attacks you in the first place, I believe.


They are being attacked.



I added some units to the fray, and then the spell was casted on them, but it's still not auto-casting it on the structures. This is so very annoying...
08-07-2004, 07:54 AM#4
Panto
The subtleties of which spells are automatically used on which targets are generally lost on me, but they do exist. It's quite likely that this spell has a property that the computer doesn't try to cast it on buildings.

If you could find a spell that's auto-cast on buildings successfully, you could use that as a base and trigger the casting of this spell. Otherwise, I think you might have to trigger the intelligence to get it to fire, which is likely to be a pain in the arse.
08-07-2004, 08:58 AM#5
Anitarf
Yes, various autocast spells have various conditions on which they are cast: frost armor is autocst on units that were just attacked by a melee attacker, bloodlust on units that just noticed an enemy unit in range, slow and faerie fire, I think, get cast right away on any unit in range,... But apparently, none of them will target buildings. Whatever you may set as a possible target of the spell, the autocast code will only use it's own hardcoded options.