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

Help on getting AI to cast a spell

Status
Not open for further replies.
Level 3
Joined
Dec 19, 2012
Messages
18
Hello so im trying to make AI cast spells for one of my maps. I have been helped before and got it to work but i have run into another problem.
Im trying to figure out a way to get AI to cast this spell below.
http://www.hiveworkshop.com/forums/spells-569/splitting-fireball-v1-0-a-243419/


If anyone can help me out, im still kind of new to triggers but if some one can help me i can figure it out most likely. I would post what i have but it wouldnt really help as it does nothing, ive looked at previous tutorials like the AI spell cast ETC and i cannot figure it out for my life lol.
 
Level 5
Joined
Feb 22, 2013
Messages
161
Condition for mana cost
Condition for enemy health (optional)
Condition for if the AI hero actually has the ability
Condition for anything else before the AI casts
If above is true then cast on enemy's position or the enemy if it's a targeted ability

If it's a cast on self then another condition would be to see if the enemy is within range of the AI hero.
 
Status
Not open for further replies.
Top