• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

How are enemy targets chosen?

Status
Not open for further replies.
Level 12
Joined
May 22, 2015
Messages
1,051
In my map, there are zombies and humans. Normally, you just fight zombies and everything is fine (all units have equal priorty). However, there is quite a bit of reanimation happening (rise of the dead ability, but the units are not invulnerable) so you often end up fighting the human forces as well.

Now here's the problem. For no reason that I can tell, your hero will ALWAYS attack an undead unit before a human unit. Even if your hero is walled out by reanimated human units, it will just run around trying to get to the zombie in the back.
:ogre_rage:

Here's some things that might cause it, but I don't really know what's up. Hopefully someone has better knowledge about it than me:

Undead unit classification.
No idea if this would change anything in the AI.

Armour type.
All the units in question take the same damage from heroes.

Armour type again.
The humans use fortified armour type (though it is modified to be complete different from it). Maybe there's still some AI attached to this armour type?

Unit level.
Some of the humans are higher level, but there are times where all the units are the same level and, still, the hero goes for the zombies first.

Armour / health value.
The zombies are definitely more squishy overall (less health and armour), so maybe that has something to do with it?

Thanks for any insight anyone provides.
 
Level 12
Joined
May 22, 2015
Messages
1,051
Animate Dead. Sorry, I was going from memory :p forgot exactly what the ability was called.
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
I hope you unchecked the field about invulnerable thing in ability settings.
 
Level 12
Joined
May 22, 2015
Messages
1,051
Yes I did that. I mean even when the only units there are zombies and humans that are reanimated from animate dead, the zombies are still targeted first.
 
Level 12
Joined
May 22, 2015
Messages
1,051
They are definitely attackable. My map has been like this for multiple years haha. It's always been a problem, but it's not like it ruins it or anything, just makes it annoying. I figured I would ask about it to see if anyone knows what's happening.

The issue is just how the AI targets units. If you attack move into them, your hero will ALWAYS 100% of the time attack the zombies, even if they are in the back.
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
I am trying to reproduce your result in a test map but it doesn't work for me, is it possible to upload your map?
 
Level 12
Joined
May 22, 2015
Messages
1,051
Hmm I will have to make my own test map for it and see if I can reproduce it as well. It would be a pain to wait for it to happen in my map since it could take 15ish minutes before it happens lol.

I don't have access to my editor right now, so it'll have to wait until tonight. I will bump this thread with my test map when I make it. Thanks for looking into this for me! +rep

EDIT:
Honestly, I think the best candidate for the bug is the fortified armour type. Try making two non-building units, 1 with fortified armour and the other with normal or something. Use chaos attack type and then attack move them from different angles. I will try that out in my map if no one else does before me.
 
Level 12
Joined
May 22, 2015
Messages
1,051
Solved! It's the fortified armour causing it. Seems like fortified armour type is what the AI uses to determine if it's a building (I think they get attacked after units).
 
Status
Not open for further replies.
Top