• 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.

Ability Cast

Status
Not open for further replies.
Level 17
Joined
Mar 21, 2011
Messages
1,611
I got a RLY big problem:

i gave an enemy the lightning ball (new) (or a similar name, forgot it)
added the ability to the skill, BUT it dont work :(
if i give the skill to a unit under my control it works, but enemy player or neutral hostile dont work
 
Level 5
Joined
Apr 1, 2010
Messages
107
I believe you have to order the AI to cast it. If you've based it off of channel, it won't work (correct me on this.) In addition, make the spell function with how its base spell worked. If you based your lightning ball off of storm bolt, the AI should cast it as long as it's fighting an opponent.

Make sure the AI has enough mana, too, in order to cast it.

Also, you say you added the ability to the skill? I'm a bit confused on that.
 
Level 11
Joined
Nov 15, 2007
Messages
800
I assume you mean "Orb of Lightning (New)" which has a % chance to cast a spell on attack.

It's an unfortunate bug with WC3 where it only works with direct attack orders. Thus, it won't work with computer controlled enemies with no AI, since they won't issue direct attack orders, their units will just auto-acquire targets.

You can fix it by setting their acquisition range very low and using a trigger that orders AI units to attack enemies that come in range. Or you could instead use a damage detection system and trigger the ability itself.
 
Status
Not open for further replies.
Top