• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Computer abilites

Status
Not open for further replies.
Level 2
Joined
Mar 10, 2010
Messages
16
Hey I'm back with yet another problem!
In my map the computer controls enemy units that cast spells. When I engage them they automatically cast the spells they have, no problems there. However once they run out of mana they stop casting even after the mana regenerates. The same thing applies if the unit gets silenced. Even after the silence effect is gone they never cast any more spells.

Could anyone offer some assistance on how to make it work?
 
Then, that must be some flaw of AI (which I've never heard of before). Try implementing a Damage Detection System that, once the unit takes damage, if it has mana greater than or Equal to X, order it to cast the spell.

That means if there are multiple targets and among those two caster units, one of them might not cast because it is not taking damage. Therefore it should be set to: taking damage or attacking
 
Status
Not open for further replies.
Back
Top